Initial load status bar, apparently layout broke for plater.

This commit is contained in:
Joseph Lenox 2018-05-02 22:50:22 -05:00 committed by Joseph Lenox
parent 121f467251
commit 547206aa4f
2 changed files with 7 additions and 5 deletions

View File

@ -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;

View File

@ -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<Settings> gui_config;
std::map<wxWindowID, PresetEditor*> preset_editor_tabs;
ProgressStatusBar* statusbar {new ProgressStatusBar(this, -1)};
};
}} // Namespace Slic3r::GUI