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

Go to the SVN repository for this file.

1 /* $Id: suppress_genes.hpp 37242 2016-12-19 18:51:11Z filippov $
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: Igor Filippov
27  */
28 
29 
30 #ifndef _SUPPRESS_GENES_H_
31 #define _SUPPRESS_GENES_H_
32 
33 #include <corelib/ncbistd.hpp>
38 
39 #include <wx/listctrl.h>
40 #include <wx/checkbox.h>
41 #include <wx/sizer.h>
42 #include <wx/button.h>
43 #include <wx/statbox.h>
44 #include <wx/msgdlg.h>
45 #include <wx/stattext.h>
46 
48 
50 
51 #define ID_SUPPRESS_GENES 14000
52 #define SYMBOL_SUPPRESS_GENES_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
53 #define SYMBOL_SUPPRESS_GENES_TITLE _("Suppress Genes")
54 #define SYMBOL_SUPPRESS_GENES_IDNAME ID_SUPPRESS_GENES
55 #define SYMBOL_SUPPRESS_GENES_SIZE wxDefaultSize
56 #define SYMBOL_SUPPRESS_GENES_POSITION wxDefaultPosition
57 ////@end control identifiers
58 #define ID_SUPPRESS_GENES_LISTCTRL 14001
59 #define ID_SUPPRESS_GENES_OKCANCEL 14005
60 
62 {
63  DECLARE_DYNAMIC_CLASS( CSuppressGenes )
64  DECLARE_EVENT_TABLE()
65 
66 public:
67  /// Constructors
69  CSuppressGenes( wxWindow* parent, IWorkbench *wb, wxWindowID id = SYMBOL_SUPPRESS_GENES_IDNAME, const wxString& caption = SYMBOL_SUPPRESS_GENES_TITLE, const wxPoint& pos = SYMBOL_SUPPRESS_GENES_POSITION, const wxSize& size = SYMBOL_SUPPRESS_GENES_SIZE, long style = SYMBOL_SUPPRESS_GENES_STYLE );
70 
71  /// Creation
72  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_SUPPRESS_GENES_IDNAME, const wxString& caption = SYMBOL_SUPPRESS_GENES_TITLE, const wxPoint& pos = SYMBOL_SUPPRESS_GENES_POSITION, const wxSize& size = SYMBOL_SUPPRESS_GENES_SIZE, long style = SYMBOL_SUPPRESS_GENES_STYLE );
73 
74  /// Destructor
76 
77  /// Initialises member variables
78  void Init();
79 
80  /// Creates the controls and sizers
81  void CreateControls();
82 
83  /// Retrieves bitmap resources
84  wxBitmap GetBitmapResource( const wxString& name );
85 
86  /// Retrieves icon resources
87  wxIcon GetIconResource( const wxString& name );
88 
89  /// Should we show tooltips?
90  static bool ShowToolTips();
91 
93  virtual string GetErrorMessage(){ return m_ErrorMessage;}
94 
95 private:
98  vector<string> m_Descriptions;
99  vector<bool> m_SubtypeAnyFlag;
100  wxListCtrl* m_ListCtrl;
102 };
103 
105 
106 #endif // _SUPPRESS_GENES_H_
string m_ErrorMessage
namespace ncbi::objects::
Definition: Seq_feat.hpp:58
CSuppressGenes()
Constructors.
virtual CRef< CCmdComposite > GetCommand()
vector< string > m_Descriptions
vector< bool > m_SubtypeAnyFlag
bool CreateSuppressingGeneXrefs(CSeq_feat &f)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
static bool ShowToolTips()
Should we show tooltips?
~CSuppressGenes()
Destructor.
void CreateControls()
Creates the controls and sizers.
virtual string GetErrorMessage()
wxListCtrl * m_ListCtrl
bool Create(wxWindow *parent, wxWindowID id=14000, const wxString &caption=_("Suppress Genes"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
map< pair< int, int >, string > m_Types
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CStringConstraintPanel * m_StringConstraintPanel
void Init()
Initialises member variables.
IWorkbench is the central interface in the application framework.
Definition: workbench.hpp:113
Definition: map.hpp:338
Include a standard set of the NCBI C++ Toolkit most basic headers.
static FILE * f
Definition: readconf.c:23
#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
#define SYMBOL_SUPPRESS_GENES_STYLE
#define SYMBOL_SUPPRESS_GENES_POSITION
#define SYMBOL_SUPPRESS_GENES_SIZE
USING_SCOPE(ncbi::objects)
#define SYMBOL_SUPPRESS_GENES_IDNAME
#define SYMBOL_SUPPRESS_GENES_TITLE
Modified on Fri Sep 20 14:58:33 2024 by modify_doxy.py rev. 669887