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

Go to the SVN repository for this file.

1 /* $Id: ok_cancel_panel.hpp 38626 2017-06-05 13:53:11Z asztalos $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Colleen Bollin
27  */
28 #ifndef _OKCANCELPANEL_H_
29 #define _OKCANCELPANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
32 
33 /*!
34  * Includes
35  */
36 
37 ////@begin includes
38 ////@end includes
39 
40 #include <wx/checkbox.h>
41 #include <wx/panel.h>
42 
43 /*!
44  * Forward declarations
45  */
46 
47 ////@begin forward declarations
48 ////@end forward declarations
49 
51 
52 /*!
53  * Control identifiers
54  */
55 
56 ////@begin control identifiers
57 #define SYMBOL_COKCANCELPANEL_STYLE wxTAB_TRAVERSAL
58 #define SYMBOL_COKCANCELPANEL_TITLE _("OkCancelPanel")
59 #define SYMBOL_COKCANCELPANEL_IDNAME ID_COKCANCELPANEL
60 #define SYMBOL_COKCANCELPANEL_SIZE wxSize(400, 300)
61 #define SYMBOL_COKCANCELPANEL_POSITION wxDefaultPosition
62 ////@end control identifiers
63 
64 
65 /*!
66  * COkCancelPanel class declaration
67  */
68 
69 class COkCancelPanel: public wxPanel
70 {
71  DECLARE_DYNAMIC_CLASS( COkCancelPanel )
72  DECLARE_EVENT_TABLE()
73 
74 public:
75  /// Constructors
77  COkCancelPanel( wxWindow* parent, wxWindowID id = SYMBOL_COKCANCELPANEL_IDNAME, const wxPoint& pos = SYMBOL_COKCANCELPANEL_POSITION, const wxSize& size = SYMBOL_COKCANCELPANEL_SIZE, long style = SYMBOL_COKCANCELPANEL_STYLE );
78 
79  /// Creation
80  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_COKCANCELPANEL_IDNAME, const wxPoint& pos = SYMBOL_COKCANCELPANEL_POSITION, const wxSize& size = SYMBOL_COKCANCELPANEL_SIZE, long style = SYMBOL_COKCANCELPANEL_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 COkCancelPanel event handler declarations
92 
93  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ACCEPT_BTN
94  void OnAcceptBtnClick( wxCommandEvent& event );
95 
96  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
97  void OnClickCancel( wxCommandEvent& event );
98 
99 ////@end COkCancelPanel event handler declarations
100 
101 ////@begin COkCancelPanel 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 COkCancelPanel member function declarations
109 
110  /// Should we show tooltips?
111  static bool ShowToolTips();
112  bool GetLeaveUp(void) {return m_LeaveUp->GetValue();}
113 
114  /// Control identifiers
115  enum {
116  ID_COKCANCELPANEL = wxID_HIGHEST + 1,
119  };
120 
121 private:
122  void x_ReportUsage(void);
123 
124 ////@begin COkCancelPanel member variables
125  wxCheckBox* m_LeaveUp;
126 
127 ////@end COkCancelPanel member variables
128 };
129 
131 
132 #endif
133  // _OKCANCELPANEL_H_
static bool ShowToolTips()
Should we show tooltips?
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=ID_COKCANCELPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void CreateControls()
Creates the controls and sizers.
void x_ReportUsage(void)
~COkCancelPanel()
Destructor.
COkCancelPanel()
Constructors.
wxCheckBox * m_LeaveUp
void Init()
Initialises member variables.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
bool GetLeaveUp(void)
void OnAcceptBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ACCEPT_BTN
void OnClickCancel(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
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_COKCANCELPANEL_POSITION
#define SYMBOL_COKCANCELPANEL_SIZE
#define SYMBOL_COKCANCELPANEL_IDNAME
#define SYMBOL_COKCANCELPANEL_STYLE
Modified on Fri Sep 20 14:57:01 2024 by modify_doxy.py rev. 669887