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

Go to the SVN repository for this file.

1 #ifndef _HIT_MATRIX_DEMO_DLG_H_
2 #define _HIT_MATRIX_DEMO_DLG_H_
3 
4 /* $Id: hit_matrix_demo_dlg.hpp 25591 2012-04-12 13:46:20Z katargir $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Andrey Yazhuk
30  *
31  * File Description:
32  *
33  */
34 
35 
36 #include <corelib/ncbistd.hpp>
37 
41 
42 #include <objmgr/scope.hpp>
44 
45 #include <wx/dialog.h>
46 
47 ////@begin includes
48 #include "wx/statline.h"
49 ////@end includes
50 
51 class wxStaticLine;
52 class wxTextCtrl;
53 
54 
57 
58 ////@begin forward declarations
59 class CHitMatrixWidget;
60 ////@end forward declarations
61 
62 /*!
63  * Control identifiers
64  */
65 
66 ////@begin control identifiers
67 #define ID_HIT_MATRIX_DEMO_DLG 10000
68 #define ID_WIDGET 10001
69 #define ID_ACC_TEXT 10004
70 #define ID_ACC 10005
71 #define ID_FILE_TEXT 10006
72 #define ID_FILE 10003
73 #define SYMBOL_CHITMATRIXDEMODLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
74 #define SYMBOL_CHITMATRIXDEMODLG_TITLE _("CHitMatrixDemoDlg")
75 #define SYMBOL_CHITMATRIXDEMODLG_IDNAME ID_HIT_MATRIX_DEMO_DLG
76 #define SYMBOL_CHITMATRIXDEMODLG_SIZE wxSize(600, 600)
77 #define SYMBOL_CHITMATRIXDEMODLG_POSITION wxDefaultPosition
78 ////@end control identifiers
79 
80 /*!
81  * Compatibility
82  */
83 #ifndef wxCLOSE_BOX
84 #define wxCLOSE_BOX 0x1000
85 #endif
86 
87 
88 class CHitMatrixDemoDlg: public wxDialog
89 {
90  DECLARE_DYNAMIC_CLASS( CHitMatrixDemoDlg )
91  DECLARE_EVENT_TABLE()
92 
93 public:
94  /// Constructors
96  CHitMatrixDemoDlg( wxWindow* parent, wxWindowID id = SYMBOL_CHITMATRIXDEMODLG_IDNAME, const wxString& caption = SYMBOL_CHITMATRIXDEMODLG_TITLE, const wxPoint& pos = SYMBOL_CHITMATRIXDEMODLG_POSITION, const wxSize& size = SYMBOL_CHITMATRIXDEMODLG_SIZE, long style = SYMBOL_CHITMATRIXDEMODLG_STYLE );
97 
98  /// Creation
99  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CHITMATRIXDEMODLG_IDNAME, const wxString& caption = SYMBOL_CHITMATRIXDEMODLG_TITLE, const wxPoint& pos = SYMBOL_CHITMATRIXDEMODLG_POSITION, const wxSize& size = SYMBOL_CHITMATRIXDEMODLG_SIZE, long style = SYMBOL_CHITMATRIXDEMODLG_STYLE );
100 
101  /// Destructor
103 
104  /// Initialises member variables
105  void Init();
106 
107  /// Creates the controls and sizers
108  void CreateControls();
109 
110 ////@begin CHitMatrixDemoDlg event handler declarations
111 
112  void OnCloseWindow( wxCloseEvent& event );
113 
114  void OnAccClick( wxCommandEvent& event );
115 
116  void OnFileClick( wxCommandEvent& event );
117 
118  void OnCloseClick( wxCommandEvent& event );
119 
120 ////@end CHitMatrixDemoDlg event handler declarations
121 
122 ////@begin CHitMatrixDemoDlg member function declarations
123 
124  wxBitmap GetBitmapResource( const wxString& name );
125 
126  wxIcon GetIconResource( const wxString& name );
127 ////@end CHitMatrixDemoDlg member function declarations
128 
129  /// Should we show tooltips?
130  static bool ShowToolTips();
131 
132 ////@begin CHitMatrixDemoDlg member variables
134  wxTextCtrl* m_AccInput;
135  wxTextCtrl* m_FileInput;
137 private:
141 ////@end CHitMatrixDemoDlg member variables
142 };
143 
145 
146 #endif
147  // _HIT_MATRIX_DEMO_DLG_H_
CHitMatrixDSBuilder.
CHitMatrixDemoDlg()
Constructors.
void OnCloseClick(wxCommandEvent &event)
void OnFileClick(wxCommandEvent &event)
CHitMatrixWidget * m_MatrixWidget
wxBitmap GetBitmapResource(const wxString &name)
CIRef< IHitMatrixDataSource > m_DataSource
void OnAccClick(wxCommandEvent &event)
void OnCloseWindow(wxCloseEvent &event)
~CHitMatrixDemoDlg()
Destructor.
static bool ShowToolTips()
Should we show tooltips?
CHitMatrixDSBuilder m_Builder
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("CHitMatrixDemoDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|0x1000)
Creation.
CRef< CObjectManager > m_ObjMgr
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
wxIcon GetIconResource(const wxString &name)
class CHitMatrixWidget
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define SYMBOL_CHITMATRIXDEMODLG_SIZE
USING_SCOPE(ncbi::objects)
#define SYMBOL_CHITMATRIXDEMODLG_TITLE
#define SYMBOL_CHITMATRIXDEMODLG_POSITION
#define SYMBOL_CHITMATRIXDEMODLG_IDNAME
#define SYMBOL_CHITMATRIXDEMODLG_STYLE
const struct ncbi::grid::netcache::search::fields::SIZE size
The Object manager core.
Modified on Sun May 19 04:47:48 2024 by modify_doxy.py rev. 669887