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

Go to the SVN repository for this file.

1 #ifndef PKG_ALIGNMENT___TREE_BUILDER_PANEL__HPP
2 #define PKG_ALIGNMENT___TREE_BUILDER_PANEL__HPP
3 
4 /* $Id: tree_builder_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, Vladimir Tereshkov
30  *
31  * File Description:
32  *
33  */
34 
35 /*!
36  * Includes
37  */
38 
39 #include <corelib/ncbiobj.hpp>
40 
43 
44 #include <wx/panel.h>
45 #include <wx/choice.h>
46 
47 #include "wx/valtext.h"
48 
49 /*!
50  * Control identifiers
51  */
52 
53 ////@begin control identifiers
54 #define SYMBOL_CTreeBuilderPanel_STYLE wxTAB_TRAVERSAL
55 #define SYMBOL_CTreeBuilderPanel_TITLE wxT("Find Overlap Panel")
56 #define SYMBOL_CTreeBuilderPanel_IDNAME ID_CTreeBuilderPanel
57 #define SYMBOL_CTreeBuilderPanel_SIZE wxSize(400, 300)
58 #define SYMBOL_CTreeBuilderPanel_POSITION wxDefaultPosition
59 ////@end control identifiers
60 
62 
63 /** @addtogroup GUI_PKG_ALIGNMENT
64  *
65  * @{
66  */
67 
68 class CObjectListWidget;
69 
70 /*!
71  * CTreeBuilderPanel class declaration
72  */
73 
75 {
76  DECLARE_DYNAMIC_CLASS( CTreeBuilderPanel )
77  DECLARE_EVENT_TABLE()
78 
79 public:
81  CTreeBuilderPanel( wxWindow* parent, wxWindowID id = SYMBOL_CTreeBuilderPanel_IDNAME, const wxPoint& pos = SYMBOL_CTreeBuilderPanel_POSITION, const wxSize& size = SYMBOL_CTreeBuilderPanel_SIZE, long style = SYMBOL_CTreeBuilderPanel_STYLE );
82 
83  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CTreeBuilderPanel_IDNAME, const wxPoint& pos = SYMBOL_CTreeBuilderPanel_POSITION, const wxSize& size = SYMBOL_CTreeBuilderPanel_SIZE, long style = SYMBOL_CTreeBuilderPanel_STYLE );
84 
86 
87  void Init();
88 
89  void CreateControls();
90 
91  virtual bool TransferDataToWindow();
92 
93  virtual bool TransferDataFromWindow();
94 
95  /// @name CAlgoToolManagerParamsPanel implementation
96  void RestoreDefaults();
97  /// @}
98 
99  /// @name IRegSettings interface implementation
100  virtual void LoadSettings();
101  virtual void SaveSettings() const;
102  /// @}
103 
104 ////@begin CTreeBuilderPanel event handler declarations
105 
106 ////@end CTreeBuilderPanel event handler declarations
107 
108 ////@begin CTreeBuilderPanel member function declarations
109 
111  const CTreeBuilderParams& GetData() const { return m_data; }
113 
114  wxBitmap GetBitmapResource( const wxString& name );
115 
116  wxIcon GetIconResource( const wxString& name );
117 ////@end CTreeBuilderPanel member function declarations
118 
120 
121  static bool ShowToolTips();
122 
123 ////@begin CTreeBuilderPanel member variables
126  enum {
128  ID_LISTCTRL3 = 10022,
129  ID_LISTCTRL4 = 10023,
130  ID_TEXTCTRL2 = 10024,
131  ID_TEXTCTRL3 = 10025,
132  ID_TEXTCTRL4 = 10026,
133  ID_TEXTCTRL5 = 10027
134  };
135 ////@end CTreeBuilderPanel member variables
136 
138  wxChoice * m_pDistance;
139  wxChoice * m_pConstruct;
140  wxChoice * m_pLabels;
141 };
142 
143 /* @} */
144 
146 
147 #endif // PKG_ALIGNMENT___TREE_BUILDER_PANEL__HPP
CAlgoToolManagerParamsPanel.
CObjectListWidget - mediator widget.
char data[12]
Definition: iconv.c:80
const CTreeBuilderParams & GetData() const
wxIcon GetIconResource(const wxString &name)
TConstScopedObjects * m_InputObjects
virtual void LoadSettings()
CObjectListWidget * m_Seq1List
virtual bool TransferDataToWindow()
wxBitmap GetBitmapResource(const wxString &name)
virtual void SaveSettings() const
override in derived classes
void SetData(const CTreeBuilderParams &data)
CTreeBuilderParams & GetData()
bool Create(wxWindow *parent, wxWindowID id=ID_CTreeBuilderPanel, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
CTreeBuilderParams m_data
virtual bool TransferDataFromWindow()
void RestoreDefaults()
override in derived classes
static bool ShowToolTips()
void SetObjects(TConstScopedObjects *objects)
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
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
#define SYMBOL_CTreeBuilderPanel_STYLE
#define SYMBOL_CTreeBuilderPanel_POSITION
#define SYMBOL_CTreeBuilderPanel_SIZE
#define SYMBOL_CTreeBuilderPanel_IDNAME
Modified on Fri Sep 20 14:57:19 2024 by modify_doxy.py rev. 669887