visible_range_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:5k
- /*
- * ===========================================================================
- * PRODUCTION $Log: visible_range_dlg_.cpp,v $
- * PRODUCTION Revision 1000.3 2004/06/01 21:01:39 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: visible_range_dlg_.cpp,v 1000.3 2004/06/01 21:01:39 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CVisibleRangeDialog::cb_m_To_i(Fl_Input*, void*) {
- x_OnToInput();
- }
- void CVisibleRangeDialog::cb_m_To(Fl_Input* o, void* v) {
- ((CVisibleRangeDialog*)(o->parent()->parent()->user_data()))->cb_m_To_i(o,v);
- }
- inline void CVisibleRangeDialog::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CVisibleRangeDialog::cb_OK(Fl_Return_Button* o, void* v) {
- ((CVisibleRangeDialog*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CVisibleRangeDialog::cb_Cancel_i(Fl_Button*, void*) {
- x_OnCancel();
- }
- void CVisibleRangeDialog::cb_Cancel(Fl_Button* o, void* v) {
- ((CVisibleRangeDialog*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
- }
- inline void CVisibleRangeDialog::cb_m_ScrollTo_i(Fl_Input*, void*) {
- x_OnScrollToInput();
- }
- void CVisibleRangeDialog::cb_m_ScrollTo(Fl_Input* o, void* v) {
- ((CVisibleRangeDialog*)(o->parent()->parent()->user_data()))->cb_m_ScrollTo_i(o,v);
- }
- inline void CVisibleRangeDialog::cb_OK1_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CVisibleRangeDialog::cb_OK1(Fl_Return_Button* o, void* v) {
- ((CVisibleRangeDialog*)(o->parent()->parent()->user_data()))->cb_OK1_i(o,v);
- }
- inline void CVisibleRangeDialog::cb_Cancel1_i(Fl_Button*, void*) {
- x_OnCancel();
- }
- void CVisibleRangeDialog::cb_Cancel1(Fl_Button* o, void* v) {
- ((CVisibleRangeDialog*)(o->parent()->parent()->user_data()))->cb_Cancel1_i(o,v);
- }
- Fl_Double_Window* CVisibleRangeDialog::x_CreateRangeWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(325, 160, "Select Visible Range");
- w = o;
- o->user_data((void*)(this));
- { Fl_Group* o = new Fl_Group(145, 40, 91, 75);
- { Fl_Input* o = m_From = new Fl_Input(145, 44, 91, 30);
- o->type(2);
- o->labeltype(FL_NO_LABEL);
- }
- { Fl_Input* o = m_To = new Fl_Input(145, 84, 91, 30);
- o->type(2);
- o->labeltype(FL_NO_LABEL);
- o->callback((Fl_Callback*)cb_m_To);
- o->when(FL_WHEN_CHANGED);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(0, 120, 329, 31);
- { Fl_Return_Button* o = new Fl_Return_Button(155, 126, 80, 25, "OK");
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Button* o = new Fl_Button(240, 126, 80, 25, "Cancel");
- o->callback((Fl_Callback*)cb_Cancel);
- }
- { Fl_Group* o = new Fl_Group(20, 125, 135, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Box* o = m_ToErrorMsg = new Fl_Box(126, 115, 170, 15, "Field must be less the sequence size");
- o->labelsize(10);
- o->labelcolor((Fl_Color)1);
- o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
- o->hide();
- }
- { Fl_Box* o = new Fl_Box(93, 10, 120, 24, "Sequence size is");
- o->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_SeqSize = new Fl_Box(209, 10, 45, 25);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = new Fl_Box(96, 50, 45, 15, "From");
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_ToLabel = new Fl_Box(107, 90, 34, 15, "To");
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- o->end();
- }
- return w;
- }
- Fl_Double_Window* CVisibleRangeDialog::x_CreateScrollToWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(325, 116, "Select Scroll To Range");
- w = o;
- o->user_data((void*)(this));
- { Fl_Group* o = new Fl_Group(154, 32, 91, 37);
- { Fl_Input* o = m_ScrollTo = new Fl_Input(158, 39, 87, 30);
- o->type(2);
- o->labeltype(FL_NO_LABEL);
- o->callback((Fl_Callback*)cb_m_ScrollTo);
- o->when(FL_WHEN_CHANGED);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 80, 320, 26);
- { Fl_Return_Button* o = new Fl_Return_Button(155, 81, 80, 25, "OK");
- o->callback((Fl_Callback*)cb_OK1);
- }
- { Fl_Button* o = new Fl_Button(240, 81, 80, 25, "Cancel");
- o->callback((Fl_Callback*)cb_Cancel1);
- }
- { Fl_Group* o = new Fl_Group(20, 80, 135, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Box* o = m_ScrollToErrorMsg = new Fl_Box(135, 67, 170, 15, "Field must be less the sequence size");
- o->labelsize(10);
- o->labelcolor((Fl_Color)1);
- o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
- o->hide();
- }
- { Fl_Box* o = new Fl_Box(90, 10, 123, 25, "Sequence size is");
- o->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_ScrollToSize = new Fl_Box(206, 10, 45, 25);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_ScrollToLabel = new Fl_Box(90, 45, 64, 15, "Scroll To");
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- o->end();
- }
- return w;
- }