OpenCPN Partial API docs
|
A label, a text entry and an EditButton allows for user text input Depending in state it looks like. More...
#include <text_entry.h>
Public Member Functions | |
TextEntryPanel (wxWindow *parent, const std::string &label, std::string &text, std::function< void()> on_update, int width=40) | |
Create a new TextEntryPanel. | |
Public Attributes | |
const int | kEditBtnId |
Use with FindWindowById to get EditButton button. | |
const int | kTextId |
Use with FindWindowById to get wxStaticText label. | |
const int | kTextEntryId |
Use with FindWindowById to get wxTextCtrl entry. | |
A label, a text entry and an EditButton allows for user text input Depending in state it looks like.
or
The leftmost label is fixed, possibly empty.
Definition at line 15 of file text_entry.h.
TextEntryPanel::TextEntryPanel | ( | wxWindow * | parent, |
const std::string & | label, | ||
std::string & | text, | ||
std::function< void()> | on_update, | ||
int | width = 40 |
||
) |
Create a new TextEntryPanel.
parent | Containing window. |
label | Left-most label, possibly empty. |
text | Initial value of the text entry. |
on_update | Callback invoked when user updates the text entry |
width | Width of entry in characters. |
const int TextEntryPanel::kEditBtnId |
Use with FindWindowById to get EditButton button.
Definition at line 27 of file text_entry.h.
const int TextEntryPanel::kTextEntryId |
Use with FindWindowById to get wxTextCtrl entry.
Definition at line 29 of file text_entry.h.
const int TextEntryPanel::kTextId |
Use with FindWindowById to get wxStaticText label.
Definition at line 28 of file text_entry.h.