~ubuntu-branches/ubuntu/natty/smc/natty

« back to all changes in this revision

Viewing changes to src/core/editor.h

  • Committer: Bazaar Package Importer
  • Author(s): Muammar El Khatib
  • Date: 2009-01-30 14:20:20 UTC
  • mfrom: (1.1.5 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090130142020-slza1cg603t34uyq
Tags: 1.7-1
* New upstream release. (Closes: #511404)
* debian/control: smc Build-Depends on libboost-filesystem1.37-dev instead of
  libboost-filesystem-dev.
* debian/control: dpatch build dependency has been added in order to make the
  update of libboost-filesystem1.37-dev.
* smc is not failing anymore with undefined symbol error in CEGUI. Problem was
  caused by a missed directory called translations under /usr/share/games/smc/
  (Closes: #508106)
* smc now suggests smc-music. Thanks to Alessio Treglia for reporting this.
  (Closes: #511660)
* Bug 'Segmentation fault on startup' is no longer present in this new 
  upstream version.  (Closes: #512841)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "../gui/hud.h"
22
22
#include "../video/img_settings.h"
23
23
 
 
24
/* *** *** *** *** *** *** *** cEditor_Object_Settings_Item *** *** *** *** *** *** *** *** *** *** */
 
25
 
 
26
class cEditor_Object_Settings_Item
 
27
{
 
28
public:
 
29
        cEditor_Object_Settings_Item( void );
 
30
        ~cEditor_Object_Settings_Item( void );
 
31
 
 
32
        // name
 
33
        CEGUI::Window *window_name;
 
34
        // settings
 
35
        CEGUI::Window *window_setting;
 
36
        // if set start new row
 
37
        bool advance_row;
 
38
};
 
39
 
24
40
/* *** *** *** *** *** *** *** *** cEditor_Item_Object *** *** *** *** *** *** *** *** *** */
25
41
 
26
42
class cEditor_Item_Object : public CEGUI::ListboxItem
126
142
        // Add Menu Entry
127
143
        void Add_Menu_Object( string name, string tags, CEGUI::colour normal_color = CEGUI::colour( 1, 1, 1 ) );
128
144
        // Set Active Menu Entry
129
 
        virtual void Activate_Menu( cEditor_Menu_Object *entry );
 
145
        virtual void Activate_Menu_Item( cEditor_Menu_Object *entry );
130
146
 
131
147
        // ##### Item Menu
132
148
        // Load an defined Menu
137
153
         * if nName is set it will not use the object name
138
154
         * if image is set the default object image is not used
139
155
         */
140
 
        void Add_Item_Object( cSprite *sprite, string new_name = "", GL_Surface *image = NULL );
 
156
        void Add_Item_Object( cSprite *sprite, string new_name = "", cGL_Surface *image = NULL );
141
157
        // Loads all Image Items
142
158
        void Load_Image_Items( string dir );
143
159
        // Active Item Entry