Filling the Print's Tab. Finished. It's need to adding functions to work with presets

This commit is contained in:
YuSanka
2017-12-19 11:59:42 +01:00
parent 281fd26e06
commit 67f2469e70
5 changed files with 100 additions and 24 deletions

View File

@@ -85,6 +85,8 @@ protected:
wxBoxSizer* left_sizer_;
wxTreeCtrl* treectrl_;
wxImageList* icons_;
wxCheckBox* compatible_printers_checkbox_;
wxButton* compatible_printers_btn;
int icon_count;
std::map<wxString, size_t> icon_index_; // Map from an icon file name to its index in $self->{icons}.
std::vector<CPageShp> pages_; // $self->{pages} = [];
@@ -107,6 +109,9 @@ public:
void rebuild_page_tree();
void select_preset(wxString preset_name){};
static wxSizer* compatible_printers_widget_(wxWindow* parent);
void load_key_value_(std::string opt_key, std::vector<std::string> value);
void OnTreeSelChange(wxTreeEvent& event);
void OnKeyDown(wxKeyEvent& event);
void OnComboBox(wxCommandEvent& event) { select_preset(presets_choice_->GetStringSelection()); }