#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/OptionsGroup.hpp>
◆ ogStaticText() [1/2]
| Slic3r::GUI::ogStaticText::ogStaticText |
( |
| ) |
|
|
inline |
◆ ogStaticText() [2/2]
| Slic3r::GUI::ogStaticText::ogStaticText |
( |
wxWindow * | parent, |
|
|
const wxString & | text ) |
1425 :
wxStaticText(parent, wxID_ANY, text, wxDefaultPosition, wxDefaultSize)
1426{
1427 if (!text.IsEmpty()) {
1428 Wrap(60 * wxGetApp().
em_unit());
1429 GetParent()->Layout();
1430 }
1431}
class WXDLLIMPEXP_FWD_CORE wxStaticText
Definition ProgressDialog.hpp:30
int em_unit(wxWindow *win)
Definition wxExtensions.cpp:424
References wxStaticText.
◆ ~ogStaticText()
| Slic3r::GUI::ogStaticText::~ogStaticText |
( |
| ) |
|
|
inline |
◆ FocusText()
| void Slic3r::GUI::ogStaticText::FocusText |
( |
bool | focus | ) |
|
1469{
1470 SetFont(focus ? Slic3r::GUI::wxGetApp().link_font() : Slic3r::GUI::wxGetApp().normal_font());
1471 Refresh();
1472}
Referenced by SetPathEnd().
◆ SetPathEnd()
| void Slic3r::GUI::ogStaticText::SetPathEnd |
( |
const std::string & | link | ) |
|
1442{
1444 if (HasCapture())
1445 return;
1446 this->CaptureMouse();
1447 event.Skip();
1448 });
1449 Bind(wxEVT_LEFT_UP, [link,
this](
wxMouseEvent& event) {
1450 if (!HasCapture())
1451 return;
1452 ReleaseMouse();
1453
1454
1455 event.Skip();
1456 });
1457 Bind(wxEVT_ENTER_WINDOW, [
this, link](
wxMouseEvent& event) {
1460 event.Skip();
1461 });
1464 event.Skip();
1465 });
1466}
static wxString get_url(const std::string &path_end)
Definition OptionsGroup.cpp:1404
void FocusText(bool focus)
Definition OptionsGroup.cpp:1468
wxMouseEvent
Definition CameraPopup.cpp:47
References FocusText(), Slic3r::GUI::OptionsGroup::get_url(), and Slic3r::GUI::wxMouseEvent.
◆ SetText()
| void Slic3r::GUI::ogStaticText::SetText |
( |
const wxString & | value, |
|
|
bool | wrap = true ) |
1434{
1435 SetLabel(value);
1436 if (wrap)
1437 Wrap(60 * wxGetApp().
em_unit());
1438 GetParent()->Layout();
1439}
References em_unit().
The documentation for this class was generated from the following files: