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:
00049 void setProject(KexiProject *prj);
00050 void setTableOrQuery(const QCString& name, bool table);
00051 QCString setTableOrQueryName() const;
00052 void setFieldOrExpression(const QString& string);
00053 QString fieldOrExpression() const;
00054 QString fieldOrExpressionCaption() const;
00055
00056 signals:
00057 void selected();
00058
00059 protected slots:
00060 void slotActivated(int);
00061
00062 protected:
00063 class Private;
00064 Private *d;
00065 };
00066
00067 #endif
|