kpilot Library API Documentation

dbRecordEditor.h

00001 #ifndef _KPILOT_DBRECORDEDITOR_H
00002 #define _KPILOT_DBRECORDEDITOR_H
00003 /* dbRecordEditor.h                 KPilot
00004 **
00005 ** Copyright (C) 2003 by Dan Pilone
00006 ** Written 2003 by Reinhold Kainhofer
00007 **
00008 */
00009 
00010 /*
00011 ** This program is free software; you can redistribute it and/or modify
00012 ** it under the terms of the GNU General Public License as published by
00013 ** the Free Software Foundation; either version 2 of the License, or
00014 ** (at your option) any later version.
00015 **
00016 ** This program is distributed in the hope that it will be useful,
00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 ** GNU General Public License for more details.
00020 **
00021 ** You should have received a copy of the GNU General Public License
00022 ** along with this program in a file called COPYING; if not, write to
00023 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00024 ** MA 02111-1307, USA.
00025 */
00026 
00027 /*
00028 ** Bug reports and questions can be sent to kde-pim@kde.org
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 //  DBRecordEditorBase*fWidget;
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
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:46 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003