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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_ALN_MULTIPLE___WX_PROPERTIES_DLG__HPP
2 #define GUI_WIDGETS_ALN_MULTIPLE___WX_PROPERTIES_DLG__HPP
3 
4 /* $Id: wx_aln_properties_dlg.hpp 45919 2021-01-12 14:51:14Z shkeda $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Andrey Yazhuk
30  *
31  * File Description:
32  *
33  */
34 
36 
38 
39 
40 ////@begin includes
41 #include "wx/valgen.h"
42 #include "wx/statline.h"
43 #include "wx/clrpicker.h"
44 ////@end includes
45 
46 ////@begin forward declarations
47 ////@end forward declarations
48 
49 class wxCheckListBox;
50 class wxComboBox;
51 class wxCheckBox;
52 
53 ////@begin control identifiers
54 #define SYMBOL_CALNPROPERTIESDLG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
55 #define SYMBOL_CALNPROPERTIESDLG_TITLE _("Properties")
56 #define SYMBOL_CALNPROPERTIESDLG_IDNAME ID_CWXALNPROPERTIESDLG
57 #define SYMBOL_CALNPROPERTIESDLG_SIZE wxSize(400, 300)
58 #define SYMBOL_CALNPROPERTIESDLG_POSITION wxDefaultPosition
59 ////@end control identifiers
60 
61 
63 
64 ///////////////////////////////////////////////////////////////////////////////
65 /// CwxAlnPropertiesDlg
67 {
68  DECLARE_DYNAMIC_CLASS( CAlnPropertiesDlg )
69  DECLARE_EVENT_TABLE()
70 
71 public:
73  CAlnPropertiesDlg( wxWindow* parent, wxWindowID id = SYMBOL_CALNPROPERTIESDLG_IDNAME, const wxString& caption = SYMBOL_CALNPROPERTIESDLG_TITLE, const wxPoint& pos = SYMBOL_CALNPROPERTIESDLG_POSITION, const wxSize& size = SYMBOL_CALNPROPERTIESDLG_SIZE, long style = SYMBOL_CALNPROPERTIESDLG_STYLE );
74 
75  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CALNPROPERTIESDLG_IDNAME, const wxString& caption = SYMBOL_CALNPROPERTIESDLG_TITLE, const wxPoint& pos = SYMBOL_CALNPROPERTIESDLG_POSITION, const wxSize& size = SYMBOL_CALNPROPERTIESDLG_SIZE, long style = SYMBOL_CALNPROPERTIESDLG_STYLE );
76 
78 
79  void Init();
80 
81  void CreateControls();
82 
83  void SetParams(CWidgetDisplayStyle& style);
84 
85 ////@begin CAlnPropertiesDlg event handler declarations
86 
87  void OnOkClick( wxCommandEvent& event );
88 
89 ////@end CAlnPropertiesDlg event handler declarations
90 
91 ////@begin CAlnPropertiesDlg member function declarations
92 
93  CRgbaColor GetSeqColor() const { return m_SeqColor ; }
95 
96  wxBitmap GetBitmapResource( const wxString& name );
97 
98  wxIcon GetIconResource( const wxString& name );
99 ////@end CAlnPropertiesDlg member function declarations
100 
101  static bool ShowToolTips();
102 
103 ////@begin CAlnPropertiesDlg member variables
104  wxCheckListBox* m_VisColumnsList;
105  wxComboBox* m_TextFaceCombo;
106  wxComboBox* m_TextSizeCombo;
107  wxComboBox* m_SeqFaceCombo;
108  wxComboBox* m_SeqSizeCombo;
109  wxCheckBox* m_ShowIdenticalBases;
110  wxCheckBox* m_ShowConsensus;
111 protected:
119  wxString m_SeqFace;
120  wxString m_SeqSize;
122  wxString m_TextFace;
123  wxString m_TextSize;
124  wxArrayInt m_VisColumns;
125  enum {
127  ID_PANEL = 10013,
128  ID_VIS_COLUMNS = 10011,
135  ID_TEXT_COLOR = 10012,
136  ID_BACK_COLOR = 10014,
137  ID_SEQ_COLOR = 10015,
138  ID_FRAME_COLOR = 10016,
139  ID_SEG_COLOR = 10025,
142  ID_FOCUSED_BACK_COLOR = 10028
143  };
144 ////@end CAlnPropertiesDlg member variables
146  vector<string> m_AllColumns;
147 };
148 
149 
151 
152 #endif
153  // GUI_WIDGETS_ALN_MULTIPLE___WX_PROPERTIES_DLG__HPP
154 
CwxAlnPropertiesDlg.
wxCheckListBox * m_VisColumnsList
CWidgetDisplayStyle * m_Style
wxIcon GetIconResource(const wxString &name)
CRgbaColor GetSeqColor() const
bool Create(wxWindow *parent, wxWindowID id=ID_CWXALNPROPERTIESDLG, const wxString &caption=_("Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
wxBitmap GetBitmapResource(const wxString &name)
void SetSeqColor(CRgbaColor value)
void SetParams(CWidgetDisplayStyle &style)
void OnOkClick(wxCommandEvent &event)
vector< string > m_AllColumns
CDialog.
Definition: dialog.hpp:47
class CRgbaColor provides a simple abstraction for managing colors.
Definition: rgba_color.hpp:58
CWidgetDisplayStyle is a collection of display properties common for all rows in the CAlnMultiWidget.
#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
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
#define SYMBOL_CALNPROPERTIESDLG_TITLE
#define SYMBOL_CALNPROPERTIESDLG_STYLE
#define SYMBOL_CALNPROPERTIESDLG_SIZE
#define SYMBOL_CALNPROPERTIESDLG_POSITION
#define SYMBOL_CALNPROPERTIESDLG_IDNAME
Modified on Mon Jun 24 05:22:44 2024 by modify_doxy.py rev. 669887