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

Go to the SVN repository for this file.

1 /* $Id: add_secondary.hpp 38636 2017-06-05 19:12:02Z asztalos $
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 #ifndef _ADD_SECONDARY_H_
29 #define _ADD_SECONDARY_H_
30 
31 #include <corelib/ncbistd.hpp>
35 #include <wx/dialog.h>
36 #include <wx/datectrl.h>
37 #include <wx/textctrl.h>
38 #include <wx/checkbox.h>
39 
40 /*!
41  * Includes
42  */
43 
44 ////@begin includes
45 ////@end includes
46 #include <wx/sizer.h>
47 
48 /*!
49  * Forward declarations
50  */
51 
52 ////@begin forward declarations
53 class wxBoxSizer;
54 ////@end forward declarations
55 class CGrowableListCtrl;
56 
58 
59 /*!
60  * Control identifiers
61  */
62 
63 ////@begin control identifiers
64 #define ID_CADDSECONDARY 10000
65 #define ID_CADDSECONDARY_TEXTCTRL 10001
66 #define ID_CADDSECONDARY_TEXTCTRL1 10002
67 #define ID_CADDSECONDARY_TEXTCTRL2 10003
68 #define ID_CADDSECONDARY_TEXTCTRL3 10004
69 #define ID_CADDSECONDARY_TEXTCTRL4 10005
70 #define ID_CADDSECONDARY_SCROLLEDWINDOW 10006
71 #define ID_CADDSECONDARY_CHECKBOX 10007
72 #define ID_CADDSECONDARY_CHECKBOX1 10008
73 #define ID_CADDSECONDARY_SCROLLEDWINDOW1 10009
74 #define ID_CADDSECONDARY_CHECKBOX2 10010
75 #define ID_CADDSECONDARY_CHECKBOX3 10011
76 #define ID_CADDSECONDARY_CHECKBOX4 10012
77 #define ID_CADDSECONDARY_CHECKBOX5 10013
78 #define ID_CADDSECONDARY_CHECKBOX6 10014
79 #define ID_CADDSECONDARY_CHECKBOX7 10015
80 #define ID_CADDSECONDARY_CHECKBOX8 10016
81 #define ID_CADDSECONDARY_CHECKBOX9 10017
82 #define ID_CADDSECONDARY_BUTTON 10018
83 #define ID_CADDSECONDARY_DATECTRL 10019
84 #define ID_CADDSECONDARY_CHECKBOX10 10020
85 #define ID_CADDSECONDARY_CHECKBOX11 10021
86 #define SYMBOL_CADDSECONDARY_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
87 #define SYMBOL_CADDSECONDARY_TITLE _("Add Secondary")
88 #define SYMBOL_CADDSECONDARY_IDNAME ID_CADDSECONDARY
89 #define SYMBOL_CADDSECONDARY_SIZE wxSize(400, 300)
90 #define SYMBOL_CADDSECONDARY_POSITION wxDefaultPosition
91 ////@end control identifiers
92 
93 
94 /*!
95  * CAddSecondary class declaration
96  */
97 
99 {
100  DECLARE_DYNAMIC_CLASS( CAddSecondary )
101  DECLARE_EVENT_TABLE()
102 
103 public:
104  /// Constructors
105  CAddSecondary();
106  CAddSecondary( wxWindow* parent, objects::CSeq_entry_Handle seh, wxWindowID id = SYMBOL_CADDSECONDARY_IDNAME, const wxString& caption = SYMBOL_CADDSECONDARY_TITLE, const wxPoint& pos = SYMBOL_CADDSECONDARY_POSITION, const wxSize& size = SYMBOL_CADDSECONDARY_SIZE, long style = SYMBOL_CADDSECONDARY_STYLE );
107 
108  /// Creation
109  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CADDSECONDARY_IDNAME, const wxString& caption = SYMBOL_CADDSECONDARY_TITLE, const wxPoint& pos = SYMBOL_CADDSECONDARY_POSITION, const wxSize& size = SYMBOL_CADDSECONDARY_SIZE, long style = SYMBOL_CADDSECONDARY_STYLE );
110 
111  /// Destructor
112  ~CAddSecondary();
113 
114  /// Initialises member variables
115  void Init();
116 
117  /// Creates the controls and sizers
118  void CreateControls();
119 
120 ////@begin CAddSecondary event handler declarations
121 
122 ////@end CAddSecondary event handler declarations
123 
124 ////@begin CAddSecondary member function declarations
125 
126  /// Retrieves bitmap resources
127  wxBitmap GetBitmapResource( const wxString& name );
128 
129  /// Retrieves icon resources
130  wxIcon GetIconResource( const wxString& name );
131 ////@end CAddSecondary member function declarations
132 
133  /// Should we show tooltips?
134  static bool ShowToolTips();
135 
137  bool TransferDataToWindow();
138  void DeleteAllKeywords(wxCommandEvent& event );
139 
140 private:
141  objects::CSeq_entry_Handle m_TopSeqEntry;
142 ////@begin CAddSecondary member variables
143  wxTextCtrl* m_Division;
144  wxTextCtrl* m_Origin;
145  wxTextCtrl* m_OldDate;
146  wxTextCtrl* m_Source;
147  wxTextCtrl* m_Taxonomy;
149  wxCheckBox* m_CopyToReplaces;
150  wxCheckBox* m_RetainReplaces;
152  wxCheckBox* m_HTGS_DRAFT;
153  wxCheckBox* m_HTGS_ACTIVEFIN;
154  wxCheckBox* m_TPA_EXPERIMENTAL;
155  wxCheckBox* m_TPA_REASSEMBLY;
156  wxCheckBox* m_HTGS_FULLTOP;
157  wxCheckBox* m_HTGS_CANCELLED;
158  wxCheckBox* m_TPA_INFERENTIAL;
159  wxCheckBox* m_BARCODE;
160  wxCheckBox* m_UNORDERED;
161  wxCheckBox* m_TPA_SPECIALIST_DB;
162  wxDatePickerCtrl* m_Date;
163 ////@end CAddSecondary member variables
164 };
165 
167 
168 #endif
169  // _ADD_SECONDARY_H_
#define SYMBOL_CADDSECONDARY_TITLE
#define SYMBOL_CADDSECONDARY_IDNAME
#define SYMBOL_CADDSECONDARY_POSITION
#define SYMBOL_CADDSECONDARY_STYLE
#define SYMBOL_CADDSECONDARY_SIZE
wxCheckBox * m_HTGS_FULLTOP
wxTextCtrl * m_OldDate
wxTextCtrl * m_Source
void CreateControls()
Creates the controls and sizers.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void Init()
Initialises member variables.
wxCheckBox * m_HTGS_ACTIVEFIN
CAddSecondary()
Constructors.
wxCheckBox * m_RetainReplaces
void DeleteAllKeywords(wxCommandEvent &event)
wxDatePickerCtrl * m_Date
wxCheckBox * m_TPA_INFERENTIAL
wxCheckBox * m_HTGS_CANCELLED
CGrowableListCtrl * m_Keywords
CAddSecondary(wxWindow *parent, objects::CSeq_entry_Handle seh, wxWindowID id=10000, const wxString &caption=_("Add Secondary"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
static bool ShowToolTips()
Should we show tooltips?
wxCheckBox * m_CopyToReplaces
wxTextCtrl * m_Division
CRef< CCmdComposite > GetCommand()
wxCheckBox * m_UNORDERED
wxCheckBox * m_TPA_SPECIALIST_DB
CGrowableListCtrl * m_SecondaryAccessions
wxCheckBox * m_BARCODE
bool TransferDataToWindow()
objects::CSeq_entry_Handle m_TopSeqEntry
wxTextCtrl * m_Taxonomy
wxTextCtrl * m_Origin
wxCheckBox * m_HTGS_DRAFT
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxCheckBox * m_TPA_REASSEMBLY
~CAddSecondary()
Destructor.
wxCheckBox * m_TPA_EXPERIMENTAL
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Add Secondary"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
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
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Wed Apr 24 14:19:26 2024 by modify_doxy.py rev. 669887