-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from yunusemreyilmazz/dev
New Main Menu Screen
- Loading branch information
Showing
13 changed files
with
513 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include "CLI.h" | ||
#include <fstream> | ||
#include <Windows.h> | ||
#include "Train.h" | ||
|
||
|
||
|
||
|
||
CLI::CLI(QWidget* parent) | ||
: QMainWindow(parent) | ||
{ | ||
ui.setupUi(this); | ||
|
||
QObject::connect(ui.startButton, &QPushButton::clicked, this, [this] {start(); }); | ||
QObject::connect(ui.commandLinkButton_2, &QPushButton::clicked, this, [this] {statistics(); }); | ||
QObject::connect(ui.commandLinkButton, &QPushButton::clicked, this, [this] {about(); }); | ||
|
||
} | ||
|
||
void CLI::start() { | ||
Train* w = new Train; | ||
w->show(); | ||
this->close(); | ||
} | ||
void CLI::statistics() { | ||
/* | ||
statistic will show | ||
*/ | ||
} | ||
void CLI::about() { | ||
/* | ||
about button | ||
*/ | ||
} |
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,18 @@ | ||
#pragma once | ||
#include <QtWidgets/QMainWindow> | ||
#include "ui_CLI.h" | ||
|
||
|
||
class CLI :public QMainWindow { | ||
Q_OBJECT | ||
public: | ||
CLI(QWidget* parent = Q_NULLPTR); | ||
|
||
private: | ||
Ui::CLI ui; | ||
|
||
public slots: | ||
void start(); | ||
void statistics(); | ||
void about(); | ||
}; |
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,138 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>CLI</class> | ||
<widget class="QWidget" name="CLI"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>1130</width> | ||
<height>699</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true">#Form{ | ||
background-image: url(:/back/views/hackback.jpg); | ||
|
||
} | ||
QFrame{ | ||
background:rgba(0,0,0,0.8); | ||
border-radius:15px; | ||
} | ||
|
||
QPushButton{ | ||
background:#03a9f4; | ||
color:#fff; | ||
border-radius:15px; | ||
font-size:22px | ||
|
||
} | ||
QPushButton:hover{ | ||
color: #03a9f4; | ||
background-color:#fff; | ||
} | ||
QLabel{ | ||
color:#03a9f4; | ||
background:transparent; | ||
font-size:30px; | ||
|
||
}</string> | ||
</property> | ||
<widget class="QFrame" name="frame"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>60</x> | ||
<y>110</y> | ||
<width>991</width> | ||
<height>511</height> | ||
</rect> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true">#Form{ | ||
background :#333; | ||
} | ||
</string> | ||
</property> | ||
<property name="frameShape"> | ||
<enum>QFrame::StyledPanel</enum> | ||
</property> | ||
<property name="frameShadow"> | ||
<enum>QFrame::Raised</enum> | ||
</property> | ||
<widget class="QPushButton" name="startButton"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>380</x> | ||
<y>320</y> | ||
<width>211</width> | ||
<height>51</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string>START</string> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="label"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>160</x> | ||
<y>90</y> | ||
<width>681</width> | ||
<height>51</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string>WELCOME TO MARKOV PASSWORD GENERATOR!</string> | ||
</property> | ||
</widget> | ||
</widget> | ||
<widget class="QCommandLinkButton" name="commandLinkButton"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>940</x> | ||
<y>60</y> | ||
<width>121</width> | ||
<height>48</height> | ||
</rect> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true">QCommandLinkButton{ | ||
background:#48C9B0; | ||
font-family:Ariel; | ||
font-size:17px; | ||
}</string> | ||
</property> | ||
<property name="text"> | ||
<string>About</string> | ||
</property> | ||
</widget> | ||
<widget class="QCommandLinkButton" name="commandLinkButton_2"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>810</x> | ||
<y>60</y> | ||
<width>121</width> | ||
<height>48</height> | ||
</rect> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true">QCommandLinkButton{ | ||
background:#48C9B0; | ||
font-family:Ariel; | ||
font-size:17px; | ||
|
||
}</string> | ||
</property> | ||
<property name="text"> | ||
<string>Statistics</string> | ||
</property> | ||
</widget> | ||
</widget> | ||
<resources> | ||
<include location="backimage.qrc"/> | ||
</resources> | ||
<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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Form</class> | ||
<widget class="QWidget" name="Form"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>1130</width> | ||
<height>699</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<widget class="QWebEngineView" name="webEngineView"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>180</x> | ||
<y>100</y> | ||
<width>821</width> | ||
<height>391</height> | ||
</rect> | ||
</property> | ||
<property name="url"> | ||
<url> | ||
<string>about:blank</string> | ||
</url> | ||
</property> | ||
</widget> | ||
</widget> | ||
<customwidgets> | ||
<customwidget> | ||
<class>QWebEngineView</class> | ||
<extends>QWidget</extends> | ||
<header location="global">QtWebEngineWidgets/QWebEngineView</header> | ||
</customwidget> | ||
</customwidgets> | ||
<resources> | ||
<include location="backimage.qrc"/> | ||
</resources> | ||
<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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "Train.h" | ||
#include <fstream> | ||
#include <Windows.h> | ||
|
||
|
||
|
||
|
||
Train::Train(QWidget* parent) | ||
: QMainWindow(parent) | ||
{ | ||
ui.setupUi(this); | ||
|
||
QObject::connect(ui.pushButton, &QPushButton::clicked, this, [this] {open(); }); | ||
QObject::connect(ui.pushButton_2, &QPushButton::clicked, this, [this] {train(); }); | ||
|
||
|
||
} | ||
|
||
void Train::open() { | ||
// Start* w = new Start; | ||
//w->show(); | ||
//this->close(); | ||
} | ||
void Train::train() { | ||
/* | ||
train codes; | ||
*/ | ||
} |
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,17 @@ | ||
#pragma once | ||
#include <QtWidgets/QMainWindow> | ||
#include "ui_Train.h" | ||
|
||
|
||
class Train :public QMainWindow { | ||
Q_OBJECT | ||
public: | ||
Train(QWidget* parent = Q_NULLPTR); | ||
|
||
private: | ||
Ui::Train ui; | ||
|
||
public slots: | ||
void open(); | ||
void train(); | ||
}; |
Oops, something went wrong.