filter_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:5k
- /*
- * ===========================================================================
- * PRODUCTION $Log: filter_dlg_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:00:49 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.8
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: filter_dlg_.cpp,v 1000.1 2004/06/01 21:00:49 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CFilterDlg::cb_m_FilterList_i(Fl_Browser*, void*) {
- x_UpdateSelected();
- }
- void CFilterDlg::cb_m_FilterList(Fl_Browser* o, void* v) {
- ((CFilterDlg*)(o->parent()->parent()->user_data()))->cb_m_FilterList_i(o,v);
- }
- inline void CFilterDlg::cb_Enabled_i(Fl_Light_Button*, void*) {
- x_OnEnableCurrent();
- }
- void CFilterDlg::cb_Enabled(Fl_Light_Button* o, void* v) {
- ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Enabled_i(o,v);
- }
- inline void CFilterDlg::cb_Add_i(Fl_Button*, void*) {
- x_OnAdd();
- }
- void CFilterDlg::cb_Add(Fl_Button* o, void* v) {
- ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Add_i(o,v);
- }
- inline void CFilterDlg::cb_Delete_i(Fl_Button*, void*) {
- x_OnDeleteCurrent();
- }
- void CFilterDlg::cb_Delete(Fl_Button* o, void* v) {
- ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Delete_i(o,v);
- }
- inline void CFilterDlg::cb_m_Column_i(Fl_Choice*, void*) {
- x_OnChangeColumn();
- }
- void CFilterDlg::cb_m_Column(Fl_Choice* o, void* v) {
- ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_Column_i(o,v);
- }
- inline void CFilterDlg::cb_m_Mode_i(Fl_Choice*, void*) {
- x_OnChangeMode();
- }
- void CFilterDlg::cb_m_Mode(Fl_Choice* o, void* v) {
- ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_Mode_i(o,v);
- }
- inline void CFilterDlg::cb_m_FilterName_i(Fl_Input*, void*) {
- x_OnChangeName();
- }
- void CFilterDlg::cb_m_FilterName(Fl_Input* o, void* v) {
- ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_FilterName_i(o,v);
- }
- inline void CFilterDlg::cb_m_FilterData_i(Fl_Input*, void*) {
- x_OnChangeData();
- }
- void CFilterDlg::cb_m_FilterData(Fl_Input* o, void* v) {
- ((CFilterDlg*)(o->parent()->parent()->parent()->user_data()))->cb_m_FilterData_i(o,v);
- }
- inline void CFilterDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CFilterDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CFilterDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- Fl_Double_Window* CFilterDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(405, 440, "Filter Manager");
- w = o;
- o->user_data((void*)(this));
- { Fl_Group* o = new Fl_Group(5, 5, 395, 215, "Active Filters");
- o->box(FL_ENGRAVED_FRAME);
- o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
- { Fl_Browser* o = m_FilterList = new Fl_Browser(15, 35, 375, 145);
- o->type(2);
- o->callback((Fl_Callback*)cb_m_FilterList);
- o->when(3);
- Fl_Group::current()->resizable(o);
- }
- { Fl_Group* o = new Fl_Group(15, 185, 375, 25);
- { Fl_Light_Button* o = new Fl_Light_Button(155, 185, 75, 25, "Enabled");
- o->callback((Fl_Callback*)cb_Enabled);
- }
- { Fl_Button* o = new Fl_Button(235, 185, 75, 25, "Add");
- o->callback((Fl_Callback*)cb_Add);
- }
- { Fl_Button* o = new Fl_Button(315, 185, 75, 25, "Delete");
- o->callback((Fl_Callback*)cb_Delete);
- }
- { Fl_Group* o = new Fl_Group(15, 185, 140, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 225, 395, 180, "Current Filter");
- o->box(FL_ENGRAVED_FRAME);
- o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
- { Fl_Group* o = new Fl_Group(15, 255, 375, 145);
- { Fl_Choice* o = m_Column = new Fl_Choice(15, 295, 185, 25);
- o->down_box(FL_BORDER_BOX);
- o->callback((Fl_Callback*)cb_m_Column);
- o->when(FL_WHEN_CHANGED);
- }
- { Fl_Choice* o = m_Mode = new Fl_Choice(205, 295, 185, 25);
- o->down_box(FL_BORDER_BOX);
- o->callback((Fl_Callback*)cb_m_Mode);
- o->when(FL_WHEN_CHANGED);
- }
- { Fl_Input* o = m_FilterName = new Fl_Input(100, 255, 290, 30, "Filter Name:");
- o->callback((Fl_Callback*)cb_m_FilterName);
- o->when(FL_WHEN_CHANGED);
- }
- { Fl_Input* o = m_FilterData = new Fl_Input(15, 335, 375, 60);
- o->type(4);
- o->callback((Fl_Callback*)cb_m_FilterData);
- o->when(FL_WHEN_CHANGED);
- }
- o->end();
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(15, 405, 375, 30);
- { Fl_Return_Button* o = new Fl_Return_Button(315, 410, 75, 25, "OK");
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Group* o = new Fl_Group(15, 405, 300, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }