300 : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
301{
302#ifdef __WINDOWS__
303 SetDoubleBuffered(true);
304#endif
305 SetBackgroundColour(wxColour(0xEEEEEE));
306 m_main_panel =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
309
310 StateColor head_bg(
313 );
314
315
316 auto sizer_button_printer = new wxBoxSizer(wxHORIZONTAL);
320
321 m_button_edit->Bind(wxEVT_BUTTON, [
this](wxCommandEvent& evt) {
322 MultiMachinePickPage dlg;
323 dlg.ShowModal();
325 evt.Skip();
326 });
327
328 sizer_button_printer->Add( 0, 0, 1, wxEXPAND, 5 );
329 sizer_button_printer->Add(
m_button_edit, 0, wxALIGN_CENTER, 0);
330
336
345 SetCursor(wxCURSOR_HAND);
346 });
348 SetCursor(wxCURSOR_ARROW);
349 });
352 auto sortcb = [this](ObjState s1, ObjState s2) {
353 return device_dev_name_big ? s1.state_dev_name > s2.state_dev_name : s1.state_dev_name < s2.state_dev_name;
354 };
357 });
358
359
367
368
369
371 m_status->SetBackgroundColor(head_bg);
378 SetCursor(wxCURSOR_HAND);
379 });
381 SetCursor(wxCURSOR_ARROW);
382 });
385 auto sortcb = [this](ObjState s1, ObjState s2) {
386 return device_state_big ? s1.state_device > s2.state_device : s1.state_device < s2.state_device;
387 };
390 });
391
392
400
401
407
410
414 m_tip_text->SetLabel(
_L(
"Please select the devices you would like to manage here (up to 6 devices)"));
415 m_tip_text->SetForegroundColour(wxColour(50, 58, 61));
418
421
422 m_button_add->Bind(wxEVT_BUTTON, [
this](wxCommandEvent& evt) {
423 MultiMachinePickPage dlg;
424 dlg.ShowModal();
426 evt.Skip();
427 });
428
434
438
439
440 StateColor ctrl_bg(
443 );
444
449
457 evt.Skip();
459 return;
468 });
475 evt.Skip();
477 return;
486 });
487
488 m_page_num_input = new ::TextInput(
m_flipping_panel, wxEmptyString, wxEmptyString, wxEmptyString, wxDefaultPosition, wxSize(FromDIP(50), -1), wxTE_PROCESS_ENTER);
492 wxTextValidator validator(wxFILTER_DIGITS);
494 m_page_num_input->GetTextCtrl()->Bind(wxEVT_TEXT_ENTER, [&](wxCommandEvent& e) {
496 });
497
498
506 });
507
517
519 m_main_sizer->Add(sizer_button_printer, 0, wxALIGN_CENTER_HORIZONTAL, 0);
530
532 Layout();
533 Fit();
534
536}
#define ICON_SINGLE_SIZE
Definition GUI_Utils.hpp:50
#define DEVICE_LEFT_DEV_NAME
Definition MultiMachineManagerPage.hpp:23
#define DEVICE_LEFT_PRO_NAME
Definition MultiMachineManagerPage.hpp:24
#define DEVICE_LEFT_PRO_INFO
Definition MultiMachineManagerPage.hpp:25
#define DEVICE_LEFT_PADDING_LEFT
Definition MultiMachineManagerPage.hpp:22
#define TABLE_HEAR_NORMAL_COLOUR
Definition MultiMachine.hpp:22
#define TABLE_HEAD_PRESSED_COLOUR
Definition MultiMachine.hpp:23
#define TABLE_HEAD_FONT
Definition MultiMachine.hpp:26
#define CTRL_BUTTON_PRESSEN_COLOUR
Definition MultiMachine.hpp:25
#define CTRL_BUTTON_NORMAL_COLOUR
Definition MultiMachine.hpp:24
#define DEVICE_ITEM_MAX_WIDTH
Definition MultiMachine.hpp:18
#define DEVICE_ITEM_MAX_HEIGHT
Definition MultiMachine.hpp:20
#define _L(s)
Definition OBJ.cpp:34
class WXDLLIMPEXP_FWD_CORE wxStaticText
Definition ProgressDialog.hpp:30
static wxFont Head_20
Definition Label.hpp:41
wxScrolledWindow * m_machine_list
Definition MultiMachineManagerPage.hpp:90
SortItem m_sort
Definition MultiMachineManagerPage.hpp:80
void refresh_user_device(bool clear=false)
Definition MultiMachineManagerPage.cpp:546
wxBoxSizer * page_sizer
Definition MultiMachineManagerPage.hpp:86
void start_timer()
Definition MultiMachineManagerPage.cpp:677
wxPanel * m_main_panel
Definition MultiMachineManagerPage.hpp:87
wxStaticText * st_page_number
Definition MultiMachineManagerPage.hpp:112
Button * m_action
Definition MultiMachineManagerPage.hpp:98
wxBoxSizer * m_flipping_page_sizer
Definition MultiMachineManagerPage.hpp:113
void page_num_enter_evt()
Definition MultiMachineManagerPage.cpp:714
TextInput * m_page_num_input
Definition MultiMachineManagerPage.hpp:117
wxPanel * m_flipping_panel
Definition MultiMachineManagerPage.hpp:115
wxBoxSizer * m_sizer_machine_list
Definition MultiMachineManagerPage.hpp:89
Button * m_page_num_enter
Definition MultiMachineManagerPage.hpp:118
bool device_dev_name_big
Definition MultiMachineManagerPage.hpp:81
bool device_state_big
Definition MultiMachineManagerPage.hpp:82
Button * m_button_edit
Definition MultiMachineManagerPage.hpp:85
Button * m_button_add
Definition MultiMachineManagerPage.hpp:102
int m_total_page
Definition MultiMachineManagerPage.hpp:106
Button * m_status
Definition MultiMachineManagerPage.hpp:97
void on_timer(wxTimerEvent &event)
Definition MultiMachineManagerPage.cpp:700
wxBoxSizer * m_table_head_sizer
Definition MultiMachineManagerPage.hpp:94
wxBoxSizer * m_main_sizer
Definition MultiMachineManagerPage.hpp:88
int m_current_page
Definition MultiMachineManagerPage.hpp:105
Button * m_task_name
Definition MultiMachineManagerPage.hpp:96
wxPanel * m_table_head_panel
Definition MultiMachineManagerPage.hpp:93
void update_page_number()
Definition MultiMachineManagerPage.cpp:691
wxStaticText * m_tip_text
Definition MultiMachineManagerPage.hpp:101
Button * btn_next_page
Definition MultiMachineManagerPage.hpp:111
Button * btn_last_page
Definition MultiMachineManagerPage.hpp:110
wxBoxSizer * m_page_sizer
Definition MultiMachineManagerPage.hpp:114
Button * m_printer_name
Definition MultiMachineManagerPage.hpp:95
@ Normal
Definition StateColor.hpp:16
@ Disabled
Definition StateColor.hpp:22
@ Pressed
Definition StateColor.hpp:21
@ Enabled
Definition StateColor.hpp:17
wxMouseEvent
Definition CameraPopup.cpp:47
@ SR_MACHINE_NAME
Definition MultiMachine.hpp:96
@ SR_MACHINE_STATE
Definition MultiMachine.hpp:97