00001 /*************************************************************************** 00002 * * 00003 * project.h * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * Read the file COPYING for details. * 00011 * * 00012 * copyright: (C) 2003 by Jan Mueller * 00013 * email: janmueller7@hotmail.com * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef Project_h 00018 #define Project_h 00019 #include "readwriteformbase.h" 00020 #include "filllinklistbox.h" 00021 00022 class QToolBar; 00023 class QAction; 00024 class MainWindow; 00025 class ProjectForm; 00026 class FillLinkListBox; 00027 00028 class Project: public ReadWriteFormBase { 00029 Q_OBJECT 00030 00031 private: 00032 Project(const Project&); 00033 Project& operator=(const Project&); 00034 00035 protected: 00036 ProjectForm *projectform; 00037 bool setData(); 00038 void initToolBar(); 00039 QToolBar *toolbar; 00040 QAction *insertPublAction; 00041 QAction *generateBibTexAction; 00042 QAction *deletePublAction; 00043 QAction *insertPartAction; 00044 FillLinkListBox *fillpubl; 00045 FillLinkListBox *fillpart; 00046 FillLinkListBox *fillfile; 00047 00048 00049 public: 00050 Project(LitUrl url, QObject *receiver, QString slot, MainWindow *parent, const char *name); 00051 ~Project(); 00052 00053 protected slots: 00054 virtual void setWorkingGui(bool work); 00055 virtual void setReadonlyGui(bool ro); 00056 virtual void setInvalidGui(bool inv); 00057 virtual void insertPublication(); 00058 virtual void insertPart(); 00059 virtual void deletePublication(); 00060 virtual void generateBibTex(); 00061 }; 00062 #endif