mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
work on listbox
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@327 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -68,62 +68,7 @@ int MwOO::Base::GetHeight(void){
|
||||
}
|
||||
|
||||
/* BEGIN AUTOGENERATE */
|
||||
static void __OnActivate(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnActivate(call);
|
||||
}
|
||||
static void __OnResize(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnResize(call);
|
||||
}
|
||||
static void __OnTick(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnTick(call);
|
||||
}
|
||||
static void __OnMenu(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnMenu(call);
|
||||
}
|
||||
static void __OnMouseDownHandler(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnMouseDownHandler(call);
|
||||
}
|
||||
static void __OnMouseUpHandler(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnMouseUpHandler(call);
|
||||
}
|
||||
static void __OnMouseMoveHandler(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnMouseMoveHandler(call);
|
||||
}
|
||||
static void __OnChangedHandler(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnChangedHandler(call);
|
||||
}
|
||||
static void __OnKeyHandler(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnKeyHandler(call);
|
||||
}
|
||||
static void __OnKeyReleaseHandler(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnKeyReleaseHandler(call);
|
||||
}
|
||||
static void __OnCloseHandler(MwWidget widget, void* user, void* call){
|
||||
MwOO::Base* c = (MwOO::Base*)user;
|
||||
(void)widget; c->OnCloseHandler(call);
|
||||
}
|
||||
|
||||
void MwOO::Base::SetHandler(void){
|
||||
MwAddUserHandler(this->widget, MwNactivateHandler, __OnActivate, this);
|
||||
MwAddUserHandler(this->widget, MwNresizeHandler, __OnResize, this);
|
||||
MwAddUserHandler(this->widget, MwNtickHandler, __OnTick, this);
|
||||
MwAddUserHandler(this->widget, MwNmenuHandler, __OnMenu, this);
|
||||
MwAddUserHandler(this->widget, MwNmouseDownHandler, __OnMouseDownHandler, this);
|
||||
MwAddUserHandler(this->widget, MwNmouseUpHandler, __OnMouseUpHandler, this);
|
||||
MwAddUserHandler(this->widget, MwNmouseMoveHandler, __OnMouseMoveHandler, this);
|
||||
MwAddUserHandler(this->widget, MwNchangedHandler, __OnChangedHandler, this);
|
||||
MwAddUserHandler(this->widget, MwNkeyHandler, __OnKeyHandler, this);
|
||||
MwAddUserHandler(this->widget, MwNkeyReleaseHandler, __OnKeyReleaseHandler, this);
|
||||
MwAddUserHandler(this->widget, MwNcloseHandler, __OnCloseHandler, this);
|
||||
}
|
||||
/* END AUTOGENERATE */
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# $Id$
|
||||
OOL_OBJS += oosrc/widget/button.o oosrc/widget/frame.o oosrc/widget/image.o oosrc/widget/menu.o oosrc/widget/scrollbar.o oosrc/widget/submenu.o oosrc/widget/window.o oosrc/widget/checkbox.o oosrc/widget/label.o oosrc/widget/entry.o oosrc/widget/viewport.o oosrc/widget/numberentry.o
|
||||
OOL_OBJS += oosrc/widget/button.o oosrc/widget/frame.o oosrc/widget/image.o oosrc/widget/menu.o oosrc/widget/scrollbar.o oosrc/widget/submenu.o oosrc/widget/window.o oosrc/widget/checkbox.o oosrc/widget/label.o oosrc/widget/entry.o oosrc/widget/viewport.o oosrc/widget/numberentry.o oosrc/widget/listbox.o
|
||||
|
||||
23
oosrc/widget/listbox.cc
Normal file
23
oosrc/widget/listbox.cc
Normal file
@@ -0,0 +1,23 @@
|
||||
/* $Id$ */
|
||||
#include <MwOO/Widget/ListBox.h>
|
||||
#include <Mw/Widget/ListBox.h>
|
||||
|
||||
MwOO::ListBox::ListBox(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwListBoxClass, widget_name, parent, x, y, w, h){
|
||||
}
|
||||
|
||||
void MwOO::ListBox::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::ListBox::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::ListBox::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::ListBox::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user