~ubuntu-branches/ubuntu/saucy/lordsawar/saucy

« back to all changes in this revision

Viewing changes to src/gui/sage-dialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese
  • Date: 2008-12-20 13:52:12 UTC
  • mfrom: (1.1.6 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081220135212-noeb2w3y98ebo7o9
Tags: 0.1.4-1
[ Barry deFreese ]
* New upstream release.
* Move 0.0.8-2.1 changelog entry to correct point in changelog.
* Make lordsawar-data suggest lordsawar.
* Update my e-mail address.
* Add build-depends on intltool, uuid-dev, and libboost-dev.
* Don't install locales since there are no translations currently.
* Add simple man page for new lordsawar-pbm binary.
* Drop gcc4.3 patches as they have been fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "glade-helpers.h"
28
28
#include "image-helpers.h"
29
29
#include "input-helpers.h"
30
 
#include "../ucompose.hpp"
31
 
#include "../defs.h"
32
 
#include "../GameMap.h"
33
 
#include "../File.h"
34
 
#include "../sound.h"
35
 
#include "../ruin.h"
36
 
#include "../rewardlist.h"
 
30
#include "ucompose.hpp"
 
31
#include "defs.h"
 
32
#include "GameMap.h"
 
33
#include "File.h"
 
34
#include "sound.h"
 
35
#include "ruin.h"
 
36
#include "rewardlist.h"
37
37
 
38
38
SageDialog::SageDialog(Player *player, Hero *h, Ruin *r)
39
39
{
47
47
    Gtk::Dialog *d = 0;
48
48
    xml->get_widget("dialog", d);
49
49
    dialog.reset(d);
 
50
    decorate(dialog.get());
 
51
    window_closed.connect(sigc::mem_fun(dialog.get(), &Gtk::Dialog::hide));
50
52
 
51
53
    rewards_list = Gtk::ListStore::create(rewards_columns);
52
54
    xml->get_widget("rewardtreeview", rewards_treeview);
65
67
    Gtk::EventBox *map_eventbox;
66
68
    xml->get_widget("map_eventbox", map_eventbox);
67
69
 
68
 
    dialog->set_title(_("A Sage!"));
 
70
    set_title(_("A Sage!"));
69
71
 
70
72
    Rewardlist::iterator iter = Rewardlist::getInstance()->begin();
71
73
    for (;iter != Rewardlist::getInstance()->end(); iter++)
114
116
Reward *SageDialog::run()
115
117
{
116
118
    ruinmap->resize();
117
 
    ruinmap->draw();
 
119
    ruinmap->draw(Playerlist::getActiveplayer());
118
120
 
119
121
    Sound::getInstance()->playMusic("hero", 1);
120
122
    dialog->show_all();