kpilot/kpilot
dbRecordEditor.h00001 #ifndef _KPILOT_DBRECORDEDITOR_H
00002 #define _KPILOT_DBRECORDEDITOR_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include "options.h"
00031 #include <kdialogbase.h>
00032
00033 class QVBoxLayout;
00034 class QHBoxLayout;
00035 class QGridLayout;
00036
00037 namespace KHE {
00038 class BytesEditInterface;
00039 }
00040 using namespace KHE;
00041
00042 class QButtonGroup;
00043 class QCheckBox;
00044 class QLabel;
00045 class QLineEdit;
00046
00047 class DBRecordEditorBase;
00048 class PilotRecord;
00049
00053 class DBRecordEditor : public KDialogBase
00054 {
00055 Q_OBJECT
00056 public:
00057 DBRecordEditor(PilotRecord*r=0L, int n=-1, QWidget *parent = 0);
00058 ~DBRecordEditor();
00059
00060 protected:
00061 QLabel* fRecordIndexLabel;
00062 QLabel* fRecordIDLabel;
00063 QLineEdit* fRecordIndex;
00064 QLineEdit* fRecordID;
00065 QButtonGroup* fFlagsGroup;
00066 QCheckBox* fDirty;
00067 QCheckBox* fDeleted;
00068 QCheckBox* fBusy;
00069 QCheckBox* fSecret;
00070 QCheckBox* fArchived;
00071 QWidget* fRecordData;
00072 KHE::BytesEditInterface*fRecordDataIf;
00073
00074 protected:
00075 QGridLayout* DBRecordEditorBaseLayout;
00076 QGridLayout* fFlagsGroupLayout;
00077
00078 protected:
00079
00080 QWidget*fWidget;
00081 char*fBuffer;
00082 protected slots:
00083 virtual void languageChange();
00084 protected:
00085 void initWidgets();
00086 void fillWidgets();
00087 PilotRecord*rec;
00088 int nr;
00089 protected slots:
00090 virtual void slotOk();
00091 virtual void slotCancel();
00092 };
00093
00094 #endif
|