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. | |
const int | kTextId |
Use with FindWindowById to get wxStaticText. | |
const int | kTextEntryId |
Use with FindWindowById to get wxTextCtrl. | |
A label, a text entry and an EditButton allows for user text input Depending in state it looks like.
or
The label is fixed, possibly empty.
Examples: filter_dlg.cpp
Definition at line 16 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.
Definition at line 28 of file text_entry.h.
const int TextEntryPanel::kTextEntryId |
Use with FindWindowById to get wxTextCtrl.
Definition at line 30 of file text_entry.h.
const int TextEntryPanel::kTextId |
Use with FindWindowById to get wxStaticText.
Definition at line 29 of file text_entry.h.