From 547206aa4f12ac48317315a41569fce8965d8b29 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Wed, 2 May 2018 22:50:22 -0500 Subject: [PATCH] Initial load status bar, apparently layout broke for plater. --- src/GUI/MainFrame.cpp | 9 ++++----- src/GUI/MainFrame.hpp | 3 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/GUI/MainFrame.cpp b/src/GUI/MainFrame.cpp index 8c1d3c0e4..029471f49 100644 --- a/src/GUI/MainFrame.cpp +++ b/src/GUI/MainFrame.cpp @@ -28,11 +28,10 @@ MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& si wxToolTip::SetAutoPop(TOOLTIP_TIMER); - // STUB: Initialize status bar with text. - /* # initialize status bar - $self->{statusbar} = Slic3r::GUI::ProgressStatusBar->new($self, -1); - $self->{statusbar}->SetStatusText("Version $Slic3r::VERSION - Remember to check for updates at http://slic3r.org/"); - $self->SetStatusBar($self->{statusbar}); */ + // initialize status bar + this->statusbar = new ProgressStatusBar(this, -1); + this->statusbar->SetStatusText("Version $Slic3r::VERSION - Remember to check for updates at http://slic3r.org/"); + this->SetStatusBar(this->statusbar); this->loaded = 1; diff --git a/src/GUI/MainFrame.hpp b/src/GUI/MainFrame.hpp index b067c6f9b..b073d0c48 100644 --- a/src/GUI/MainFrame.hpp +++ b/src/GUI/MainFrame.hpp @@ -17,6 +17,7 @@ #include "PresetEditor.hpp" #include "Settings.hpp" #include "GUI.hpp" +#include "ProgressStatusBar.hpp" namespace Slic3r { namespace GUI { @@ -47,6 +48,8 @@ private: std::shared_ptr gui_config; std::map preset_editor_tabs; + ProgressStatusBar* statusbar {new ProgressStatusBar(this, -1)}; + }; }} // Namespace Slic3r::GUI