multi_col_dlg_.hpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: multi_col_dlg_.hpp,v $
- * PRODUCTION Revision 1000.2 2004/06/01 19:47:16 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- #ifndef multi_col_dlg__hpp
- #define multi_col_dlg__hpp
- #include <FL/Fl.H>
- /* $Id: multi_col_dlg_.hpp,v 1000.2 2004/06/01 19:47:16 gouriano Exp $ */
- #include <FL/Fl_Double_Window.H>
- #include <FL/Fl_Pack.H>
- #include <FL/Fl_Group.H>
- #include <FL/Fl_Return_Button.H>
- class NCBI_GUIDIALOGS_EXPORT CMultiColDlg : public CDialog {
- public:
- CMultiColDlg();
- void Show();
- void SetWindowSize(int w, int h);
- void SetTableSize(size_t rows, size_t cols);
- void SetLabel(const string& str);
- void SetTitle(const string& str);
- size_t GetRows() const;
- void SetRows(size_t rows);
- size_t GetCols() const;
- void SetCols(size_t cols);
- void SetColumnHeader(size_t col, const string& str);
- void SetColumnAlign(size_t col, Fl_Align align);
- void SetColumnWidth(size_t col, float width);
- void SetColumn(size_t col, const string& label, Fl_Align align = FL_ALIGN_LEFT, float rel_width = 1.0);
- void SetCell(size_t row, size_t col, const string& str);
- string& SetCell(size_t row, size_t col);
- const string& GetCell(size_t row, size_t col) const;
- private:
- Fl_Double_Window* x_CreateWindow();
- public:
- Fl_Group *m_LabelGroup;
- CMultiColTable *m_Table;
- private:
- inline void cb_OK_i(Fl_Return_Button*, void*);
- static void cb_OK(Fl_Return_Button*, void*);
- string m_TitleStr;
- string m_LabelStr;
- };
- #endif