print_options_dlg_.hpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: print_options_dlg_.hpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:04:21 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.3
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- #ifndef print_options_dlg__hpp
- #define print_options_dlg__hpp
- #include <FL/Fl.H>
- /* $Id: print_options_dlg_.hpp,v 1000.1 2004/06/01 21:04:21 gouriano Exp $ */
- #include <FL/Fl_Double_Window.H>
- #include <FL/Fl_Tabs.H>
- #include <FL/Fl_Group.H>
- #include <FL/Fl_Round_Button.H>
- #include <FL/Fl_Box.H>
- #include <FL/Fl_Counter.H>
- #include <FL/Fl_Choice.H>
- #include <FL/Fl_Output.H>
- #include <FL/Fl_Check_Button.H>
- #include <FL/Fl_Input.H>
- #include <FL/Fl_Text_Editor.H>
- #include <FL/Fl_Return_Button.H>
- #include <FL/Fl_Button.H>
- class NCBI_GUIUTILS_EXPORT CPrintOptionsDlg : public CDialog {
- public:
- CPrintOptionsDlg(const CPrintOptions& opts);
- void Init(const CPrintOptions& opts);
- CPrintOptions GetOptions(void);
- private:
- CPrintOptions m_Options;
- const CMedia* m_Media;
- Fl_Text_Buffer m_FooterBuf;
- Fl_Text_Buffer m_HeaderBuf;
- Fl_Double_Window* x_Create(void);
- Fl_Round_Button *m_Portrait;
- Fl_Round_Button *m_Landscape;
- Fl_Counter *m_PagesWide;
- Fl_Counter *m_PagesTall;
- Fl_Choice *m_PaperSize;
- static Fl_Menu_Item menu_m_PaperSize[];
- static Fl_Menu_Item *m_Letter;
- inline void cb_m_Letter_i(Fl_Menu_*, Fl_Menu_Item*);
- static void cb_m_Letter(Fl_Menu_*, Fl_Menu_Item*);
- static Fl_Menu_Item *m_Legal;
- inline void cb_m_Legal_i(Fl_Menu_*, Fl_Menu_Item*);
- static void cb_m_Legal(Fl_Menu_*, Fl_Menu_Item*);
- static Fl_Menu_Item *m_Ledger;
- inline void cb_m_Ledger_i(Fl_Menu_*, Fl_Menu_Item*);
- static void cb_m_Ledger(Fl_Menu_*, Fl_Menu_Item*);
- static Fl_Menu_Item *m_A4;
- inline void cb_m_A4_i(Fl_Menu_*, Fl_Menu_Item*);
- static void cb_m_A4(Fl_Menu_*, Fl_Menu_Item*);
- static Fl_Menu_Item *m_A3;
- inline void cb_m_A3_i(Fl_Menu_*, Fl_Menu_Item*);
- static void cb_m_A3(Fl_Menu_*, Fl_Menu_Item*);
- static Fl_Menu_Item *m_A2;
- inline void cb_m_A2_i(Fl_Menu_*, Fl_Menu_Item*);
- static void cb_m_A2(Fl_Menu_*, Fl_Menu_Item*);
- static Fl_Menu_Item *m_A1;
- inline void cb_m_A1_i(Fl_Menu_*, Fl_Menu_Item*);
- static void cb_m_A1(Fl_Menu_*, Fl_Menu_Item*);
- static Fl_Menu_Item *m_A0;
- inline void cb_m_A0_i(Fl_Menu_*, Fl_Menu_Item*);
- static void cb_m_A0(Fl_Menu_*, Fl_Menu_Item*);
- Fl_Output *m_PaperSizeDisplay;
- Fl_Check_Button *m_PrintPageNumbers;
- Fl_Counter *m_HeaderOffset;
- Fl_Counter *m_MarginTop;
- Fl_Counter *m_MarginBottom;
- Fl_Counter *m_MarginLeft;
- Fl_Counter *m_MarginRight;
- Fl_Counter *m_FooterOffset;
- Fl_Input *m_Title;
- Fl_Text_Editor *m_Header;
- Fl_Text_Editor *m_Footer;
- 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*);
- void x_OnOK(void);
- void x_OnBrowse(void);
- void x_OnSelectPaper(const Fl_Menu_Item* item);
- void x_SelectPaper(const string& paper);
- void x_UpdateOptions(void);
- };
- #endif