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

Go to the SVN repository for this file.

1 /////////////////////////////////////////////////////////////////////////////
2 // Name: pattern_dialog.hpp
3 // Purpose:
4 // Author:
5 // Modified by:
6 // Created: 10/01/04 10:47:06
7 // RCS-ID: $Id: pattern_dialog.hpp 50552 2011-07-22 14:10:51Z lanczyck $
8 // Copyright:
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef _PATTERN_DIALOG_H_
13 #define _PATTERN_DIALOG_H_
14 
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "pattern_dialog.cpp"
17 #endif
18 
19 /*!
20  * Includes
21  */
22 
23 ////@begin includes
24 #include "wx/statline.h"
25 ////@end includes
26 
27 /*!
28  * Forward declarations
29  */
30 
31 ////@begin forward declarations
32 ////@end forward declarations
33 
34 /*!
35  * Control identifiers
36  */
37 
38 ////@begin control identifiers
39 #define ID_DIALOG 10000
40 #define SYMBOL_PATTERNDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX
41 #define SYMBOL_PATTERNDIALOG_TITLE _("Pattern Search")
42 #define SYMBOL_PATTERNDIALOG_IDNAME ID_DIALOG
43 #define SYMBOL_PATTERNDIALOG_SIZE wxSize(400, 300)
44 #define SYMBOL_PATTERNDIALOG_POSITION wxDefaultPosition
45 #define ID_T_PATTERN 10001
46 #define ID_RADIOBOX 10002
47 #define ID_OK 10003
48 #define ID_CANCEL 10004
49 ////@end control identifiers
50 
51 /*!
52  * Compatibility
53  */
54 
55 #ifndef wxCLOSE_BOX
56 #define wxCLOSE_BOX 0x1000
57 #endif
58 #ifndef wxFIXED_MINSIZE
59 #define wxFIXED_MINSIZE 0
60 #endif
61 
62 /*!
63  * PatternDialog class declaration
64  */
65 
66 class PatternDialog: public wxDialog
67 {
68  DECLARE_DYNAMIC_CLASS( PatternDialog )
69  DECLARE_EVENT_TABLE()
70 
71 public:
72  /// Constructors
73  PatternDialog( );
74  PatternDialog( wxWindow* parent, wxWindowID id = SYMBOL_PATTERNDIALOG_IDNAME, const wxString& caption = SYMBOL_PATTERNDIALOG_TITLE, const wxPoint& pos = SYMBOL_PATTERNDIALOG_POSITION, const wxSize& size = SYMBOL_PATTERNDIALOG_SIZE, long style = SYMBOL_PATTERNDIALOG_STYLE );
75 
76  /// Creation
77  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_PATTERNDIALOG_IDNAME, const wxString& caption = SYMBOL_PATTERNDIALOG_TITLE, const wxPoint& pos = SYMBOL_PATTERNDIALOG_POSITION, const wxSize& size = SYMBOL_PATTERNDIALOG_SIZE, long style = SYMBOL_PATTERNDIALOG_STYLE );
78 
79  /// Creates the controls and sizers
80  void CreateControls();
81 
82 ////@begin PatternDialog event handler declarations
83 
84  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OK
85  void OnOkClick( wxCommandEvent& event );
86 
87  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CANCEL
88  void OnCancelClick( wxCommandEvent& event );
89 
90 ////@end PatternDialog event handler declarations
91 
92 ////@begin PatternDialog member function declarations
93 
94 
95  /// Retrieves bitmap resources
96  wxBitmap GetBitmapResource( const wxString& name );
97 
98  /// Retrieves icon resources
99  wxIcon GetIconResource( const wxString& name );
100 ////@end PatternDialog member function declarations
101 
102  /// Should we show tooltips?
103  static bool ShowToolTips();
104 
105 ////@begin PatternDialog member variables
106  wxTextCtrl* m_Pattern;
107  wxRadioBox* m_Mode;
108  wxStaticText* m_Text;
109 ////@end PatternDialog member variables
110 };
111 
112 #endif
113  // _PATTERN_DIALOG_H_
static bool ShowToolTips()
Should we show tooltips?
wxStaticText * m_Text
wxTextCtrl * m_Pattern
wxRadioBox * m_Mode
void OnOkClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OK
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnCancelClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CANCEL
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
PatternDialog()
Constructors.
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Pattern Search"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxSYSTEM_MENU|0x1000)
Creation.
const struct ncbi::grid::netcache::search::fields::SIZE size
#define SYMBOL_PATTERNDIALOG_STYLE
#define SYMBOL_PATTERNDIALOG_TITLE
#define SYMBOL_PATTERNDIALOG_SIZE
#define SYMBOL_PATTERNDIALOG_IDNAME
#define SYMBOL_PATTERNDIALOG_POSITION
Modified on Fri Sep 20 14:57:57 2024 by modify_doxy.py rev. 669887