36 #include "wx/wxprec.h"
96 int init_action,
bool horizontal, wxWindowID
id,
const wxPoint& pos,
const wxSize&
size,
long style)
97 : m_GridPanel(grid_panel), m_Grid(grid_panel->GetGrid()), m_Choices(&choices), m_init_action(init_action), m_Horizontal(horizontal)
111 wxPanel::Create( parent,
id, pos,
size, style );
116 GetSizer()->SetSizeHints(
this);
158 wxStaticBox* itemStaticBoxSizer2Static =
new wxStaticBox(itemPanel1,
wxID_ANY,
_(
"Action"));
159 wxStaticBoxSizer* itemStaticBoxSizer2 =
new wxStaticBoxSizer(itemStaticBoxSizer2Static, wxVERTICAL);
160 itemPanel1->SetSizer(itemStaticBoxSizer2);
162 wxBoxSizer* itemBoxSizer3 =
new wxBoxSizer(wxHORIZONTAL);
163 itemStaticBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_LEFT|wxALL, 5);
165 m_Notebook =
new wxListbook( itemStaticBoxSizer2->GetStaticBox(),
ID_AECR_CHOICE, wxDefaultPosition, wxDefaultSize, wxBK_LEFT);
166 itemBoxSizer3->Add(
m_Notebook, 0, wxALIGN_TOP|wxALL, 5);
189 wxBoxSizer* itemBoxSizer7 =
new wxBoxSizer(wxHORIZONTAL);
190 itemStaticBoxSizer2->Add(itemBoxSizer7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);
192 wxButton* itemButton8 =
new wxButton( itemStaticBoxSizer2->GetStaticBox(),
ID_AECR_BUTTON,
_(
"Apply To All"), wxDefaultPosition, wxDefaultSize, 0 );
193 itemBoxSizer7->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
195 wxButton* itemButton9 =
new wxButton( itemStaticBoxSizer2->GetStaticBox(),
ID_AECR_BUTTON1,
_(
"Apply To Selected"), wxDefaultPosition, wxDefaultSize, 0 );
196 itemBoxSizer7->Add(itemButton9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
199 itemBoxSizer7->Add(
m_UndoButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
257 win = win->GetParent();
267 if (sel == wxNOT_FOUND)
return col;
268 for (
int i=0;
i <
m_Grid->GetNumberCols();
i++)
289 wxArrayInt wx_selected =
m_Grid->GetSelectedRows();
290 if (wx_selected.IsEmpty())
292 if (
m_Grid->GetSelectionBlockTopLeft().size() == 1 &&
m_Grid->GetSelectionBlockTopLeft().size() ==
m_Grid->GetSelectionBlockBottomRight().size())
294 int top_row =
m_Grid->GetSelectionBlockTopLeft()[0].GetRow();
295 int bot_row =
m_Grid->GetSelectionBlockBottomRight()[0].GetRow();
296 for (
int i = top_row;
i <= bot_row;
i++)
304 for (
unsigned int i = 0;
i < wx_selected.GetCount();
i++)
306 selected.insert(wx_selected.Item(
i));
322 if (
m_Grid->IsSelection())
324 std::set<int> selected;
326 for (std::set<int>::const_iterator
i = selected.begin();
i != selected.end(); ++
i)
329 if (!
value.IsEmpty())
335 for (
int i = 0;
i <
m_Grid->GetNumberRows();
i++)
338 if (!
value.IsEmpty())
392 if (!
m_Grid->IsSelection())
398 std::set<int> selected;
435 string val = j->second;
436 m_Grid->SetCellTextColour(row,col,
m_Grid->GetDefaultCellTextColour());
437 m_Grid->SetCellValue(row,col,wxString(
val));
447 IMPLEMENT_DYNAMIC_CLASS(
CSubpanel, wxPanel )
461 string msg =
"Do you want to overwrite existing values?";
462 int answer = wxMessageBox(
ToWxString(msg),
wxT(
"Existing Text"), wxYES_NO | wxCANCEL | wxICON_QUESTION,
this);
463 if (answer == wxCANCEL) {
465 }
else if (answer == wxYES) {
470 bool allow_add =
column->AllowMultipleValues();
472 if (dlg.ShowModal() == wxID_OK) {
480 return existing_text;
485 wxWindow *win = GetParent();
491 win = win->GetParent();
498 string old_value = this->
m_Grid->GetCellValue(row,col).ToStdString();
499 if (old_value != new_value)
503 parent->
AddUndo(row,col,old_value);
504 this->
m_Grid->SetCellTextColour(row,col,wxColour(255, 160, 0));
505 this->
m_Grid->SetCellValue(row,col,wxString(new_value));
515 if (sel == wxNOT_FOUND)
return col;
516 for (
int i=0;
i < this->
m_Grid->GetNumberCols();
i++)
569 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxHORIZONTAL);
570 itemPanel1->SetSizer(itemBoxSizer2);
572 m_ListBox =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
573 m_ListBox->SetSelection(0);
574 itemBoxSizer2->Add(m_ListBox, 0, wxALIGN_TOP|wxALL, 5);
576 wxBoxSizer* itemBoxSizer3 =
new wxBoxSizer(wxVERTICAL);
577 itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_TOP, 0);
579 m_TextCtrl =
new wxTextCtrl( itemPanel1, ID_APPLYSUB_TEXTCTRL, wxEmptyString, wxDefaultPosition, wxSize(300, -1), 0 );
580 itemBoxSizer3->Add(m_TextCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
582 wxBoxSizer* itemBoxSizer4 =
new wxBoxSizer(wxHORIZONTAL);
583 itemBoxSizer3->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
585 wxButton* itemButton5 =
new wxButton( itemPanel1, ID_APPLYSUB_AUTOPOPULATE,
_(
"Autopopulate"), wxDefaultPosition, wxDefaultSize, 0 );
586 itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
588 wxButton* itemButton6 =
new wxButton( itemPanel1, ID_APPLYSUB_CLEAR,
_(
"Clear"), wxDefaultPosition, wxDefaultSize, 0 );
589 itemBoxSizer4->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
601 wxWindow *win =
this;
602 while (win && !parent)
604 win = win->GetParent();
609 wxString
value = parent-> GetAutopopulateValue();
629 wxMessageBox(
_(
"Apply value is empty"),
wxT(
"No value entered"), wxOK | wxICON_WARNING,
this);
633 for (
int i = 0;
i < this->
m_Grid->GetNumberRows();
i++)
634 if (!this->
m_Grid->IsReadOnly(
i,col) && this->m_Grid->IsRowShown(
i) )
636 string new_value = this->
m_Grid->GetCellValue(
i,col).ToStdString();
637 if (!new_value.empty())
659 wxMessageBox(
_(
"Apply value is empty"),
wxT(
"No value entered"), wxOK | wxICON_WARNING,
this);
663 for (std::set<int>::const_iterator
i = selected.begin();
i != selected.end(); ++
i)
664 if (!this->
m_Grid->IsReadOnly(*
i,col) && this->m_Grid->IsRowShown(*
i))
666 string new_value = this->
m_Grid->GetCellValue(*
i,col).ToStdString();
667 if (!new_value.empty())
719 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxHORIZONTAL);
720 itemPanel1->SetSizer(itemBoxSizer2);
722 m_ListBox =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
723 m_ListBox->SetSelection(0);
724 itemBoxSizer2->Add(m_ListBox, 0, wxALIGN_TOP|wxALL, 5);
726 wxBoxSizer* itemBoxSizer4 =
new wxBoxSizer(wxVERTICAL);
727 itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_TOP|wxALL, 0);
729 wxStaticText* itemStaticText5 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Find"), wxDefaultPosition, wxDefaultSize, 0 );
730 itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
732 wxStaticText* itemStaticText6 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Replace"), wxDefaultPosition, wxDefaultSize, 0 );
733 itemBoxSizer4->Add(itemStaticText6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
735 wxBoxSizer* itemBoxSizer7 =
new wxBoxSizer(wxVERTICAL);
736 itemBoxSizer2->Add(itemBoxSizer7, 0, wxALIGN_TOP|wxALL, 0);
738 m_Find =
new wxTextCtrl( itemPanel1, ID_EDITSUB_FIND, wxEmptyString, wxDefaultPosition, wxSize(250, -1), 0 );
739 itemBoxSizer7->Add(m_Find, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
741 m_Replace =
new wxTextCtrl( itemPanel1, ID_EDITSUB_REPLACE, wxEmptyString, wxDefaultPosition, wxSize(250, -1), 0 );
742 itemBoxSizer7->Add(m_Replace, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
744 wxBoxSizer* itemBoxSizer10 =
new wxBoxSizer(wxVERTICAL);
745 itemBoxSizer2->Add(itemBoxSizer10, 0, wxALIGN_TOP|wxALL, 0);
747 wxButton* itemButton11 =
new wxButton( itemPanel1, ID_EDITSUB_COPY,
_(
"Copy"), wxDefaultPosition, wxDefaultSize, 0 );
748 itemBoxSizer10->Add(itemButton11, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
750 wxBoxSizer* itemBoxSizer12 =
new wxBoxSizer(wxHORIZONTAL);
751 itemBoxSizer7->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);
753 m_Anywhere =
new wxRadioButton( itemPanel1, ID_EDITSUB_ANY,
_(
"Anywhere"), wxDefaultPosition, wxDefaultSize, 0 );
754 m_Anywhere->SetValue(
true);
755 itemBoxSizer12->Add(m_Anywhere, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
757 m_AtBegin =
new wxRadioButton( itemPanel1, ID_EDITSUB_BEG,
_(
"At the beginning"), wxDefaultPosition, wxDefaultSize, 0 );
758 m_AtBegin->SetValue(
false);
759 itemBoxSizer12->Add(m_AtBegin, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
761 m_AtEnd =
new wxRadioButton( itemPanel1, ID_EDITSUB_END,
_(
"At the end"), wxDefaultPosition, wxDefaultSize, 0 );
762 m_AtEnd->SetValue(
false);
763 itemBoxSizer12->Add(m_AtEnd, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
765 wxBoxSizer* itemBoxSizer16 =
new wxBoxSizer(wxHORIZONTAL);
766 itemBoxSizer7->Add(itemBoxSizer16, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);
768 wxButton* itemButton17 =
new wxButton( itemPanel1, ID_EDITSUB_AUTOPOPULATE,
_(
"Autopopulate"), wxDefaultPosition, wxDefaultSize, 0 );
769 itemBoxSizer16->Add(itemButton17, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
771 wxButton* itemButton18 =
new wxButton( itemPanel1, ID_EDITSUB_CLEAR,
_(
"Clear"), wxDefaultPosition, wxDefaultSize, 0 );
772 itemBoxSizer16->Add(itemButton18, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
794 wxWindow *win =
this;
795 while (win && !parent)
797 win = win->GetParent();
802 wxString
value = parent-> GetAutopopulateValue();
818 string find =
m_Find->GetValue().ToStdString();
821 wxMessageBox(
_(
"Find value is empty"),
wxT(
"No value entered"), wxOK | wxICON_WARNING,
this);
824 string replace =
m_Replace->GetValue().ToStdString();
827 bool end =
m_AtEnd->GetValue();
829 for (
int i = 0;
i < this->
m_Grid->GetNumberRows();
i++)
830 if (!this->
m_Grid->IsReadOnly(
i,col) && this->m_Grid->IsRowShown(
i))
832 string source = this->
m_Grid->GetCellValue(
i,col).ToStdString();
847 size_t pos =
source.length() - find.length();
859 string find =
m_Find->GetValue().ToStdString();
862 wxMessageBox(
_(
"Find value is empty"),
wxT(
"No value entered"), wxOK | wxICON_WARNING,
this);
865 string replace =
m_Replace->GetValue().ToStdString();
868 bool end =
m_AtEnd->GetValue();
870 for (std::set<int>::const_iterator
i = selected.begin();
i != selected.end(); ++
i)
871 if (!this->
m_Grid->IsReadOnly(*
i,col) && this->m_Grid->IsRowShown(*
i))
873 string source = this->
m_Grid->GetCellValue(*
i,col).ToStdString();
889 size_t pos =
source.length() - find.length();
926 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxHORIZONTAL);
927 itemPanel1->SetSizer(itemBoxSizer2);
929 m_ListBox =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
930 m_ListBox->SetSelection(0);
931 itemBoxSizer2->Add(m_ListBox, 0, wxALIGN_TOP|wxALL, 5);
939 for (
int i = 0;
i < this->
m_Grid->GetNumberRows();
i++)
940 if (!this->
m_Grid->IsReadOnly(
i,col) && this->m_Grid->IsRowShown(
i))
949 for (std::set<int>::const_iterator
i = selected.begin();
i != selected.end(); ++
i)
950 if (!this->
m_Grid->IsReadOnly(*
i,col) && this->m_Grid->IsRowShown(*
i))
973 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxHORIZONTAL);
974 itemPanel1->SetSizer(itemBoxSizer2);
976 m_ListBox =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
977 m_ListBox->SetSelection(0);
978 itemBoxSizer2->Add(m_ListBox, 0, wxALIGN_TOP|wxALL, 5);
980 m_ListBox2 =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
981 m_ListBox2->SetSelection(0);
982 itemBoxSizer2->Add(m_ListBox2, 0, wxALIGN_TOP|wxALL, 5);
989 if (
col2 < 0 )
return;
990 if (col ==
col2)
return;
992 for (
int i = 0;
i < this->
m_Grid->GetNumberRows();
i++)
993 if (!this->
m_Grid->IsReadOnly(
i,col) && !this->m_Grid->IsReadOnly(
i,
col2) && this->m_Grid->IsRowShown(
i))
996 wxString value2 = this->
m_Grid->GetCellValue(
i,col2);
1005 if (
col2 < 0 )
return;
1006 if (col ==
col2)
return;
1008 for (std::set<int>::const_iterator
i = selected.begin();
i != selected.end(); ++
i)
1009 if (!this->
m_Grid->IsReadOnly(*
i,col) && !this->m_Grid->IsReadOnly(*
i,
col2) && this->m_Grid->IsRowShown(*
i))
1012 wxString value2 = this->
m_Grid->GetCellValue(*
i,col2);
1034 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
1035 itemPanel1->SetSizer(itemBoxSizer2);
1037 wxBoxSizer* itemBoxSizer3 =
new wxBoxSizer(wxHORIZONTAL);
1038 itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_TOP|wxALL, 0);
1040 m_ListBox =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
1041 m_ListBox->SetSelection(0);
1042 itemBoxSizer3->Add(m_ListBox, 0, wxALIGN_TOP|wxALL, 5);
1044 m_ListBox2 =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
1045 m_ListBox2->SetSelection(0);
1046 itemBoxSizer3->Add(m_ListBox2, 0, wxALIGN_TOP|wxALL, 5);
1048 m_CheckBox =
new wxCheckBox (itemPanel1,
wxID_ANY,
_(
"Leave on original"));
1049 itemBoxSizer2->Add(m_CheckBox, 0, wxALIGN_LEFT|wxALL, 5);
1056 if (
col2 < 0 )
return;
1058 if (col ==
col2)
return;
1062 for (
int i = 0;
i < this->
m_Grid->GetNumberRows();
i++)
1063 if (!this->
m_Grid->IsReadOnly(
i,col) && !this->m_Grid->IsReadOnly(
i,
col2) && this->m_Grid->IsRowShown(
i))
1065 string value = this->
m_Grid->GetCellValue(
i,col).ToStdString();
1066 string existing_value = this->
m_Grid->GetCellValue(
i,col2).ToStdString();
1067 if (
first && !existing_value.empty())
1087 if (
col2 < 0 )
return;
1088 if (col ==
col2)
return;
1091 for (std::set<int>::const_iterator
i = selected.begin();
i != selected.end(); ++
i)
1092 if (!this->
m_Grid->IsReadOnly(*
i,col) && !this->m_Grid->IsReadOnly(*
i,
col2) && this->m_Grid->IsRowShown(*
i))
1094 string value = this->
m_Grid->GetCellValue(*
i,col).ToStdString();
1095 string existing_value = this->
m_Grid->GetCellValue(*
i,col2).ToStdString();
1096 if (
first && !existing_value.empty())
1105 this->
m_Grid->SetCellTextColour(*
i,col2,wxColour(255, 160, 0));
1106 this->
m_Grid->SetCellValue(*
i,col2,wxString(existing_value));
1132 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
1133 itemPanel1->SetSizer(itemBoxSizer2);
1135 wxBoxSizer* itemBoxSizer3 =
new wxBoxSizer(wxHORIZONTAL);
1136 itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_TOP|wxALL, 0);
1138 m_ListBox =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
1139 m_ListBox->SetSelection(0);
1140 itemBoxSizer3->Add(m_ListBox, 0, wxALIGN_TOP|wxALL, 5);
1142 m_ListBox2 =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
1143 m_ListBox2->SetSelection(0);
1144 itemBoxSizer3->Add(m_ListBox2, 0, wxALIGN_TOP|wxALL, 5);
1147 itemBoxSizer2->Add(m_ParseOptions, 0, wxALIGN_LEFT|wxALL, 5);
1154 if (
col2 < 0 )
return;
1155 if (col ==
col2)
return;
1159 for (
int i = 0;
i < this->
m_Grid->GetNumberRows();
i++)
1160 if (!this->
m_Grid->IsReadOnly(
i,col) && !this->m_Grid->IsReadOnly(
i,
col2) && this->m_Grid->IsRowShown(
i))
1162 string value = this->
m_Grid->GetCellValue(
i,col).ToStdString();
1163 string value2 = this->
m_Grid->GetCellValue(
i,col2).ToStdString();
1165 if (new_val.empty() || new_val == value2)
continue;
1166 if (parse_options->ShouldRemoveFromParsed())
1167 parse_options->RemoveSelectedText(
value);
1169 if (
first && !value2.empty())
1186 if (
col2 < 0 )
return;
1187 if (col ==
col2)
return;
1191 for (std::set<int>::const_iterator
i = selected.begin();
i != selected.end(); ++
i)
1192 if (!this->
m_Grid->IsReadOnly(*
i,col) && !this->m_Grid->IsReadOnly(*
i,
col2) && this->m_Grid->IsRowShown(*
i))
1194 string value = this->
m_Grid->GetCellValue(*
i,col).ToStdString();
1195 string value2 = this->
m_Grid->GetCellValue(*
i,col2).ToStdString();
1197 if (new_val.empty() || new_val == value2)
continue;
1198 if (parse_options->ShouldRemoveFromParsed())
1199 parse_options->RemoveSelectedText(
value);
1200 if (
first && !value2.empty())
1230 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
1231 itemPanel1->SetSizer(itemBoxSizer2);
1233 m_ListBox =
new wxListBox( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, *m_Choices, wxLB_SINGLE );
1234 m_ListBox->SetSelection(0);
1235 itemBoxSizer2->Add(m_ListBox, 0, wxALIGN_LEFT|wxALL, 5);
1238 itemBoxSizer2->Add(m_CapChangeOptions, 0, wxALIGN_LEFT|wxALL, 5);
1244 for (
int i = 0;
i < this->
m_Grid->GetNumberRows();
i++)
1245 if (!this->
m_Grid->IsReadOnly(
i,col) && this->m_Grid->IsRowShown(
i))
1247 string value = this->
m_Grid->GetCellValue(
i,col).ToStdString();
1249 objects::CSeq_entry_Handle seh;
1257 for (std::set<int>::const_iterator
i = selected.begin();
i != selected.end(); ++
i)
1258 if (!this->
m_Grid->IsReadOnly(*
i,col) && this->m_Grid->IsRowShown(*
i))
1260 string value = this->
m_Grid->GetCellValue(*
i,col).ToStdString();
1262 objects::CSeq_entry_Handle seh;
static SrcEditDialog * GetBulkSourceFrame(wxWindow *win)
void Init()
Initialises member variables.
void GetSelectedRows(std::set< int > &selected)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~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
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 ApplyToAll(int col)
virtual void ApplyToSelected(int col, const std::set< int > &selected)
objects::ECapChange GetCapitalizationRequest()
virtual void ApplyToAll(int col)
virtual void ApplyToSelected(int col, const std::set< int > &selected)
CCapChangePanel * m_CapChangeOptions
virtual void ApplyToSelected(int col, const std::set< int > &selected)
virtual void ApplyToAll(int col)
void OnEditsubCopyClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_COPY
virtual void ApplyToAll(int col)
wxRadioButton * m_AtBegin
wxRadioButton * m_Anywhere
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
objects::edit::EExistingText GetExistingTextHandler()
void AllowAdditionalQual(bool val)
CParseTextOptionsDlg * m_ParseOptions
virtual void ApplyToAll(int col)
virtual void ApplyToSelected(int col, const std::set< int > &selected)
string GetSelectedText(const string &input)
CRef< objects::edit::CParseTextOptions > GetParseOptions()
virtual void ApplyToSelected(int col, const std::set< int > &selected)
virtual void ApplyToAll(int col)
void CollapseByCol(int col)
int GetCollapseColAndExpand(void)
virtual void ApplyToAll(int col)
CApplyEditconvertPanel * GetBaseFrame()
void ChangeValue(const string &new_value, int row, int col)
virtual void SetColumns(wxArrayString &columns)
objects::edit::EExistingText GetExistingTextHandling(const string &field)
virtual void ApplyToSelected(int col, const std::set< int > &selected)
virtual void ApplyToAll(int col)
virtual void ApplyToSelected(int col, const std::set< int > &selected)
int GetNewColumn(wxString new_col)
const_iterator begin() const
const_iterator end() const
static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)
static auto & FixCapitalizationInString
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool EndsWith(const CTempString str, const CTempString end, ECase use_case=eCase)
Check if a string ends with a specified suffix value.
static string & Replace(const string &src, const string &search, const string &replace, string &dst, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
const struct ncbi::grid::netcache::search::fields::SIZE size
const CharType(& source)[N]
static const char * column
@ eExistingText_replace_old
bool AddValueToString(string &str, const string &value, EExistingText existing_text)
Add text to an existing string, using the "existing_text" directive to combine new text with existing...
wxString ToWxString(const string &s)