tip_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: tip_dlg_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:56:39 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.3
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: tip_dlg_.cpp,v 1000.1 2004/06/01 20:56:39 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CTipDlg::cb_m_HideTips_i(Fl_Check_Button*, void*) {
- x_OnHideTips();
- }
- void CTipDlg::cb_m_HideTips(Fl_Check_Button* o, void* v) {
- ((CTipDlg*)(o->parent()->parent()->user_data()))->cb_m_HideTips_i(o,v);
- }
- inline void CTipDlg::cb_m_PrevBtn_i(Fl_Button*, void*) {
- x_OnPrevTip();
- }
- void CTipDlg::cb_m_PrevBtn(Fl_Button* o, void* v) {
- ((CTipDlg*)(o->parent()->parent()->user_data()))->cb_m_PrevBtn_i(o,v);
- }
- inline void CTipDlg::cb_m_NextBtn_i(Fl_Button*, void*) {
- x_OnNextTip();
- }
- void CTipDlg::cb_m_NextBtn(Fl_Button* o, void* v) {
- ((CTipDlg*)(o->parent()->parent()->user_data()))->cb_m_NextBtn_i(o,v);
- }
- inline void CTipDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CTipDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CTipDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- Fl_Double_Window* CTipDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(523, 181, "Did you know...");
- w = o;
- o->user_data((void*)(this));
- { Fl_Group* o = new Fl_Group(5, 5, 510, 130);
- { Fl_Help_View* o = m_Text = new Fl_Help_View(5, 30, 510, 105);
- o->labelsize(18);
- Fl_Group::current()->resizable(o);
- }
- { Fl_Box* o = m_Tip = new Fl_Box(5, 5, 510, 25, "Tip #");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = new Fl_Group(5, 140, 510, 5);
- o->box(FL_THIN_DOWN_FRAME);
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 150, 510, 25);
- { Fl_Check_Button* o = m_HideTips = new Fl_Check_Button(5, 150, 170, 25, "Don't show tips at start");
- o->down_box(FL_DOWN_BOX);
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_m_HideTips);
- }
- { Fl_Group* o = new Fl_Group(170, 150, 135, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Button* o = m_PrevBtn = new Fl_Button(305, 150, 25, 25, "@<<");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_m_PrevBtn);
- }
- { Fl_Box* o = new Fl_Box(330, 150, 75, 25, "Other Tips");
- o->labelsize(12);
- }
- { Fl_Button* o = m_NextBtn = new Fl_Button(405, 150, 25, 25, "@>>");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_m_NextBtn);
- }
- { Fl_Return_Button* o = new Fl_Return_Button(435, 150, 80, 25, "OK");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_OK);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }