kexi
kexifieldcombobox.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KEXIFIELDCOMBOBOX_H
00021 #define KEXIFIELDCOMBOBOX_H
00022
00023 #include <qpixmap.h>
00024 #include <kcombobox.h>
00025
00026 namespace KexiDB {
00027 class TableOrQuerySchema;
00028 }
00029 class KexiProject;
00030
00034 class KEXIEXTWIDGETS_EXPORT KexiFieldComboBox : public KComboBox
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 KexiFieldComboBox(QWidget *parent, const char *name = 0);
00040 virtual ~KexiFieldComboBox();
00041
00042
00043
00044
00045
00046
00047
00048 public slots:
00050 KexiProject* project() const;
00051
00053 void setProject(KexiProject *prj);
00054
00055 void setTableOrQuery(const QString& name, bool table);
00056 QString tableOrQueryName() const;
00057 bool isTableAssigned() const;
00058 void setFieldOrExpression(const QString& string);
00059 void setFieldOrExpression(int index);
00060 QString fieldOrExpression() const;
00061 QString fieldOrExpressionCaption() const;
00062
00066 int indexOfField() const;
00067
00068 signals:
00069 void selected();
00070
00071 protected slots:
00072 void slotActivated(int);
00073 void slotReturnPressed(const QString & text);
00074
00075 protected:
00076 virtual void focusOutEvent( QFocusEvent *e );
00077
00078 class Private;
00079 Private *d;
00080 };
00081
00082 #endif
|