Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-02-12 12:10:46 +0300
committerVojtech Kral <vojtech@kral.hk>2019-02-12 12:11:00 +0300
commit94dc86ec72dd4f1db83ca15caee756b46934515e (patch)
tree41a27515d3fc13099ced87dc39fbc73406520669 /src/slic3r/GUI/ConfigWizard_private.hpp
parent5a2a39c3ab980b7e52040f4a1fce6bf5e5190a9a (diff)
ConfigWizard: Cap width on large screens
Diffstat (limited to 'src/slic3r/GUI/ConfigWizard_private.hpp')
-rw-r--r--src/slic3r/GUI/ConfigWizard_private.hpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/slic3r/GUI/ConfigWizard_private.hpp b/src/slic3r/GUI/ConfigWizard_private.hpp
index a226392f8..4cbe2199f 100644
--- a/src/slic3r/GUI/ConfigWizard_private.hpp
+++ b/src/slic3r/GUI/ConfigWizard_private.hpp
@@ -67,6 +67,10 @@ struct PrinterPicker: wxPanel
void select_all(bool select);
void select_one(size_t i, bool select);
void on_checkbox(const Checkbox *cbox, bool checked);
+
+ int get_width() const { return width; }
+private:
+ int width;
};
struct ConfigWizardPage: wxPanel
@@ -116,6 +120,7 @@ struct PagePrinters: ConfigWizardPage
PagePrinters(ConfigWizard *parent, wxString title, wxString shortname, const VendorProfile &vendor, unsigned indent, Technology technology);
void select_all(bool select);
+ int get_width() const;
};
struct PageCustom: ConfigWizardPage
@@ -206,23 +211,13 @@ public:
void clear();
- // XXX
- // void load_items(ConfigWizardPage *firstpage);
- // void set_active(ConfigWizardPage *page);
private:
- // enum {
- // // Units in em
- // MARGIN = 1,
- // SPACING = 1,
- // };
-
struct Item
{
wxString label;
unsigned indent;
ConfigWizardPage *page; // nullptr page => label-only item
- // bool operator==(const wxString &label) const { return this->label == label; }
bool operator==(ConfigWizardPage *page) const { return this->page == page; }
};
@@ -235,7 +230,6 @@ private:
const wxBitmap bullet_white;
std::vector<Item> items;
- // std::vector<Item>::const_iterator item_active;
size_t item_active;
ssize_t item_hover;
size_t last_page;