32 #ifndef _APPLY_EDIT_CONVERT_PANEL_H_
33 #define _APPLY_EDIT_CONVERT_PANEL_H_
42 #include <wx/listbox.h>
43 #include <wx/listbook.h>
69 #define SYMBOL_CAPPLYEDITCONVERTPANEL_STYLE wxTAB_TRAVERSAL
70 #define SYMBOL_CAPPLYEDITCONVERTPANEL_TITLE _("apply edit convert panel")
71 #define SYMBOL_CAPPLYEDITCONVERTPANEL_IDNAME ID_CAPPLYEDITCONVERTPANEL
72 #define SYMBOL_CAPPLYEDITCONVERTPANEL_SIZE wxDefaultSize
73 #define SYMBOL_CAPPLYEDITCONVERTPANEL_POSITION wxDefaultPosition
96 bool Create( wxWindow* parent,
173 DECLARE_EVENT_TABLE()
177 CSubpanel( wxWindow* parent, wxGrid *
grid, wxArrayString &choices, wxWindowID
id,
const wxPoint& pos,
const wxSize&
size,
long style) : wxPanel (parent, id, pos,
size, style),
m_Grid(
grid),
m_Choices(&choices)
182 bool Create( wxWindow* parent, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL )
184 wxPanel::Create( parent,
id, pos,
size, style );
188 GetSizer()->SetSizeHints(
this);
196 wxIcon
GetIconResource(
const wxString& name ) { wxUnusedVar(name);
return wxNullIcon; }
223 DECLARE_EVENT_TABLE()
228 CApplySubpanel( wxWindow* parent, wxGrid *
grid, wxArrayString &choices, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL )
268 DECLARE_EVENT_TABLE()
273 CEditSubpanel( wxWindow* parent, wxGrid *
grid, wxArrayString &choices, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL )
326 DECLARE_EVENT_TABLE()
331 CRemoveSubpanel( wxWindow* parent, wxGrid *
grid, wxArrayString &choices, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL )
352 DECLARE_EVENT_TABLE()
356 CSwapSubpanel( wxWindow* parent, wxGrid *
grid, wxArrayString &choices, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL )
379 DECLARE_EVENT_TABLE()
384 CConvertSubpanel( wxWindow* parent, wxGrid *
grid, wxArrayString &choices, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL )
407 DECLARE_EVENT_TABLE()
412 CParseSubpanel( wxWindow* parent, wxGrid *
grid, wxArrayString &choices, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL )
437 DECLARE_EVENT_TABLE()
442 CChangeCaseSubpanel( wxWindow* parent, wxGrid *
grid, wxArrayString &choices, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL )
#define SYMBOL_CAPPLYEDITCONVERTPANEL_SIZE
#define SYMBOL_CAPPLYEDITCONVERTPANEL_IDNAME
#define SYMBOL_CAPPLYEDITCONVERTPANEL_POSITION
#define SYMBOL_CAPPLYEDITCONVERTPANEL_STYLE
void Init()
Initialises member variables.
void GetSelectedRows(std::set< int > &selected)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
@ ID_CAPPLYEDITCONVERTPANEL
~CApplyEditconvertPanel()
Destructor.
map< int, map< int, string > > m_undo_values
void CreateControls()
Creates the controls and sizers.
void OnUndoButtonClick(wxCommandEvent &event)
CSeqTableGridPanel * m_GridPanel
static bool ShowToolTips()
Should we show tooltips?
void OnApplyToAllButtonClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_AECR_BUTTON
void AddUndo(int i, int j, const string &val)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnApplyToSelButtonClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_AECR_BUTTON1
void SetColumns(wxArrayString &columns)
CApplyEditconvertPanel()
Constructors.
wxString GetAutopopulateValue()
bool Create(wxWindow *parent, wxWindowID id=ID_CAPPLYEDITCONVERTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Creation.
wxArrayString * m_Choices
@ ID_APPLYSUB_AUTOPOPULATE
CApplySubpanel(wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
void OnApplysubAutopopulateClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_APPLYSUB_AUTOPOPULATE
void OnApplysubClearClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_APPLYSUB_CLEAR
virtual void CreateControls()
Creates the controls and sizers.
virtual void ApplyToAll(int col)
CApplySubpanel()
Constructors.
virtual void ApplyToSelected(int col, const std::set< int > &selected)
CChangeCaseSubpanel()
Constructors.
virtual void ApplyToAll(int col)
virtual void CreateControls()
Creates the controls and sizers.
virtual void ApplyToSelected(int col, const std::set< int > &selected)
CChangeCaseSubpanel(wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
CCapChangePanel * m_CapChangeOptions
virtual void ApplyToSelected(int col, const std::set< int > &selected)
virtual void CreateControls()
Creates the controls and sizers.
CConvertSubpanel()
Constructors.
CConvertSubpanel(wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
virtual void SetColumns(wxArrayString &columns)
virtual void ApplyToAll(int col)
CEditSubpanel(wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
void OnEditsubCopyClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_COPY
virtual void ApplyToAll(int col)
wxRadioButton * m_AtBegin
CEditSubpanel()
Constructors.
wxRadioButton * m_Anywhere
virtual void CreateControls()
Creates the controls and sizers.
void OnEditsubAutopopulateClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_AUTOPOPULATE
virtual void ApplyToSelected(int col, const std::set< int > &selected)
void OnEditsubClearClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_CLEAR
@ ID_EDITSUB_AUTOPOPULATE
virtual void CreateControls()
Creates the controls and sizers.
CParseTextOptionsDlg * m_ParseOptions
CParseSubpanel()
Constructors.
CParseSubpanel(wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
virtual void ApplyToAll(int col)
virtual void ApplyToSelected(int col, const std::set< int > &selected)
virtual void SetColumns(wxArrayString &columns)
virtual void CreateControls()
Creates the controls and sizers.
CRemoveSubpanel()
Constructors.
virtual void ApplyToSelected(int col, const std::set< int > &selected)
CRemoveSubpanel(wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
virtual void ApplyToAll(int col)
virtual void ApplyToAll(int col)
wxBitmap GetBitmapResource(const wxString &name)
CSubpanel(wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id, const wxPoint &pos, const wxSize &size, long style)
CApplyEditconvertPanel * GetBaseFrame()
virtual void CreateControls()
wxArrayString * m_Choices
void ChangeValue(const string &new_value, int row, int col)
wxIcon GetIconResource(const wxString &name)
virtual void SetColumns(wxArrayString &columns)
objects::edit::EExistingText GetExistingTextHandling(const string &field)
virtual void ApplyToSelected(int col, const std::set< int > &selected)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
virtual void ApplyToAll(int col)
virtual void SetColumns(wxArrayString &columns)
virtual void CreateControls()
Creates the controls and sizers.
virtual void ApplyToSelected(int col, const std::set< int > &selected)
CSwapSubpanel(wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const column_t columns[]
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
#define row(bind, expected)