mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
initial commit for settings dialog, unfinished
This commit is contained in:
parent
84f06503c6
commit
f703004b6c
10 changed files with 261 additions and 118 deletions
|
|
@ -10,7 +10,6 @@
|
|||
#include "handzone.h"
|
||||
#include "carddatabase.h"
|
||||
#include "dlg_startgame.h"
|
||||
#include "dlg_editmessages.h"
|
||||
#include "playerarea.h"
|
||||
#include "counter.h"
|
||||
|
||||
|
|
@ -54,9 +53,6 @@ Game::Game(CardDatabase *_db, Client *_client, QGraphicsScene *_scene, QMenu *_a
|
|||
aCreateToken->setShortcut(tr("Ctrl+T"));
|
||||
connect(aCreateToken, SIGNAL(triggered()), this, SLOT(actCreateToken()));
|
||||
|
||||
aEditMessages = new QAction(tr("&Edit messages..."), this);
|
||||
connect(aEditMessages, SIGNAL(triggered()), this, SLOT(actEditMessages()));
|
||||
|
||||
actionsMenu->addAction(aUntapAll);
|
||||
actionsMenu->addSeparator();
|
||||
actionsMenu->addAction(aDecLife);
|
||||
|
|
@ -115,8 +111,6 @@ Game::~Game()
|
|||
void Game::initSayMenu()
|
||||
{
|
||||
sayMenu->clear();
|
||||
sayMenu->addAction(aEditMessages);
|
||||
sayMenu->addSeparator();
|
||||
|
||||
QSettings settings;
|
||||
settings.beginGroup("messages");
|
||||
|
|
@ -325,13 +319,6 @@ void Game::actCreateToken()
|
|||
client->createToken("table", cardname, QString(), 0, 0);
|
||||
}
|
||||
|
||||
void Game::actEditMessages()
|
||||
{
|
||||
DlgEditMessages dlg;
|
||||
if (dlg.exec())
|
||||
initSayMenu();
|
||||
}
|
||||
|
||||
void Game::showCardMenu(QPoint p)
|
||||
{
|
||||
cardMenu->exec(p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue