~ubuntu-branches/ubuntu/wily/hedgewars/wily

« back to all changes in this revision

Viewing changes to QTfrontend/hwform.h

  • Committer: Package Import Robot
  • Author(s): Dmitry E. Oboukhov
  • Date: 2011-09-23 10:16:55 UTC
  • mfrom: (1.2.11 upstream)
  • Revision ID: package-import@ubuntu.com-20110923101655-3977th2gc5n0a3pv
Tags: 0.9.16-1
* New upstream version.
 + Downloadable content! Simply click to install any content.
   New voices, hats, maps, themes, translations, music, scripts...
   Hedgewars is now more customisable than ever before! As time goes
   by we will be soliciting community content to feature on this page,
   so remember to check it from time to time. If you decide you want
   to go back to standard Hedgewars, just remove the Data directory
   from your Hedgewars config directory.
 + 3-D rendering! Diorama-like rendering of the game in a variety
   of 3D modes. Let us know which ones work best for you, we didn't
   really have the equipment to test them all.
 + Resizable game window.
 + New utilities! The Time Box will remove one of your hedgehogs
   from the game for a while, protecting from attack until it returns,
   somewhere else on the map. Land spray will allow you to build bridges,
   seal up holes, or just make life unpleasant for your enemies.
 + New single player: Bamboo Thicket, That Sinking Feeling, Newton and
   the Tree and multi-player: The Specialists, Space Invaders,
   Racer - scripts! And a ton more script hooks for scripters
 + New twists on old weapons. Drill strike, seduction and fire have
   been adjusted. Defective mines have been added, rope can attach to
   hogs/crates/barrels again, grenades now have variable bounce (use
   precise key + 1-5). Portal gun is now more usable in flight and
   all game actions are a lot faster.
 + New theme - Golf, dozens of new community hats and a new
   localised Default voice, Ukranian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Hedgewars, a free turn based strategy game
3
 
 * Copyright (c) 2005-2010 Andrey Korotaev <unC0Rr@gmail.com>
 
3
 * Copyright (c) 2005-2011 Andrey Korotaev <unC0Rr@gmail.com>
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License as published by
52
52
    Q_OBJECT
53
53
 
54
54
public:
55
 
    HWForm(QWidget *parent = 0);
 
55
    HWForm(QWidget *parent = 0, QString styleSheet = "");
56
56
    Ui_HWForm ui;
57
57
    SDLInteraction sdli;
58
58
    GameUIConfig * config;
59
59
    QSettings * gameSettings; // Same file GameUIConfig points to but without the baggage.  Needs sync() calls if you want to get GameUIConfig changes though
60
60
    void updateXfire();
 
61
    void PlayDemoQuick(const QString & demofilename);
61
62
 
62
63
private slots:
63
64
    void GoToSaves();
71
72
    void GoToNewScheme();
72
73
    void GoToPage(int id);
73
74
    void GoBack();
 
75
    void OpenSnapshotFolder();
 
76
    QString getDemoArguments();
74
77
    void AssociateFiles();
75
78
    void btnExitPressed();
76
79
    void btnExitClicked();
114
117
    void AsyncNetServerStart();
115
118
    void NetLeftRoom();
116
119
    void selectFirstNetScheme();
 
120
    
 
121
    void saveDemoWithCustomName();
117
122
 
118
123
private:
119
124
    void _NetConnect(const QString & hostName, quint16 port, const QString & nick);
145
150
        ID_PAGE_ADMIN           = 17,
146
151
        ID_PAGE_NETTYPE         = 18,
147
152
        ID_PAGE_CAMPAIGN        = 19,
148
 
        ID_PAGE_DRAWMAP         = 20
 
153
        ID_PAGE_DRAWMAP         = 20,
 
154
        ID_PAGE_DATADOWNLOAD    = 21
149
155
        };
150
156
    HWGame * game;
151
157
    HWNetServer* pnetserver;
158
164
    QTime eggTimer;
159
165
    BGWidget * wBackground;
160
166
    QSignalMapper * pageSwitchMapper;
 
167
    QByteArray m_lastDemo;
161
168
 
162
169
#ifdef __APPLE__
163
 
        InstallController * panel;
 
170
    InstallController * panel;
164
171
#endif
165
172
 
166
173
    void OnPageShown(quint8 id, quint8 lastid=0);