Skip to content

Commit

Permalink
Crappy interface. Will improve.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kate Wells committed Apr 4, 2013
1 parent edea76a commit 56c72b1
Show file tree
Hide file tree
Showing 3 changed files with 553 additions and 11 deletions.
18 changes: 18 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,28 @@ mainWindow::mainWindow(QWidget *parent) :

ui->graphicsView->rotate(180);

connect(ui->setBtn, SIGNAL(clicked()), this, SLOT(setup()));
connect(ui->resetBtn, SIGNAL(clicked()), this, SLOT(reset()));

}

mainWindow::~mainWindow()
{
delete ui;
}

void mainWindow::setup() {
ui->numBots->setEnabled(false);
ui->kMatrix->setEnabled(false);
ui->initPos->setEnabled(false);
ui->setBtn->setEnabled(false);
ui->loadFile->setEnabled(false);
}

void mainWindow::reset() {
ui->numBots->setEnabled(true);
ui->kMatrix->setEnabled(true);
ui->initPos->setEnabled(true);
ui->setBtn->setEnabled(true);
ui->loadFile->setEnabled(true);
}
3 changes: 2 additions & 1 deletion mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class mainWindow : public QMainWindow
~mainWindow();

public slots:

void setup();
void reset();

private:
Ui::MainWindow *ui;
Expand Down
Loading

0 comments on commit 56c72b1

Please sign in to comment.