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

Go to the SVN repository for this file.

1 /* $Id: create_gene_model_params_panel.hpp 42821 2019-04-18 19:32:56Z joukovv $
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: Andrey Yazhuk
27  *
28  * File Description:
29  *
30  */
31 
32 #ifndef _CREATE_GENE_MODEL_PARAMS_PANEL_H_
33 #define _CREATE_GENE_MODEL_PARAMS_PANEL_H_
34 
35 
36 /*!
37  * Includes
38  */
39 
43 
44 ////@begin includes
45 #include "wx/listctrl.h"
46 ////@end includes
47 
49 
50 /*!
51  * Forward declarations
52  */
53 
54 ////@begin forward declarations
55 class CObjectListWidget;
56 ////@end forward declarations
57 
58 /*!
59  * Control identifiers
60  */
61 
62 #define GENEMODELPARAMSPANEL_STYLE wxTAB_TRAVERSAL
63 #define GENEMODELPARAMSPANEL_TITLE _("Create Gene Model")
64 #define GENEMODELPARAMSPANEL_IDNAME ID_GENEMODELPARAMSPANEL
65 #define GENEMODELPARAMSPANEL_SIZE wxSize(400, 300)
66 #define GENEMODELPARAMSPANEL_POSITION wxDefaultPosition
67 
68 /*!
69  * CCreateGeneModelParamsPanel class declaration
70  */
71 
73 {
74 public:
76 
77  void Init();
78 
79  /// @name IRegSettings interface implementation
80  /// @{
81  virtual void SetRegistryPath( const string& reg_path );
82  virtual void LoadSettings();
83  virtual void SaveSettings() const;
84  /// @}
85 
86 public:
87  string m_RegPath;
88 
90 
95 
99 
102 };
103 
105 {
106  DECLARE_DYNAMIC_CLASS( CCreateGeneModelParamsPanel )
107  DECLARE_EVENT_TABLE()
108 
109 public:
111  CCreateGeneModelParamsPanel( wxWindow* parent, wxWindowID id = GENEMODELPARAMSPANEL_IDNAME, const wxPoint& pos = GENEMODELPARAMSPANEL_POSITION, const wxSize& size = GENEMODELPARAMSPANEL_SIZE, long style = GENEMODELPARAMSPANEL_STYLE );
112 
113  bool Create( wxWindow* parent, wxWindowID id = GENEMODELPARAMSPANEL_IDNAME, const wxPoint& pos = GENEMODELPARAMSPANEL_POSITION, const wxSize& size = GENEMODELPARAMSPANEL_SIZE, long style = GENEMODELPARAMSPANEL_STYLE );
114 
116 
117  void Init();
118  void CreateControls();
119 
121 
122  virtual bool TransferDataToWindow();
123  virtual bool TransferDataFromWindow();
124 
125  /// @name CAlgoToolManagerParamsPanel implementation
126  void RestoreDefaults();
127  /// @}
128 
129  /// @name IRegSettings interface implementation
130  /// @{
131  virtual void SetRegistryPath( const string& path );
132  virtual void LoadSettings();
133  virtual void SaveSettings() const;
134  /// @}
135 
136 ////@begin CCreateGeneModelParamsPanel event handler declarations
137 
138  void OnCreateGeneClick( wxCommandEvent& event );
139 
140  void OnCreateMrnaClick( wxCommandEvent& event );
141 
142  void OnCreateCdsClick( wxCommandEvent& event );
143 
144 ////@end CCreateGeneModelParamsPanel event handler declarations
145 
146 ////@begin CCreateGeneModelParamsPanel member function declarations
147 
148  wxBitmap GetBitmapResource( const wxString& name );
149 
150  wxIcon GetIconResource( const wxString& name );
151 ////@end CCreateGeneModelParamsPanel member function declarations
152 
153 private:
154 ////@begin CCreateGeneModelParamsPanel member variables
156  wxCheckBox* m_CreateGene;
158  wxCheckBox* m_CreateMrna;
159  wxCheckBox* m_TranscribeMrna;
160  wxCheckBox* m_CreateCds;
161  wxCheckBox* m_TranslateCds;
162  wxCheckBox* m_GroupByGeneId;
163  wxCheckBox* m_MergeToGenome;
164  wxCheckBox* m_PropagateLocalIds;
165 private:
167  enum {
169  ID_OBJLISTCTRL = 10014,
170  ID_CHECK_GENE = 10032,
172  ID_CHECK_MRNA = 10041,
174  ID_CHECK_CDS = 10042,
176  ID_CHECK_GROUP = 10045,
177  ID_CHECK_MERGE = 10059,
178  ID_PROPAGATE_LOCAL_IDS = 10060
179  };
180 ////@end CCreateGeneModelParamsPanel member variables
181 
182 private:
184 
186 
187  string m_RegPath;
188 };
189 
191 
192 #endif
193  // _CREATE_GENE_MODEL_PARAMS_PANEL_H_
CAlgoToolManagerParamsPanel.
void RestoreDefaults()
override in derived classes
void OnCreateCdsClick(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=ID_GENEMODELPARAMSPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
virtual void SetRegistryPath(const string &path)
CAlgoToolManagerParamsPanel.
void OnCreateMrnaClick(wxCommandEvent &event)
virtual void SaveSettings() const
override in derived classes
void SetParams(SCreateGeneModelParams *params, TConstScopedObjects *objects)
wxIcon GetIconResource(const wxString &name)
wxBitmap GetBitmapResource(const wxString &name)
void OnCreateGeneClick(wxCommandEvent &event)
CObjectListWidget - mediator widget.
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
virtual void SetRegistryPath(const string &reg_path)
#define GENEMODELPARAMSPANEL_SIZE
#define GENEMODELPARAMSPANEL_IDNAME
#define GENEMODELPARAMSPANEL_STYLE
#define GENEMODELPARAMSPANEL_POSITION
vector< SConstScopedObject > TConstScopedObjects
Definition: objects.hpp:65
#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
Modified on Sun Jun 16 04:34:12 2024 by modify_doxy.py rev. 669887