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

Go to the SVN repository for this file.

1 /* $Id: wx_tree_label_edit.hpp 30873 2014-07-31 20:37:16Z ucko $
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: Bob Falk
27  *
28  * File Description:
29  *
30  */
31 // Generated by DialogBlocks (unregistered), 28/10/2013 09:21:36
32 
33 #ifndef _WX_TREE_LABEL_EDIT_H_
34 #define _WX_TREE_LABEL_EDIT_H_
35 
36 
37 /*!
38  * Includes
39  */
40 
41 #include <corelib/ncbistl.hpp>
42 #include <gui/utils/rgba_color.hpp>
46 
47 // This header must (at least indirectly) precede any wxWidgets headers.
49 
50 ////@begin includes
51 #include <wx/clrpicker.h>
52 #include <wx/dialog.h>
53 #include <wx/choice.h>
54 #include <wx/textctrl.h>
55 ////@end includes
56 
57 /*!
58  * Forward declarations
59  */
60 
61 ////@begin forward declarations
62 class wxColourPickerCtrl;
63 ////@end forward declarations
64 
66 
68 class CPhyloTreeScheme;
69 
70 /*!
71  * Control identifiers
72  */
73 
74 ////@begin control identifiers
75 #define ID_CWXTREELABELEDIT 10046
76 #define ID_TREE_NAME_TXT 14047
77 #define ID_LABEL_POS_X 14048
78 #define ID_LABEL_POS_Y 14049
79 #define ID_LABEL_FONT_CHOICE 14044
80 #define m_LABEL_FONT_SIZE_CHOICE 14045
81 #define ID_TREE_FONT_COLOR 14050
82 #define SYMBOL_CWXTREELABELEDIT_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
83 #define SYMBOL_CWXTREELABELEDIT_TITLE _("Tree Label Edit")
84 #define SYMBOL_CWXTREELABELEDIT_IDNAME ID_CWXTREELABELEDIT
85 #define SYMBOL_CWXTREELABELEDIT_SIZE wxSize(400, 300)
86 #define SYMBOL_CWXTREELABELEDIT_POSITION wxDefaultPosition
87 ////@end control identifiers
88 
89 
90 /*!
91  * CwxTreeLabelEdit class declaration
92  */
93 
94 class CwxTreeLabelEdit: public wxDialog
95 {
96  DECLARE_DYNAMIC_CLASS( CwxTreeLabelEdit )
97  DECLARE_EVENT_TABLE()
98 
99 public:
101  CwxTreeLabelEdit( wxWindow* parent, wxWindowID id = SYMBOL_CWXTREELABELEDIT_IDNAME, const wxString& caption = SYMBOL_CWXTREELABELEDIT_TITLE, const wxPoint& pos = SYMBOL_CWXTREELABELEDIT_POSITION, const wxSize& size = SYMBOL_CWXTREELABELEDIT_SIZE, long style = SYMBOL_CWXTREELABELEDIT_STYLE );
102 
103  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CWXTREELABELEDIT_IDNAME, const wxString& caption = SYMBOL_CWXTREELABELEDIT_TITLE, const wxPoint& pos = SYMBOL_CWXTREELABELEDIT_POSITION, const wxSize& size = SYMBOL_CWXTREELABELEDIT_SIZE, long style = SYMBOL_CWXTREELABELEDIT_STYLE );
104 
106 
108 
109  void Init();
110 
111  void CreateControls();
112 
113 ////@begin CwxTreeLabelEdit event handler declarations
114 
115  void OnLabelPosXTextUpdated( wxCommandEvent& event );
116 
117  void OnLabelPosYTextUpdated( wxCommandEvent& event );
118 
119  void OnLabelFontChoiceSelected( wxCommandEvent& event );
120 
121  void OnOkClick( wxCommandEvent& event );
122 
123 ////@end CwxTreeLabelEdit event handler declarations
124 
125 ////@begin CwxTreeLabelEdit member function declarations
126 
127  wxBitmap GetBitmapResource( const wxString& name );
128 
129  wxIcon GetIconResource( const wxString& name );
130 ////@end CwxTreeLabelEdit member function declarations
131 
132  static bool ShowToolTips();
133 
134 ////@begin CwxTreeLabelEdit member variables
135  wxTextCtrl* m_TreeName;
136  wxTextCtrl* m_LabelPosX;
137  wxTextCtrl* m_LabelPosY;
138  wxChoice* m_FontName;
139  wxChoice* m_FontSize;
140  wxColourPickerCtrl* m_FontColorPicker;
141 ////@end CwxTreeLabelEdit member variables
142 
143 protected:
144 
146 };
147 
149 
150 #endif
151  // _WX_TREE_LABEL_EDIT_H_
void OnLabelPosYTextUpdated(wxCommandEvent &event)
wxBitmap GetBitmapResource(const wxString &name)
void OnOkClick(wxCommandEvent &event)
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=10046, const wxString &caption=_("Tree Label Edit"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
wxColourPickerCtrl * m_FontColorPicker
void SetParams(CPhyloTreeDataSource *ds, CPhyloTreeScheme *sl)
static bool ShowToolTips()
CPhyloTreeDataSource * m_DS
void OnLabelFontChoiceSelected(wxCommandEvent &event)
void OnLabelPosXTextUpdated(wxCommandEvent &event)
Workaround for wxWidgets header errors in certain configurations; MUST be included (at least indirect...
#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 NCBI C++/STL use hints.
#define SYMBOL_CWXTREELABELEDIT_TITLE
#define SYMBOL_CWXTREELABELEDIT_IDNAME
#define SYMBOL_CWXTREELABELEDIT_POSITION
#define SYMBOL_CWXTREELABELEDIT_SIZE
#define SYMBOL_CWXTREELABELEDIT_STYLE
Modified on Fri May 24 14:53:09 2024 by modify_doxy.py rev. 669887