From 0efa0720089c684d9beb5f108dbc391ab55a3e4b Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Thu, 18 Jan 2001 22:04:13 +0000 Subject: [PATCH] whee --- panda/src/gui/guiListBox.cxx | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 panda/src/gui/guiListBox.cxx diff --git a/panda/src/gui/guiListBox.cxx b/panda/src/gui/guiListBox.cxx new file mode 100644 index 0000000000..e7f9f3afca --- /dev/null +++ b/panda/src/gui/guiListBox.cxx @@ -0,0 +1,45 @@ +// Filename: guiListBox.cxx +// Created by: cary (18Jan01) +// +//////////////////////////////////////////////////////////////////// + +#include "guiListBox.h" + +TypeHandle GuiListBox::_type_handle; + +void GuiListBox::recompute_frame(void) { + GuiItem::recompute_frame(); +} + +GuiListBox::GuiListBox(const string& name) : GuiItem(name) { +} + +GuiListBox::~GuiListBox(void) { + this->unmanage(); +} + +void GuiListBox::manage(GuiManager* mgr, EventHandler& eh) { + if (_mgr == (GuiManager*)0L) + GuiItem::manage(mgr, eh); + else + gui_cat->warning() << "tried to manage listbox (0x" << (void*)this + << ") that is already managed" << endl; +} + +void GuiListBox::unmanage(void) { + GuiItem::unmanage(); +} + +void GuiListBox::set_scale(float f) { + GuiItem::set_scale(f); +} + +void GuiListBox::set_pos(const LVector3f& p) { + GuiItem::set_pos(p); +} + +void GuiListBox::output(ostream& os) const { + GuiItem::output(os); + os << " Listbox data:" << endl; + os << " none" << endl; +}