print_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: print_dlg_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:04:09 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.7
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: print_dlg_.cpp,v 1000.1 2004/06/01 21:04:09 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CPrintDlg::cb_m_LocationPrint_i(Fl_Round_Button*, void*) {
- x_OnSelectPrint();
- }
- void CPrintDlg::cb_m_LocationPrint(Fl_Round_Button* o, void* v) {
- ((CPrintDlg*)(o->parent()->parent()->user_data()))->cb_m_LocationPrint_i(o,v);
- }
- inline void CPrintDlg::cb_m_LocationFile_i(Fl_Round_Button*, void*) {
- x_OnSelectFile();
- }
- void CPrintDlg::cb_m_LocationFile(Fl_Round_Button* o, void* v) {
- ((CPrintDlg*)(o->parent()->parent()->user_data()))->cb_m_LocationFile_i(o,v);
- }
- inline void CPrintDlg::cb_Browse_i(Fl_Button*, void*) {
- x_OnBrowse();
- }
- void CPrintDlg::cb_Browse(Fl_Button* o, void* v) {
- ((CPrintDlg*)(o->parent()->parent()->user_data()))->cb_Browse_i(o,v);
- }
- Fl_Menu_Item CPrintDlg::menu_m_Format[] = {
- {"Portable Document Format (PDF)", 0, 0, (void*)(m_Pdf), 0, 0, 0, 12, 56},
- {"Postscript", 0, 0, (void*)(m_Postscript), 1, 0, 0, 12, 56},
- {"Scalable Vector Graphic (SVG)", 0, 0, (void*)(m_Svg), 1, 0, 0, 12, 56},
- {0}
- };
- Fl_Menu_Item* CPrintDlg::m_Pdf = CPrintDlg::menu_m_Format + 0;
- Fl_Menu_Item* CPrintDlg::m_Postscript = CPrintDlg::menu_m_Format + 1;
- Fl_Menu_Item* CPrintDlg::m_Svg = CPrintDlg::menu_m_Format + 2;
- inline void CPrintDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CPrintDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CPrintDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CPrintDlg::cb_Cancel_i(Fl_Button*, void*) {
- x_OnCancel();
- }
- void CPrintDlg::cb_Cancel(Fl_Button* o, void* v) {
- ((CPrintDlg*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
- }
- inline void CPrintDlg::cb_Options_i(Fl_Button*, void*) {
- x_OnOptions();
- }
- void CPrintDlg::cb_Options(Fl_Button* o, void* v) {
- ((CPrintDlg*)(o->parent()->parent()->user_data()))->cb_Options_i(o,v);
- }
- Fl_Double_Window* CPrintDlg::x_Create(void) {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(465, 216, "Print");
- w = o;
- o->user_data((void*)(this));
- { Fl_Group* o = new Fl_Group(5, 10, 455, 105, "Output Location");
- o->box(FL_ENGRAVED_FRAME);
- o->labelsize(12);
- o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
- { Fl_Round_Button* o = m_LocationPrint = new Fl_Round_Button(20, 40, 65, 25, "Printer");
- o->type(102);
- o->down_box(FL_ROUND_DOWN_BOX);
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_m_LocationPrint);
- }
- { Fl_Round_Button* o = m_LocationFile = new Fl_Round_Button(20, 80, 65, 25, "File");
- o->type(102);
- o->down_box(FL_ROUND_DOWN_BOX);
- o->value(1);
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_m_LocationFile);
- }
- { Fl_File_Input* o = m_Filename = new Fl_File_Input(90, 70, 280, 35);
- o->labelsize(12);
- }
- { Fl_Button* o = new Fl_Button(375, 80, 75, 25, "Browse...");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Browse);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 120, 455, 60, "Output Format");
- o->box(FL_ENGRAVED_FRAME);
- o->labelsize(12);
- o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
- { Fl_Choice* o = m_Format = new Fl_Choice(90, 145, 280, 25);
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->when(3);
- Fl_Group::current()->resizable(o);
- o->menu(menu_m_Format);
- }
- o->end();
- }
- { Fl_Group* o = Buttons = new Fl_Group(5, 185, 455, 25);
- o->labelsize(12);
- { Fl_Return_Button* o = new Fl_Return_Button(295, 185, 80, 25, "OK");
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Button* o = new Fl_Button(380, 185, 80, 25, "Cancel");
- o->callback((Fl_Callback*)cb_Cancel);
- }
- { Fl_Button* o = new Fl_Button(5, 185, 80, 25, "Options");
- o->callback((Fl_Callback*)cb_Options);
- }
- { Fl_Group* o = new Fl_Group(85, 185, 210, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }