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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: colselect_dlg_.cpp,v $
  4.  * PRODUCTION Revision 1000.1  2004/06/01 21:08:54  gouriano
  5.  * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. // generated by Fast Light User Interface Designer (fluid) version 1.0105
  10. /* $Id: colselect_dlg_.cpp,v 1000.1 2004/06/01 21:08:54 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CColumnSelectDlg::cb__i(Fl_Button*, void*) {
  13.   x_OnHide();
  14. }
  15. void CColumnSelectDlg::cb_(Fl_Button* o, void* v) {
  16.   ((CColumnSelectDlg*)(o->parent()->parent()->parent()->parent()->parent()->user_data()))->cb__i(o,v);
  17. }
  18. inline void CColumnSelectDlg::cb_1_i(Fl_Button*, void*) {
  19.   x_OnShow();
  20. }
  21. void CColumnSelectDlg::cb_1(Fl_Button* o, void* v) {
  22.   ((CColumnSelectDlg*)(o->parent()->parent()->parent()->parent()->parent()->user_data()))->cb_1_i(o,v);
  23. }
  24. inline void CColumnSelectDlg::cb_8_i(Fl_Button*, void*) {
  25.   x_OnDown();
  26. }
  27. void CColumnSelectDlg::cb_8(Fl_Button* o, void* v) {
  28.   ((CColumnSelectDlg*)(o->parent()->parent()->parent()->parent()->parent()->user_data()))->cb_8_i(o,v);
  29. }
  30. inline void CColumnSelectDlg::cb_2_i(Fl_Button*, void*) {
  31.   x_OnUp();
  32. }
  33. void CColumnSelectDlg::cb_2(Fl_Button* o, void* v) {
  34.   ((CColumnSelectDlg*)(o->parent()->parent()->parent()->parent()->parent()->user_data()))->cb_2_i(o,v);
  35. }
  36. inline void CColumnSelectDlg::cb_OK_i(Fl_Return_Button*, void*) {
  37.   x_OnOK();
  38. }
  39. void CColumnSelectDlg::cb_OK(Fl_Return_Button* o, void* v) {
  40.   ((CColumnSelectDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
  41. }
  42. inline void CColumnSelectDlg::cb_Cancel_i(Fl_Button*, void*) {
  43.   x_OnCancel();
  44. }
  45. void CColumnSelectDlg::cb_Cancel(Fl_Button* o, void* v) {
  46.   ((CColumnSelectDlg*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
  47. }
  48. CColumnSelectDlg::CColumnSelectDlg() {
  49.   Fl_Double_Window* w;
  50.   { Fl_Double_Window* o = m_MainWin = new Fl_Double_Window(415, 210, "Select Columns to Show");
  51.     w = o;
  52.     o->labelsize(12);
  53.     o->user_data((void*)(this));
  54.     { Fl_Group* o = new Fl_Group(5, 5, 405, 170);
  55.       o->labelsize(12);
  56.       { Fl_Group* o = new Fl_Group(5, 5, 405, 25);
  57.         o->labelsize(12);
  58.         { Fl_Box* o = new Fl_Box(5, 5, 185, 25, "Hidden");
  59.           o->labelsize(12);
  60.         }
  61.         { Fl_Box* o = new Fl_Box(225, 5, 185, 25, "Shown");
  62.           o->labelsize(12);
  63.         }
  64.         o->end();
  65.       }
  66.       { Fl_Group* o = new Fl_Group(5, 35, 405, 140);
  67.         o->labelsize(12);
  68.         { Fl_Group* o = new Fl_Group(5, 35, 220, 140);
  69.           o->labelsize(12);
  70.           { Fl_Browser* o = m_HiddenList = new Fl_Browser(5, 35, 185, 140);
  71.             o->type(3);
  72.             o->labelsize(12);
  73.             o->textsize(12);
  74.             Fl_Group::current()->resizable(o);
  75.           }
  76.           { Fl_Group* o = new Fl_Group(195, 35, 25, 140);
  77.             o->labelsize(12);
  78.             { Fl_Button* o = new Fl_Button(195, 35, 25, 25, "@<-");
  79.               o->labelsize(12);
  80.               o->callback((Fl_Callback*)cb_);
  81.             }
  82.             { Fl_Button* o = new Fl_Button(195, 60, 25, 25, "@->");
  83.               o->labelsize(12);
  84.               o->callback((Fl_Callback*)cb_1);
  85.             }
  86.             { Fl_Group* o = new Fl_Group(195, 85, 25, 40);
  87.               o->labelsize(12);
  88.               o->end();
  89.               Fl_Group::current()->resizable(o);
  90.             }
  91.             { Fl_Button* o = new Fl_Button(195, 150, 25, 25, "@8<");
  92.               o->labelsize(12);
  93.               o->callback((Fl_Callback*)cb_8);
  94.             }
  95.             { Fl_Button* o = new Fl_Button(195, 125, 25, 25, "@2<");
  96.               o->labelsize(12);
  97.               o->callback((Fl_Callback*)cb_2);
  98.             }
  99.             o->end();
  100.           }
  101.           o->end();
  102.         }
  103.         { Fl_Browser* o = m_ShownList = new Fl_Browser(225, 35, 185, 140);
  104.           o->type(3);
  105.           o->labelsize(12);
  106.           o->textsize(12);
  107.         }
  108.         o->end();
  109.         Fl_Group::current()->resizable(o);
  110.       }
  111.       o->end();
  112.       Fl_Group::current()->resizable(o);
  113.     }
  114.     { Fl_Group* o = new Fl_Group(5, 180, 405, 25);
  115.       o->labelsize(12);
  116.       { Fl_Return_Button* o = new Fl_Return_Button(255, 180, 75, 25, "OK");
  117.         o->labelsize(12);
  118.         o->callback((Fl_Callback*)cb_OK);
  119.       }
  120.       { Fl_Button* o = new Fl_Button(335, 180, 75, 25, "Cancel");
  121.         o->labelsize(12);
  122.         o->callback((Fl_Callback*)cb_Cancel);
  123.       }
  124.       { Fl_Group* o = new Fl_Group(5, 180, 250, 25);
  125.         o->labelsize(12);
  126.         o->end();
  127.         Fl_Group::current()->resizable(o);
  128.       }
  129.       o->end();
  130.     }
  131.     o->end();
  132.   }
  133. }