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

Go to the SVN repository for this file.

1 /* $Id: validator_report_cfg_dlg.hpp 41057 2018-05-16 16:03:20Z katargir $
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: Colleen Bollin
27  */
28 #ifndef _VALIDATOR_REPORT_CFG_DLG_H_
29 #define _VALIDATOR_REPORT_CFG_DLG_H_
30 
31 #include <corelib/ncbistd.hpp>
32 
38 #include <objmgr/bioseq_handle.hpp>
39 #include <wx/dialog.h>
40 #include <wx/button.h>
41 #include <wx/checkbox.h>
42 
43 /*!
44  * Includes
45  */
46 
47 ////@begin includes
48 ////@end includes
49 
50 /*!
51  * Forward declarations
52  */
53 
54 ////@begin forward declarations
55 ////@end forward declarations
56 
58 
60  class CScope;
62 
63 /*!
64  * Control identifiers
65  */
66 
67 ////@begin control identifiers
68 #define ID_CVALIDATORREPORTCFGDLG 10384
69 #define ID_REPORT_BTN 10385
70 #define ID_VALID_REPORT_DISMISS 10386
71 #define ID_VALID_REPORT_SEQUESTER_BTN 10387
72 #define ID_VALID_REPORT_SEGREGATE_BTN 10388
73 #define SYMBOL_CVALIDATORREPORTCFGDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
74 #define SYMBOL_CVALIDATORREPORTCFGDLG_TITLE _("Validator Report")
75 #define SYMBOL_CVALIDATORREPORTCFGDLG_IDNAME ID_CVALIDATORREPORTCFGDLG
76 #define SYMBOL_CVALIDATORREPORTCFGDLG_SIZE wxSize(400, 300)
77 #define SYMBOL_CVALIDATORREPORTCFGDLG_POSITION wxDefaultPosition
78 ////@end control identifiers
79 
80 
81 /*!
82  * CValidatorReportCfgDlg class declaration
83  */
84 
85 class CValidatorReportCfgDlg: public wxDialog
86 {
87  DECLARE_DYNAMIC_CLASS( CValidatorReportCfgDlg )
88  DECLARE_EVENT_TABLE()
89 
90 public:
91  /// Constructors
93  CValidatorReportCfgDlg( wxWindow* parent,
94  CObjectFor<objects::CValidError::TErrs>* errs, objects::CScope* scope, objects::CSeq_entry_Handle top_seq_entry, CConstRef<objects::CSeq_submit> seq_submit, IWorkbench* workbench,
96 
97  /// Creation
98  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CVALIDATORREPORTCFGDLG_IDNAME, const wxString& caption = SYMBOL_CVALIDATORREPORTCFGDLG_TITLE, const wxPoint& pos = SYMBOL_CVALIDATORREPORTCFGDLG_POSITION, const wxSize& size = SYMBOL_CVALIDATORREPORTCFGDLG_SIZE, long style = SYMBOL_CVALIDATORREPORTCFGDLG_STYLE );
99 
100  /// Destructor
102 
103  /// Initialises member variables
104  void Init();
105 
106  /// Creates the controls and sizers
107  void CreateControls();
108 
109 ////@begin CValidatorReportCfgDlg event handler declarations
110 
111  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_REPORT_BTN
112  void OnReportBtnClick( wxCommandEvent& event );
113 
114  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_VALID_REPORT_DISMISS
115  void OnValidReportDismissClick( wxCommandEvent& event );
116 
117 ////@end CValidatorReportCfgDlg event handler declarations
118 
119 ////@begin CValidatorReportCfgDlg member function declarations
120 
121  /// Retrieves bitmap resources
122  wxBitmap GetBitmapResource( const wxString& name );
123 
124  /// Retrieves icon resources
125  wxIcon GetIconResource( const wxString& name );
126 ////@end CValidatorReportCfgDlg member function declarations
127 
128  /// Should we show tooltips?
129  static bool ShowToolTips();
130 
131 ////@begin CValidatorReportCfgDlg member variables
132 ////@end CValidatorReportCfgDlg member variables
133 
134  void OnSequester( wxCommandEvent& event );
135  void OnSegregate( wxCommandEvent& event );
136 
137  void SetWorkDir(const wxString& workDir) { m_WorkDir = workDir; }
138 
139 protected:
141 
143  objects::CScope* m_Scope;
144  vector<wxCheckBox *> m_Opts;
145  wxCheckBox *m_Verbose;
146  objects::CSeq_entry_Handle m_TopSeqEntry;
149  wxString m_WorkDir;
150 };
151 
153 
154 #endif
155  // _VALIDATOR_REPORT_CFG_DLG_H_
User-defined methods of the data storage class.
CScope –.
Definition: scope.hpp:92
void OnSequester(wxCommandEvent &event)
CConstRef< objects::CSeq_submit > m_SeqSubmit
objects::CSeq_entry_Handle m_TopSeqEntry
void OnValidReportDismissClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_VALID_REPORT_DISMISS
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
bool Create(wxWindow *parent, wxWindowID id=10384, const wxString &caption=_("Validator Report"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void SetWorkDir(const wxString &workDir)
void Init()
Initialises member variables.
void OnSegregate(wxCommandEvent &event)
void GetSelected(set< objects::CBioseq_Handle > &selected)
void OnReportBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_REPORT_BTN
void CreateControls()
Creates the controls and sizers.
CObjectFor< objects::CValidError::TErrs > * m_Errs
static bool ShowToolTips()
Should we show tooltips?
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
IWorkbench is the central interface in the application framework.
Definition: workbench.hpp:113
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 END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:75
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:72
const struct ncbi::grid::netcache::search::fields::SIZE size
#define SYMBOL_CVALIDATORREPORTCFGDLG_POSITION
#define SYMBOL_CVALIDATORREPORTCFGDLG_SIZE
#define SYMBOL_CVALIDATORREPORTCFGDLG_TITLE
#define SYMBOL_CVALIDATORREPORTCFGDLG_STYLE
#define SYMBOL_CVALIDATORREPORTCFGDLG_IDNAME
Modified on Fri Sep 20 14:57:06 2024 by modify_doxy.py rev. 669887