Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Part Class Reference

#include <part.h>

Inheritance diagram for Part:

Inheritance graph
[legend]
Collaboration diagram for Part:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Part (LitUrl url, QObject *receiver, QString slot, MainWindow *parent, const char *name)
 ~Part ()

Protected Slots

virtual void setWorkingGui (bool work)
virtual void setReadonlyGui (bool ro)
virtual void setInvalidGui (bool inv)
virtual void showPartMemo ()
virtual void showPartPubl ()
virtual void insertNote ()
virtual void deleteNote ()
virtual void createNote ()
virtual void insertAuthor ()
virtual void deleteAuthor ()
virtual void createAuthor ()
virtual void generateBibTex ()
virtual void importFiles ()
virtual void addToProject ()

Protected Member Functions

bool setData ()
void writebuf (QByteArray buf, int chunkno, QString fileno)
void initToolBar ()
virtual void write ()

Protected Attributes

PartFormpartform
QToolBar * toolbar
QAction * showPartMemoAction
QAction * insertNoteAction
QAction * createNoteAction
QAction * deleteNoteAction
QAction * insertAuthorAction
QAction * createAuthorAction
QAction * deleteAuthorAction
QAction * showPartPublAction
QAction * importFilesAction
QAction * addToProjectAction
FillLinkListBoxfilllink
FillLinkListBoxfillauthor
FillLinkListBoxfillfiles

Private Member Functions

 Part (const Part &)
Partoperator= (const Part &)

Constructor & Destructor Documentation

Part::Part const Part  )  [private]
 

Part::Part LitUrl  url,
QObject *  receiver,
QString  slot,
MainWindow parent,
const char *  name
 

Definition at line 58 of file part.cpp.

References PartForm::genbibtex, generateBibTex(), initToolBar(), partform, and setData().

Part::~Part  ) 
 

Definition at line 139 of file part.cpp.

References write().


Member Function Documentation

void Part::addToProject  )  [protected, virtual, slot]
 

Definition at line 278 of file part.cpp.

References ReadOnlyFormBase::no(), SelectItem::setData(), ReadOnlyFormBase::url(), and SelectItem::url().

Referenced by initToolBar().

void Part::createAuthor  )  [protected, virtual, slot]
 

Definition at line 292 of file part.cpp.

References ReadWriteFormBase::createPartAuthor(), and ReadOnlyFormBase::url().

Referenced by initToolBar().

void Part::createNote  )  [protected, virtual, slot]
 

Definition at line 264 of file part.cpp.

References ReadWriteFormBase::newNote(), ReadOnlyFormBase::no(), and ReadOnlyFormBase::url().

Referenced by initToolBar().

void Part::deleteAuthor  )  [protected, virtual, slot]
 

Definition at line 288 of file part.cpp.

References PartForm::authors, ReadWriteFormBase::deletePartAuthor(), partform, LinkListBox::url(), and ReadOnlyFormBase::url().

Referenced by initToolBar().

void Part::deleteNote  )  [protected, virtual, slot]
 

Definition at line 260 of file part.cpp.

References ReadWriteFormBase::deleteLink(), PartForm::links, partform, ReadOnlyFormBase::url(), and LinkListBox::url().

Referenced by initToolBar().

void Part::generateBibTex  )  [protected, virtual, slot]
 

Definition at line 241 of file part.cpp.

References PartForm::bibtex, BibTexFactory::getEntry(), and partform.

Referenced by Part().

void Part::importFiles  )  [protected, virtual, slot]
 

Definition at line 326 of file part.cpp.

References ImportProgress::all, bufsize, ImportProgress::file, ImportProgress::filename, Convert2Text::mime2text(), ReadOnlyFormBase::no(), ReadOnlyFormBase::url(), and writebuf().

Referenced by initToolBar().

void Part::initToolBar  )  [protected, virtual]
 

Reimplemented from ReadWriteFormBase.

Definition at line 73 of file part.cpp.

References addToProject(), createAuthor(), createNote(), deleteAuthor(), deleteAuthorAction, deleteNote(), importFiles(), importFilesAction, insertAuthor(), insertAuthorAction, insertNote(), loadPixmap(), ReadOnlyFormBase::mainWindow(), ReadOnlyFormBase::roMenu(), showPartMemo(), showPartMemoAction, showPartPubl(), and showPartPublAction.

Referenced by Part().

void Part::insertAuthor  )  [protected, virtual, slot]
 

Definition at line 270 of file part.cpp.

References ReadWriteFormBase::createPartAuthor(), SelectItem::setData(), SelectItem::url(), and ReadOnlyFormBase::url().

Referenced by initToolBar().

void Part::insertNote  )  [protected, virtual, slot]
 

Definition at line 252 of file part.cpp.

