gb_manage_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: gb_manage_dlg_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:57:49 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: gb_manage_dlg_.cpp,v 1000.1 2004/06/01 20:57:49 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CGBManageDlg::cb_GenBank_i(Fl_Double_Window*, void*) {
- x_OnCancel();
- }
- void CGBManageDlg::cb_GenBank(Fl_Double_Window* o, void* v) {
- ((CGBManageDlg*)(o->user_data()))->cb_GenBank_i(o,v);
- }
- inline void CGBManageDlg::cb__i(Fl_Button*, void*) {
- x_OnBrowseCacheDir();
- }
- void CGBManageDlg::cb_(Fl_Button* o, void* v) {
- ((CGBManageDlg*)(o->parent()->parent()->user_data()))->cb__i(o,v);
- }
- inline void CGBManageDlg::cb_Clear_i(Fl_Button*, void*) {
- x_OnClearCache();
- }
- void CGBManageDlg::cb_Clear(Fl_Button* o, void* v) {
- ((CGBManageDlg*)(o->parent()->parent()->user_data()))->cb_Clear_i(o,v);
- }
- inline void CGBManageDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CGBManageDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CGBManageDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- Fl_Double_Window* CGBManageDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(420, 319, "GenBank Data Source Configuration");
- w = o;
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_GenBank, (void*)(this));
- { Fl_Group* o = new Fl_Group(5, 5, 410, 100);
- o->box(FL_ENGRAVED_FRAME);
- { Fl_Input* o = m_GCSize = new Fl_Input(175, 15, 125, 25);
- o->type(2);
- o->labelsize(12);
- }
- { Fl_Box* o = new Fl_Box(10, 15, 160, 25, "Garbage Collection Size:");
- o->labelsize(12);
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = new Fl_Box(305, 15, 65, 25, "records");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Check_Button* o = m_Variations = new Fl_Check_Button(15, 75, 240, 25, "Retrieve Variations from GenBank");
- o->down_box(FL_DOWN_BOX);
- o->labelsize(12);
- }
- { Fl_Input* o = m_Priority = new Fl_Input(175, 45, 125, 25);
- o->type(2);
- o->labelsize(12);
- }
- { Fl_Box* o = new Fl_Box(15, 45, 150, 25, "Default Priority (0-99):");
- o->labelsize(12);
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 110, 410, 175);
- o->box(FL_ENGRAVED_FRAME);
- { Fl_File_Input* o = m_CacheDir = new Fl_File_Input(125, 120, 240, 35);
- o->labelsize(12);
- }
- { Fl_Box* o = new Fl_Box(15, 130, 115, 25, "Cache Directory");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Button* o = new Fl_Button(370, 133, 20, 20, "...");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_);
- }
- { Fl_Input* o = m_CacheLifespan = new Fl_Input(265, 160, 100, 25);
- o->type(2);
- o->labelsize(12);
- }
- { Fl_Box* o = new Fl_Box(15, 160, 240, 25, "Number of days to cache objects");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = new Fl_Box(15, 190, 240, 25, "Maximum cache size (MB)");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Input* o = m_CacheSize = new Fl_Input(265, 190, 100, 25);
- o->type(2);
- o->labelsize(12);
- }
- { Fl_Box* o = new Fl_Box(15, 220, 240, 25, "Current cache size (MB)");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_CurrentSize = new Fl_Box(265, 220, 100, 25);
- o->box(FL_DOWN_BOX);
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Button* o = new Fl_Button(265, 250, 100, 25, "Clear Cache");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Clear);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 290, 410, 25);
- { Fl_Return_Button* o = new Fl_Return_Button(335, 290, 80, 25, "OK");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Group* o = new Fl_Group(5, 290, 330, 25);
- o->labelsize(12);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }