Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

abeditor.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qt Palmtop Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 #ifndef ABEDITOR_H
00021 #define ABEDITOR_H
00022 
00023 #include <qpe/contact.h>
00024 
00025 #include <qdialog.h>
00026 #include <qlist.h>
00027 #include <qmap.h>
00028 #include <qstringlist.h>
00029 
00030 class QScrollView;
00031 class QMultiLineEdit;
00032 class QLineEdit;
00033 class QLabel;
00034 class QComboBox;
00035 class CategorySelect;
00036 
00037 class AbEditor : public QDialog
00038 {
00039     Q_OBJECT
00040 public:
00041     AbEditor( const OContact &entry, const QValueList<int> *newOrdedValues,
00042               QStringList *slNewOrdered,
00043               QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00044     ~AbEditor();
00045     void loadFields();
00046     void setNameFocus();
00047     OContact entry() const { return ent; }
00048 
00049 public slots:
00050     void slotNote();
00051     void setEntry( const OContact &entry );
00052 
00053 protected slots:
00054     void accept();
00055 
00056 private:
00057     void init();
00058     void initMap();
00059     void saveEntry();
00060     bool isEmpty();
00061 
00062 private:
00063     QDialog *dlgNote;
00064     QLabel *lblNote;
00065     QMultiLineEdit *txtNote;
00066     OContact ent;
00067     QScrollView *svPage;
00068     QLineEdit *firstEdit;
00069     QLineEdit *lastEdit;
00070     QLineEdit *middleEdit;
00071     QComboBox *genderCombo;
00072     QList<QLineEdit> listValue;
00073     QList<QLabel> listName;
00074     const QValueList<int> *orderedValues;
00075     QStringList *slOrdered;
00076     CategorySelect *cmbCat;
00077 };
00078 
00079 #endif

Generated on Sat Nov 5 16:15:45 2005 for OPIE by  doxygen 1.4.2