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

Go to the SVN repository for this file.

1 #ifndef PKG_SEQUENCE___MERGE_PANEL__HPP
2 #define PKG_SEQUENCE___MERGE_PANEL__HPP
3 
4 /* $Id: merge_panel.hpp 32655 2015-04-07 18:11:22Z evgeniev $
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 
32 #include <corelib/ncbistd.hpp>
33 
35 
36 #include <wx/panel.h>
37 
38 ////@begin includes
39 #include "wx/valgen.h"
40 ////@end includes
41 
42 
44 
45 /*!
46  * Forward declarations
47  */
48 
49 ////@begin forward declarations
51 ////@end forward declarations
52 
53 /*!
54  * Control identifiers
55  */
56 
57 ////@begin control identifiers
58 #define SYMBOL_CMERGEPANEL_STYLE wxTAB_TRAVERSAL
59 #define SYMBOL_CMERGEPANEL_TITLE _("Merge Panel")
60 #define SYMBOL_CMERGEPANEL_IDNAME ID_CMERGEPANEL
61 #define SYMBOL_CMERGEPANEL_SIZE wxSize(400, 300)
62 #define SYMBOL_CMERGEPANEL_POSITION wxDefaultPosition
63 ////@end control identifiers
64 
65 
67 {
71 
72  CMergeParams() { Init(); }
73  void Init() { mf_StripAnnotDescs = true; mf_ConvertAccs = true; mf_ExetendedCleanup = false; }
74 };
75 
76 /*!
77  * CMergePanel class declaration
78  */
79 
81 {
82  DECLARE_DYNAMIC_CLASS( CMergePanel )
83  DECLARE_EVENT_TABLE()
84 
85 public:
86  /// Constructors
87  CMergePanel();
88  CMergePanel( wxWindow* parent, wxWindowID id = SYMBOL_CMERGEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CMERGEPANEL_POSITION, const wxSize& size = SYMBOL_CMERGEPANEL_SIZE, long style = SYMBOL_CMERGEPANEL_STYLE );
89 
90  /// Creation
91  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CMERGEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CMERGEPANEL_POSITION, const wxSize& size = SYMBOL_CMERGEPANEL_SIZE, long style = SYMBOL_CMERGEPANEL_STYLE );
92 
93  /// Destructor
94  ~CMergePanel();
95 
96  /// Initialises member variables
97  void Init();
98 
99  /// Creates the controls and sizers
100  void CreateControls();
101 
102  /// @name CAlgoToolManagerParamsPanel implementation
103  void RestoreDefaults();
104  /// @}
105 
106 ////@begin CMergePanel event handler declarations
107 
108 ////@end CMergePanel event handler declarations
109 
110  /// @name IRegSettings interface implementation
111  /// @{
112  virtual void SetRegistryPath( const string& reg_path ) {}
113 
114  virtual void LoadSettings() {}
115  virtual void SaveSettings() const {}
116  /// @}
117 
118  void SetObjects(
121  );
122 
123 ////@begin CMergePanel member function declarations
124 
125  /// Data access
126  CMergeParams& GetData() { return m_data; }
127  const CMergeParams& GetData() const { return m_data; }
128  void SetData(const CMergeParams& data) { m_data = data; }
129 
130  /// Retrieves bitmap resources
131  wxBitmap GetBitmapResource( const wxString& name );
132 
133  /// Retrieves icon resources
134  wxIcon GetIconResource( const wxString& name );
135 ////@end CMergePanel member function declarations
136 
137  /// Should we show tooltips?
138  static bool ShowToolTips();
139 
140 private:
141 ////@begin CMergePanel member variables
144  /// The data edited by this window
146  /// Control identifiers
147  enum {
148  ID_CMERGEPANEL = 10000,
150  ID_CHILD_ITEMS = 10003,
152  ID_CONVERT_ACC = 10066,
153  ID_EXT_CLEANUP = 10067
154  };
155 ////@end CMergePanel member variables
156 
157 protected:
158  /// registry path to the settings
159  string m_RegPath;
160 };
161 
162 
164 
165 #endif // PKG_SEQUENCE___MERGE_PANEL__HPP
CAlgoToolManagerParamsPanel.
void SetData(const CMergeParams &data)
virtual void SetRegistryPath(const string &reg_path)
CAlgoToolManagerParamsPanel.
~CMergePanel()
Destructor.
virtual void LoadSettings()
const CMergeParams & GetData() const
CObjectListWidgetSel * m_MasterItems
CMergeParams & GetData()
Data access.
void RestoreDefaults()
override in derived classes
void CreateControls()
Creates the controls and sizers.
CObjectListWidgetSel * m_ChildItems
void SetObjects(map< string, TConstScopedObjects > &masters, map< string, TConstScopedObjects > &kids)
bool Create(wxWindow *parent, wxWindowID id=ID_CMERGEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
Definition: merge_panel.cpp:88
virtual void SaveSettings() const
override in derived classes
string m_RegPath
registry path to the settings
static bool ShowToolTips()
Should we show tooltips?
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CMergeParams m_data
The data edited by this window.
void Init()
Initialises member variables.
CMergePanel()
Constructors.
Definition: merge_panel.cpp:72
Include a standard set of the NCBI C++ Toolkit most basic headers.
char data[12]
Definition: iconv.c:80
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define SYMBOL_CMERGEPANEL_POSITION
Definition: merge_panel.hpp:62
#define SYMBOL_CMERGEPANEL_SIZE
Definition: merge_panel.hpp:61
#define SYMBOL_CMERGEPANEL_STYLE
Definition: merge_panel.hpp:58
#define SYMBOL_CMERGEPANEL_IDNAME
Definition: merge_panel.hpp:60
const struct ncbi::grid::netcache::search::fields::SIZE size
bool mf_ConvertAccs
Definition: merge_panel.hpp:69
bool mf_StripAnnotDescs
Definition: merge_panel.hpp:68
bool mf_ExetendedCleanup
Definition: merge_panel.hpp:70
Modified on Fri Sep 20 14:58:21 2024 by modify_doxy.py rev. 669887