mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
parent
30bcadab3e
commit
1555904bef
3771 changed files with 1251328 additions and 0 deletions
58
src/slic3r/GUI/KBShortcutsDialog.hpp
Normal file
58
src/slic3r/GUI/KBShortcutsDialog.hpp
Normal file
|
@ -0,0 +1,58 @@
|
|||
#ifndef slic3r_GUI_KBShortcutsDialog_hpp_
|
||||
#define slic3r_GUI_KBShortcutsDialog_hpp_
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include "GUI_Utils.hpp"
|
||||
#include "wxExtensions.hpp"
|
||||
#include <wx/simplebook.h>
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
class Select
|
||||
{
|
||||
public:
|
||||
int m_index;
|
||||
wxWindow *m_tab_button;
|
||||
wxWindow *m_tab_text;
|
||||
};
|
||||
WX_DECLARE_HASH_MAP(int, Select *, wxIntegerHash, wxIntegerEqual, SelectHash);
|
||||
|
||||
class KBShortcutsDialog : public DPIDialog
|
||||
{
|
||||
typedef std::pair<std::string, std::string> Shortcut;
|
||||
typedef std::vector<Shortcut> Shortcuts;
|
||||
typedef std::pair<std::pair<wxString, wxString>, Shortcuts> ShortcutsItem;
|
||||
typedef std::vector<ShortcutsItem> ShortcutsVec;
|
||||
|
||||
ShortcutsVec m_full_shortcuts;
|
||||
ScalableBitmap m_logo_bmp;
|
||||
wxStaticBitmap* m_header_bitmap;
|
||||
std::vector<wxPanel*> m_pages;
|
||||
|
||||
public:
|
||||
KBShortcutsDialog();
|
||||
wxWindow* create_button(int id, wxString text);
|
||||
void OnSelectTabel(wxCommandEvent &event);
|
||||
wxPanel *m_panel_selects;
|
||||
wxBoxSizer *m_sizer_right;
|
||||
wxSimplebook *m_simplebook;
|
||||
wxBoxSizer * m_sizer_body;
|
||||
SelectHash m_hash_selector;
|
||||
|
||||
protected:
|
||||
void on_dpi_changed(const wxRect &suggested_rect) override;
|
||||
|
||||
private:
|
||||
void fill_shortcuts();
|
||||
wxPanel* create_header(wxWindow* parent, const wxFont& bold_font);
|
||||
wxPanel* create_page(wxWindow* parent, const ShortcutsItem& shortcuts, const wxFont& font, const wxFont& bold_font);
|
||||
};
|
||||
|
||||
} // namespace GUI
|
||||
} // namespace Slic3r
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue