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

Go to the SVN repository for this file.

1 /* $Id: wx_aln_stat_dlg.hpp 30858 2014-07-31 14:05:43Z 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: Liangshou Wu
27  *
28  * File Description:
29  *
30  */
31 #ifndef _WX_ALN_STAT_DLG_H_
32 #define _WX_ALN_STAT_DLG_H_
33 
34 
35 /*!
36  * Includes
37  */
38 
39 ////@begin includes
40 ////@end includes
41 #include <corelib/ncbiobj.hpp>
42 
43 // This header must (at least indirectly) precede any wxWidgets headers.
45 
46 #include <wx/dialog.h>
47 #include <wx/sizer.h>
48 #include <wx/radiobox.h>
49 #include <wx/stattext.h>
50 
51 /*!
52  * Forward declarations
53  */
54 
55 ////@begin forward declarations
56 ////@end forward declarations
57 class wxTextCtrl;
58 class wxSlider;
59 
61 
62 /*!
63  * Control identifiers
64  */
65 
66 ////@begin control identifiers
67 #define ID_CWXALNSTATOPTIONSDLG 10031
68 #define ID_SLIDER 10037
69 #define ID_RADIOBOX2 10034
70 #define ID_RADIOBOX 10033
71 #define ID_RADIOBOX3 10036
72 #define ID_TEXTCTRL3 10032
73 #define SYMBOL_CWXALNSTATOPTIONSDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
74 #define SYMBOL_CWXALNSTATOPTIONSDLG_TITLE _("Alignment statistics settings")
75 #define SYMBOL_CWXALNSTATOPTIONSDLG_IDNAME ID_CWXALNSTATOPTIONSDLG
76 #define SYMBOL_CWXALNSTATOPTIONSDLG_SIZE wxSize(400, 300)
77 #define SYMBOL_CWXALNSTATOPTIONSDLG_POSITION wxDefaultPosition
78 ////@end control identifiers
79 
80 
81 /*!
82  * CwxAlnStatOptionsDlg class declaration
83  */
84 
85 class CwxAlnStatOptionsDlg: public wxDialog
86 {
87  DECLARE_DYNAMIC_CLASS( CwxAlnStatOptionsDlg )
88  DECLARE_EVENT_TABLE()
89 
90 public:
92  CwxAlnStatOptionsDlg( wxWindow* parent, wxWindowID id = SYMBOL_CWXALNSTATOPTIONSDLG_IDNAME, const wxString& caption = SYMBOL_CWXALNSTATOPTIONSDLG_TITLE, const wxPoint& pos = SYMBOL_CWXALNSTATOPTIONSDLG_POSITION, const wxSize& size = SYMBOL_CWXALNSTATOPTIONSDLG_SIZE, long style = SYMBOL_CWXALNSTATOPTIONSDLG_STYLE );
93 
94  bool CreateX( wxWindow* parent, wxWindowID id = SYMBOL_CWXALNSTATOPTIONSDLG_IDNAME, const wxString& caption = SYMBOL_CWXALNSTATOPTIONSDLG_TITLE, const wxPoint& pos = SYMBOL_CWXALNSTATOPTIONSDLG_POSITION, const wxSize& size = SYMBOL_CWXALNSTATOPTIONSDLG_SIZE, long style = SYMBOL_CWXALNSTATOPTIONSDLG_STYLE );
95 
97 
98  void Init();
99 
100  void CreateControls();
101 
102  void SetContent(bool is_agtc);
103  void SetValueType(bool is_count);
104  void SetDisplay(bool is_graph);
105  void SetGraphHeight(int h);
106  void SetZoomLevel(int l);
107  bool IsAGTC() const;
108  bool IsCount() const;
109  bool IsBarGraph() const;
110  int GetGraphHeight() const;
111  int GetZoomLevel() const;
112 
113 ////@begin CwxAlnStatOptionsDlg event handler declarations
114 
115 ////@end CwxAlnStatOptionsDlg event handler declarations
116 
117 ////@begin CwxAlnStatOptionsDlg member function declarations
118 
119  wxBitmap GetBitmapResource( const wxString& name );
120 
121  wxIcon GetIconResource( const wxString& name );
122 ////@end CwxAlnStatOptionsDlg member function declarations
123 
124  static bool ShowToolTips();
125 
126 ////@begin CwxAlnStatOptionsDlg member variables
127  wxSlider* m_ZoomLevel;
128  wxRadioBox* m_Content;
129  wxRadioBox* m_ValueType;
130  wxRadioBox* m_Display;
131  wxTextCtrl* m_GraphHeight;
132 ////@end CwxAlnStatOptionsDlg member variables
133 };
134 
136 
137 #endif
138  // _WX_ALN_STAT_DLG_H_
wxBitmap GetBitmapResource(const wxString &name)
void SetDisplay(bool is_graph)
void SetContent(bool is_agtc)
wxIcon GetIconResource(const wxString &name)
bool CreateX(wxWindow *parent, wxWindowID id=10031, const wxString &caption=_("Alignment statistics settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
void SetValueType(bool is_count)
static bool ShowToolTips()
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
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
#define SYMBOL_CWXALNSTATOPTIONSDLG_POSITION
#define SYMBOL_CWXALNSTATOPTIONSDLG_TITLE
#define SYMBOL_CWXALNSTATOPTIONSDLG_IDNAME
#define SYMBOL_CWXALNSTATOPTIONSDLG_SIZE
#define SYMBOL_CWXALNSTATOPTIONSDLG_STYLE
Modified on Tue May 21 10:58:13 2024 by modify_doxy.py rev. 669887