OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
UnsavedChangesDialog.cpp File Reference
#include "UnsavedChangesDialog.hpp"
#include <cmath>
#include <boost/algorithm/string/replace.hpp>
#include <cassert>
#include <algorithm>
#include <array>
#include <cstddef>
#include "slic3r/GUI/Event.hpp"
#include <map>
#include "libslic3r/Preset.hpp"
#include "libslic3r/Config.hpp"
#include "slic3r/GUI/GUI.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/Gizmos/GLGizmoBase.hpp"
#include <memory>
#include "slic3r/GUI/GUI_Utils.hpp"
#include "slic3r/GUI/Widgets/Label.hpp"
#include "slic3r/GUI/DeviceCore/DevConfigUtil.h"
#include "slic3r/GUI/DeviceCore/DevDefs.h"
#include "slic3r/GUI/Widgets/StateColor.hpp"
#include "slic3r/GUI/Widgets/Button.hpp"
#include "slic3r/GUI/SettingsIndex.hpp"
#include <set>
#include <iterator>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <wx/colour.h>
#include <wx/dataview.h>
#include <wx/log.h>
#include <wx/gdicmn.h>
#include <wx/dvrenderers.h>
#include <wx/panel.h>
#include <wx/string.h>
#include <wx/event.h>
#include <wx/stattext.h>
#include <wx/dialog.h>
#include <wx/sizer.h>
#include <wx/textctrl.h>
#include <wx/settings.h>
#include <wx/tokenzr.h>
#include <wx/utils.h>
#include <wx/variant.h>
#include <wx/window.h>
#include <wx/toplevel.h>
#include "CalibUtils.hpp"
#include "libslic3r/PrintConfig.hpp"
#include "libslic3r/PresetBundle.hpp"
#include "libslic3r/Color.hpp"
#include "format.hpp"
#include "ConfigValueFormatter.hpp"
#include "GUI_App.hpp"
#include "Plater.hpp"
#include "Tab.hpp"
#include "ExtraRenderers.hpp"
#include "wxExtensions.hpp"
#include "SavePresetDialog.hpp"
#include "MainFrame.hpp"
#include "MsgDialog.hpp"
#include "PresetComboBoxes.hpp"
#include "Widgets/CheckBox.hpp"
#include "Widgets/DialogButtons.hpp"

Go to the source code of this file.

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::GUI

Macros

#define wxLinux   false
#define UNSAVE_CHANGE_DIALOG_SCROLL_WINDOW_SIZE   wxSize(FromDIP(490), FromDIP(374))
#define UNSAVE_CHANGE_DIALOG_ACTION_LINE_SIZE   wxSize(FromDIP(490), -1)
#define UNSAVE_CHANGE_DIALOG_FIRST_VALUE_WIDTH   FromDIP(190)
#define UNSAVE_CHANGE_DIALOG_VALUE_WIDTH   FromDIP(150)
#define UNSAVE_CHANGE_DIALOG_ITEM_HEIGHT   FromDIP(24)
#define UNSAVE_CHANGE_DIALOG_BUTTON_SIZE   wxSize(FromDIP(70), FromDIP(24))
#define THUMB_COLOR   wxColor(196, 196, 196)
#define GREY900   wxColour(38, 46, 48)
#define GREY700   wxColour(107,107,107)
#define GREY400   wxColour(206,206,206)
#define GREY300   wxColour(238,238,238)
#define GREY200   wxColour(248,248,248)

Functions

 Slic3r::GUI::wxDEFINE_EVENT (EVT_DIFF_DIALOG_TRANSFER, SimpleEvent)
static std::string Slic3r::GUI::get_icon_name (Preset::Type type, PrinterTechnology pt)
static std::string Slic3r::GUI::def_text_color ()
static void Slic3r::GUI::color_string (wxString &str, const std::string &color)
static void Slic3r::GUI::make_string_bold (wxString &str)
static void Slic3r::GUI::update_children (ModelNode *parent)
static void Slic3r::GUI::update_parents (ModelNode *node)
static void Slic3r::GUI::rescale_children (ModelNode *parent)
static PresetCollection * Slic3r::GUI::get_preset_collection (Preset::Type type, PresetBundle *preset_bundle=nullptr)
static std::string Slic3r::GUI::get_selection (PresetComboBox *preset_combo)

Variables

static const std::map< Preset::Type, std::string > Slic3r::GUI::type_icon_names
static std::string Slic3r::GUI::grey = "#808080"
static std::string Slic3r::GUI::orange = "#ed6b21"
static std::string Slic3r::GUI::none {"none"}

Macro Definition Documentation

◆ GREY200

#define GREY200   wxColour(248,248,248)

◆ GREY300

#define GREY300   wxColour(238,238,238)

◆ GREY400

#define GREY400   wxColour(206,206,206)

◆ GREY700

#define GREY700   wxColour(107,107,107)

◆ GREY900

#define GREY900   wxColour(38, 46, 48)

◆ THUMB_COLOR

#define THUMB_COLOR   wxColor(196, 196, 196)

◆ UNSAVE_CHANGE_DIALOG_ACTION_LINE_SIZE

#define UNSAVE_CHANGE_DIALOG_ACTION_LINE_SIZE   wxSize(FromDIP(490), -1)

◆ UNSAVE_CHANGE_DIALOG_BUTTON_SIZE

#define UNSAVE_CHANGE_DIALOG_BUTTON_SIZE   wxSize(FromDIP(70), FromDIP(24))

◆ UNSAVE_CHANGE_DIALOG_FIRST_VALUE_WIDTH

#define UNSAVE_CHANGE_DIALOG_FIRST_VALUE_WIDTH   FromDIP(190)

◆ UNSAVE_CHANGE_DIALOG_ITEM_HEIGHT

#define UNSAVE_CHANGE_DIALOG_ITEM_HEIGHT   FromDIP(24)

◆ UNSAVE_CHANGE_DIALOG_SCROLL_WINDOW_SIZE

#define UNSAVE_CHANGE_DIALOG_SCROLL_WINDOW_SIZE   wxSize(FromDIP(490), FromDIP(374))

◆ UNSAVE_CHANGE_DIALOG_VALUE_WIDTH

#define UNSAVE_CHANGE_DIALOG_VALUE_WIDTH   FromDIP(150)

◆ wxLinux

#define wxLinux   false