mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	FIX: title rescale and camerapopup button
Change-Id: Id9e9cec0a834f03d3918304265760d6a80ebf6fe
This commit is contained in:
		
							parent
							
								
									431eabd464
								
							
						
					
					
						commit
						df96469918
					
				
					 2 changed files with 15 additions and 6 deletions
				
			
		|  | @ -56,6 +56,7 @@ static wxColour TEXT_LIGHT_FONT_COL  = wxColour(107, 107, 107); | |||
| 
 | ||||
| /* size */ | ||||
| #define PAGE_TITLE_HEIGHT FromDIP(36) | ||||
| #define PAGE_TITLE_TEXT_WIDTH FromDIP(200) | ||||
| #define PAGE_TITLE_LEFT_MARGIN FromDIP(17) | ||||
| #define GROUP_TITLE_LEFT_MARGIN FromDIP(15) | ||||
| #define GROUP_TITLE_LINE_MARGIN FromDIP(11) | ||||
|  | @ -211,8 +212,9 @@ wxBoxSizer *StatusBasePanel::create_monitoring_page() | |||
|     wxBoxSizer *bSizer_monitoring_title; | ||||
|     bSizer_monitoring_title = new wxBoxSizer(wxHORIZONTAL); | ||||
| 
 | ||||
|     m_staticText_monitoring = new wxStaticText(m_panel_monitoring_title, wxID_ANY, _L("Camera"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT); | ||||
|     m_staticText_monitoring = new Label(m_panel_monitoring_title, _L("Camera")); | ||||
|     m_staticText_monitoring->Wrap(-1); | ||||
|     m_staticText_monitoring->SetMinSize(wxSize(PAGE_TITLE_TEXT_WIDTH, -1)); | ||||
|     m_staticText_monitoring->SetFont(PAGE_TITLE_FONT); | ||||
|     m_staticText_monitoring->SetForegroundColour(PAGE_TITLE_FONT_COL); | ||||
|     bSizer_monitoring_title->Add(m_staticText_monitoring, 0, wxALIGN_CENTER_VERTICAL | wxLEFT, PAGE_TITLE_LEFT_MARGIN); | ||||
|  | @ -298,8 +300,9 @@ wxBoxSizer *StatusBasePanel::create_project_task_page(wxWindow *parent) | |||
|     m_panel_printing_title = new wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(-1, PAGE_TITLE_HEIGHT), wxTAB_TRAVERSAL); | ||||
|     m_panel_printing_title->SetBackgroundColour(STATUS_TITLE_BG); | ||||
| 
 | ||||
|     m_staticText_printing = new wxStaticText(m_panel_printing_title, wxID_ANY, _L("Printing Progress"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT); | ||||
|     m_staticText_printing = new Label(m_panel_printing_title, _L("Printing Progress")); | ||||
|     m_staticText_printing->Wrap(-1); | ||||
|     m_staticText_printing->SetMinSize(wxSize(PAGE_TITLE_TEXT_WIDTH, -1)); | ||||
|     m_staticText_printing->SetFont(PAGE_TITLE_FONT); | ||||
|     m_staticText_printing->SetForegroundColour(PAGE_TITLE_FONT_COL); | ||||
|     bSizer_printing_title->Add(m_staticText_printing, 0, wxALIGN_CENTER_VERTICAL | wxLEFT, PAGE_TITLE_LEFT_MARGIN); | ||||
|  | @ -594,8 +597,9 @@ wxBoxSizer *StatusBasePanel::create_machine_control_page(wxWindow *parent) | |||
|     m_panel_control_title->SetBackgroundColour(STATUS_TITLE_BG); | ||||
| 
 | ||||
|     wxBoxSizer *bSizer_control_title = new wxBoxSizer(wxHORIZONTAL); | ||||
|     m_staticText_control             = new wxStaticText(m_panel_control_title, wxID_ANY, _L("Control"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT); | ||||
|     m_staticText_control             = new Label(m_panel_control_title,_L("Control")); | ||||
|     m_staticText_control->Wrap(-1); | ||||
|     m_staticText_control->SetMinSize(wxSize(PAGE_TITLE_TEXT_WIDTH, -1)); | ||||
|     m_staticText_control->SetFont(PAGE_TITLE_FONT); | ||||
|     m_staticText_control->SetForegroundColour(PAGE_TITLE_FONT_COL); | ||||
| 
 | ||||
|  | @ -1242,6 +1246,7 @@ StatusPanel::StatusPanel(wxWindow *parent, wxWindowID id, const wxPoint &pos, co | |||
|     //m_bitmap_thumbnail->Connect(wxEVT_LEAVE_WINDOW, wxMouseEventHandler(StatusPanel::on_thumbnail_leave), NULL, this);
 | ||||
|     m_bitmap_thumbnail->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(StatusPanel::refresh_thumbnail_webrequest), NULL, this); | ||||
|     m_setting_button->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(StatusPanel::on_camera_enter), NULL, this); | ||||
|     m_setting_button->Connect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(StatusPanel::on_camera_enter), NULL, this); | ||||
|     m_project_task_panel->Connect(wxEVT_LEAVE_WINDOW, wxMouseEventHandler(StatusPanel::on_thumbnail_leave), NULL, this); | ||||
|     m_button_pause_resume->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(StatusPanel::on_subtask_pause_resume), NULL, this); | ||||
|     m_button_abort->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(StatusPanel::on_subtask_abort), NULL, this); | ||||
|  | @ -1287,6 +1292,7 @@ StatusPanel::~StatusPanel() | |||
|     //m_bitmap_thumbnail->Disconnect(wxEVT_LEAVE_WINDOW, wxMouseEventHandler(StatusPanel::on_thumbnail_leave), NULL, this);
 | ||||
