NCBI C++ ToolKit
demo_align_table_frame.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /////////////////////////////////////////////////////////////////////////////
2 // Name: demo_align_table_frame.hpp
3 // Purpose:
4 // Author: Yury Voronov
5 // Modified by:
6 // Created: 17/01/2008 21:42:34
7 // RCS-ID:
8 // Copyright:
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef _DEMO_ALIGN_TABLE_FRAME_H_
13 #define _DEMO_ALIGN_TABLE_FRAME_H_
14 
15 /*!
16  * Includes
17  */
18 
19 ////@begin includes
20 #include "wx/frame.h"
21 #include "wx/listctrl.h"
22 ////@end includes
23 
24 #include <corelib/ncbiobj.hpp>
26 #include <objmgr/scope.hpp>
27 
28 /*!
29  * Forward declarations
30  */
31 
32 ////@begin forward declarations
33 class wxListCtrl;
34 ////@end forward declarations
35 
36 /*!
37  * Control identifiers
38  */
39 
40 ////@begin control identifiers
41 #define ID_CWXDEMOALIGNTABLEFRAME 10000
42 #define wxID_LOAD 10002
43 #define ID_SEGMENTS 10005
44 #define ID_SPANS 10006
45 #define ID_ALIGNTABLE 10001
46 #define SYMBOL_CWXDEMOALIGNTABLEFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
47 #define SYMBOL_CWXDEMOALIGNTABLEFRAME_TITLE _("Align Table Demo")
48 #define SYMBOL_CWXDEMOALIGNTABLEFRAME_IDNAME ID_CWXDEMOALIGNTABLEFRAME
49 #define SYMBOL_CWXDEMOALIGNTABLEFRAME_SIZE wxSize(400, 300)
50 #define SYMBOL_CWXDEMOALIGNTABLEFRAME_POSITION wxDefaultPosition
51 ////@end control identifiers
52 
55 
56 /*!
57  * CwxDemoAlignTableFrame class declaration
58  */
59 
60 class CwxDemoAlignTableFrame: public wxFrame
61 {
62  DECLARE_CLASS( CwxDemoAlignTableFrame )
63  DECLARE_EVENT_TABLE()
64 
65 public:
66  /// Constructors
69 
70  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CWXDEMOALIGNTABLEFRAME_IDNAME, const wxString& caption = SYMBOL_CWXDEMOALIGNTABLEFRAME_TITLE, const wxPoint& pos = SYMBOL_CWXDEMOALIGNTABLEFRAME_POSITION, const wxSize& size = SYMBOL_CWXDEMOALIGNTABLEFRAME_SIZE, long style = SYMBOL_CWXDEMOALIGNTABLEFRAME_STYLE );
71 
72  /// Destructor
74 
75  /// Initialises member variables
76  void Init();
77 
78  /// Creates the controls and sizers
79  void CreateControls();
80 
81 ////@begin CwxDemoAlignTableFrame event handler declarations
82 
83  /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_OPEN
84  void OnOpenClick( wxCommandEvent& event );
85 
86  /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_LOAD
87  void OnLoadClick( wxCommandEvent& event );
88 
89  /// wxEVT_COMMAND_MENU_SELECTED event handler for ID_SEGMENTS
90  void OnSegmentsClick( wxCommandEvent& event );
91 
92  /// wxEVT_COMMAND_MENU_SELECTED event handler for ID_SPANS
93  void OnSpansClick( wxCommandEvent& event );
94 
95 ////@end CwxDemoAlignTableFrame event handler declarations
96 
97 ////@begin CwxDemoAlignTableFrame member function declarations
98 
99  wxString GetAccession() const { return m_Accession ; }
100  void SetAccession(wxString value) { m_Accession = value ; }
101 
102  /// Retrieves bitmap resources
103  wxBitmap GetBitmapResource( const wxString& name );
104 
105  /// Retrieves icon resources
106  wxIcon GetIconResource( const wxString& name );
107 ////@end CwxDemoAlignTableFrame member function declarations
108 
109  bool LoadAccession( const wxString& anAccName );
110  bool LoadFile( const wxString& aFileName );
111 
112  void InitData();
113 
114  /// Should we show tooltips?
115  static bool ShowToolTips();
116 
117 ////@begin CwxDemoAlignTableFrame member variables
118  wxListCtrl* m_AlignTableCtrl;
119 private:
120  wxString m_Accession;
125 ////@end CwxDemoAlignTableFrame member variables
126 };
127 
129 
130 #endif // _DEMO_ALIGN_TABLE_FRAME_H_
void OnOpenClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for wxID_OPEN
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnSegmentsClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_SEGMENTS
static bool ShowToolTips()
Should we show tooltips?
void OnLoadClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for wxID_LOAD
void SetAccession(wxString value)
CRef< objects::CObjectManager > m_ObjectManager
void Init()
Initialises member variables.
bool LoadAccession(const wxString &anAccName)
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Align Table Demo"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnSpansClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_SPANS
void CreateControls()
Creates the controls and sizers.
bool LoadFile(const wxString &aFileName)
#define SYMBOL_CWXDEMOALIGNTABLEFRAME_TITLE
#define SYMBOL_CWXDEMOALIGNTABLEFRAME_STYLE
USING_SCOPE(objects)
#define SYMBOL_CWXDEMOALIGNTABLEFRAME_POSITION
#define SYMBOL_CWXDEMOALIGNTABLEFRAME_SIZE
#define SYMBOL_CWXDEMOALIGNTABLEFRAME_IDNAME
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
The Object manager core.
Modified on Mon May 20 05:04:16 2024 by modify_doxy.py rev. 669887