~ubuntu-branches/ubuntu/maverick/qgo/maverick

« back to all changes in this revision

Viewing changes to src/gamedialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2005-01-01 23:07:10 UTC
  • Revision ID: james.westby@ubuntu.com-20050101230710-fhng6yidm47xlb2i
Tags: upstream-1.0.0-r2
ImportĀ upstreamĀ versionĀ 1.0.0-r2

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
 
 
12
 
 
13
class GameDialog : public NewGameDialog
 
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
 
 
24
signals:
 
25
        void signal_sendcommand(const QString &cmd, bool localecho);
 
26
        void signal_matchsettings(const QString&, const QString&, const QString&, assessType);
 
27
 
 
28
public slots:
 
29
        // pushbuttons
 
30
  virtual void slot_stats_opponent();
 
31
        virtual void slot_swapcolors();
 
32
        virtual void slot_pbsuggest();
 
33
        virtual void slot_offer(bool);
 
34
        virtual void slot_decline();
 
35
        virtual void slot_changed();
 
36
        // parser
 
37
        void slot_suggest(const QString&, const QString&, const QString&, const QString&, int);
 
38
        void slot_matchcreate(const QString&, const QString&);
 
39
        void slot_notopen(const QString&);
 
40
        void slot_komirequest(const QString&, int, int, bool);
 
41
        void slot_opponentopen(const QString&);
 
42
 
 
43
private:
 
44
        bool have_suggestdata;
 
45
        QString pwhite;
 
46
        QString pblack;
 
47
        QString h19, h13, h9;
 
48
        QString k19, k13, k9;
 
49
        GSName  gsname;
 
50
        QString oppRk;
 
51
        QString myRk;
 
52
 
 
53
  bool komi_request;
 
54
};
 
55
 
 
56
#endif