[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/editor object_selector_window.cxx,NON
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/editor object_selector_window.cxx,NONE,1.1 object_selector_window.hxx,NONE,1.1 |
Date: |
2 Dec 2002 10:40:22 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv17796
Added Files:
object_selector_window.cxx object_selector_window.hxx
Log Message:
added missing file
--- NEW FILE: object_selector_window.cxx ---
// $Id: object_selector_window.cxx,v 1.1 2002/12/02 10:40:19 grumbel Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2002 Ingo Ruhnke <address@hidden>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "object_selector_window.hxx"
ObjectSelectorWindow::ObjectSelectorWindow(CL_Component* parent)
: CL_Window(CL_Rect(50, 50, 250, 410), "Object Inserter", parent),
y_pos(10),
groundpiece_ground_button(CL_Rect(10, y_pos, 190, y_pos += 20),
"Groundpiece (ground)", get_client_area()),
groundpiece_solid_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Groundpiece
(solid)", get_client_area()),
groundpiece_transparent_button(CL_Rect(10, y_pos, 190, y_pos += 20),
"Groundpiece (transparent)", get_client_area()),
groundpiece_remove_button(CL_Rect(10, y_pos, 190, y_pos += 20),
"Groundpiece (remove)", get_client_area()),
hotspot_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Hotspot",
get_client_area()),
entrance_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Entrance",
get_client_area()),
exit_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Exit",
get_client_area()),
liquid_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Liquid",
get_client_area()),
weather_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Weather",
get_client_area()),
trap_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Trap",
get_client_area()),
worldobj_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Worldobject",
get_client_area()),
background_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Background",
get_client_area()),
prefab_button(CL_Rect(10, y_pos, 190, y_pos += 20), "Prefab",
get_client_area()),
file_button(CL_Rect(10, y_pos, 190, y_pos += 20), "From File",
get_client_area()),
close_button(CL_Rect(10, y_pos + 10, 190, y_pos + 30), "Close",
get_client_area())
{
close_button_slot = close_button.sig_clicked().connect(this,
&ObjectSelectorWindow::on_close_press);
}
void
ObjectSelectorWindow::on_close_press()
{
show(false);
}
/* EOF */
--- NEW FILE: object_selector_window.hxx ---
// $Id: object_selector_window.hxx,v 1.1 2002/12/02 10:40:19 grumbel Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2002 Ingo Ruhnke <address@hidden>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef HEADER_PINGUS_EDITOR_OBJECT_SELECTOR_WINDOW_HXX
#define HEADER_PINGUS_EDITOR_OBJECT_SELECTOR_WINDOW_HXX
#include <ClanLib/GUI/window.h>
#include <ClanLib/GUI/button.h>
/** */
class ObjectSelectorWindow : public CL_Window
{
private:
int y_pos;
CL_Button groundpiece_ground_button;
CL_Button groundpiece_solid_button;
CL_Button groundpiece_transparent_button;
CL_Button groundpiece_remove_button;
CL_Button hotspot_button;
CL_Button entrance_button;
CL_Button exit_button;
CL_Button liquid_button;
CL_Button weather_button;
CL_Button trap_button;
CL_Button worldobj_button;
CL_Button background_button;
CL_Button prefab_button;
CL_Button file_button;
CL_Button close_button;
CL_Slot close_button_slot;
public:
ObjectSelectorWindow(CL_Component*);
void on_close_press();
private:
ObjectSelectorWindow (const ObjectSelectorWindow&);
ObjectSelectorWindow& operator= (const ObjectSelectorWindow&);
};
#endif
/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/editor object_selector_window.cxx,NONE,1.1 object_selector_window.hxx,NONE,1.1,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src action_button.cxx,1.22,1.23 gui_screen.cxx,1.13,1.14
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.hxx,1.22,1.23 editor_event.cxx,1.43,1.44 object_manager.cxx,1.38,1.39 object_manager.hxx,1.24,1.25 object_selector_window.cxx,1.1,1.2 object_selector_window.hxx,1.1,1.2
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src action_button.cxx,1.22,1.23 gui_screen.cxx,1.13,1.14
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.hxx,1.22,1.23 editor_event.cxx,1.43,1.44 object_manager.cxx,1.38,1.39 object_manager.hxx,1.24,1.25 object_selector_window.cxx,1.1,1.2 object_selector_window.hxx,1.1,1.2
- Index(es):