00001
00002
00003
00004
00005
00006 //
00007
00008
00009
00010
00011
00012 #ifndef DBQUERYCONTROL_H
00013 #define DBQUERYCONTROL_H
00014
00015 #ifndef FXDIALOGBOX_H
00016 #include <fox/FXDialogBox.h>
00017 using namespace FX;
00018 #endif
00019 namespace FXEX {
00020
00021
00022
00023
00024 class FXAPI DbQueryDialog : public FXDialogBox {
00025 FXDECLARE(DbQueryDialog)
00026
00027 private:
00028 FXIcon* okIcon;
00029 FXIcon* cancelIcon;
00030 FXString query_;
00031 FXString fieldName_;
00032 FXString fieldTitle_;
00033 FXint fieldType_;
00034 FXTextField* valueField_;
00035 FXComboBox* operatorCombo_;
00036
00037 private:
00038 DbQueryDialog(const DbQueryDialog&);
00039 DbQueryDialog& operator=(const DbQueryDialog&);
00040
00041 public:
00042 enum {
00043 ID_OK=FXDialogBox::ID_LAST,
00044 ID_LAST
00045 };
00046
00047 protected:
00048 DbQueryDialog(){}
00049
00050 public:
00051 long onCmdAccept(FXObject*,FXSelector,void*);
00052
00053 public:
00054
00055 DbQueryDialog(FXWindow* owner,const FXString& fieldName,const FXString& fieldTitle,FXint fieldType);
00056
00057
00058 virtual void create();
00059
00060
00061 FXString getQuery() const { return query_; }
00062
00063
00064 virtual ~DbQueryDialog();
00065 };
00066
00067 }
00068 #endif // DBQUERYCONTROL_H