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

Go to the SVN repository for this file.

1 /* $Id: bulk_cmd_dlg.hpp 42432 2019-02-22 18:44:43Z 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: Colleen Bollin
27  */
28 #ifndef _BULKCMDDLG_H_
29 #define _BULKCMDDLG_H_
30 
31 #include <corelib/ncbistd.hpp>
36 #include <gui/objutils/objects.hpp>
39 #include <wx/frame.h>
40 #include <vector>
41 
42 class wxSizer;
43 
45 
46 
47 /*!
48  * CBulkCmdPanel class declaration
49  */
50 
51 class CBulkCmdDlg: public wxFrame
52 {
53  DECLARE_ABSTRACT_CLASS( CBulkCmdDlg )
54  DECLARE_EVENT_TABLE()
55 public:
56  /// Constructors
57  CBulkCmdDlg () {};
59 
60  bool Create (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr);
61  bool Create (wxWindow *parent, IWorkbench* wb, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr);
62  /// Destructor
63  ~CBulkCmdDlg () {};
64 
65 
67  virtual string GetErrorMessage() = 0;
68  virtual void OnChildChange(wxWindow *wnd) {}
69  virtual void ExecuteCmd(CRef<CCmdComposite> cmd);
72  void UpdateChildrenFeaturePanels( wxSizer* sizer );
73  void onCancelPressed( wxCommandEvent& event );
74 protected:
77  objects::CSeq_entry_Handle m_TopSeqEntry;
80 
81  edit::EExistingText x_GetExistingTextHandling (int num_conflicts, bool allow_multiple = false);
82 };
83 
84 
85 void AddSize(wxSize& orig, const wxSize& add, int borders);
86 
88 
89 #endif
90  // _BULKCMDDLG_H_
User-defined methods of the data storage class.
void AddSize(wxSize &orig, const wxSize &add, int borders)
virtual void OnChildChange(wxWindow *wnd)
CBulkCmdDlg(IWorkbench *wb)
CBulkCmdDlg()
Constructors.
TConstScopedObjects GetSelectedObjects()
virtual void ExecuteCmd(CRef< CCmdComposite > cmd)
void onCancelPressed(wxCommandEvent &event)
virtual CRef< CCmdComposite > GetCommand()=0
virtual string GetErrorMessage()=0
CConstRef< objects::CSeq_submit > m_SeqSubmit
objects::CSeq_entry_Handle m_TopSeqEntry
bool Create(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
~CBulkCmdDlg()
Destructor.
IWorkbench * m_Workbench
string m_ErrorMessage
bool GetTopLevelSeqEntryAndProcessor()
ICommandProccessor * m_CmdProccessor
void UpdateChildrenFeaturePanels(wxSizer *sizer)
edit::EExistingText x_GetExistingTextHandling(int num_conflicts, bool allow_multiple=false)
Undo/Redo interface for editing operations.
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.
static CS_COMMAND * cmd
Definition: ct_dynamic.c:26
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
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig
const struct ncbi::grid::netcache::search::fields::SIZE size
EExistingText
Modified on Fri Sep 20 14:57:57 2024 by modify_doxy.py rev. 669887