|     m_bitmap_thumbnail->Disconnect(wxEVT_LEFT_DOWN, wxMouseEventHandler(StatusPanel::refresh_thumbnail_webrequest), NULL, this); | ||||
|     m_setting_button->Disconnect(wxEVT_LEFT_DOWN, wxMouseEventHandler(StatusPanel::on_camera_enter), NULL, this); | ||||
|     m_setting_button->Disconnect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(StatusPanel::on_camera_enter), NULL, this); | ||||
|     m_button_pause_resume->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(StatusPanel::on_subtask_pause_resume), NULL, this); | ||||
|     m_button_abort->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(StatusPanel::on_subtask_abort), NULL, this); | ||||
|     m_button_clean->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(StatusPanel::on_print_error_clean), NULL, this); | ||||
|  | @ -3223,12 +3229,15 @@ void StatusPanel::msw_rescale() | |||
|     init_bitmaps(); | ||||
| 
 | ||||
|     m_panel_monitoring_title->SetSize(wxSize(-1, FromDIP(PAGE_TITLE_HEIGHT))); | ||||
|     m_staticText_monitoring->SetMinSize(wxSize(PAGE_TITLE_TEXT_WIDTH, -1)); | ||||
|     m_bmToggleBtn_timelapse->Rescale(); | ||||
|     m_panel_printing_title->SetSize(wxSize(-1, FromDIP(PAGE_TITLE_HEIGHT))); | ||||
|     m_staticText_printing->SetMinSize(wxSize(PAGE_TITLE_TEXT_WIDTH, -1)); | ||||
|     m_bitmap_thumbnail->SetSize(TASK_THUMBNAIL_SIZE); | ||||
|     m_printing_sizer->SetMinSize(wxSize(PAGE_MIN_WIDTH, -1)); | ||||
|     m_gauge_progress->SetHeight(PROGRESSBAR_HEIGHT); | ||||
|     m_panel_control_title->SetSize(wxSize(-1, FromDIP(PAGE_TITLE_HEIGHT))); | ||||
|     m_staticText_control->SetMinSize(wxSize(PAGE_TITLE_TEXT_WIDTH, -1)); | ||||
|     m_bpButton_xy->SetBitmap(m_bitmap_axis_home); | ||||
|     m_bpButton_xy->SetMinSize(AXIS_MIN_SIZE); | ||||
|     m_bpButton_xy->SetSize(AXIS_MIN_SIZE); | ||||
|  |  | |||
|  | @ -114,7 +114,7 @@ protected: | |||
| 
 | ||||
|     wxStaticText*   m_staticText_consumption_of_time; | ||||
|     wxStaticText *  m_staticText_consumption_of_weight; | ||||
|     wxStaticText *  m_staticText_monitoring; | ||||
|     Label *         m_staticText_monitoring; | ||||
|     wxStaticText *  m_staticText_timelapse; | ||||
|     SwitchButton *  m_bmToggleBtn_timelapse; | ||||
| 
 | ||||
|  | @ -130,7 +130,7 @@ protected: | |||
|     wxMediaCtrl2 *  m_media_ctrl; | ||||
|     MediaPlayCtrl * m_media_play_ctrl; | ||||
| 
 | ||||
|     wxStaticText *  m_staticText_printing; | ||||
|     Label *         m_staticText_printing; | ||||
|     wxStaticBitmap *m_bitmap_thumbnail; | ||||
|     wxStaticText *  m_staticText_subtask_value; | ||||
|     wxStaticText *  m_printing_stage_value; | ||||
|  | @ -146,7 +146,7 @@ protected: | |||
| 
 | ||||
|     wxStaticText *  m_text_tasklist_caption; | ||||
| 
 | ||||
|     wxStaticText *  m_staticText_control; | ||||
|     Label *  m_staticText_control; | ||||
|     ImageSwitchButton *m_switch_lamp; | ||||
|     int               m_switch_lamp_timeout{0}; | ||||
|     ImageSwitchButton *m_switch_speed; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tao.jin
						tao.jin