view_graphic_.hpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: view_graphic_.hpp,v $
- * PRODUCTION Revision 1000.5 2004/06/01 20:59:50 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.40
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- #ifndef view_graphic__hpp
- #define view_graphic__hpp
- #include <FL/Fl.H>
- /* $Id: view_graphic_.hpp,v 1000.5 2004/06/01 20:59:50 gouriano Exp $ */
- #include <FL/Fl_Menu_Bar.H>
- class CViewGraphic : public CView, public CCommandTarget {
- public:
- CViewGraphic(const CPluginMessage& args, const string& pool_name);
- static void GetInfo(CPluginInfo& info);
- void OnDocumentChanged();
- void OnSelectionChanged(const CSelectionBuffer& buf);
- void OnVisibleRangeChanged(const CSeq_loc& loc);
- const string& GetTitle() const;
- void SetFeatureFocus(const CSeq_feat& feat);
- void SetVisibleRange(const objects::CSeq_loc& loc);
- private:
- auto_ptr<CViewMenuMgr> m_ViewMenuMgr;
- auto_ptr<CAlgoMenuMgr> m_ToolMenuMgr;
- auto_ptr<CViewMenuMgr> m_PopupViewMenuMgr;
- auto_ptr<CAlgoMenuMgr> m_PopupToolMenuMgr;
- CConstRef<CSeq_id> m_SeqId;
- CRef<CSeqGraphicDataSource> m_DataSource;
- CRef<CSeqGraphicConfig> m_ConfigSettings;
- void x_Print(const CPrintOptions& opts);
- Fl_Window* x_CreateWindow();
- inline void cb_Graphical_i(Fl_Window*, void*);
- static void cb_Graphical(Fl_Window*, void*);
- Fl_Menu_Bar *m_MenuBar;
- static Fl_Menu_Item menu_m_MenuBar[];
- inline void cb_Print_i(Fl_Menu_*, void*);
- static void cb_Print(Fl_Menu_*, void*);
- inline void cb_Zoom_i(Fl_Menu_*, void*);
- static void cb_Zoom(Fl_Menu_*, void*);
- inline void cb_Fit_i(Fl_Menu_*, void*);
- static void cb_Fit(Fl_Menu_*, void*);
- inline void cb_Preferences_i(Fl_Menu_*, void*);
- static void cb_Preferences(Fl_Menu_*, void*);
- CMenuBar *m_ToolBar;
- CSeqGraphicWidget *m_SeqWidget;
- inline void cb_m_SeqWidget_i(CSeqGraphicWidget*, void*);
- static void cb_m_SeqWidget(CSeqGraphicWidget*, void*);
- void x_PanelCallback();
- void x_UpdateDynMenus();
- void x_OnFitToWindow();
- void x_OnZoomToSequence();
- void x_OnPreferences();
- void x_SetConfig(CRef<CSeqGraphicConfig> config);
- void x_OnPrevExon();
- void x_OnNextExon();
- DECLARE_CMD_MAP();
- };
- #endif