Implement "Add generic" menu item like submenu instead of selection dialog
This commit is contained in:
parent
4e9e59fd80
commit
27f196be59
4 changed files with 131 additions and 45 deletions
|
@ -14,16 +14,19 @@ namespace GUI
|
|||
using ConfigOptionsGroupShp = std::shared_ptr<ConfigOptionsGroup>;
|
||||
class LambdaObjectDialog : public wxDialog
|
||||
{
|
||||
wxChoicebook* m_modificator_options_book;
|
||||
wxChoicebook* m_modificator_options_book = nullptr;
|
||||
std::vector <ConfigOptionsGroupShp> m_optgroups;
|
||||
wxString m_type_name;
|
||||
wxPanel* m_panel = nullptr;
|
||||
public:
|
||||
LambdaObjectDialog(wxWindow* parent);
|
||||
LambdaObjectDialog(wxWindow* parent,
|
||||
const wxString type_name = wxEmptyString);
|
||||
~LambdaObjectDialog(){}
|
||||
|
||||
bool CanClose() { return true; } // ???
|
||||
OBJECT_PARAMETERS& ObjectParameters(){ return object_parameters; }
|
||||
|
||||
ConfigOptionsGroupShp init_modificator_options_page(wxString title);
|
||||
ConfigOptionsGroupShp init_modificator_options_page(const wxString& title);
|
||||
|
||||
// Note whether the window was already closed, so a pending update is not executed.
|
||||
bool m_already_closed = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue