00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef CFGFORM_H
00010 #define CFGFORM_H
00011
00012 #include <qvariant.h>
00013 #include <qmainwindow.h>
00014 #include "acfg.h"
00015 #include "qworkspace.h"
00016 #include "qsocket.h"
00017 #include "qserversocket.h"
00018 #include "acfgrc.h"
00019 #include "mdtree.h"
00020 #include "actiontree.h"
00021 #include "interfacetree.h"
00022 #include "pixmappreview.h"
00023 #include "awindowslist.h"
00024
00025 class QVBoxLayout;
00026 class QHBoxLayout;
00027 class QGridLayout;
00028 class QSpacerItem;
00029 class QAction;
00030 class QActionGroup;
00031 class QToolBar;
00032 class QPopupMenu;
00033 class QTabWidget;
00034 class QWidget;
00035 class QTable;
00036 class QPushButton;
00037 class QIconView;
00038 class QIconViewItem;
00039
00040 class CfgForm : public QMainWindow
00041 {
00042 Q_OBJECT
00043
00044 public:
00045 CfgForm( QWidget* parent = 0, const char* name = 0, WFlags fl = WType_TopLevel );
00046 ~CfgForm();
00047
00048 QTabWidget* tabWidget;
00049 QWidget* TabPage;
00050 QWidget* TabPage_2;
00051 QWidget* tab;
00052 QWidget* TabPage_3;
00053 QTable* tRole;
00054 QPushButton* bAddRole;
00055 QPushButton* bDeleteRole;
00056 QPushButton* bEditRole;
00057 QPushButton* bKillRole;
00058 QWidget* TabPage_4;
00059 QPushButton* bAdd;
00060 QPushButton* bDelete;
00061 QPushButton* bEdit;
00062 QPushButton* bKill;
00063 QTable* tLang;
00064 QWidget* TabPage_5;
00065 QIconView* vImageCollection;
00066 QPushButton* bAddImage;
00067 QPushButton* bRemoveImage;
00068 QAction* fileNewAction;
00069 QAction* fileOpenAction;
00070 QAction* fileSaveAction;
00071 QAction* fileSaveAsAction;
00072 QAction* filePrintAction;
00073 QAction* fileExitAction;
00074 QActionGroup* objGroup;
00075 QAction* objEdit;
00076 QAction* objNew;
00077 QAction* objDelete;
00078
00079 QIntDict<QIconViewItem> idList;
00080 InterfaceTreeView *interfacetree;
00081 aActionTreeView *actiontree;
00082 aCfg cfg;
00083 QWorkspace *ws;
00084 aMetadataTreeView *mdtree;
00085 InterfaceTreeView *toolbartree;
00086 QString rcfile;
00087 aWindowsList *wl;
00088
00089 public slots:
00090 virtual void fileNew();
00091 virtual void fileOpen();
00092 virtual void fileSave();
00093 virtual void fileSaveAs();
00094 virtual void filePrint();
00095 virtual void fileExit();
00096 virtual void init( QString & rcf, bool flagNew );
00097 virtual void initImageCollection();
00098 virtual void bAddImage_clicked();
00099 virtual void bRemoveImage_clicked();
00100 virtual void vImageCollection_itemRenamed( QIconViewItem * item, const QString & name );
00101 virtual void initLang();
00102 virtual void initRoles();
00103 virtual void save();
00104 virtual void bAdd_clicked();
00105 virtual void bDelete_clicked();
00106 virtual void bEdit_clicked();
00107 virtual void tLang_doubleClicked( int, int, int, const QPoint & );
00108 virtual void bKill_clicked();
00109 virtual void newObj();
00110 virtual void listCfg_onItem( QListViewItem * );
00111 virtual void newField();
00112 virtual void newForm();
00113 virtual void newTable();
00114 virtual void tabWidget_selected( const QString & tab );
00115 virtual void bAddRole_clicked();
00116 virtual void bDeleteRole_clicked();
00117 virtual void bEditRole_clicked();
00118 virtual void bKillRole_clicked();
00119 virtual void tRole_doubleClicked( int, int, int, const QPoint & );
00120
00121 signals:
00122 void wActivate();
00123 void wDeactivate();
00124
00125 protected:
00126 QGridLayout* CfgFormLayout;
00127 QGridLayout* TabPageLayout;
00128 QVBoxLayout* layout8;
00129 QSpacerItem* spacer3;
00130 QGridLayout* TabPageLayout_2;
00131 QVBoxLayout* layout12;
00132 QSpacerItem* spacer5;
00133 QGridLayout* TabPageLayout_3;
00134 QSpacerItem* spacer8;
00135 QVBoxLayout* layout22;
00136
00137 protected slots:
00138 virtual void languageChange();
00139
00140 private:
00141 void destroy();
00142 virtual void closeEvent( QCloseEvent * e );
00143 virtual int closeSubWindows();
00144
00145 };
00146
00147 #endif // CFGFORM_H