References ReadWriteFormBase::createLink(), ReadOnlyFormBase::no(), SelectItem::setData(), SelectItem::url(), and ReadOnlyFormBase::url().

Referenced by initToolBar().

Part& Part::operator= const Part  )  [private]
 

bool Part::setData  )  [protected, virtual]
 

A virtual method. Loads the data record and fills the form.

Returns:
false, if an error occured.

Reimplemented from ReadWriteFormBase.

Definition at line 144 of file part.cpp.

References PartForm::authors, PartForm::bibtex, PartForm::created, PartForm::files, fillauthor, fillfiles, PartForm::key, PartForm::links, loadPixmap(), PartForm::modified, PartForm::number, PartForm::pages, partform, ReadWriteFormBase::setData(), setReadonlyGui(), ReadOnlyFormBase::setValid(), setWorkingGui(), PartForm::title, and ReadOnlyFormBase::url().

Referenced by Part().

void Part::setInvalidGui bool  inv  )  [protected, virtual, slot]
 

Reimplemented from ReadWriteFormBase.

Definition at line 231 of file part.cpp.

References ReadWriteFormBase::setInvalidGui(), setReadonlyGui(), and setWorkingGui().

void Part::setReadonlyGui bool  ro  )  [protected, virtual, slot]
 

Reimplemented from ReadWriteFormBase.

Definition at line 222 of file part.cpp.

References PartForm::bibtex, PartForm::key, PartForm::number, PartForm::pages, partform, ReadWriteFormBase::setReadonlyGui(), and PartForm::title.

Referenced by setData(), and setInvalidGui().

void Part::setWorkingGui bool  work  )  [protected, virtual, slot]
 

Reimplemented from ReadWriteFormBase.

Definition at line 215 of file part.cpp.

References PartForm::authors, PartForm::files, PartForm::links, partform, and ReadWriteFormBase::setInvalidGui().

Referenced by setData(), and setInvalidGui().

void Part::showPartMemo  )  [protected, virtual, slot]
 

Definition at line 237 of file part.cpp.

References ReadOnlyFormBase::no(), and ReadOnlyFormBase::url().

Referenced by initToolBar().

void Part::showPartPubl  )  [protected, virtual, slot]
 

Definition at line 300 of file part.cpp.

Referenced by initToolBar().

void Part::write  )  [protected, virtual]
 

Writes the data to the database.

Reimplemented from ReadWriteFormBase.

Definition at line 199 of file part.cpp.

References AuthorLinkListBox::authorPos(), PartForm::authors, AuthorLinkListBox::modified(), ReadOnlyFormBase::no(), partform, ReadOnlyFormBase::url(), and ReadWriteFormBase::write().

Referenced by ~Part().

void Part::writebuf QByteArray  buf,
int  chunkno,
QString  fileno
[protected]
 

Definition at line 306 of file part.cpp.

Referenced by importFiles().


Member Data Documentation

QAction* Part::addToProjectAction [protected]
 

Definition at line 48 of file part.h.

QAction* Part::createAuthorAction [protected]
 

Definition at line 44 of file part.h.

QAction* Part::createNoteAction [protected]
 

Definition at line 41 of file part.h.

QAction* Part::deleteAuthorAction [protected]
 

Definition at line 45 of file part.h.

Referenced by initToolBar().

QAction* Part::deleteNoteAction [protected]
 

Definition at line 42 of file part.h.

FillLinkListBox* Part::fillauthor [protected]
 

Definition at line 51 of file part.h.

Referenced by setData().

FillLinkListBox* Part::fillfiles [protected]
 

Definition at line 52 of file part.h.

Referenced by setData().

FillLinkListBox* Part::filllink [protected]
 

Definition at line 50 of file part.h.

QAction* Part::importFilesAction [protected]
 

Definition at line 47 of file part.h.

Referenced by initToolBar().

QAction* Part::insertAuthorAction [protected]
 

Definition at line 43 of file part.h.

Referenced by initToolBar().

QAction* Part::insertNoteAction [protected]
 

Definition at line 40 of file part.h.

PartForm* Part::partform [protected]
 

Definition at line 37 of file part.h.

Referenced by deleteAuthor(), deleteNote(), generateBibTex(), Part(), setData(), setReadonlyGui(), setWorkingGui(), and write().

QAction* Part::showPartMemoAction [protected]
 

Definition at line 39 of file part.h.

Referenced by initToolBar().

QAction* Part::showPartPublAction [protected]
 

Definition at line 46 of file part.h.

Referenced by initToolBar().

QToolBar* Part::toolbar [protected]
 

Definition at line 38 of file part.h.


The documentation for this class was generated from the following files:
Generated on Sat Mar 27 19:22:28 2004 for Literature by doxygen 1.3.6-20040222