1847{
1849 SetBackgroundColour(*wxWHITE);
1850
1851 wxBoxSizer* sizer_main;
1852 sizer_main = new wxBoxSizer(wxVERTICAL);
1853
1854 text_title =
new Label(
this,
Label::Head_14,
_L(
"Configure which AMS slot should be used for a filament used in the print job."));
1855 text_title->SetSize(wxSize(FromDIP(350), -1));
1857 sizer_main->Add(
text_title, 0, wxALIGN_CENTER | wxTOP, 18);
1858
1859
1860 sizer_main->Add(0, 0, 0, wxTOP, 30);
1861
1862 wxBoxSizer* sizer_top;
1863 sizer_top = new wxBoxSizer(wxHORIZONTAL);
1864
1865 img_top =
new wxStaticBitmap(
this, wxID_ANY,
create_scaled_bitmap(
"ams_item_examples",
this, 30), wxDefaultPosition, wxSize(FromDIP(50), FromDIP(30)), 0);
1866 sizer_top->Add(
img_top, 0, wxALIGN_CENTER, 0);
1867
1868
1869 sizer_top->Add(0, 0, 0, wxLEFT, 10);
1870
1871 wxBoxSizer* sizer_top_tips = new wxBoxSizer(wxVERTICAL);
1872 wxBoxSizer* sizer_tip_top = new wxBoxSizer(wxHORIZONTAL);
1873
1874 arrows_top =
new wxStaticBitmap(
this, wxID_ANY,
create_scaled_bitmap(
"ams_arrow",
this, 8), wxDefaultPosition, wxSize(FromDIP(24), FromDIP(8)), 0);
1875 sizer_tip_top->Add(
arrows_top, 0, wxALIGN_CENTER, 0);
1876
1877 tip_top =
new wxStaticText(
this, wxID_ANY,
_L(
"Filament used in this print job"), wxDefaultPosition, wxDefaultSize, 0);
1878 tip_top->SetForegroundColour(wxColour(
"#686868"));
1879
1880 sizer_tip_top->Add(
tip_top, 0, wxALL, 0);
1881
1882
1883 sizer_top_tips->Add(sizer_tip_top, 0, wxEXPAND, 0);
1884
1885
1886 sizer_top_tips->Add(0, 0, 0, wxTOP, 6);
1887
1888 wxBoxSizer* sizer_tip_bottom = new wxBoxSizer(wxHORIZONTAL);
1889
1891 tip_bottom =
new wxStaticText(
this, wxID_ANY,
_L(
"AMS slot used for this filament"), wxDefaultPosition, wxDefaultSize, 0);
1892 tip_bottom->SetForegroundColour(wxColour(
"#686868"));
1893
1894
1896 sizer_tip_bottom->Add(
tip_bottom, 0, wxALL, 0);
1897
1898
1899 sizer_top_tips->Add(sizer_tip_bottom, 0, wxEXPAND, 0);
1900
1901
1902 sizer_top->Add(sizer_top_tips, 0, wxALIGN_CENTER, 0);
1903
1904
1905
1906
1907 wxBoxSizer* sizer_middle = new wxBoxSizer(wxHORIZONTAL);
1908
1909 img_middle=
new wxStaticBitmap(
this, wxID_ANY,
create_scaled_bitmap(
"ams_item_examples",
this, 30), wxDefaultPosition, wxSize(FromDIP(50), FromDIP(30)), 0);
1910 sizer_middle->Add(
img_middle, 0, wxALIGN_CENTER, 0);
1911
1912 tip_middle =
new wxStaticText(
this, wxID_ANY,
_L(
"Click to select AMS slot manually"), wxDefaultPosition, wxDefaultSize, 0);
1913 tip_middle->SetForegroundColour(wxColour(
"#686868"));
1914 sizer_middle->Add(0, 0, 0,wxLEFT, 15);
1915 sizer_middle->Add(
tip_middle, 0, wxALIGN_CENTER, 0);
1916
1917
1918 sizer_main->Add(sizer_top, 0, wxLEFT, 40);
1919 sizer_main->Add(0, 0, 0, wxTOP, 10);
1920 sizer_main->Add(sizer_middle, 0, wxLEFT, 40);
1921 sizer_main->Add(0, 0, 0, wxTOP, 10);
1922
1923
1925 sizer_main->Add(
img_botton, 0, wxLEFT | wxRIGHT, 40);
1926 sizer_main->Add(0, 0, 0, wxTOP, 12);
1927
1928 SetSizer(sizer_main);
1929 Layout();
1930 Fit();
1931}
#define _L(s)
Definition OBJ.cpp:34
class WXDLLIMPEXP_FWD_CORE wxStaticText
Definition ProgressDialog.hpp:30
static wxFont Head_14
Definition Label.hpp:45
wxBitmap create_scaled_bitmap(const std::string &bmp_name_in, wxWindow *win, const int px_cnt, const bool grayscale, const std::string &new_color, const bool menu_bitmap, const bool resize, const bool bitmap2, const std::vector< std::string > &array_new_color)
Definition wxExtensions.cpp:448