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

Go to the SVN repository for this file.

1 #ifndef GUI_SEQ_TREE_DEMO___SEQ_TREE_DEMO_DLG_HPP
2 #define GUI_SEQ_TREE_DEMO___SEQ_TREE_DEMO_DLG_HPP
3 
4 /* $Id: seq_tree_demo_dlg.hpp 46943 2022-02-16 19:45:17Z asztalos $
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:
30  */
31 
32 #include <corelib/ncbistd.hpp>
33 
34 #include <wx/dialog.h>
35 
36 /*!
37  * Includes
38  */
39 
40 ////@begin includes
41 ////@end includes
42 
43 /*!
44  * Forward declarations
45  */
46 
48 
49 class CSeqDesktopPanel;
50 
51 
52 /*!
53  * Control identifiers
54  */
55 
56 ////@begin control identifiers
57 #define SYMBOL_CSEQTREEDEMODLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
58 #define SYMBOL_CSEQTREEDEMODLG_TITLE _("SeqTreeDemoDlg")
59 #define SYMBOL_CSEQTREEDEMODLG_IDNAME ID_CSEQTREEDEMODLG
60 #define SYMBOL_CSEQTREEDEMODLG_SIZE wxSize(400, 300)
61 #define SYMBOL_CSEQTREEDEMODLG_POSITION wxDefaultPosition
62 ////@end control identifiers
63 
64 
65 /*!
66  * CSeqTreeDemoDlg class declaration
67  */
68 
69 class CSeqTreeDemoDlg: public wxDialog
70 {
71  DECLARE_DYNAMIC_CLASS( CSeqTreeDemoDlg )
72  DECLARE_EVENT_TABLE()
73 
74 public:
75  /// Constructors
77  CSeqTreeDemoDlg( wxWindow* parent, wxWindowID id = SYMBOL_CSEQTREEDEMODLG_IDNAME, const wxString& caption = SYMBOL_CSEQTREEDEMODLG_TITLE, const wxPoint& pos = SYMBOL_CSEQTREEDEMODLG_POSITION, const wxSize& size = SYMBOL_CSEQTREEDEMODLG_SIZE, long style = SYMBOL_CSEQTREEDEMODLG_STYLE );
78 
79  /// Creation
80  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CSEQTREEDEMODLG_IDNAME, const wxString& caption = SYMBOL_CSEQTREEDEMODLG_TITLE, const wxPoint& pos = SYMBOL_CSEQTREEDEMODLG_POSITION, const wxSize& size = SYMBOL_CSEQTREEDEMODLG_SIZE, long style = SYMBOL_CSEQTREEDEMODLG_STYLE );
81 
82  /// Destructor
84 
85  /// Initialises member variables
86  void Init();
87 
88  /// Creates the controls and sizers
89  void CreateControls();
90 
91 ////@begin CSeqTreeDemoDlg event handler declarations
92 
93  /// wxEVT_CLOSE_WINDOW event handler for ID_CSEQTREEDEMODLG
94  void OnCloseWindow( wxCloseEvent& event );
95 
96  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
97  void OnCancelClick( wxCommandEvent& event );
98 
99 ////@end CSeqTreeDemoDlg event handler declarations
100 
101 ////@begin CSeqTreeDemoDlg member function declarations
102 
103  /// Retrieves bitmap resources
104  wxBitmap GetBitmapResource( const wxString& name );
105 
106  /// Retrieves icon resources
107  wxIcon GetIconResource( const wxString& name );
108 ////@end CSeqTreeDemoDlg member function declarations
109 
110  /// Should we show tooltips?
111  static bool ShowToolTips();
112 
113 ////@begin CSeqTreeDemoDlg member variables
115  /// Control identifiers
116  enum {
118  ID_FOREIGN = 10001
119  };
120 ////@end CSeqTreeDemoDlg member variables
121 };
122 
124 
125 #endif // GUI_SEQ_TREE_DEMO___SEQ_TREE_DEMO_DLG_HPP
void OnCancelClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
CSeqTreeDemoDlg()
Constructors.
bool Create(wxWindow *parent, wxWindowID id=ID_CSEQTREEDEMODLG, const wxString &caption=_("SeqTreeDemoDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void OnCloseWindow(wxCloseEvent &event)
wxEVT_CLOSE_WINDOW event handler for ID_CSEQTREEDEMODLG
static bool ShowToolTips()
Should we show tooltips?
~CSeqTreeDemoDlg()
Destructor.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CSeqDesktopPanel * m_Widget
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
#define SYMBOL_CSEQTREEDEMODLG_STYLE
#define SYMBOL_CSEQTREEDEMODLG_TITLE
#define SYMBOL_CSEQTREEDEMODLG_IDNAME
#define SYMBOL_CSEQTREEDEMODLG_POSITION
#define SYMBOL_CSEQTREEDEMODLG_SIZE
Modified on Mon May 20 05:04:24 2024 by modify_doxy.py rev. 669887