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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: dlg_blastpoll_.cpp,v $
  4.  * PRODUCTION Revision 1000.3  2004/06/01 20:54:27  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: dlg_blastpoll_.cpp,v 1000.3 2004/06/01 20:54:27 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CBlastPollDlg::cb_m_InputRid_i(Fl_Input*, void*) {
  13.   x_OnAdd();
  14. }
  15. void CBlastPollDlg::cb_m_InputRid(Fl_Input* o, void* v) {
  16.   ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_m_InputRid_i(o,v);
  17. }
  18. inline void CBlastPollDlg::cb_Add_i(Fl_Button*, void*) {
  19.   x_OnAdd();
  20. }
  21. void CBlastPollDlg::cb_Add(Fl_Button* o, void* v) {
  22.   ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_Add_i(o,v);
  23. }
  24. inline void CBlastPollDlg::cb_2_i(Fl_Button*, void*) {
  25.   x_OnUp();
  26. }
  27. void CBlastPollDlg::cb_2(Fl_Button* o, void* v) {
  28.   ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_2_i(o,v);
  29. }
  30. inline void CBlastPollDlg::cb_8_i(Fl_Button*, void*) {
  31.   x_OnDown();
  32. }
  33. void CBlastPollDlg::cb_8(Fl_Button* o, void* v) {
  34.   ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_8_i(o,v);
  35. }
  36. inline void CBlastPollDlg::cb_Active_i(Fl_Button*, void*) {
  37.   x_OnActiveToggle();
  38. }
  39. void CBlastPollDlg::cb_Active(Fl_Button* o, void* v) {
  40.   ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_Active_i(o,v);
  41. }
  42. inline void CBlastPollDlg::cb_OK_i(Fl_Button*, void*) {
  43.   x_OnOK();
  44. }
  45. void CBlastPollDlg::cb_OK(Fl_Button* o, void* v) {
  46.   ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
  47. }
  48. inline void CBlastPollDlg::cb_Poll_i(Fl_Button*, void*) {
  49.   x_OnPollNow();
  50. }
  51. void CBlastPollDlg::cb_Poll(Fl_Button* o, void* v) {
  52.   ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_Poll_i(o,v);
  53. }
  54. Fl_Double_Window* CBlastPollDlg::x_CreateWindow() {
  55.   Fl_Double_Window* w;
  56.   { Fl_Double_Window* o = new Fl_Double_Window(650, 260, "Polling");
  57.     w = o;
  58.     o->user_data((void*)(this));
  59.     { Fl_Group* o = new Fl_Group(5, 5, 640, 25);
  60.       { Fl_Box* o = new Fl_Box(5, 5, 50, 25, "RID:");
  61.         o->labelsize(12);
  62.       }
  63.       { Fl_Input* o = m_InputRid = new Fl_Input(55, 5, 340, 25);
  64.         o->labelsize(12);
  65.         o->textsize(12);
  66.         o->callback((Fl_Callback*)cb_m_InputRid);
  67.         o->when(FL_WHEN_ENTER_KEY);
  68.         Fl_Group::current()->resizable(o);
  69.       }
  70.       { Fl_Button* o = new Fl_Button(400, 5, 80, 25, "Add");
  71.         o->labelsize(12);
  72.         o->callback((Fl_Callback*)cb_Add);
  73.       }
  74.       { Fl_Box* o = new Fl_Box(480, 5, 80, 25, "Current Time");
  75.         o->labelsize(12);
  76.         o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
  77.       }
  78.       { Fl_Box* o = m_CurrTime = new Fl_Box(565, 5, 80, 25);
  79.         o->box(FL_THIN_DOWN_BOX);
  80.         o->color(FL_BACKGROUND2_COLOR);
  81.         o->labelsize(12);
  82.       }
  83.       o->end();
  84.     }
  85.     { Fl_Group* o = new Fl_Group(5, 35, 640, 190);
  86.       o->box(FL_THIN_DOWN_BOX);
  87.       o->color(FL_BACKGROUND2_COLOR);
  88.       { CBlastPollTable* o = m_Table = new CBlastPollTable(5, 35, 640, 190);
  89.         o->box(FL_THIN_DOWN_FRAME);
  90.         o->color(FL_BACKGROUND2_COLOR);
  91.         o->selection_color((Fl_Color)4);
  92.         o->labeltype(FL_NORMAL_LABEL);
  93.         o->labelfont(0);
  94.         o->labelsize(12);
  95.         o->labelcolor(FL_BLACK);
  96.         o->align(FL_ALIGN_TOP);
  97.         o->when(FL_WHEN_RELEASE);
  98.         o->end();
  99.         Fl_Group::current()->resizable(o);
  100.       }
  101.       o->end();
  102.       Fl_Group::current()->resizable(o);
  103.     }
  104.     { Fl_Group* o = new Fl_Group(5, 230, 640, 25);
  105.       { Fl_Button* o = new Fl_Button(5, 230, 30, 25, "@2<");
  106.         o->labelsize(12);
  107.         o->callback((Fl_Callback*)cb_2);
  108.       }
  109.       { Fl_Button* o = new Fl_Button(40, 230, 30, 25, "@8<");
  110.         o->labelsize(12);
  111.         o->callback((Fl_Callback*)cb_8);
  112.       }
  113.       { Fl_Button* o = new Fl_Button(75, 230, 80, 25, "Active");
  114.         o->labelsize(12);
  115.         o->callback((Fl_Callback*)cb_Active);
  116.       }
  117.       { Fl_Button* o = new Fl_Button(565, 230, 80, 25, "OK");
  118.         o->labelsize(12);
  119.         o->callback((Fl_Callback*)cb_OK);
  120.       }
  121.       { Fl_Group* o = new Fl_Group(240, 230, 125, 25);
  122.         o->end();
  123.         Fl_Group::current()->resizable(o);
  124.       }
  125.       { Fl_Button* o = new Fl_Button(160, 230, 80, 25, "Poll Now");
  126.         o->labelsize(12);
  127.         o->callback((Fl_Callback*)cb_Poll);
  128.       }
  129.       o->end();
  130.     }
  131.     o->end();
  132.   }
  133.   return w;
  134. }