From 051e6a83443617b39dc91469c5bff70373e64b55 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Thu, 9 Oct 2025 07:47:12 +0000 Subject: [PATCH] yeah git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@238 b9cfdab3-6d41-4d17-bbe4-086880011989 --- oosrc/widget/entry.cc | 31 +++++++++++++++++++++++++++++++ oosrc/widget/text.cc | 31 ------------------------------- 2 files changed, 31 insertions(+), 31 deletions(-) create mode 100644 oosrc/widget/entry.cc delete mode 100644 oosrc/widget/text.cc diff --git a/oosrc/widget/entry.cc b/oosrc/widget/entry.cc new file mode 100644 index 0000000..178b8ca --- /dev/null +++ b/oosrc/widget/entry.cc @@ -0,0 +1,31 @@ +/* $Id$ */ +#include +#include + +MwOO::Entry::Entry(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwEntryClass, widget_name, parent, x, y, w, h){ +} + +void MwOO::Entry::SetText(const char* value){ + MwSetText(this->widget, MwNtext, value); +} + +const char* MwOO::Entry::GetText(void){ + return MwGetText(this->widget, MwNtext); +} + +void MwOO::Entry::SetBackground(const char* value){ + MwSetText(this->widget, MwNbackground, value); +} + +const char* MwOO::Entry::GetBackground(void){ + return MwGetText(this->widget, MwNbackground); +} + +void MwOO::Entry::SetForeground(const char* value){ + MwSetText(this->widget, MwNforeground, value); +} + +const char* MwOO::Entry::GetForeground(void){ + return MwGetText(this->widget, MwNforeground); +} + diff --git a/oosrc/widget/text.cc b/oosrc/widget/text.cc deleted file mode 100644 index 91f76f5..0000000 --- a/oosrc/widget/text.cc +++ /dev/null @@ -1,31 +0,0 @@ -/* $Id$ */ -#include -#include - -MwOO::Text::Text(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwTextClass, widget_name, parent, x, y, w, h){ -} - -void MwOO::Text::SetText(const char* value){ - MwSetText(this->widget, MwNtext, value); -} - -const char* MwOO::Text::GetText(void){ - return MwGetText(this->widget, MwNtext); -} - -void MwOO::Text::SetBackground(const char* value){ - MwSetText(this->widget, MwNbackground, value); -} - -const char* MwOO::Text::GetBackground(void){ - return MwGetText(this->widget, MwNbackground); -} - -void MwOO::Text::SetForeground(const char* value){ - MwSetText(this->widget, MwNforeground, value); -} - -const char* MwOO::Text::GetForeground(void){ - return MwGetText(this->widget, MwNforeground); -} -