colselect_dlg_.hpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: colselect_dlg_.hpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:08:56 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- #ifndef colselect_dlg__hpp
- #define colselect_dlg__hpp
- #include <FL/Fl.H>
- /* $Id: colselect_dlg_.hpp,v 1000.1 2004/06/01 21:08:56 gouriano Exp $ */
- #include <FL/Fl_Double_Window.H>
- #include <FL/Fl_Group.H>
- #include <FL/Fl_Box.H>
- #include <FL/Fl_Browser.H>
- #include <FL/Fl_Button.H>
- #include <FL/Fl_Return_Button.H>
- class CColumnSelectDlg {
- public:
- CColumnSelectDlg();
- private:
- Fl_Double_Window *m_MainWin;
- Fl_Browser *m_HiddenList;
- inline void cb__i(Fl_Button*, void*);
- static void cb_(Fl_Button*, void*);
- inline void cb_1_i(Fl_Button*, void*);
- static void cb_1(Fl_Button*, void*);
- inline void cb_8_i(Fl_Button*, void*);
- static void cb_8(Fl_Button*, void*);
- inline void cb_2_i(Fl_Button*, void*);
- static void cb_2(Fl_Button*, void*);
- Fl_Browser *m_ShownList;
- inline void cb_OK_i(Fl_Return_Button*, void*);
- static void cb_OK(Fl_Return_Button*, void*);
- inline void cb_Cancel_i(Fl_Button*, void*);
- static void cb_Cancel(Fl_Button*, void*);
- public:
- ~CColumnSelectDlg();
- void AddColumn(const string& col_name, int col_idx, bool checked = false);
- void Clear();
- vector<int> GetSelected() const;
- EDialogReturnValue Show();
- private:
- EDialogReturnValue m_RetVal;
- vector< pair< int, string > > m_HiddenData;
- vector< pair< int, string > > m_ShownData;
- void x_OnOK();
- void x_OnCancel();
- void x_OnDown();
- void x_OnUp();
- void x_OnHide();
- void x_OnShow();
- };
- #endif