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

Go to the SVN repository for this file.

1 #ifndef PKG_ALIGNMENT___SPLIGN_PANEL__HPP
2 #define PKG_ALIGNMENT___SPLIGN_PANEL__HPP
3 
4 /* $Id: splign_panel.hpp 35070 2016-03-18 20:11:06Z asztalos $
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: Roman Katargin
30  *
31  * File Description:
32  *
33  */
34 
35 /*!
36  * Includes
37  */
38 
39 #include <corelib/ncbiobj.hpp>
40 
41 //#include <gui/objutils/objects.hpp>
42 
46 
47 #include "wx/valgen.h"
48 
49 /*!
50  * Forward declarations
51  */
52 
53 /*!
54  * Control identifiers
55  */
56 
57 ////@begin control identifiers
58 #define SYMBOL_CSPLIGNPANEL_STYLE wxCLIP_CHILDREN|wxTAB_TRAVERSAL
59 #define SYMBOL_CSPLIGNPANEL_TITLE _("SPLIGN Tool Panel")
60 #define SYMBOL_CSPLIGNPANEL_IDNAME ID_CSPLIGNPANEL
61 #define SYMBOL_CSPLIGNPANEL_SIZE wxSize(400, 300)
62 #define SYMBOL_CSPLIGNPANEL_POSITION wxDefaultPosition
63 ////@end control identifiers
64 
65 class wxChoice;
66 
68 
69 /** @addtogroup GUI_PKG_ALIGNMENT
70  *
71  * @{
72  */
73 
75 {
76 public:
77  enum MolType
78  {
83  };
84 
85  CMolTypeValidator(MolType molType) : m_MolType(molType) {}
86 
87  virtual CConstRef<CObject> Validate(const objects::CSeq_id& id,
88  objects::CScope& scope, wxString& errMessage);
89 private:
91 };
92 
93 /*!
94  * CSplignPanel class declaration
95  */
96 
98 {
99  DECLARE_DYNAMIC_CLASS( CSplignPanel )
100  DECLARE_EVENT_TABLE()
101 
102 public:
103  CSplignPanel();
104  CSplignPanel( wxWindow* parent, wxWindowID id = SYMBOL_CSPLIGNPANEL_IDNAME, const wxPoint& pos = SYMBOL_CSPLIGNPANEL_POSITION, const wxSize& size = SYMBOL_CSPLIGNPANEL_SIZE, long style = SYMBOL_CSPLIGNPANEL_STYLE, bool visibale = true );
105 
106  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CSPLIGNPANEL_IDNAME, const wxPoint& pos = SYMBOL_CSPLIGNPANEL_POSITION, const wxSize& size = SYMBOL_CSPLIGNPANEL_SIZE, long style = SYMBOL_CSPLIGNPANEL_STYLE, bool visibale = true );
107 
108  ~CSplignPanel();
109 
110  void Init();
111 
112  void CreateControls();
113 
114  virtual bool TransferDataFromWindow();
115 
116  /// @name IRegSettings interface implementation
117  virtual void SetRegistryPath(const string& path);
118  virtual void LoadSettings();
119  virtual void SaveSettings() const;
120  /// @}
121 
122  /// @name CAlgoToolManagerParamsPanel implementation
123  void RestoreDefaults();
124  /// @}
125 
126 ////@begin CSplignPanel event handler declarations
127 
128 ////@end CSplignPanel event handler declarations
129 
130 ////@begin CSplignPanel member function declarations
131 
134 
137 
138  CSplignParams& GetData() { return m_data; }
139  const CSplignParams& GetData() const { return m_data; }
140  void SetData(const CSplignParams& data) { m_data = data; }
141 
142  wxBitmap GetBitmapResource( const wxString& name );
143 
144  wxIcon GetIconResource( const wxString& name );
145 ////@end CSplignPanel member function declarations
146 
149 
150  static bool ShowToolTips();
151 
152 ////@begin CSplignPanel member variables
155 private:
159  enum {
161  ID_PANEL1 = 10029,
162  ID_PANEL2 = 10030,
163  ID_CHOICE3 = 10040,
164  ID_CHOICE4 = 10076,
165  ID_CHECKBOX3 = 10034,
166  ID_CHECKBOX4 = 10035,
167  ID_TEXTCTRL7 = 10037,
168  ID_TEXTCTRL6 = 10036,
169  ID_TEXTCTRL8 = 10038,
170  ID_TEXTCTRL9 = 10039,
171  ID_TEXTCTRL13 = 10043
172  };
173 ////@end CSplignPanel member variables
174 
175 private:
176  string m_RegPath;
177 
180 };
181 
182 /* @} */
183 
185 
186 #endif // PKG_ALIGNMENT___SPLIGN_PANEL__HPP
CAlgoToolManagerParamsPanel.
char data[12]
Definition: iconv.c:80
CObjectListWidgetSel * m_GenomicList
bool Create(wxWindow *parent, wxWindowID id=ID_CSPLIGNPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCLIP_CHILDREN|wxTAB_TRAVERSAL, bool visibale=true)
virtual void LoadSettings()
wxBitmap GetBitmapResource(const wxString &name)
void SetGenomicSeq(SConstScopedObject value)
void SetCDNASeqs(TConstScopedObjects value)
CMolTypeValidator(MolType molType)
void CreateControls()
void RestoreDefaults()
override in derived classes
CSplignParams & GetData()
virtual CConstRef< CObject > Validate(const objects::CSeq_id &id, objects::CScope &scope, wxString &errMessage)
TConstScopedObjects GetCDNASeqs() const
virtual void SaveSettings() const
override in derived classes
wxIcon GetIconResource(const wxString &name)
CSplignParams m_data
static bool ShowToolTips()
TConstScopedObjects m_cDNASeqs
SConstScopedObject m_GenomicSeq
virtual void SetRegistryPath(const string &path)
CAlgoToolManagerParamsPanel.
CMolTypeValidator m_GenomicListAccValidator
CMolTypeValidator m_CDNAListAccValidator
CObjectListWidgetSel * m_cDNAList
SConstScopedObject GetGenomicSeq() const
const CSplignParams & GetData() const
void SetData(const CSplignParams &data)
void SetObjects(map< string, TConstScopedObjects > *genomic, map< string, TConstScopedObjects > *na)
virtual bool TransferDataFromWindow()
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
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
#define SYMBOL_CSPLIGNPANEL_IDNAME
#define SYMBOL_CSPLIGNPANEL_POSITION
#define SYMBOL_CSPLIGNPANEL_STYLE
#define SYMBOL_CSPLIGNPANEL_SIZE
Modified on Fri May 24 14:58:12 2024 by modify_doxy.py rev. 669887