Added tooltips for mode buttons.
+ some clean of an unused code + fix of #1861
This commit is contained in:
parent
7067cef812
commit
5cc86c49b9
Binary file not shown.
@ -3,7 +3,7 @@ msgstr ""
|
|||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-01-17 13:39+0100\n"
|
"POT-Creation-Date: 2019-01-17 13:39+0100\n"
|
||||||
"PO-Revision-Date: 2019-02-19 14:42+0100\n"
|
"PO-Revision-Date: 2019-02-26 10:38+0100\n"
|
||||||
"Last-Translator: Oleksandra Iushchenko <yusanka@gmail.com>\n"
|
"Last-Translator: Oleksandra Iushchenko <yusanka@gmail.com>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: uk\n"
|
"Language: uk\n"
|
||||||
@ -51,6 +51,12 @@ msgstr "Відстань координат 0,0 G-коду від нижньог
|
|||||||
msgid "Circular"
|
msgid "Circular"
|
||||||
msgstr "Круговий"
|
msgstr "Круговий"
|
||||||
|
|
||||||
|
msgid "Switch to %s mode"
|
||||||
|
msgstr "Перейти до режиму %s"
|
||||||
|
|
||||||
|
msgid "Current mode is %s"
|
||||||
|
msgstr "Поточний режим - %s"
|
||||||
|
|
||||||
#: src/slic3r/GUI/BedShapeDialog.cpp:69 src/slic3r/GUI/ConfigWizard.cpp:92
|
#: src/slic3r/GUI/BedShapeDialog.cpp:69 src/slic3r/GUI/ConfigWizard.cpp:92
|
||||||
#: src/slic3r/GUI/ConfigWizard.cpp:456 src/slic3r/GUI/ConfigWizard.cpp:470
|
#: src/slic3r/GUI/ConfigWizard.cpp:456 src/slic3r/GUI/ConfigWizard.cpp:470
|
||||||
#: src/slic3r/GUI/GUI_ObjectManipulation.cpp:204
|
#: src/slic3r/GUI/GUI_ObjectManipulation.cpp:204
|
||||||
@ -730,11 +736,11 @@ msgstr "Преференції застосування"
|
|||||||
|
|
||||||
#: src/slic3r/GUI/GUI_App.cpp:616
|
#: src/slic3r/GUI/GUI_App.cpp:616
|
||||||
msgid "Simple"
|
msgid "Simple"
|
||||||
msgstr ""
|
msgstr "Простий"
|
||||||
|
|
||||||
#: src/slic3r/GUI/GUI_App.cpp:616
|
#: src/slic3r/GUI/GUI_App.cpp:616
|
||||||
msgid "Simple View Mode"
|
msgid "Simple View Mode"
|
||||||
msgstr ""
|
msgstr "Простий режим перегляду"
|
||||||
|
|
||||||
#: src/slic3r/GUI/GUI_App.cpp:617 src/slic3r/GUI/GUI_ObjectList.cpp:39
|
#: src/slic3r/GUI/GUI_App.cpp:617 src/slic3r/GUI/GUI_ObjectList.cpp:39
|
||||||
#: src/slic3r/GUI/Tab.cpp:948 src/slic3r/GUI/Tab.cpp:962
|
#: src/slic3r/GUI/Tab.cpp:948 src/slic3r/GUI/Tab.cpp:962
|
||||||
@ -747,23 +753,23 @@ msgstr "Розширений"
|
|||||||
|
|
||||||
#: src/slic3r/GUI/GUI_App.cpp:617
|
#: src/slic3r/GUI/GUI_App.cpp:617
|
||||||
msgid "Advanced View Mode"
|
msgid "Advanced View Mode"
|
||||||
msgstr ""
|
msgstr "Розширений режим перегляду"
|
||||||
|
|
||||||
#: src/slic3r/GUI/GUI_App.cpp:618
|
#: src/slic3r/GUI/GUI_App.cpp:618
|
||||||
msgid "Expert"
|
msgid "Expert"
|
||||||
msgstr ""
|
msgstr "Експерт"
|
||||||
|
|
||||||
#: src/slic3r/GUI/GUI_App.cpp:618
|
#: src/slic3r/GUI/GUI_App.cpp:618
|
||||||
msgid "Expert View Mode"
|
msgid "Expert View Mode"
|
||||||
msgstr ""
|
msgstr "Режим перегляду Експерт"
|
||||||
|
|
||||||
#: src/slic3r/GUI/GUI_App.cpp:620
|
#: src/slic3r/GUI/GUI_App.cpp:620
|
||||||
msgid "Mode"
|
msgid "Mode"
|
||||||
msgstr ""
|
msgstr "Режим"
|
||||||
|
|
||||||
#: src/slic3r/GUI/GUI_App.cpp:620
|
#: src/slic3r/GUI/GUI_App.cpp:620
|
||||||
msgid "Slic3r View Mode"
|
msgid "Slic3r View Mode"
|
||||||
msgstr ""
|
msgstr "Режим перегляду Slic3r'у"
|
||||||
|
|
||||||
#: src/slic3r/GUI/GUI_App.cpp:622
|
#: src/slic3r/GUI/GUI_App.cpp:622
|
||||||
msgid "Change Application &Language"
|
msgid "Change Application &Language"
|
||||||
@ -1752,7 +1758,7 @@ msgstr "Вид"
|
|||||||
|
|
||||||
#: src/slic3r/GUI/MainFrame.cpp:445
|
#: src/slic3r/GUI/MainFrame.cpp:445
|
||||||
msgid "&Help"
|
msgid "&Help"
|
||||||
msgstr "Доромога"
|
msgstr "Допомога"
|
||||||
|
|
||||||
#: src/slic3r/GUI/MainFrame.cpp:472
|
#: src/slic3r/GUI/MainFrame.cpp:472
|
||||||
msgid "Choose a file to slice (STL/OBJ/AMF/3MF/PRUSA):"
|
msgid "Choose a file to slice (STL/OBJ/AMF/3MF/PRUSA):"
|
||||||
@ -5064,11 +5070,11 @@ msgstr "Вертикальна відстань між об'єктом та ін
|
|||||||
|
|
||||||
#: src/libslic3r/PrintConfig.cpp:1923
|
#: src/libslic3r/PrintConfig.cpp:1923
|
||||||
msgid "soluble"
|
msgid "soluble"
|
||||||
msgstr ""
|
msgstr "розчинний"
|
||||||
|
|
||||||
#: src/libslic3r/PrintConfig.cpp:1924
|
#: src/libslic3r/PrintConfig.cpp:1924
|
||||||
msgid "detachable"
|
msgid "detachable"
|
||||||
msgstr ""
|
msgstr "відривний"
|
||||||
|
|
||||||
#: src/libslic3r/PrintConfig.cpp:1929
|
#: src/libslic3r/PrintConfig.cpp:1929
|
||||||
msgid "Enforce support for the first"
|
msgid "Enforce support for the first"
|
||||||
@ -5672,7 +5678,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/libslic3r/PrintConfig.cpp:3050
|
#: src/libslic3r/PrintConfig.cpp:3050
|
||||||
msgid "Help"
|
msgid "Help"
|
||||||
msgstr ""
|
msgstr "Допомога"
|
||||||
|
|
||||||
#: src/libslic3r/PrintConfig.cpp:3051
|
#: src/libslic3r/PrintConfig.cpp:3051
|
||||||
msgid "Show this help."
|
msgid "Show this help."
|
||||||
|
@ -42,7 +42,6 @@ wxMenuItem* append_menu_item(wxMenu* menu, int id, const wxString& string, const
|
|||||||
wxMenuItem* append_menu_item(wxMenu* menu, int id, const wxString& string, const wxString& description,
|
wxMenuItem* append_menu_item(wxMenu* menu, int id, const wxString& string, const wxString& description,
|
||||||
std::function<void(wxCommandEvent& event)> cb, const std::string& icon, wxEvtHandler* event_handler)
|
std::function<void(wxCommandEvent& event)> cb, const std::string& icon, wxEvtHandler* event_handler)
|
||||||
{
|
{
|
||||||
// const wxBitmap& bmp = !icon.empty() ? wxBitmap(from_u8(Slic3r::var(icon)), wxBITMAP_TYPE_PNG) : wxNullBitmap;
|
|
||||||
const wxBitmap& bmp = !icon.empty() ? create_scaled_bitmap(icon) : wxNullBitmap;
|
const wxBitmap& bmp = !icon.empty() ? create_scaled_bitmap(icon) : wxNullBitmap;
|
||||||
return append_menu_item(menu, id, string, description, cb, bmp, event_handler);
|
return append_menu_item(menu, id, string, description, cb, bmp, event_handler);
|
||||||
}
|
}
|
||||||
@ -54,7 +53,6 @@ wxMenuItem* append_submenu(wxMenu* menu, wxMenu* sub_menu, int id, const wxStrin
|
|||||||
|
|
||||||
wxMenuItem* item = new wxMenuItem(menu, id, string, description);
|
wxMenuItem* item = new wxMenuItem(menu, id, string, description);
|
||||||
if (!icon.empty())
|
if (!icon.empty())
|
||||||
// item->SetBitmap(wxBitmap(from_u8(Slic3r::var(icon)), wxBITMAP_TYPE_PNG));
|
|
||||||
item->SetBitmap(create_scaled_bitmap(icon));
|
item->SetBitmap(create_scaled_bitmap(icon));
|
||||||
|
|
||||||
item->SetSubMenu(sub_menu);
|
item->SetSubMenu(sub_menu);
|
||||||
@ -421,11 +419,9 @@ wxBitmap create_scaled_bitmap(const std::string& bmp_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PrusaObjectDataViewModelNode::set_object_action_icon() {
|
void PrusaObjectDataViewModelNode::set_object_action_icon() {
|
||||||
// m_action_icon = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("add_object.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
m_action_icon = create_scaled_bitmap("add_object.png");
|
m_action_icon = create_scaled_bitmap("add_object.png");
|
||||||
}
|
}
|
||||||
void PrusaObjectDataViewModelNode::set_part_action_icon() {
|
void PrusaObjectDataViewModelNode::set_part_action_icon() {
|
||||||
// m_action_icon = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var(m_type == itVolume ? "cog.png" : "brick_go.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
m_action_icon = create_scaled_bitmap(m_type == itVolume ? "cog.png" : "brick_go.png");
|
m_action_icon = create_scaled_bitmap(m_type == itVolume ? "cog.png" : "brick_go.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1440,28 +1436,16 @@ PrusaDoubleSlider::PrusaDoubleSlider(wxWindow *parent,
|
|||||||
SetDoubleBuffered(true);
|
SetDoubleBuffered(true);
|
||||||
#endif //__WXOSX__
|
#endif //__WXOSX__
|
||||||
|
|
||||||
// m_bmp_thumb_higher = wxBitmap(style == wxSL_HORIZONTAL ? Slic3r::GUI::from_u8(Slic3r::var("right_half_circle.png")) :
|
|
||||||
// Slic3r::GUI::from_u8(Slic3r::var("up_half_circle.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_thumb_lower = wxBitmap(style == wxSL_HORIZONTAL ? Slic3r::GUI::from_u8(Slic3r::var("left_half_circle.png")) :
|
|
||||||
// Slic3r::GUI::from_u8(Slic3r::var("down_half_circle.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
m_bmp_thumb_higher = wxBitmap(create_scaled_bitmap(style == wxSL_HORIZONTAL ? "right_half_circle.png" : "up_half_circle.png"));
|
m_bmp_thumb_higher = wxBitmap(create_scaled_bitmap(style == wxSL_HORIZONTAL ? "right_half_circle.png" : "up_half_circle.png"));
|
||||||
m_bmp_thumb_lower = wxBitmap(create_scaled_bitmap(style == wxSL_HORIZONTAL ? "left_half_circle.png" : "down_half_circle.png"));
|
m_bmp_thumb_lower = wxBitmap(create_scaled_bitmap(style == wxSL_HORIZONTAL ? "left_half_circle.png" : "down_half_circle.png"));
|
||||||
m_thumb_size = m_bmp_thumb_lower.GetSize();
|
m_thumb_size = m_bmp_thumb_lower.GetSize();
|
||||||
|
|
||||||
// m_bmp_add_tick_on = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("colorchange_add_on.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_add_tick_off = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("colorchange_add_off.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_del_tick_on = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("colorchange_delete_on.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_del_tick_off = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("colorchange_delete_off.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
m_bmp_add_tick_on = create_scaled_bitmap("colorchange_add_on.png");
|
m_bmp_add_tick_on = create_scaled_bitmap("colorchange_add_on.png");
|
||||||
m_bmp_add_tick_off = create_scaled_bitmap("colorchange_add_off.png");
|
m_bmp_add_tick_off = create_scaled_bitmap("colorchange_add_off.png");
|
||||||
m_bmp_del_tick_on = create_scaled_bitmap("colorchange_delete_on.png");
|
m_bmp_del_tick_on = create_scaled_bitmap("colorchange_delete_on.png");
|
||||||
m_bmp_del_tick_off = create_scaled_bitmap("colorchange_delete_off.png");
|
m_bmp_del_tick_off = create_scaled_bitmap("colorchange_delete_off.png");
|
||||||
m_tick_icon_dim = m_bmp_add_tick_on.GetSize().x;
|
m_tick_icon_dim = m_bmp_add_tick_on.GetSize().x;
|
||||||
|
|
||||||
// m_bmp_one_layer_lock_on = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("one_layer_lock_on.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_one_layer_lock_off = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("one_layer_lock_off.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_one_layer_unlock_on = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("one_layer_unlock_on.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_one_layer_unlock_off = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("one_layer_unlock_off.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
m_bmp_one_layer_lock_on = create_scaled_bitmap("one_layer_lock_on.png");
|
m_bmp_one_layer_lock_on = create_scaled_bitmap("one_layer_lock_on.png");
|
||||||
m_bmp_one_layer_lock_off = create_scaled_bitmap("one_layer_lock_off.png");
|
m_bmp_one_layer_lock_off = create_scaled_bitmap("one_layer_lock_off.png");
|
||||||
m_bmp_one_layer_unlock_on = create_scaled_bitmap("one_layer_unlock_on.png");
|
m_bmp_one_layer_unlock_on = create_scaled_bitmap("one_layer_unlock_on.png");
|
||||||
@ -2283,11 +2267,6 @@ PrusaLockButton::PrusaLockButton( wxWindow *parent,
|
|||||||
const wxSize& size /*= wxDefaultSize*/):
|
const wxSize& size /*= wxDefaultSize*/):
|
||||||
wxButton(parent, id, wxEmptyString, pos, size, wxBU_EXACTFIT | wxNO_BORDER)
|
wxButton(parent, id, wxEmptyString, pos, size, wxBU_EXACTFIT | wxNO_BORDER)
|
||||||
{
|
{
|
||||||
// m_bmp_lock_on = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("one_layer_lock_on.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_lock_off = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("one_layer_lock_off.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_unlock_on = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("one_layer_unlock_on.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
// m_bmp_unlock_off = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("one_layer_unlock_off.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
|
|
||||||
m_bmp_lock_on = create_scaled_bitmap("one_layer_lock_on.png");
|
m_bmp_lock_on = create_scaled_bitmap("one_layer_lock_on.png");
|
||||||
m_bmp_lock_off = create_scaled_bitmap("one_layer_lock_off.png");
|
m_bmp_lock_off = create_scaled_bitmap("one_layer_lock_off.png");
|
||||||
m_bmp_unlock_on = create_scaled_bitmap("one_layer_unlock_on.png");
|
m_bmp_unlock_on = create_scaled_bitmap("one_layer_unlock_on.png");
|
||||||
@ -2349,9 +2328,11 @@ PrusaModeButton::PrusaModeButton( wxWindow *parent,
|
|||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||||
#endif // __WXMSW__
|
#endif // __WXMSW__
|
||||||
// m_bmp_off = wxBitmap(Slic3r::GUI::from_u8(Slic3r::var("mode_off_sq.png")), wxBITMAP_TYPE_PNG);
|
|
||||||
m_bmp_off = create_scaled_bitmap("mode_off_sq.png");
|
m_bmp_off = create_scaled_bitmap("mode_off_sq.png");
|
||||||
|
|
||||||
|
m_tt_focused = wxString::Format(_(L("Switch to the %s mode")), mode);
|
||||||
|
m_tt_selected = wxString::Format(_(L("Current mode is %s")), mode);
|
||||||
|
|
||||||
SetBitmap(m_bmp_on);
|
SetBitmap(m_bmp_on);
|
||||||
|
|
||||||
//button events
|
//button events
|
||||||
@ -2372,6 +2353,7 @@ void PrusaModeButton::SetState(const bool state)
|
|||||||
{
|
{
|
||||||
m_is_selected = state;
|
m_is_selected = state;
|
||||||
focus_button(m_is_selected);
|
focus_button(m_is_selected);
|
||||||
|
SetToolTip(state ? m_tt_selected : m_tt_focused);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrusaModeButton::focus_button(const bool focus)
|
void PrusaModeButton::focus_button(const bool focus)
|
||||||
|
@ -906,6 +906,8 @@ private:
|
|||||||
|
|
||||||
wxBitmap m_bmp_on;
|
wxBitmap m_bmp_on;
|
||||||
wxBitmap m_bmp_off;
|
wxBitmap m_bmp_off;
|
||||||
|
wxString m_tt_selected;
|
||||||
|
wxString m_tt_focused;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user