dbRecordEditor.h
00001
#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
00031
#include "options.h"
00032
#include <kdialogbase.h>
00033
#include <qwidget.h>
00034
00035
class QVBoxLayout;
00036
class QHBoxLayout;
00037
class QGridLayout;
00038
00039
#ifdef USE_KHEXEDIT
00040
namespace KHE {
00041
class BytesEditInterface;
00042 }
00043
using namespace KHE;
00044
#endif
00045
00046
class QButtonGroup;
00047
class QCheckBox;
00048
class QLabel;
00049
class QLineEdit;
00050
00051
class DBRecordEditorBase;
00052
class PilotRecord;
00053
00057 class DBRecordEditor :
public KDialogBase
00058 {
00059 Q_OBJECT
00060
public:
00061
DBRecordEditor(PilotRecord*r=0L,
int n=-1, QWidget *parent = 0);
00062 ~
DBRecordEditor();
00063
00064
protected:
00065 QLabel* fRecordIndexLabel;
00066 QLabel* fRecordIDLabel;
00067 QLineEdit* fRecordIndex;
00068 QLineEdit* fRecordID;
00069 QButtonGroup* fFlagsGroup;
00070 QCheckBox* fDirty;
00071 QCheckBox* fDeleted;
00072 QCheckBox* fBusy;
00073 QCheckBox* fSecret;
00074 QCheckBox* fArchived;
00075 QWidget* fRecordData;
00076
#ifdef USE_KHEXEDIT
00077
KHE::BytesEditInterface*fRecordDataIf;
00078
#endif
00079
00080
protected:
00081 QGridLayout* DBRecordEditorBaseLayout;
00082 QGridLayout* fFlagsGroupLayout;
00083
00084
protected:
00085
00086 QWidget*fWidget;
00087
char*fBuffer;
00088
protected slots:
00089
virtual void languageChange();
00090
protected:
00091
void initWidgets();
00092
void fillWidgets();
00093 PilotRecord*rec;
00094
int nr;
00095
protected slots:
00096
virtual void slotOk();
00097
virtual void slotCancel();
00098 };
00099
00100
#endif
This file is part of the documentation for kpilot Library Version 3.2.2.