1 #ifndef GUI_WIDGETS_EDIT___MACRO_PANEL_LOADER__HPP
2 #define GUI_WIDGETS_EDIT___MACRO_PANEL_LOADER__HPP
35 #include <wx/window.h>
84 static void Initialize();
89 void SetControlValues(
const string &ctrl_name,
const vector<string> &values);
90 void SetSelection(
const string &ctrl_name,
int n);
96 bool TransferDataFromPanel();
97 bool TransferDataToPanel();
102 void OnComboBoxSelectionChanged(wxCommandEvent& event);
103 void OnChoiceSelectionChanged(wxCommandEvent& event);
104 void OnTextCtrlTextChanged(wxCommandEvent& event);
105 void OnListBoxSelectionChanged(wxCommandEvent& event);
106 void OnRadioBoxClicked(wxCommandEvent& event);
107 void OnRadiobuttonClicked(wxCommandEvent& event);
108 void OnButtonClicked(wxCommandEvent& event);
109 void OnToggleButtonClicked(wxCommandEvent& event);
110 void OnCheckBoxClicked(wxCommandEvent& event);
111 void OnCheckListBoxSelectionChanged(wxCommandEvent& event);
116 void BindEvents(wxControl& ctrl);
117 wxControl& FindControl(
const string &name);
118 void Initialize(wxListBox &list_box,
const vector<string> &values);
119 void Initialize(wxRadioBox &radio_box,
const vector<string> &values);
120 void Initialize(wxTextCtrl &txt_ctrl,
const vector<string> &values);
121 void Initialize(wxComboBox &combo_box,
const vector<string> &values);
122 void Initialize(wxCheckListBox& chlist_box,
const vector<string>& values);
123 void Initialize(wxChoice& choice,
const vector<string>& values);
124 void Initialize(wxStaticText& st_text,
const vector<string>& values);
147 string x_GetRadioboxSelection(
const wxRadioBox& radio_box);
148 string x_GetRadiobuttonSelection(
const wxRadioButton& radio_btn);
149 string x_GetCheckboxSelection(
const wxCheckBox& chk_box);
150 string x_GetCheckListBoxSelection(
const wxCheckListBox& chklist_box);
153 void x_UpdateCtrlsOnRdButtonChange(
const string& rdbname);
154 void x_UpdateCtrlsOnChoiceSelChange(
const string& choice_name,
const string& selected);
155 void x_UpdateCtrlsOnLBoxSelChange(
const string& lstbox_name,
const string& selected);
159 wxPanel* m_Panel{
nullptr };
map< string, wxControl * > m_Controls
const CArgumentList & GetArgumentList() const
CArgumentList & SetArgumentList()
static bool m_Initialized
CArgumentList m_Arguments
void x_UpdateBsrcPanelControls()
virtual void Update(const T &value)=0
std::ofstream out("events_result.xml")
main entry point for tests
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_EDIT_EXPORT
vector< macro::SArgMetaData > TArgumentsVector
@ eAddGapFeaturesByNPanel
const GenericPointer< typename T::ValueType > T2 value
std::istream & in(std::istream &in_, double &x_)
void ToArrayString(const vector< string > &out, wxArrayString &in)