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

Go to the SVN repository for this file.

1 /* $Id: wx_track_settings_dlg.hpp 23952 2011-06-23 19:12:28Z wuliangs $
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: Vlad Lebedev
27  *
28  * File Description:
29  *
30  */
31 #ifndef _WX_TRACK_SETTINGS_DLG_H_
32 #define _WX_TRACK_SETTINGS_DLG_H_
33 
34 
35 /*!
36  * Includes
37  */
38 
39 ////@begin includes
40 ////@end includes
41 #include <corelib/ncbiobj.hpp>
42 #include <wx/dialog.h>
44 
45 /*!
46  * Forward declarations
47  */
48 
49 ////@begin forward declarations
50 class wxBoxSizer;
51 ////@end forward declarations
52 class wxChoice;
53 class wxComboBox;
54 
56 
57 /*!
58  * Control identifiers
59  */
60 
61 ////@begin control identifiers
62 #define ID_CWXTRACKSETTINGSDLG 10035
63 #define ID_CHOICE 10002
64 #define ID_CHOICE1 10001
65 #define ID_TEXTCTRL 10000
66 #define ID_TEXTCTRL1 10003
67 #define ID_COMBOBOX 10004
68 #define SYMBOL_CWXTRACKSETTINGSDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
69 #define SYMBOL_CWXTRACKSETTINGSDLG_TITLE _("Graphical view new track settings")
70 #define SYMBOL_CWXTRACKSETTINGSDLG_IDNAME ID_CWXTRACKSETTINGSDLG
71 #define SYMBOL_CWXTRACKSETTINGSDLG_SIZE wxSize(400, 100)
72 #define SYMBOL_CWXTRACKSETTINGSDLG_POSITION wxDefaultPosition
73 ////@end control identifiers
74 
75 
76 /*!
77  * CwxTrackSettingsDlg class declaration
78  */
79 
80 class CwxTrackSettingsDlg: public wxDialog
81 {
82  DECLARE_DYNAMIC_CLASS( CwxTrackSettingsDlg )
83  DECLARE_EVENT_TABLE()
84 
85 public:
87  CwxTrackSettingsDlg( wxWindow* parent, wxWindowID id = SYMBOL_CWXTRACKSETTINGSDLG_IDNAME, const wxString& caption = SYMBOL_CWXTRACKSETTINGSDLG_TITLE, const wxPoint& pos = SYMBOL_CWXTRACKSETTINGSDLG_POSITION, const wxSize& size = SYMBOL_CWXTRACKSETTINGSDLG_SIZE, long style = SYMBOL_CWXTRACKSETTINGSDLG_STYLE );
88 
89  bool CreateX( wxWindow* parent, wxWindowID id = SYMBOL_CWXTRACKSETTINGSDLG_IDNAME, const wxString& caption = SYMBOL_CWXTRACKSETTINGSDLG_TITLE, const wxPoint& pos = SYMBOL_CWXTRACKSETTINGSDLG_POSITION, const wxSize& size = SYMBOL_CWXTRACKSETTINGSDLG_SIZE, long style = SYMBOL_CWXTRACKSETTINGSDLG_STYLE );
90 
92 
93  void Init();
94 
95  void CreateControls();
96 
97 ////@begin CwxTrackSettingsDlg event handler declarations
98 
99  void OnTrackTypeChanged( wxCommandEvent& event );
100 
101  void OnOkClick( wxCommandEvent& event );
102 
103 ////@end CwxTrackSettingsDlg event handler declarations
104 
105 ////@begin CwxTrackSettingsDlg member function declarations
106 
107  wxBitmap GetBitmapResource( const wxString& name );
108 
109  wxIcon GetIconResource( const wxString& name );
110 ////@end CwxTrackSettingsDlg member function declarations
111 
112 /// user-defined member functions.
113  void SetTrackName(const wxString& name);
114  void InitTrackTypes(const CTrackConfigManager::TFactoryMap& factories);
115 
116  wxString GetTrackName() const;
117  wxString GetTrackFilter() const;
118  wxString GetTrackType() const;
119  wxString GetSubtype() const;
120  wxString GetAnnots() const;
121 
122  static bool ShowToolTips();
123 
124 ////@begin CwxTrackSettingsDlg member variables
125  wxChoice* m_TrackType;
126  wxBoxSizer* m_SubtypeGroup;
127  wxChoice* m_Subtype;
128  wxTextCtrl* m_TrackName;
129  wxTextCtrl* m_TrackFilter;
130  wxComboBox* m_Annots;
131 ////@end CwxTrackSettingsDlg member variables
132 };
133 
135 
136 #endif
137  // _WX_TRACK_SETTINGS_DLG_H_
void InitTrackTypes(const CTrackConfigManager::TFactoryMap &factories)
wxBitmap GetBitmapResource(const wxString &name)
wxString GetTrackFilter() const
void OnOkClick(wxCommandEvent &event)
void SetTrackName(const wxString &name)
user-defined member functions.
void OnTrackTypeChanged(wxCommandEvent &event)
wxIcon GetIconResource(const wxString &name)
bool CreateX(wxWindow *parent, wxWindowID id=10035, const wxString &caption=_("Graphical view new track settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 100), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
#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
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
#define SYMBOL_CWXTRACKSETTINGSDLG_SIZE
#define SYMBOL_CWXTRACKSETTINGSDLG_TITLE
#define SYMBOL_CWXTRACKSETTINGSDLG_STYLE
#define SYMBOL_CWXTRACKSETTINGSDLG_POSITION
#define SYMBOL_CWXTRACKSETTINGSDLG_IDNAME
Modified on Tue Dec 05 02:18:20 2023 by modify_doxy.py rev. 669887