plugin_mgr_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: plugin_mgr_dlg_.cpp,v $
- * PRODUCTION Revision 1000.2 2004/06/01 20:48:40 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.8
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: plugin_mgr_dlg_.cpp,v 1000.2 2004/06/01 20:48:40 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CPluginMgrDlg::cb_Add_i(Fl_Button*, void*) {
- x_OnAddPath();
- }
- void CPluginMgrDlg::cb_Add(Fl_Button* o, void* v) {
- ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Add_i(o,v);
- }
- inline void CPluginMgrDlg::cb_Remove_i(Fl_Button*, void*) {
- x_OnRemovePath();
- }
- void CPluginMgrDlg::cb_Remove(Fl_Button* o, void* v) {
- ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Remove_i(o,v);
- }
- inline void CPluginMgrDlg::cb_Rescan_i(Fl_Button*, void*) {
- x_OnRescanPlugins();
- }
- void CPluginMgrDlg::cb_Rescan(Fl_Button* o, void* v) {
- ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Rescan_i(o,v);
- }
- inline void CPluginMgrDlg::cb_8_i(Fl_Button*, void*) {
- x_OnPathUp();
- }
- void CPluginMgrDlg::cb_8(Fl_Button* o, void* v) {
- ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_8_i(o,v);
- }
- inline void CPluginMgrDlg::cb_2_i(Fl_Button*, void*) {
- x_OnPathDown();
- }
- void CPluginMgrDlg::cb_2(Fl_Button* o, void* v) {
- ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_2_i(o,v);
- }
- inline void CPluginMgrDlg::cb_Disable_i(Fl_Button*, void*) {
- x_OnToggleEnable();
- }
- void CPluginMgrDlg::cb_Disable(Fl_Button* o, void* v) {
- ((CPluginMgrDlg*)(o->parent()->parent()->parent()->user_data()))->cb_Disable_i(o,v);
- }
- Fl_Double_Window* CPluginMgrDlg::x_CreateWindow() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(470, 437, "Manage Plugins");
- w = o;
- o->user_data((void*)(this));
- { Fl_Group* o = new Fl_Group(5, 5, 460, 175, "Plugin Search Paths");
- o->box(FL_ENGRAVED_FRAME);
- o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
- { Fl_Browser* o = m_PathsList = new Fl_Browser(15, 30, 440, 110);
- o->type(3);
- o->labelsize(12);
- o->textsize(12);
- }
- { Fl_Group* o = new Fl_Group(15, 145, 440, 25);
- { Fl_Button* o = new Fl_Button(220, 145, 75, 25, "Add");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Add);
- }
- { Fl_Button* o = new Fl_Button(300, 145, 75, 25, "Remove");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Remove);
- }
- { Fl_Button* o = new Fl_Button(380, 145, 75, 25, "Rescan");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Rescan);
- }
- { Fl_Button* o = new Fl_Button(15, 145, 25, 25, "@8>");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_8);
- }
- { Fl_Button* o = new Fl_Button(40, 145, 25, 25, "@2>");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_2);
- }
- { Fl_Group* o = new Fl_Group(65, 145, 155, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 190, 460, 240, "Plugins");
- o->box(FL_ENGRAVED_FRAME);
- o->labelsize(12);
- o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
- { Fl_Group* o = new Fl_Group(15, 220, 440, 170);
- o->box(FL_FLAT_BOX);
- o->color(FL_BACKGROUND2_COLOR);
- { CPluginTable* o = m_PluginTable = new CPluginTable(15, 220, 440, 170);
- o->box(FL_THIN_DOWN_FRAME);
- o->color(FL_BACKGROUND2_COLOR);
- o->selection_color((Fl_Color)177);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(12);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_CENTER);
- o->when(FL_WHEN_RELEASE);
- o->end();
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(20, 400, 440, 25);
- { Fl_Button* o = new Fl_Button(335, 400, 125, 25, "Disable/Enable");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Disable);
- }
- { Fl_Group* o = new Fl_Group(30, 400, 305, 25);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- return w;
- }