entrez_search_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:7k
- /*
- * ===========================================================================
- * PRODUCTION $Log: entrez_search_dlg_.cpp,v $
- * PRODUCTION Revision 1000.0 2004/06/01 21:27:15 gouriano
- * PRODUCTION PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.2
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: entrez_search_dlg_.cpp,v 1000.0 2004/06/01 21:27:15 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CEntrezSearchDlg::cb_Search_i(Fl_Double_Window*, void*) {
- x_OnOK();
- }
- void CEntrezSearchDlg::cb_Search(Fl_Double_Window* o, void* v) {
- ((CEntrezSearchDlg*)(o->user_data()))->cb_Search_i(o,v);
- }
- inline void CEntrezSearchDlg::cb_m_QueryStr_i(Fl_Input*, void*) {
- x_OnChangeTerms();
- }
- void CEntrezSearchDlg::cb_m_QueryStr(Fl_Input* o, void* v) {
- ((CEntrezSearchDlg*)(o->parent()->parent()->user_data()))->cb_m_QueryStr_i(o,v);
- }
- inline void CEntrezSearchDlg::cb_m_DB_i(Fl_Choice*, void*) {
- x_OnChangeDB();
- }
- void CEntrezSearchDlg::cb_m_DB(Fl_Choice* o, void* v) {
- ((CEntrezSearchDlg*)(o->parent()->parent()->user_data()))->cb_m_DB_i(o,v);
- }
- inline void CEntrezSearchDlg::cb_Go_i(Fl_Button*, void*) {
- x_OnChangeTerms();
- }
- void CEntrezSearchDlg::cb_Go(Fl_Button* o, void* v) {
- ((CEntrezSearchDlg*)(o->parent()->parent()->user_data()))->cb_Go_i(o,v);
- }
- inline void CEntrezSearchDlg::cb_m_VisibleRecords_i(Fl_Choice*, void*) {
- x_OnChangeVisible();
- }
- void CEntrezSearchDlg::cb_m_VisibleRecords(Fl_Choice* o, void* v) {
- ((CEntrezSearchDlg*)(o->parent()->parent()->user_data()))->cb_m_VisibleRecords_i(o,v);
- }
- Fl_Menu_Item CEntrezSearchDlg::menu_m_VisibleRecords[] = {
- {"10 records", 0, 0, (void*)(10), 0, 0, 0, 12, 56},
- {"50 records", 0, 0, (void*)(50), 0, 0, 0, 12, 56},
- {"100 records", 0, 0, (void*)(100), 0, 0, 0, 12, 56},
- {"All records", 0, 0, (void*)(-1), 0, 0, 0, 12, 56},
- {0}
- };
- Fl_Menu_Item CEntrezSearchDlg::menu_[] = {
- {"Nucleotide", 0, 0, 0, 0, 0, 0, 12, 56},
- {"Nucleotide Neighbors", 0, 0, 0, 0, 0, 0, 12, 56},
- {"Protein", 0, 0, 0, 0, 0, 0, 12, 56},
- {"Protein Neighbors", 0, 0, 0, 0, 0, 0, 12, 56},
- {0}
- };
- inline void CEntrezSearchDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CEntrezSearchDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CEntrezSearchDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CEntrezSearchDlg::cb_Load_i(Fl_Button*, void*) {
- x_OnLoad();
- }
- void CEntrezSearchDlg::cb_Load(Fl_Button* o, void* v) {
- ((CEntrezSearchDlg*)(o->parent()->parent()->user_data()))->cb_Load_i(o,v);
- }
- inline void CEntrezSearchDlg::cb__i(Fl_Button*, void*) {
- x_OnPrevious();
- }
- void CEntrezSearchDlg::cb_(Fl_Button* o, void* v) {
- ((CEntrezSearchDlg*)(o->parent()->parent()->user_data()))->cb__i(o,v);
- }
- inline void CEntrezSearchDlg::cb_1_i(Fl_Button*, void*) {
- x_OnNext();
- }
- void CEntrezSearchDlg::cb_1(Fl_Button* o, void* v) {
- ((CEntrezSearchDlg*)(o->parent()->parent()->user_data()))->cb_1_i(o,v);
- }
- Fl_Double_Window* CEntrezSearchDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(666, 390, "Search GenBank");
- w = o;
- o->callback((Fl_Callback*)cb_Search, (void*)(this));
- { Fl_Group* o = new Fl_Group(10, 5, 650, 30);
- { Fl_Box* o = new Fl_Box(10, 5, 65, 25, "Search for");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Input* o = m_QueryStr = new Fl_Input(75, 5, 585, 25);
- o->labelsize(12);
- o->textsize(12);
- o->callback((Fl_Callback*)cb_m_QueryStr);
- o->when(FL_WHEN_ENTER_KEY);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(10, 35, 650, 25);
- { Fl_Box* o = new Fl_Box(10, 35, 80, 25, "Database");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Choice* o = m_DB = new Fl_Choice(75, 35, 120, 25);
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->textsize(12);
- o->callback((Fl_Callback*)cb_m_DB);
- }
- { Fl_Button* o = new Fl_Button(575, 35, 85, 25, "Go!");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Go);
- }
- { Fl_Choice* o = m_VisibleRecords = new Fl_Choice(250, 35, 100, 25);
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->textsize(12);
- o->callback((Fl_Callback*)cb_m_VisibleRecords);
- o->menu(menu_m_VisibleRecords);
- }
- { Fl_Box* o = new Fl_Box(200, 35, 60, 25, "Display");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = new Fl_Box(350, 35, 70, 25, "Retrieve as");
- o->labelsize(12);
- }
- { Fl_Choice* o = new Fl_Choice(425, 35, 140, 25);
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->textsize(12);
- Fl_Group::current()->resizable(o);
- o->menu(menu_);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 65, 655, 5);
- o->box(FL_THIN_DOWN_FRAME);
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 75, 655, 255);
- o->box(FL_THIN_DOWN_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- { CEntrezRecordTable* o = m_Table = new CEntrezRecordTable(5, 75, 655, 255);
- o->box(FL_THIN_DOWN_FRAME);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color((Fl_Color)4);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(12);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = new Fl_Group(5, 335, 655, 25);
- { Fl_Return_Button* o = new Fl_Return_Button(570, 335, 90, 25, "OK");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Group* o = new Fl_Group(155, 335, 345, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Button* o = new Fl_Button(35, 335, 90, 25, "Load");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Load);
- }
- { Fl_Button* o = new Fl_Button(5, 335, 25, 25, "@<<");
- o->callback((Fl_Callback*)cb_);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Button* o = new Fl_Button(130, 335, 25, 25, "@>>");
- o->callback((Fl_Callback*)cb_1);
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- o->end();
- }
- { CStatusBarEx* o = m_StatusBar = new CStatusBarEx(5, 365, 655, 20, "Ready");
- o->box(FL_THIN_DOWN_BOX);
- o->color(FL_BACKGROUND_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(12);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- o->when(FL_WHEN_RELEASE);
- o->end();
- }
- o->end();
- }
- return w;
- }