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

Go to the SVN repository for this file.

1 #ifndef _SEQ_TEXT_DEMO_DLG_H_
2 #define _SEQ_TEXT_DEMO_DLG_H_
3 
4 /* $Id: seq_text_demo_dlg.hpp 25551 2012-04-06 15:55:27Z 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: Colleen Bollin, based on a file by Andrey Yazhuk
30  *
31  * File Description:
32  *
33  */
34 
35 
36 #include <corelib/ncbistd.hpp>
37 
38 
41 
42 #include <objmgr/scope.hpp>
44 
45 ////@begin includes
46 #include <wx/dialog.h>
47 ////@end includes
48 
49 class wxStaticLine;
50 class wxTextCtrl;
51 
52 
55 
56 ////@begin forward declarations
57 class CSeqTextWidget;
58 ////@end forward declarations
59 
60 /*!
61  * Control identifiers
62  */
63 
64 ////@begin control identifiers
65 #define ID_SEQ_TEXT_DEMO_DLG 10000
66 #define ID_WIDGET 10001
67 #define ID_ACC_TEXT 10004
68 #define ID_ACC 10005
69 #define ID_FILE_TEXT 10006
70 #define ID_FILE 10003
71 #define SYMBOL_CSEQTEXTDEMODLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
72 #define SYMBOL_CSEQTEXTDEMODLG_TITLE _("CSeqTextDemoDlg")
73 #define SYMBOL_CSEQTEXTDEMODLG_IDNAME ID_SEQ_TEXT_DEMO_DLG
74 #define SYMBOL_CSEQTEXTDEMODLG_SIZE wxSize(600, 600)
75 #define SYMBOL_CSEQTEXTDEMODLG_POSITION wxDefaultPosition
76 ////@end control identifiers
77 
78 /*!
79  * Compatibility
80  */
81 #ifndef wxCLOSE_BOX
82 #define wxCLOSE_BOX 0x1000
83 #endif
84 
85 
86 class CSeqTextDemoDlg: public wxDialog
87 {
88  DECLARE_DYNAMIC_CLASS( CSeqTextDemoDlg )
89  DECLARE_EVENT_TABLE()
90 
91 public:
92  /// Constructors
94  CSeqTextDemoDlg( wxWindow* parent, wxWindowID id = SYMBOL_CSEQTEXTDEMODLG_IDNAME, const wxString& caption = SYMBOL_CSEQTEXTDEMODLG_TITLE, const wxPoint& pos = SYMBOL_CSEQTEXTDEMODLG_POSITION, const wxSize& size = SYMBOL_CSEQTEXTDEMODLG_SIZE, long style = SYMBOL_CSEQTEXTDEMODLG_STYLE );
95 
96  /// Creation
97  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CSEQTEXTDEMODLG_IDNAME, const wxString& caption = SYMBOL_CSEQTEXTDEMODLG_TITLE, const wxPoint& pos = SYMBOL_CSEQTEXTDEMODLG_POSITION, const wxSize& size = SYMBOL_CSEQTEXTDEMODLG_SIZE, long style = SYMBOL_CSEQTEXTDEMODLG_STYLE );
98 
99  /// Destructor
101 
102  /// Initialises member variables
103  void Init();
104 
105  /// Creates the controls and sizers
106  void CreateControls();
107 
108 ////@begin CHitMatrixDemoDlg event handler declarations
109 
110  /// wxEVT_CLOSE_WINDOW event handler for ID_HIT_MATRIX_DEMO_DLG
111  void OnCloseWindow( wxCloseEvent& event );
112 
113  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ACC
114  void OnAccClick( wxCommandEvent& event );
115 
116  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FILE
117  void OnFileClick( wxCommandEvent& event );
118 
119  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
120  void OnCloseClick( wxCommandEvent& event );
121 
122 ////@end CHitMatrixDemoDlg event handler declarations
123 
124 ////@begin CHitMatrixDemoDlg member function declarations
125 
126  /// Retrieves bitmap resources
127  wxBitmap GetBitmapResource( const wxString& name );
128 
129  /// Retrieves icon resources
130  wxIcon GetIconResource( const wxString& name );
131 ////@end CHitMatrixDemoDlg member function declarations
132 
133  /// Should we show tooltips?
134  static bool ShowToolTips();
135 
136 ////@begin CSeqTextDemoDlg member variables
138  wxTextCtrl* m_AccInput;
139  wxTextCtrl* m_FileInput;
140 private:
144 
145 ////@end CSeqTextDemoDlg member variables
146 };
147 
149 
150 #endif
151  // _SEQ_TEXT_DEMO_DLG_H_
void OnAccClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ACC
wxTextCtrl * m_FileInput
CSeqTextWidget * m_SeqTextWidget
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("CSeqTextDemoDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|0x1000)
Creation.
CRef< CObjectManager > m_ObjMgr
wxTextCtrl * m_AccInput
static bool ShowToolTips()
Should we show tooltips?
void Init()
Initialises member variables.
void OnFileClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FILE
CRef< CScope > m_Scope
CRef< CSeqTextDataSource > m_DataSource
void OnCloseWindow(wxCloseEvent &event)
wxEVT_CLOSE_WINDOW event handler for ID_HIT_MATRIX_DEMO_DLG
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CSeqTextDemoDlg()
Constructors.
void OnCloseClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
void CreateControls()
Creates the controls and sizers.
~CSeqTextDemoDlg()
Destructor.
class CSeqTextWidget
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
const struct ncbi::grid::netcache::search::fields::SIZE size
The Object manager core.
#define SYMBOL_CSEQTEXTDEMODLG_STYLE
#define SYMBOL_CSEQTEXTDEMODLG_IDNAME
USING_SCOPE(ncbi::objects)
#define SYMBOL_CSEQTEXTDEMODLG_POSITION
#define SYMBOL_CSEQTEXTDEMODLG_SIZE
#define SYMBOL_CSEQTEXTDEMODLG_TITLE
Modified on Fri Sep 20 14:58:23 2024 by modify_doxy.py rev. 669887