diff options
Diffstat (limited to 'gui/mainwindow.cpp')
| -rw-r--r-- | gui/mainwindow.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp deleted file mode 100644 index 5b8422e..0000000 --- a/gui/mainwindow.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "mainwindow.h" -#include "ui_mainwindow.h" - -#include "diceparser.h" - -MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWindow) -{ - ui->setupUi(this); - - connect(ui->m_rollButton, SIGNAL(pressed()), this, SLOT(rollDiceCommand())); - m_dieParser= new DiceParser(); -} - -MainWindow::~MainWindow() -{ - delete ui; -} -void MainWindow::rollDiceCommand() -{ - QString cmd= ui->m_cmdEdit->text(); - - if(m_dieParser->parseLine(cmd)) - { - m_dieParser->Start(); - m_dieParser->displayResult(); - } -} |