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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: gb_manage_dlg_.cpp,v $
  4.  * PRODUCTION Revision 1000.1  2004/06/01 20:57:49  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: gb_manage_dlg_.cpp,v 1000.1 2004/06/01 20:57:49 gouriano Exp $ */
  11. #include <ncbi_pch.hpp>
  12. inline void CGBManageDlg::cb_GenBank_i(Fl_Double_Window*, void*) {
  13.   x_OnCancel();
  14. }
  15. void CGBManageDlg::cb_GenBank(Fl_Double_Window* o, void* v) {
  16.   ((CGBManageDlg*)(o->user_data()))->cb_GenBank_i(o,v);
  17. }
  18. inline void CGBManageDlg::cb__i(Fl_Button*, void*) {
  19.   x_OnBrowseCacheDir();
  20. }
  21. void CGBManageDlg::cb_(Fl_Button* o, void* v) {
  22.   ((CGBManageDlg*)(o->parent()->parent()->user_data()))->cb__i(o,v);
  23. }
  24. inline void CGBManageDlg::cb_Clear_i(Fl_Button*, void*) {
  25.   x_OnClearCache();
  26. }
  27. void CGBManageDlg::cb_Clear(Fl_Button* o, void* v) {
  28.   ((CGBManageDlg*)(o->parent()->parent()->user_data()))->cb_Clear_i(o,v);
  29. }
  30. inline void CGBManageDlg::cb_OK_i(Fl_Return_Button*, void*) {
  31.   x_OnOK();
  32. }
  33. void CGBManageDlg::cb_OK(Fl_Return_Button* o, void* v) {
  34.   ((CGBManageDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
  35. }
  36. Fl_Double_Window* CGBManageDlg::x_CreateWindow() {
  37.   Fl_Double_Window* w;
  38.   { Fl_Double_Window* o = new Fl_Double_Window(420, 319, "GenBank Data Source Configuration");
  39.     w = o;
  40.     o->labelsize(12);
  41.     o->callback((Fl_Callback*)cb_GenBank, (void*)(this));
  42.     { Fl_Group* o = new Fl_Group(5, 5, 410, 100);
  43.       o->box(FL_ENGRAVED_FRAME);
  44.       { Fl_Input* o = m_GCSize = new Fl_Input(175, 15, 125, 25);
  45.         o->type(2);
  46.         o->labelsize(12);
  47.       }
  48.       { Fl_Box* o = new Fl_Box(10, 15, 160, 25, "Garbage Collection Size:");
  49.         o->labelsize(12);
  50.         o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
  51.       }
  52.       { Fl_Box* o = new Fl_Box(305, 15, 65, 25, "records");
  53.         o->labelsize(12);
  54.         o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  55.       }
  56.       { Fl_Check_Button* o = m_Variations = new Fl_Check_Button(15, 75, 240, 25, "Retrieve Variations from GenBank");
  57.         o->down_box(FL_DOWN_BOX);
  58.         o->labelsize(12);
  59.       }
  60.       { Fl_Input* o = m_Priority = new Fl_Input(175, 45, 125, 25);
  61.         o->type(2);
  62.         o->labelsize(12);
  63.       }
  64.       { Fl_Box* o = new Fl_Box(15, 45, 150, 25, "Default Priority (0-99):");
  65.         o->labelsize(12);
  66.         o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
  67.       }
  68.       o->end();
  69.     }
  70.     { Fl_Group* o = new Fl_Group(5, 110, 410, 175);
  71.       o->box(FL_ENGRAVED_FRAME);
  72.       { Fl_File_Input* o = m_CacheDir = new Fl_File_Input(125, 120, 240, 35);
  73.         o->labelsize(12);
  74.       }
  75.       { Fl_Box* o = new Fl_Box(15, 130, 115, 25, "Cache Directory");
  76.         o->labelsize(12);
  77.         o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  78.       }
  79.       { Fl_Button* o = new Fl_Button(370, 133, 20, 20, "...");
  80.         o->labelsize(12);
  81.         o->callback((Fl_Callback*)cb_);
  82.       }
  83.       { Fl_Input* o = m_CacheLifespan = new Fl_Input(265, 160, 100, 25);
  84.         o->type(2);
  85.         o->labelsize(12);
  86.       }
  87.       { Fl_Box* o = new Fl_Box(15, 160, 240, 25, "Number of days to cache objects");
  88.         o->labelsize(12);
  89.         o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  90.       }
  91.       { Fl_Box* o = new Fl_Box(15, 190, 240, 25, "Maximum cache size (MB)");
  92.         o->labelsize(12);
  93.         o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  94.       }
  95.       { Fl_Input* o = m_CacheSize = new Fl_Input(265, 190, 100, 25);
  96.         o->type(2);
  97.         o->labelsize(12);
  98.       }
  99.       { Fl_Box* o = new Fl_Box(15, 220, 240, 25, "Current cache size (MB)");
  100.         o->labelsize(12);
  101.         o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  102.       }
  103.       { Fl_Box* o = m_CurrentSize = new Fl_Box(265, 220, 100, 25);
  104.         o->box(FL_DOWN_BOX);
  105.         o->labelsize(12);
  106.         o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  107.       }
  108.       { Fl_Button* o = new Fl_Button(265, 250, 100, 25, "Clear Cache");
  109.         o->labelsize(12);
  110.         o->callback((Fl_Callback*)cb_Clear);
  111.       }
  112.       o->end();
  113.     }
  114.     { Fl_Group* o = new Fl_Group(5, 290, 410, 25);
  115.       { Fl_Return_Button* o = new Fl_Return_Button(335, 290, 80, 25, "OK");
  116.         o->labelsize(12);
  117.         o->callback((Fl_Callback*)cb_OK);
  118.       }
  119.       { Fl_Group* o = new Fl_Group(5, 290, 330, 25);
  120.         o->labelsize(12);
  121.         o->end();
  122.         Fl_Group::current()->resizable(o);
  123.       }
  124.       o->end();
  125.     }
  126.     o->end();
  127.   }
  128.   return w;
  129. }