entry_form_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
源码类别:

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: entry_form_.cpp,v $
  4.  * PRODUCTION Revision 1000.1  2004/06/01 20:46:34  gouriano
  5.  * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.9
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. // generated by Fast Light User Interface Designer (fluid) version 1.0105
  10. /* $Id: entry_form_.cpp,v 1000.1 2004/06/01 20:46:34 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CEntryFormDialog::cb_OK_i(Fl_Return_Button*, void*) {
  13.   x_OnOK();
  14. }
  15. void CEntryFormDialog::cb_OK(Fl_Return_Button* o, void* v) {
  16.   ((CEntryFormDialog*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
  17. }
  18. inline void CEntryFormDialog::cb_Cancel_i(Fl_Button*, void*) {
  19.   x_OnCancel();
  20. }
  21. void CEntryFormDialog::cb_Cancel(Fl_Button* o, void* v) {
  22.   ((CEntryFormDialog*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
  23. }
  24. Fl_Double_Window* CEntryFormDialog::x_CreateWindow() {
  25.   Fl_Double_Window* w;
  26.   { Fl_Double_Window* o = new Fl_Double_Window(550, 585);
  27.     w = o;
  28.     o->user_data((void*)(this));
  29.     { CFlForm* o = m_Form = new CFlForm(5, 5, 540, 535);
  30.       o->box(FL_NO_BOX);
  31.       o->color(FL_BACKGROUND_COLOR);
  32.       o->selection_color(FL_BACKGROUND_COLOR);
  33.       o->labeltype(FL_NORMAL_LABEL);
  34.       o->labelfont(0);
  35.       o->labelsize(14);
  36.       o->labelcolor(FL_BLACK);
  37.       o->align(FL_ALIGN_TOP);
  38.       o->when(FL_WHEN_RELEASE);
  39.       o->end();
  40.       Fl_Group::current()->resizable(o);
  41.     }
  42.     { Fl_Group* o = new Fl_Group(0, 540, 550, 5);
  43.       o->box(FL_THIN_DOWN_FRAME);
  44.       o->end();
  45.     }
  46.     { Fl_Group* o = new Fl_Group(5, 550, 540, 25);
  47.       { Fl_Return_Button* o = new Fl_Return_Button(380, 550, 80, 25, "OK");
  48.         o->callback((Fl_Callback*)cb_OK);
  49.       }
  50.       { Fl_Button* o = new Fl_Button(465, 550, 80, 25, "Cancel");
  51.         o->shortcut(0xff1b);
  52.         o->callback((Fl_Callback*)cb_Cancel);
  53.       }
  54.       { Fl_Group* o = new Fl_Group(5, 550, 375, 25);
  55.         o->end();
  56.         Fl_Group::current()->resizable(o);
  57.       }
  58.       o->end();
  59.     }
  60.     o->end();
  61.   }
  62.   return w;
  63. }