Extended interface of project dirty state manager

This commit is contained in:
enricoturri1966 2021-04-06 13:17:29 +02:00
parent 144e37c274
commit 5d4b7c03b6
9 changed files with 219 additions and 6 deletions

View file

@ -2,12 +2,32 @@
#include "ProjectDirtyStateManager.hpp"
#include "ImGuiWrapper.hpp"
#include "GUI_App.hpp"
#include "MainFrame.hpp"
#if ENABLE_PROJECT_DIRTY_STATE
namespace Slic3r {
namespace GUI {
void ProjectDirtyStateManager::update_from_undo_redo_stack(const Slic3r::UndoRedo::Stack& main_stack, const Slic3r::UndoRedo::Stack& active_stack)
{
if (!wxGetApp().initialized())
return;
wxGetApp().mainframe->update_title();
}
void ProjectDirtyStateManager::update_from_presets()
{
wxGetApp().mainframe->update_title();
}
void ProjectDirtyStateManager::reset_after_save()
{
m_state.reset();
wxGetApp().mainframe->update_title();
}
#if ENABLE_PROJECT_DIRTY_STATE_DEBUG_WINDOW
void ProjectDirtyStateManager::render_debug_window() const
{