cross_aln_demo_ui_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: cross_aln_demo_ui_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:06:48 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: cross_aln_demo_ui_.cpp,v 1000.1 2004/06/01 21:06:48 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CCrossAlnDemoUI::cb_Load_i(Fl_Button*, void*) {
- x_OnLoadAccession();
- }
- void CCrossAlnDemoUI::cb_Load(Fl_Button* o, void* v) {
- ((CCrossAlnDemoUI*)(o->parent()->user_data()))->cb_Load_i(o,v);
- }
- inline void CCrossAlnDemoUI::cb_Load1_i(Fl_Button*, void*) {
- x_OnLoadFile();
- }
- void CCrossAlnDemoUI::cb_Load1(Fl_Button* o, void* v) {
- ((CCrossAlnDemoUI*)(o->parent()->user_data()))->cb_Load1_i(o,v);
- }
- inline void CCrossAlnDemoUI::cb_Close_i(Fl_Button*, void*) {
- x_QuitApp();
- }
- void CCrossAlnDemoUI::cb_Close(Fl_Button* o, void* v) {
- ((CCrossAlnDemoUI*)(o->parent()->user_data()))->cb_Close_i(o,v);
- }
- inline void CCrossAlnDemoUI::cb_19568015_i(Fl_Button*, void*) {
- m_Accession->value("gi|19568015");
- x_OnLoadAccession();
- }
- void CCrossAlnDemoUI::cb_19568015(Fl_Button* o, void* v) {
- ((CCrossAlnDemoUI*)(o->parent()->user_data()))->cb_19568015_i(o,v);
- }
- inline void CCrossAlnDemoUI::cb_Zoom_i(Fl_Button*, void*) {
- m_AlnWidget->ZoomOnAlignment();
- }
- void CCrossAlnDemoUI::cb_Zoom(Fl_Button* o, void* v) {
- ((CCrossAlnDemoUI*)(o->parent()->user_data()))->cb_Zoom_i(o,v);
- }
- inline void CCrossAlnDemoUI::cb_Zoom1_i(Fl_Button*, void*) {
- m_AlnWidget->FitToWindow();
- }
- void CCrossAlnDemoUI::cb_Zoom1(Fl_Button* o, void* v) {
- ((CCrossAlnDemoUI*)(o->parent()->user_data()))->cb_Zoom1_i(o,v);
- }
- inline void CCrossAlnDemoUI::cb_Zoom2_i(Fl_Button*, void*) {
- m_AlnWidget->ZoomToSequence();
- }
- void CCrossAlnDemoUI::cb_Zoom2(Fl_Button* o, void* v) {
- ((CCrossAlnDemoUI*)(o->parent()->user_data()))->cb_Zoom2_i(o,v);
- }
- Fl_Double_Window* CCrossAlnDemoUI::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = m_MainWindow = new Fl_Double_Window(936, 500, "Cross-Alignment Widget Demo");
- w = o;
- o->user_data((void*)(this));
- { CCrossAlnWidget* o = m_AlnWidget = new CCrossAlnWidget(15, 19, 625, 426);
- o->box(FL_DOWN_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_CENTER);
- o->when(FL_WHEN_RELEASE);
- }
- { Fl_Input* o = m_Accession = new Fl_Input(650, 35, 200, 25, "Accession to Load");
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { Fl_Button* o = new Fl_Button(860, 35, 60, 25, "Load");
- o->callback((Fl_Callback*)cb_Load);
- }
- { Fl_File_Input* o = m_InputFile = new Fl_File_Input(650, 85, 200, 35, "File to Load");
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { Fl_Button* o = new Fl_Button(860, 95, 60, 25, "Load");
- o->callback((Fl_Callback*)cb_Load1);
- }
- { Fl_Browser* o = m_Idx1 = new Fl_Browser(650, 235, 270, 90, "Top Sequence");
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { Fl_Browser* o = m_Idx2 = new Fl_Browser(650, 350, 270, 90, "Bottom Sequence");
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { Fl_Button* o = new Fl_Button(825, 460, 95, 25, "Close");
- o->tooltip("Click to close the window");
- o->callback((Fl_Callback*)cb_Close);
- }
- { Fl_Box* o = new Fl_Box(15, 450, 905, 5);
- o->box(FL_THIN_DOWN_FRAME);
- o->labeltype(FL_NO_LABEL);
- }
- { Fl_Button* o = new Fl_Button(650, 130, 110, 25, "19568015");
- o->callback((Fl_Callback*)cb_19568015);
- }
- { Fl_Button* o = new Fl_Button(15, 460, 150, 25, "Zoom On Alignment");
- o->callback((Fl_Callback*)cb_Zoom);
- }
- { Fl_Button* o = new Fl_Button(170, 460, 100, 25, "Zoom To Fit");
- o->callback((Fl_Callback*)cb_Zoom1);
- }
- { Fl_Button* o = new Fl_Button(275, 460, 140, 25, "Zoom To Sequence");
- o->callback((Fl_Callback*)cb_Zoom2);
- }
- o->end();
- o->resizable(o);
- }
- return w;
- }