#include <readwriteformbase.h>
Inheritance diagram for ReadWriteFormBase:
Public Slots | |
void | checkThreads () |
virtual void | copy () |
virtual void | cut () |
virtual void | paste () |
virtual void | write () |
virtual void | deleteRec () |
void | createLink (LitUrl obj1, LitUrl obj2) |
void | deleteLink (LitUrl obj1, LitUrl obj2) |
void | createPublicationAuthor (LitUrl publ, LitUrl author) |
void | deletePublicationAuthor (LitUrl publ, LitUrl author) |
void | createPartAuthor (LitUrl part, LitUrl author) |
void | deletePartAuthor (LitUrl part, LitUrl author) |
void | createProjectBibliography (LitUrl pr, LitUrl pub) |
void | deleteProjectBibliography (LitUrl pr, LitUrl pub) |
void | newNote (LitUrl obj) |
Public Member Functions | |
ReadWriteFormBase (LitUrl u, QObject *receiver, QString slot, QWidget *parent=0, const char *name=0) | |
~ReadWriteFormBase () | |
bool | threadsFinished () |
Protected Slots | |
virtual void | setWorkingGui (bool work) |
virtual void | setReadonlyGui (bool ro) |
virtual void | setInvalidGui (bool inv) |
Protected Member Functions | |
virtual bool | setData () |
virtual void | initToolBar () |
void | waitForThreads () |
Protected Attributes | |
QToolBar * | rwtoolbar |
QPtrList< FillLinkListBox > | threads |
QTimer | threadtimer |
QAction * | writeAction |
QAction * | deleteAction |
Private Member Functions | |
ReadWriteFormBase (const ReadWriteFormBase &) | |
ReadWriteFormBase & | operator= (const ReadWriteFormBase &) |
virtual void | lockGui () |
virtual void | unlockGui () |
void | customEvent (QCustomEvent *e) |
virtual bool | lockRec () |
virtual void | unlockRec () |
Private Attributes | |
bool | rec_is_locked |
bool | valid |
Read/write dialogs inherit this class. The class handels locking, readonly/readwrite/invalid gui states, copy/cut/paste, revert/write/delete and multiple threads.
To be reimplemented by child class:
Definition at line 41 of file readwriteformbase.h.
|
|
|
Definition at line 38 of file readwriteformbase.cpp. References checkThreads(), initToolBar(), and threadtimer. |
|
Destructor. Unlocks the tuple. Definition at line 44 of file readwriteformbase.cpp. References rwtoolbar, unlockRec(), and waitForThreads(). |
|
Definition at line 71 of file readwriteformbase.cpp. References setWorkingGui(), and threadsFinished(). Referenced by ReadWriteFormBase(). |
|
Definition at line 149 of file readwriteformbase.cpp. |
|
Definition at line 238 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(), ReadOnlyFormBase::no(), setData(), setInvalidGui(), LitUrl::table(), ReadOnlyFormBase::url(), and write(). Referenced by Publication::insertNote(), Part::insertNote(), Note::insertNote(), File::insertNote(), and Author::insertNote(). |
|
Definition at line 275 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(), ReadOnlyFormBase::no(), setData(), setInvalidGui(), ReadOnlyFormBase::url(), and write(). Referenced by Part::createAuthor(), Part::insertAuthor(), and Author::insertPart(). |
|
Definition at line 258 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(), ReadOnlyFormBase::no(), setData(), setInvalidGui(), ReadOnlyFormBase::tab(), ReadOnlyFormBase::url(), and write(). Referenced by Project::insertPart(), and Project::insertPublication(). |
|
Definition at line 247 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(), ReadOnlyFormBase::no(), setData(), setInvalidGui(), ReadOnlyFormBase::url(), and write(). Referenced by Publication::createAuthor(), Publication::insertAuthor(), and Author::insertPublication(). |
|
Receives ThreadFinishedEvent and counts the finished threads. Definition at line 209 of file readwriteformbase.cpp. References ThreadLinkEvent::box(), ThreadLinkEvent::parentItem(), ThreadLinkEvent::pixmap(), ThreadLinkEvent::text(), and ThreadLinkEvent::url(). |
|
Definition at line 152 of file readwriteformbase.cpp. |
|
Definition at line 303 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(), ReadOnlyFormBase::no(), setData(), setInvalidGui(), LitUrl::table(), ReadOnlyFormBase::url(), and write(). Referenced by Publication::deleteNote(), Part::deleteNote(), Note::deleteNote(), File::deleteNote(), and Author::deleteNote(). |
|
Definition at line 295 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(), ReadOnlyFormBase::no(), setData(), setInvalidGui(), ReadOnlyFormBase::url(), and write(). Referenced by Part::deleteAuthor(), and Author::deletePart(). |
|
Definition at line 266 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(), ReadOnlyFormBase::no(), setData(), setInvalidGui(), ReadOnlyFormBase::tab(), ReadOnlyFormBase::url(), and write(). |
|
Definition at line 287 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(), ReadOnlyFormBase::no(), setData(), setInvalidGui(), ReadOnlyFormBase::url(), and write(). Referenced by Publication::deleteAuthor(), and Author::deletePublication(). |
|
Deletes the record. Reimplemented in Note. Definition at line 171 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(), rec_is_locked, setInvalidGui(), ReadOnlyFormBase::setValid(), and ReadOnlyFormBase::url(). Referenced by Note::deleteRec(), and initToolBar(). |
|
Reimplemented from ReadOnlyFormBase. Reimplemented in Author, Bibliography, File, Note, Part, PartMemo, Project, and Publication. Definition at line 223 of file readwriteformbase.cpp. References deleteAction, deleteRec(), loadPixmap(), ReadOnlyFormBase::mainWindow(), ReadOnlyFormBase::roMenu(), rwtoolbar, write(), and writeAction. Referenced by ReadWriteFormBase(). |
|
Disables all gui members of the dialog. Definition at line 125 of file readwriteformbase.cpp. |
|
Locks the current tuple. Returns true (success) or false (already locked) Definition at line 86 of file readwriteformbase.cpp. References locked_recs_dict, ReadOnlyFormBase::no(), rec_is_locked, setReadonlyGui(), and ReadOnlyFormBase::url(). Referenced by setData(). |
|
Definition at line 311 of file readwriteformbase.cpp. References ReadOnlyFormBase::no(), and ReadOnlyFormBase::url(). Referenced by Publication::createNote(), Part::createNote(), File::createNote(), and Author::createNote(). |
|
|
|
Definition at line 155 of file readwriteformbase.cpp. |
|
A virtual method. Loads the data record and fills the form.
Reimplemented from ReadOnlyFormBase. Reimplemented in Author, Bibliography, File, Journal, Note, Part, PartMemo, Project, Publication, and Publisher. Definition at line 217 of file readwriteformbase.cpp. References lockRec(), and rec_is_locked. Referenced by createLink(), createPartAuthor(), createProjectBibliography(), createPublicationAuthor(), deleteLink(), deletePartAuthor(), deleteProjectBibliography(), deletePublicationAuthor(), Publisher::setData(), Publication::setData(), Project::setData(), PartMemo::setData(), Part::setData(), Note::setData(), Journal::setData(), File::setData(), Bibliography::setData(), and Author::setData(). |
|
|
Reimplemented in Author, Bibliography, File, Journal, Note, Part, PartMemo, Project, Publication, and Publisher. Definition at line 195 of file readwriteformbase.cpp. References ReadOnlyFormBase::readonlyGui(). Referenced by lockRec(), Publisher::setReadonlyGui(), Publication::setReadonlyGui(), Project::setReadonlyGui(), PartMemo::setReadonlyGui(), Part::setReadonlyGui(), Note::setReadonlyGui(), Journal::setReadonlyGui(), File::setReadonlyGui(), Bibliography::setReadonlyGui(), and Author::setReadonlyGui(). |
|
Reimplemented in Author, Bibliography, File, Journal, Note, Part, PartMemo, Project, Publication, and Publisher. Definition at line 189 of file readwriteformbase.cpp. References rwtoolbar, and ReadOnlyFormBase::workingGui(). Referenced by checkThreads(), Publication::setWorkingGui(), Note::setWorkingGui(), File::setWorkingGui(), Bibliography::setWorkingGui(), and Author::setWorkingGui(). |
|
Definition at line 50 of file readwriteformbase.cpp. References threads. Referenced by checkThreads(). |
|
Enables all gui members of the dialog. Definition at line 137 of file readwriteformbase.cpp. |
|
Unlocks the current tuple. Definition at line 118 of file readwriteformbase.cpp. References locked_recs_dict, ReadOnlyFormBase::no(), rec_is_locked, and ReadOnlyFormBase::url(). Referenced by ~ReadWriteFormBase(). |
|
Definition at line 57 of file readwriteformbase.cpp. References threads. Referenced by Publisher::setData(), Publication::setData(), Project::setData(), Journal::setData(), and ~ReadWriteFormBase(). |
|
Writes the data to the database. Reimplemented in Part, and Publication. Definition at line 159 of file readwriteformbase.cpp. References ReadOnlyFormBase::isValid(). Referenced by createLink(), createPartAuthor(), createProjectBibliography(), createPublicationAuthor(), deleteLink(), deletePartAuthor(), deleteProjectBibliography(), Project::deletePublication(), deletePublicationAuthor(), initToolBar(), Publication::write(), Part::write(), Author::~Author(), Bibliography::~Bibliography(), File::~File(), Journal::~Journal(), Note::~Note(), PartMemo::~PartMemo(), Project::~Project(), and Publisher::~Publisher(). |
|
Definition at line 75 of file readwriteformbase.h. Referenced by initToolBar(), and setInvalidGui(). |
|
Definition at line 47 of file readwriteformbase.h. Referenced by deleteRec(), lockRec(), setData(), and unlockRec(). |
|
Definition at line 66 of file readwriteformbase.h. Referenced by initToolBar(), setWorkingGui(), and ~ReadWriteFormBase(). |
|
Definition at line 67 of file readwriteformbase.h. Referenced by threadsFinished(), and waitForThreads(). |
|
Definition at line 68 of file readwriteformbase.h. Referenced by ReadWriteFormBase(). |
|
Reimplemented from ReadOnlyFormBase. Definition at line 48 of file readwriteformbase.h. |
|
Definition at line 74 of file readwriteformbase.h. Referenced by initToolBar(), and setInvalidGui(). |