dlg_blastpoll_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: dlg_blastpoll_.cpp,v $
- * PRODUCTION Revision 1000.3 2004/06/01 20:54:27 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.9
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: dlg_blastpoll_.cpp,v 1000.3 2004/06/01 20:54:27 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CBlastPollDlg::cb_m_InputRid_i(Fl_Input*, void*) {
- x_OnAdd();
- }
- void CBlastPollDlg::cb_m_InputRid(Fl_Input* o, void* v) {
- ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_m_InputRid_i(o,v);
- }
- inline void CBlastPollDlg::cb_Add_i(Fl_Button*, void*) {
- x_OnAdd();
- }
- void CBlastPollDlg::cb_Add(Fl_Button* o, void* v) {
- ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_Add_i(o,v);
- }
- inline void CBlastPollDlg::cb_2_i(Fl_Button*, void*) {
- x_OnUp();
- }
- void CBlastPollDlg::cb_2(Fl_Button* o, void* v) {
- ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_2_i(o,v);
- }
- inline void CBlastPollDlg::cb_8_i(Fl_Button*, void*) {
- x_OnDown();
- }
- void CBlastPollDlg::cb_8(Fl_Button* o, void* v) {
- ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_8_i(o,v);
- }
- inline void CBlastPollDlg::cb_Active_i(Fl_Button*, void*) {
- x_OnActiveToggle();
- }
- void CBlastPollDlg::cb_Active(Fl_Button* o, void* v) {
- ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_Active_i(o,v);
- }
- inline void CBlastPollDlg::cb_OK_i(Fl_Button*, void*) {
- x_OnOK();
- }
- void CBlastPollDlg::cb_OK(Fl_Button* o, void* v) {
- ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CBlastPollDlg::cb_Poll_i(Fl_Button*, void*) {
- x_OnPollNow();
- }
- void CBlastPollDlg::cb_Poll(Fl_Button* o, void* v) {
- ((CBlastPollDlg*)(o->parent()->parent()->user_data()))->cb_Poll_i(o,v);
- }
- Fl_Double_Window* CBlastPollDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(650, 260, "Polling");
- w = o;
- o->user_data((void*)(this));
- { Fl_Group* o = new Fl_Group(5, 5, 640, 25);
- { Fl_Box* o = new Fl_Box(5, 5, 50, 25, "RID:");
- o->labelsize(12);
- }
- { Fl_Input* o = m_InputRid = new Fl_Input(55, 5, 340, 25);
- o->labelsize(12);
- o->textsize(12);
- o->callback((Fl_Callback*)cb_m_InputRid);
- o->when(FL_WHEN_ENTER_KEY);
- Fl_Group::current()->resizable(o);
- }
- { Fl_Button* o = new Fl_Button(400, 5, 80, 25, "Add");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Add);
- }
- { Fl_Box* o = new Fl_Box(480, 5, 80, 25, "Current Time");
- o->labelsize(12);
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_CurrTime = new Fl_Box(565, 5, 80, 25);
- o->box(FL_THIN_DOWN_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- o->labelsize(12);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 35, 640, 190);
- o->box(FL_THIN_DOWN_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- { CBlastPollTable* o = m_Table = new CBlastPollTable(5, 35, 640, 190);
- 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, 230, 640, 25);
- { Fl_Button* o = new Fl_Button(5, 230, 30, 25, "@2<");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_2);
- }
- { Fl_Button* o = new Fl_Button(40, 230, 30, 25, "@8<");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_8);
- }
- { Fl_Button* o = new Fl_Button(75, 230, 80, 25, "Active");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Active);
- }
- { Fl_Button* o = new Fl_Button(565, 230, 80, 25, "OK");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Group* o = new Fl_Group(240, 230, 125, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Button* o = new Fl_Button(160, 230, 80, 25, "Poll Now");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Poll);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }