-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
281 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
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 <QPushButton> | ||
#include "helpwindow.h" | ||
#include "ui_helpwindow.h" | ||
|
||
HelpWindow::HelpWindow(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::HelpWindow) | ||
{ | ||
ui->setupUi(this); | ||
ui->labelVersion->setText(QString("Ver: ").append(APP_VERSION)); | ||
ui->textAbout->setText("This program is a free software.\n\n" | ||
"You can redistribute it and/or modify it under the terms of" | ||
"the GNU Library General Public License as published by" | ||
"the Free Software Foundation; either version 3 of the License," | ||
"or (at your option) any later version.\n\n" | ||
"This package is distributed in the hope that it will be useful, but WITHOUT " | ||
"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " | ||
"FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License " | ||
"for more details.\n"); | ||
ui->labelContact->setText("<p>GUI Author: <a href=\"mailto:[email protected]\">Tianze Wang</a></p>" | ||
"<p>Author of F3: <a href=\"mailto:[email protected]\">Michel Machado</a></p>" | ||
"<p align=\"center\">Feel free to report bugs and give suggestions!</p>"); | ||
} | ||
|
||
HelpWindow::~HelpWindow() | ||
{ | ||
delete 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,23 @@ | ||
#ifndef HELPWINDOW_H | ||
#define HELPWINDOW_H | ||
|
||
#include <QDialog> | ||
#include <QAbstractButton> | ||
|
||
namespace Ui { | ||
class HelpWindow; | ||
} | ||
|
||
class HelpWindow : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit HelpWindow(QWidget *parent = 0); | ||
~HelpWindow(); | ||
|
||
private: | ||
Ui::HelpWindow *ui; | ||
}; | ||
|
||
#endif // HELPWINDOW_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,173 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>HelpWindow</class> | ||
<widget class="QDialog" name="HelpWindow"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>400</width> | ||
<height>300</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Dialog</string> | ||
</property> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>30</x> | ||
<y>260</y> | ||
<width>341</width> | ||
<height>32</height> | ||
</rect> | ||
</property> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Close</set> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="labelIcon"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>10</x> | ||
<y>0</y> | ||
<width>50</width> | ||
<height>50</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string/> | ||
</property> | ||
<property name="pixmap"> | ||
<pixmap resource="icon.qrc">:/icon/f3.png</pixmap> | ||
</property> | ||
<property name="scaledContents"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="labelTitle"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>70</x> | ||
<y>10</y> | ||
<width>231</width> | ||
<height>41</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string><html><head/><body><p><span style=" font-size:20pt;">Fight Flash Fraud</span></p></body></html></string> | ||
</property> | ||
</widget> | ||
<widget class="QTabWidget" name="tabWidget"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>10</x> | ||
<y>60</y> | ||
<width>371</width> | ||
<height>191</height> | ||
</rect> | ||
</property> | ||
<property name="currentIndex"> | ||
<number>0</number> | ||
</property> | ||
<widget class="QWidget" name="tab"> | ||
<attribute name="title"> | ||
<string>About</string> | ||
</attribute> | ||
<widget class="QTextBrowser" name="textAbout"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>-5</x> | ||
<y>-5</y> | ||
<width>371</width> | ||
<height>171</height> | ||
</rect> | ||
</property> | ||
</widget> | ||
</widget> | ||
<widget class="QWidget" name="tab_2"> | ||
<attribute name="title"> | ||
<string>Author</string> | ||
</attribute> | ||
<widget class="QLabel" name="labelContact"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>10</x> | ||
<y>20</y> | ||
<width>331</width> | ||
<height>121</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string>Info...</string> | ||
</property> | ||
<property name="textFormat"> | ||
<enum>Qt::RichText</enum> | ||
</property> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="openExternalLinks"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="textInteractionFlags"> | ||
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set> | ||
</property> | ||
</widget> | ||
</widget> | ||
</widget> | ||
<widget class="QLabel" name="labelVersion"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>300</x> | ||
<y>20</y> | ||
<width>71</width> | ||
<height>31</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string>Ver</string> | ||
</property> | ||
</widget> | ||
</widget> | ||
<resources> | ||
<include location="icon.qrc"/> | ||
</resources> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>HelpWindow</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>HelpWindow</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<RCC> | ||
<qresource prefix="/icon"> | ||
<file>f3.png</file> | ||
<file>help.png</file> | ||
</qresource> | ||
</RCC> |
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