OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
wgtDeviceNozzleRack.cpp File Reference
#include "wgtDeviceNozzleRack.h"
#include "wgtDeviceNozzleRackUpdate.h"
#include "slic3r/GUI/DeviceCore/DevNozzleSystem.h"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/MainFrame.hpp"
#include "slic3r/GUI/MsgDialog.hpp"
#include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/wxExtensions.hpp"
#include "slic3r/GUI/Widgets/Button.hpp"
#include "slic3r/GUI/Widgets/Label.hpp"
#include <string>
#include "slic3r/GUI/Widgets/StateColor.hpp"
#include <memory>
#include "slic3r/GUI/DeviceCore/DevDefs.h"
#include "slic3r/GUI/Widgets/StaticBox.hpp"
#include "slic3r/GUI/Widgets/AnimaController.hpp"
#include <unordered_map>
#include <cassert>
#include "slic3r/GUI/Monitor.hpp"
#include <unordered_set>
#include <wx/colour.h>
#include <vector>
#include <wx/event.h>
#include <wx/image.h>
#include <utility>
#include <wx/string.h>
#include <wx/gdicmn.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include <wx/simplebook.h>
#include <wx/anybutton.h>
Include dependency graph for wgtDeviceNozzleRack.cpp:

Go to the source code of this file.

Classes

class  Slic3r::GUI::wgtDeviceNozzleRackTitle

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 WX_DIP_SIZE_18   wxSize(FromDIP(18), FromDIP(18))
#define WX_DIP_SIZE_46   wxSize(FromDIP(46), FromDIP(46))
#define WX_DIP_SIZE(x, y)
#define WGT_RACK_NOZZLE_SIZE   WX_DIP_SIZE(88, 100)
#define L_RAW_A_STR   _L("Row A")
#define L_RAW_B_STR   _L("Row B")

Functions

static wxColour s_gray_clr ("#B0B0B0")
static wxColour s_hgreen_clr ("#009688")
static wxColour s_red_clr ("#D01B1B")
 wxDEFINE_EVENT (EVT_NOZZLE_RACK_NOZZLE_ITEM_SELECTED, wxCommandEvent)
static wxBitmap Slic3r::GUI::SetNozzleBmpColor (const wxBitmap &bmp, const std::string &color_str)
static StateColor Slic3r::GUI::s_button_style_gray ()
static void Slic3r::GUI::s_update_title (const std::shared_ptr< DevNozzleRack > rack, wgtDeviceNozzleRackTitle *title_label)
static void Slic3r::GUI::s_set_bg_style (StaticBox *box, ScalableButton *btn, Label *label_row, Label *label_row_status, const wxColour &clr)
static void Slic3r::GUI::s_show_label (Label *label, const wxString &text)
static void Slic3r::GUI::s_show_label (Label *label, const wxString &text, const wxColour &text_color)

Variables

static const wxColour WGT_GREY200 = wxColour(248, 248, 248)
static const wxColour WGT_GREY300 = wxColour(238, 238, 238)
static std::vector< int > a_nozzle_seq = { 0, 2, 4, 1, 3, 5 }
static std::vector< int > b_nozzle_seq = { 1, 3, 5, 0, 2, 4 }

Macro Definition Documentation

◆ L_RAW_A_STR

◆ L_RAW_B_STR

◆ WGT_RACK_NOZZLE_SIZE

#define WGT_RACK_NOZZLE_SIZE   WX_DIP_SIZE(88, 100)

◆ WX_DIP_SIZE

◆ WX_DIP_SIZE_18

#define WX_DIP_SIZE_18   wxSize(FromDIP(18), FromDIP(18))

◆ WX_DIP_SIZE_46

#define WX_DIP_SIZE_46   wxSize(FromDIP(46), FromDIP(46))

Function Documentation

◆ s_gray_clr()

wxColour s_gray_clr ( "#B0B0B0" )
static

Referenced by Slic3r::GUI::wgtDeviceNozzleRackNozzleItem::SetSelected().

Here is the caller graph for this function:

◆ s_hgreen_clr()

wxColour s_hgreen_clr ( "#009688" )
static

Referenced by Slic3r::GUI::wgtDeviceNozzleRackNozzleItem::SetSelected(), and Slic3r::GUI::wgtDeviceNozzleRackPos::UpdateRackPos().

Here is the caller graph for this function:

◆ s_red_clr()

wxColour s_red_clr ( "#D01B1B" )
static

Referenced by Slic3r::GUI::wgtDeviceNozzleRackNozzleItem::SetNozzleStatus().

Here is the caller graph for this function:

◆ wxDEFINE_EVENT()

wxDEFINE_EVENT ( EVT_NOZZLE_RACK_NOZZLE_ITEM_SELECTED ,
wxCommandEvent  )

Variable Documentation

◆ a_nozzle_seq

std::vector<int> a_nozzle_seq = { 0, 2, 4, 1, 3, 5 }
static
64{ 0, 2, 4, 1, 3, 5 };

Referenced by Slic3r::GUI::wgtDeviceNozzleRackSelect::CreateGui().

◆ b_nozzle_seq

std::vector<int> b_nozzle_seq = { 1, 3, 5, 0, 2, 4 }
static
65{ 1, 3, 5, 0, 2, 4 };

◆ WGT_GREY200

const wxColour WGT_GREY200 = wxColour(248, 248, 248)
static

◆ WGT_GREY300

const wxColour WGT_GREY300 = wxColour(238, 238, 238)
static