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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: hit_matrix_demo_ui_.cpp,v $
  4.  * PRODUCTION Revision 1000.2  2004/06/01 21:11:29  gouriano
  5.  * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. // generated by Fast Light User Interface Designer (fluid) version 1.0105
  10. /* $Id: hit_matrix_demo_ui_.cpp,v 1000.2 2004/06/01 21:11:29 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CHitMatrixDemoUI::cb_Load_i(Fl_Button*, void*) {
  13.   x_OnLoadAccession();
  14. }
  15. void CHitMatrixDemoUI::cb_Load(Fl_Button* o, void* v) {
  16.   ((CHitMatrixDemoUI*)(o->parent()->parent()->parent()->user_data()))->cb_Load_i(o,v);
  17. }
  18. inline void CHitMatrixDemoUI::cb_Load1_i(Fl_Button*, void*) {
  19.   x_OnLoadFile();
  20. }
  21. void CHitMatrixDemoUI::cb_Load1(Fl_Button* o, void* v) {
  22.   ((CHitMatrixDemoUI*)(o->parent()->parent()->parent()->user_data()))->cb_Load1_i(o,v);
  23. }
  24. Fl_Double_Window* CHitMatrixDemoUI::x_CreateWindow() {
  25.   Fl_Double_Window* w;
  26.   { Fl_Double_Window* o = new Fl_Double_Window(968, 589);
  27.     w = o;
  28.     o->user_data((void*)(this));
  29.     { Fl_Group* o = new Fl_Group(10, 10, 955, 430);
  30.       { CHitMatrixWidget* o = m_MatrixWidget = new CHitMatrixWidget(15, 39, 930, 401);
  31.         o->box(FL_DOWN_BOX);
  32.         o->color(FL_BACKGROUND2_COLOR);
  33.         o->selection_color(FL_BACKGROUND_COLOR);
  34.         o->labeltype(FL_NORMAL_LABEL);
  35.         o->labelfont(0);
  36.         o->labelsize(14);
  37.         o->labelcolor(FL_BLACK);
  38.         o->align(FL_ALIGN_CENTER);
  39.         o->when(FL_WHEN_RELEASE);
  40.         Fl_Group::current()->resizable(o);
  41.         m_MatrixWidget->Create();
  42.       }
  43.       { CMenuBar* o = m_MenuBar = new CMenuBar(15, 10, 930, 30);
  44.         o->box(FL_UP_BOX);
  45.         o->color(FL_BACKGROUND_COLOR);
  46.         o->selection_color(FL_SELECTION_COLOR);
  47.         o->labeltype(FL_NORMAL_LABEL);
  48.         o->labelfont(0);
  49.         o->labelsize(14);
  50.         o->labelcolor(FL_BLACK);
  51.         o->align(FL_ALIGN_CENTER);
  52.         o->when(FL_WHEN_RELEASE_ALWAYS);
  53.       }
  54.       o->end();
  55.       Fl_Group::current()->resizable(o);
  56.     }
  57.     { Fl_Group* o = new Fl_Group(10, 395, 945, 240);
  58.       { Fl_Group* o = new Fl_Group(710, 425, 245, 180);
  59.         m_Accession = new Fl_Input(710, 460, 180, 25, "Accession to Load");
  60.         { Fl_Button* o = new Fl_Button(895, 460, 60, 25, "Load!");
  61.           o->callback((Fl_Callback*)cb_Load);
  62.         }
  63.         m_InputFile = new Fl_File_Input(710, 495, 180, 35, "File to Load");
  64.         { Fl_Button* o = new Fl_Button(895, 505, 60, 25, "Load!");
  65.           o->callback((Fl_Callback*)cb_Load1);
  66.         }
  67.         { Fl_Choice* o = m_Anchor = new Fl_Choice(710, 540, 185, 25, "Anchor on...");
  68.           o->down_box(FL_BORDER_BOX);
  69.         }
  70.         o->end();
  71.       }
  72.       o->end();
  73.     }
  74.     o->end();
  75.   }
  76.   return w;
  77. }