~ubuntu-branches/ubuntu/maverick/lordsawar/maverick

« back to all changes in this revision

Viewing changes to src/editor/tile-preview-scene.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2010-04-10 09:29:33 UTC
  • mfrom: (1.1.9 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100410092933-23uq4dxig30kmtcw
Tags: 0.1.8-1
* New upstream release.
* Add misc:Depends for -data package.
* Bump Standards Version to 3.8.4. (No changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <vector>
27
27
#include <string>
28
28
 
 
29
struct tile_model
 
30
{
 
31
  Tile *tile;
 
32
  TileStyle::Type type;
 
33
};
 
34
 
29
35
class TilePreviewScene: public sigc::trackable
30
36
{
31
37
public:
32
 
  TilePreviewScene (Tile *tile, 
 
38
  TilePreviewScene (Tile *tile, Tile *secondary_tile,
33
39
                    std::vector<PixMask*> standard_images, 
34
40
                    guint32 height, guint32 width, 
35
41
                    std::string scene);
42
48
  Glib::RefPtr<Gdk::Pixbuf> renderScene(guint32 tilesize);
43
49
private:
44
50
  //data:
45
 
    std::list<TileStyle::Type> d_model;
 
51
    std::list<struct tile_model> d_model;
46
52
    std::vector<Glib::RefPtr<Gdk::Pixbuf> > d_view;
47
53
    std::vector<TileStyle*> d_tilestyles;
48
54
    guint32 d_height;
49
55
    guint32 d_width;
50
56
    Tile *d_tile;
 
57
    Tile *d_secondary_tile;
51
58
    std::vector<PixMask*> d_standard_images;
52
59
};
53
60