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

Go to the SVN repository for this file.

1 #ifndef _GUI_PACKAGES__LOCUS_TAG_EUK_DLG_H_
2 #define _GUI_PACKAGES__LOCUS_TAG_EUK_DLG_H_
3 /* $Id: locus_tag_euk_dlg.hpp 43444 2019-07-01 15:47:55Z filippov $
4  * ===========================================================================
5  *
6  * PUBLIC DOMAIN NOTICE
7  * National Center for Biotechnology Information
8  *
9  * This software/database is a "United States Government Work" under the
10  * terms of the United States Copyright Act. It was written as part of
11  * the author's official duties as a United States Government employee and
12  * thus cannot be copyrighted. This software/database is freely available
13  * to the public for use. The National Library of Medicine and the U.S.
14  * Government have not placed any restriction on its use or reproduction.
15  *
16  * Although all reasonable efforts have been taken to ensure the accuracy
17  * and reliability of the software and data, the NLM and the U.S.
18  * Government do not and cannot warrant the performance or results that
19  * may be obtained by using this software or data. The NLM and the U.S.
20  * Government disclaim all warranties, express or implied, including
21  * warranties of performance, merchantability or fitness for any particular
22  * purpose.
23  *
24  * Please cite the author in any work or product based on this material.
25  *
26  * ===========================================================================
27  *
28  * Authors: Igor Filippov
29  *
30  */
31 
32 #include <corelib/ncbistd.hpp>
33 
34 #include <wx/dialog.h>
35 #include <wx/textctrl.h>
36 #include <wx/radiobox.h>
37 
39 
40 /*!
41  * Control identifiers
42  */
43 
44 ////@begin control identifiers
45 #define SYMBOL_LOCUS_TAG_EUK_DLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
46 #define SYMBOL_LOCUS_TAG_EUK_DLG_TITLE _("Locus Tag, Euk/Prok")
47 #define SYMBOL_LOCUS_TAG_EUK_DLG_IDNAME ID_LOCUS_TAG_EUK_DLG
48 #define SYMBOL_LOCUS_TAG_EUK_DLG_SIZE wxSize(400, 300)
49 #define SYMBOL_LOCUS_TAG_EUK_DLG_POSITION wxDefaultPosition
50 ////@end control identifiers
51 
52 
53 /*!
54  * CLocusTagEukDlg class declaration
55  */
56 
57 class CLocusTagEukDlg: public wxDialog
58 {
59  DECLARE_DYNAMIC_CLASS( CLocusTagEukDlg )
60  DECLARE_EVENT_TABLE()
61 
62 public:
63  /// Constructors
65  CLocusTagEukDlg( wxWindow* parent, const string& locus_tag,
66  wxWindowID id = SYMBOL_LOCUS_TAG_EUK_DLG_IDNAME,
67  const wxString& caption = SYMBOL_LOCUS_TAG_EUK_DLG_TITLE,
68  const wxPoint& pos = SYMBOL_LOCUS_TAG_EUK_DLG_POSITION,
69  const wxSize& size = SYMBOL_LOCUS_TAG_EUK_DLG_SIZE,
70  long style = SYMBOL_LOCUS_TAG_EUK_DLG_STYLE );
71 
72  /// Creation
73  bool Create( wxWindow* parent,
74  wxWindowID id = SYMBOL_LOCUS_TAG_EUK_DLG_IDNAME,
75  const wxString& caption = SYMBOL_LOCUS_TAG_EUK_DLG_TITLE,
76  const wxPoint& pos = SYMBOL_LOCUS_TAG_EUK_DLG_POSITION,
77  const wxSize& size = SYMBOL_LOCUS_TAG_EUK_DLG_SIZE,
78  long style = SYMBOL_LOCUS_TAG_EUK_DLG_STYLE );
79 
80  /// Destructor
82 
83  /// Initialises member variables
84  void Init();
85 
86  /// Creates the controls and sizers
87  void CreateControls();
88 
89 ////@begin CLocusTagEukDlg event handler declarations
90 
91 ////@end CLocusTagEukDlg event handler declarations
92 
93 ////@begin CLocusTagEukDlg member function declarations
94 
95  /// Retrieves bitmap resources
96  wxBitmap GetBitmapResource( const wxString& name );
97 
98  /// Retrieves icon resources
99  wxIcon GetIconResource( const wxString& name );
100 ////@end CLocusTagEukDlg member function declarations
101 
102  /// Should we show tooltips?
103  static bool ShowToolTips();
104 
105  string GetLocusTag();
106  bool GetEuk() {return m_Euk->GetSelection() == 0;}
107 ////@begin CLocusTagEukDlg member variables
108  /// Control identifiers
109  enum {
113  };
114 ////@end CLocusTagEukDlg member variables
115 private:
116  wxTextCtrl* m_LocusTag;
117  wxRadioBox* m_Euk;
119 };
120 
122 
123 #endif
124  // _GUI_PACKAGES__LOCUS_TAG_EUK_DLG_H_
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
static bool ShowToolTips()
Should we show tooltips?
void Init()
Initialises member variables.
bool Create(wxWindow *parent, wxWindowID id=ID_LOCUS_TAG_EUK_DLG, const wxString &caption=_("Locus Tag, Euk/Prok"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CLocusTagEukDlg()
Constructors.
void CreateControls()
Creates the controls and sizers.
~CLocusTagEukDlg()
Destructor.
wxTextCtrl * m_LocusTag
Include a standard set of the NCBI C++ Toolkit most basic headers.
#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_LOCUS_TAG_EUK_DLG_STYLE
#define SYMBOL_LOCUS_TAG_EUK_DLG_TITLE
#define SYMBOL_LOCUS_TAG_EUK_DLG_POSITION
#define SYMBOL_LOCUS_TAG_EUK_DLG_IDNAME
#define SYMBOL_LOCUS_TAG_EUK_DLG_SIZE
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Wed Sep 04 15:05:13 2024 by modify_doxy.py rev. 669887