-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added properties window and worked on GUI
- Loading branch information
Showing
9 changed files
with
217 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "configpropertieswindow.h" | ||
#include "ui_configpropertieswindow.h" | ||
|
||
ConfigPropertiesWindow::ConfigPropertiesWindow(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::ConfigPropertiesWindow) | ||
{ | ||
ui->setupUi(this); | ||
} | ||
ConfigPropertiesWindow::ConfigPropertiesWindow(QWidget *parent, ScoreCheckingConfig *config) : | ||
QDialog(parent), | ||
ui(new Ui::ConfigPropertiesWindow) | ||
{ | ||
this->config=config; | ||
ui->setupUi(this); | ||
} | ||
|
||
ConfigPropertiesWindow::~ConfigPropertiesWindow() | ||
{ | ||
delete ui; | ||
} | ||
|
||
void ConfigPropertiesWindow::on_buttonBox_accepted() | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef CONFIGPROPERTIESWINDOW_H | ||
#define CONFIGPROPERTIESWINDOW_H | ||
|
||
#include <QDialog> | ||
#include "scorecheckingconfig.h" | ||
namespace Ui { | ||
class ConfigPropertiesWindow; | ||
} | ||
|
||
class ConfigPropertiesWindow : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit ConfigPropertiesWindow(QWidget *parent = 0); | ||
explicit ConfigPropertiesWindow(QWidget *parent = 0, ScoreCheckingConfig *config=0); | ||
~ConfigPropertiesWindow(); | ||
|
||
private slots: | ||
void on_buttonBox_accepted(); | ||
|
||
private: | ||
Ui::ConfigPropertiesWindow *ui; | ||
ScoreCheckingConfig *config; | ||
}; | ||
|
||
#endif // CONFIGPROPERTIESWINDOW_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>ConfigPropertiesWindow</class> | ||
<widget class="QDialog" name="ConfigPropertiesWindow"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>389</width> | ||
<height>285</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Edit Config Properties</string> | ||
</property> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>30</x> | ||
<y>240</y> | ||
<width>341</width> | ||
<height>32</height> | ||
</rect> | ||
</property> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="label"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>20</x> | ||
<y>100</y> | ||
<width>101</width> | ||
<height>17</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string>Refresh Time</string> | ||
</property> | ||
</widget> | ||
<widget class="QSpinBox" name="spinSeconds"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>130</x> | ||
<y>90</y> | ||
<width>51</width> | ||
<height>26</height> | ||
</rect> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>20</x> | ||
<y>20</y> | ||
<width>101</width> | ||
<height>17</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string>Name</string> | ||
</property> | ||
</widget> | ||
<widget class="QLineEdit" name="txtName"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>130</x> | ||
<y>10</y> | ||
<width>211</width> | ||
<height>25</height> | ||
</rect> | ||
</property> | ||
</widget> | ||
<widget class="QLineEdit" name="txtPassphrase"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>130</x> | ||
<y>50</y> | ||
<width>211</width> | ||
<height>25</height> | ||
</rect> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="label_3"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>20</x> | ||
<y>60</y> | ||
<width>101</width> | ||
<height>17</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string>Passphrase</string> | ||
</property> | ||
</widget> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>ConfigPropertiesWindow</receiver> | ||
<slot>accept()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>248</x> | ||
<y>254</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>157</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>rejected()</signal> | ||
<receiver>ConfigPropertiesWindow</receiver> | ||
<slot>reject()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>316</x> | ||
<y>260</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>286</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
</connections> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters