seqgraphic_demo_ui_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:6k
- /*
- * ===========================================================================
- * PRODUCTION $Log: seqgraphic_demo_ui_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:13:17 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: seqgraphic_demo_ui_.cpp,v 1000.1 2004/06/01 21:13:17 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CSeqGraphicDemoUI::cb_Load_i(Fl_Button*, void*) {
- x_OnLoadAccession();
- }
- void CSeqGraphicDemoUI::cb_Load(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_Load_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_Load1_i(Fl_Button*, void*) {
- x_OnLoadFile();
- }
- void CSeqGraphicDemoUI::cb_Load1(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_Load1_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_Close_i(Fl_Button*, void*) {
- x_QuitApp();
- }
- void CSeqGraphicDemoUI::cb_Close(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_Close_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_17458490_i(Fl_Button*, void*) {
- m_Accession->value("gi|17458490");
- x_OnLoadAccession();
- }
- void CSeqGraphicDemoUI::cb_17458490(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_17458490_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_29798863_i(Fl_Button*, void*) {
- m_Accession->value("gi|29798863");
- x_OnLoadAccession();
- }
- void CSeqGraphicDemoUI::cb_29798863(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_29798863_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_19568015_i(Fl_Button*, void*) {
- m_Accession->value("gi|19568015");
- x_OnLoadAccession();
- }
- void CSeqGraphicDemoUI::cb_19568015(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_19568015_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_1322283_i(Fl_Button*, void*) {
- m_Accession->value("gi|1322283");
- x_OnLoadAccession();
- }
- void CSeqGraphicDemoUI::cb_1322283(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_1322283_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_NC_000022_i(Fl_Button*, void*) {
- m_Accession->value("gi|29824593");
- x_OnLoadAccession();
- }
- void CSeqGraphicDemoUI::cb_NC_000022(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_NC_000022_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_29732996_i(Fl_Button*, void*) {
- m_Accession->value("gi|29732996");
- x_OnLoadAccession();
- }
- void CSeqGraphicDemoUI::cb_29732996(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_29732996_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_Zoom_i(Fl_Button*, void*) {
- x_SetZoomX(0);
- }
- void CSeqGraphicDemoUI::cb_Zoom(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_Zoom_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_Zoom1_i(Fl_Button*, void*) {
- x_SetZoomX( 1 );
- }
- void CSeqGraphicDemoUI::cb_Zoom1(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_Zoom1_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_Zoom2_i(Fl_Button*, void*) {
- x_SetZoomX( 0.5 );
- }
- void CSeqGraphicDemoUI::cb_Zoom2(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_Zoom2_i(o,v);
- }
- inline void CSeqGraphicDemoUI::cb_TRACES_i(Fl_Button*, void*) {
- m_Accession->value("gnl|TRACE_ASSM|12");
- x_OnLoadAccession();
- }
- void CSeqGraphicDemoUI::cb_TRACES(Fl_Button* o, void* v) {
- ((CSeqGraphicDemoUI*)(o->parent()->user_data()))->cb_TRACES_i(o,v);
- }
- Fl_Double_Window* CSeqGraphicDemoUI::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = m_MainWindow = new Fl_Double_Window(936, 500, "Graphic Sequence Widget Demo");
- w = o;
- o->user_data((void*)(this));
- { CSeqGraphicWidget* o = m_SeqWidget = new CSeqGraphicWidget(15, 19, 615, 421);
- 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(640, 35, 200, 25, "Accession to Load");
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { Fl_Button* o = new Fl_Button(850, 35, 60, 25, "Load");
- o->callback((Fl_Callback*)cb_Load);
- }
- { Fl_File_Input* o = m_InputFile = new Fl_File_Input(640, 85, 200, 35, "File to Load");
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { Fl_Button* o = new Fl_Button(850, 95, 60, 25, "Load");
- o->callback((Fl_Callback*)cb_Load1);
- }
- { 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(640, 305, 160, 25, "17458490 (large)");
- o->callback((Fl_Callback*)cb_17458490);
- }
- { Fl_Button* o = new Fl_Button(640, 155, 160, 25, "29798863 (huge)");
- o->callback((Fl_Callback*)cb_29798863);
- }
- { Fl_Button* o = new Fl_Button(640, 245, 160, 25, "19568015 (small)");
- o->callback((Fl_Callback*)cb_19568015);
- }
- { Fl_Button* o = new Fl_Button(640, 275, 160, 25, "1322283");
- o->callback((Fl_Callback*)cb_1322283);
- }
- { Fl_Button* o = new Fl_Button(640, 185, 160, 25, "NC_000022 (huge)");
- o->callback((Fl_Callback*)cb_NC_000022);
- }
- { Fl_Button* o = new Fl_Button(640, 215, 160, 25, "29732996 (so-so)");
- o->callback((Fl_Callback*)cb_29732996);
- }
- { Fl_Button* o = new Fl_Button(640, 125, 90, 25, "Zoom To Fit");
- o->callback((Fl_Callback*)cb_Zoom);
- }
- { Fl_Button* o = new Fl_Button(820, 125, 90, 25, "Zoom 100%");
- o->callback((Fl_Callback*)cb_Zoom1);
- }
- { Fl_Button* o = new Fl_Button(735, 125, 80, 25, "Zoom 50%");
- o->callback((Fl_Callback*)cb_Zoom2);
- }
- { Fl_Button* o = new Fl_Button(640, 335, 160, 25, "TRACES (with graph)");
- o->callback((Fl_Callback*)cb_TRACES);
- }
- o->end();
- o->resizable(o);
- }
- return w;
- }