~ubuntu-branches/ubuntu/vivid/qgo/vivid-proposed

« back to all changes in this revision

Viewing changes to src/gamedialog.h

  • Committer: Package Import Robot
  • Author(s): Yann Dirson
  • Date: 2012-05-19 19:05:05 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120519190505-b23f5tzx7y8cu946
Tags: 2~svn764-1
* The "Raise dead" release (Closes: #673520), new maintainer.
* New upstream snapshot with Qt4 support (Closes: #604589), adjusted
  build-deps.
* Switched to source format "3.0 (quilt)", adjusted build-deps.
* Switched to dh and debhelper compat level 9, adjusted build-deps.
* Build with -fpermissive.
* New build-dep libasound2-dev, remove obsolete build-dep on libxinerama-dev.
* Refreshed patches 01_gnugo and 04_desktop, leaving 20_kfreebsd away
  for this release, and removing the remaining ones, now obsolete.
* Added patch 02_usrgames for FHS-correct install location.
* Adjusted icon names in menu file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *   gamedialog.h
3
 
 */
4
 
 
5
 
#ifndef GAMEDIALOG_H
6
 
#define GAMEDIALOG_H
7
 
 
8
 
#include "newgame_gui.h"
9
 
#include "gs_globals.h"
10
 
#include "defines.h"
11
 
#include "misc.h"
12
 
 
13
 
class GameDialog : public NewGameDialog, public Misc<QString>
14
 
15
 
        Q_OBJECT
16
 
 
17
 
public:
18
 
        GameDialog(QWidget* parent = 0, const char* name = 0, bool modal = true, WFlags fl = 0);
19
 
        ~GameDialog();
20
 
        void set_gsName(GSName g) { gsname = g; }
21
 
        void set_oppRk(QString &rk) { oppRk = rk; qDebug("oppRk: " + rk); }
22
 
        void set_myRk(QString &rk) { myRk = rk; qDebug("myRk: " + rk); }
23
 
        void set_myName(QString &name) { myName = name; }
24
 
        void set_is_nmatch (bool b) { is_nmatch = b; }
25
 
 
26
 
signals:
27
 
        void signal_sendcommand(const QString &cmd, bool localecho);
28
 
        void signal_matchsettings(const QString&, const QString&, const QString&, assessType);
29
 
        void signal_removeDialog(const QString&);
30
 
 
31
 
public slots:
32
 
        // pushbuttons
33
 
        virtual void slot_stats_opponent();
34
 
        virtual void slot_swapcolors();
35
 
        virtual void slot_pbsuggest();
36
 
        virtual void slot_offer(bool);
37
 
        virtual void slot_decline();
38
 
        virtual void slot_changed();
39
 
        virtual void slot_cancel();
40
 
        // parser
41
 
        void slot_suggest(const QString&, const QString&, const QString&, const QString&, int);
42
 
        void slot_matchcreate(const QString&, const QString&);
43
 
        void slot_notopen(const QString&);
44
 
        void slot_komirequest(const QString&, int, int, bool);
45
 
        void slot_opponentopen(const QString&);
46
 
        void slot_dispute(const QString&, const QString&);
47
 
 
48
 
private:
49
 
        bool have_suggestdata;
50
 
        QString pwhite;
51
 
        QString pblack;
52
 
        QString h19, h13, h9;
53
 
        QString k19, k13, k9;
54
 
        GSName  gsname;
55
 
        QString oppRk;
56
 
        QString myRk;
57
 
        QString myName;
58
 
        bool komi_request;
59
 
        bool is_nmatch;
60
 
};
61
 
 
62
 
#endif