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

« back to all changes in this revision

Viewing changes to src/gui/splash-window.h

  • 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 <gtkmm/container.h>
28
28
#include <gtkmm/widget.h>
29
29
 
30
 
#include "../game-parameters.h"
31
 
 
32
 
 
 
30
#include "game-parameters.h"
 
31
 
 
32
 
 
33
#include "decorated.h"
33
34
/** The opening window of the game
34
35
  * 
35
36
  * This is the first window to pop up, where the user selects whether to start
38
39
  * The splash screen is also responsible for launching dialogs in response to
39
40
  * the menu choices.
40
41
  */
41
 
class SplashWindow: public sigc::trackable
 
42
class SplashWindow: public Decorated
42
43
{
43
44
 public:
44
45
    SplashWindow();
50
51
    Gtk::Window *get_window() {return window.get();}
51
52
 
52
53
    sigc::signal<void> sdl_initialized;
53
 
    sigc::signal<void, std::string, bool> new_network_game_requested;
 
54
    sigc::signal<void, std::string, unsigned short, std::string> new_remote_network_game_requested;
 
55
    sigc::signal<void, GameParameters, int, std::string > new_hosted_network_game_requested;
 
56
    sigc::signal<void, GameParameters> new_pbm_game_requested;
54
57
    sigc::signal<void, GameParameters> new_game_requested;
 
58
    sigc::signal<void, GameParameters> new_campaign_requested;
55
59
    sigc::signal<void, std::string> load_requested;
56
60
    sigc::signal<void> quit_requested;
57
61
 
63
67
    Gtk::Container *sdl_container;
64
68
    Gtk::Widget *sdl_widget;
65
69
    bool on_delete_event(GdkEventAny *e);
 
70
    void on_window_closed();
 
71
  
 
72
    std::string network_game_nickname;
66
73
    
67
74
    void on_new_campaign_clicked();
68
75
    void on_new_game_clicked();
69
76
    void on_new_network_game_clicked();
 
77
    void on_new_pbm_game_clicked();
70
78
    void on_load_game_clicked();
71
79
    void on_load_scenario_clicked();
72
80
    void on_preferences_clicked();
74
82
    void on_rescue_crashed_game_clicked();
75
83
        
76
84
    void on_game_started(GameParameters g);
 
85
    void on_campaign_started(GameParameters g);
77
86
    void on_network_game_created(GameParameters g);
 
87
    void on_pbm_game_created(GameParameters g);
78
88
    void on_network_game_selected(std::string ip, unsigned short port);
79
89
 
80
90
#if 0