mirror of
https://github.com/FAUSheppy/speech-server-client-qt
synced 2025-12-08 17:48:32 +01:00
Compare commits
14 Commits
v1.2-maste
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
326f395936 | ||
|
|
c372ca8478 | ||
|
|
7e1aca3413 | ||
|
|
8f821d5d74 | ||
|
|
79602900e6 | ||
|
|
ad07c80dc0 | ||
|
|
414a6873b0 | ||
|
|
ddc9f40186 | ||
|
|
81950c1c99 | ||
|
|
4ada79c9a5 | ||
|
|
7cd3a4e36e | ||
|
|
ab04997cff | ||
|
|
c381a62e73 | ||
|
|
f7676f367a |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,3 +1,7 @@
|
|||||||
*.user
|
*.user
|
||||||
*.stash
|
*.stash
|
||||||
|
*.o
|
||||||
|
moc_*
|
||||||
|
ui_*
|
||||||
Makefile
|
Makefile
|
||||||
|
speech-server-client-qt
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -1,7 +1,11 @@
|
|||||||
# Intro
|
# Intro
|
||||||
This is the GUI Interface to a proprietary server that interfaces with speech recognition backends.
|
This is the GUI Interface to a proprietary server that interfaces with speech recognition backends.
|
||||||
|
|
||||||

|
# Dependencies
|
||||||
|
|
||||||
|
apt-get install libqt5gui5
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
# Build on Linux
|
# Build on Linux
|
||||||
This is a qt-creator project and can be imported as such. To build for Windows (on Linux) you need [MXE](https://github.com/mxe/mxe.git).
|
This is a qt-creator project and can be imported as such. To build for Windows (on Linux) you need [MXE](https://github.com/mxe/mxe.git).
|
||||||
@@ -22,8 +26,8 @@ Setup the actual compilation enviroment:
|
|||||||
|
|
||||||
Also check the ``cross_compile.sh`` file in this project.
|
Also check the ``cross_compile.sh`` file in this project.
|
||||||
|
|
||||||
# Build on Windows
|
# Mac Support?
|
||||||
If you want to build this project on windows, you need change the way this project determines some of it's defines in the project file.
|
I do not own a Mac, so I haven't tried, but there is no reason why it wouldn't run on a Mac.
|
||||||
|
|
||||||
# Build for Mac
|
# Stylesheet
|
||||||
This project does not currently support Mac.
|
The stylesheet used is "Qt dark orange" by [LoneWolf](https://discourse.techart.online/t/release-qt-dark-orange-stylesheet/2287#post14381).
|
||||||
|
|||||||
5
defaultres.qrc
Normal file
5
defaultres.qrc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<RCC>
|
||||||
|
<qresource prefix="/.">
|
||||||
|
<file>icon.png</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
||||||
5
main.cpp
5
main.cpp
@@ -8,8 +8,7 @@ int main(int argc, char *argv[])
|
|||||||
w.show();
|
w.show();
|
||||||
|
|
||||||
a.setApplicationName("Speech-To-Text");
|
a.setApplicationName("Speech-To-Text");
|
||||||
a.setOrganizationName("Lantia IT");
|
a.setOrganizationName("Potaris IT | Yannik Schmidt");
|
||||||
a.setOrganizationDomain("lantia-it.de");
|
a.setOrganizationDomain("potaris.de");
|
||||||
|
|
||||||
return a.exec();
|
return a.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <settingkeys.h>
|
#include <settingkeys.h>
|
||||||
#include <serverconnection.h>
|
#include <serverconnection.h>
|
||||||
|
#include "urls.h"
|
||||||
|
|
||||||
#define FILENAME_COL 0
|
#define FILENAME_COL 0
|
||||||
#define TRACKING_ID_COL 1
|
#define TRACKING_ID_COL 1
|
||||||
@@ -56,6 +57,9 @@ MainWindow::MainWindow(QWidget *parent):QMainWindow(parent), ui(new Ui::MainWind
|
|||||||
button = ui->centralWidget->findChild<QPushButton*>("pushButton");
|
button = ui->centralWidget->findChild<QPushButton*>("pushButton");
|
||||||
connect(button, SIGNAL (released()), this, SLOT (importFile()));
|
connect(button, SIGNAL (released()), this, SLOT (importFile()));
|
||||||
|
|
||||||
|
flushCacheButton = ui->centralWidget->findChild<QPushButton*>("flushCacheButton");
|
||||||
|
connect(flushCacheButton, SIGNAL (released()), this, SLOT (flushServerCacheRequest()));
|
||||||
|
|
||||||
/* table ui */
|
/* table ui */
|
||||||
tw = ui->centralWidget->findChild<QTableWidget*>("tableWidget");
|
tw = ui->centralWidget->findChild<QTableWidget*>("tableWidget");
|
||||||
|
|
||||||
@@ -154,22 +158,27 @@ void MainWindow::importFile(){
|
|||||||
startDir = mySettings->value(SETTING_MOST_RECENT_PATH).toString();
|
startDir = mySettings->value(SETTING_MOST_RECENT_PATH).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString filename = QFileDialog::getOpenFileName(
|
QStringList filenames = QFileDialog::getOpenFileNames(
|
||||||
this,
|
this,
|
||||||
"Open Document",
|
"Open Document",
|
||||||
startDir,
|
startDir,
|
||||||
"All files (*.*) ;; Document files (*.doc *.rtf);; PNG files (*.png)");
|
"All files (*.*) ;; Document files (*.doc *.rtf);; PNG files (*.png)");
|
||||||
|
|
||||||
/* set most recent path */
|
|
||||||
QFileInfo* fi = new QFileInfo(filename);
|
|
||||||
QDir dirInfo = fi->absoluteDir();
|
|
||||||
QString dirPath = dirInfo.absolutePath();
|
|
||||||
mySettings->setValue(SETTING_MOST_RECENT_PATH, dirPath);
|
|
||||||
|
|
||||||
if(filename.isNull()){
|
if(filenames.empty()){
|
||||||
return;
|
return;
|
||||||
}else{
|
}else{
|
||||||
this->submitFileSlot(filename);
|
for(int i = 0; i<filenames.length(); i++){
|
||||||
|
if(i == 0){
|
||||||
|
/* set most recent path */
|
||||||
|
QFileInfo* fi = new QFileInfo(filenames[i]);
|
||||||
|
QDir dirInfo = fi->absoluteDir();
|
||||||
|
QString dirPath = dirInfo.absolutePath();
|
||||||
|
mySettings->setValue(SETTING_MOST_RECENT_PATH, dirPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
this->submitFileSlot(filenames[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -177,7 +186,7 @@ void MainWindow::showNotification(QString str){
|
|||||||
|
|
||||||
auto popUp = new NotificationWidget(this);
|
auto popUp = new NotificationWidget(this);
|
||||||
popUp->setPopupText(str);
|
popUp->setPopupText(str);
|
||||||
popUp->setGeometry(0, 0, popUp->width(), popUp->height());
|
popUp->setGeometry(200, 100, popUp->width(), popUp->height());
|
||||||
popUp->show();
|
popUp->show();
|
||||||
auto *timer = new QTimer();
|
auto *timer = new QTimer();
|
||||||
connect(timer, SIGNAL(timeout()), popUp, SLOT(fadeOut()));
|
connect(timer, SIGNAL(timeout()), popUp, SLOT(fadeOut()));
|
||||||
@@ -390,11 +399,19 @@ void MainWindow::submitFileSlot(QString filename){
|
|||||||
qDebug("Request submission requested");
|
qDebug("Request submission requested");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::flushServerCacheRequest(){
|
||||||
|
connect(serverConnection->getNetworkManager(), SIGNAL(finished(QNetworkReply*)), this,
|
||||||
|
SLOT(requestFinished(QNetworkReply*)), Qt::UniqueConnection);
|
||||||
|
qDebug("Req server flush");
|
||||||
|
serverConnection->flushCache();
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::requestFinished(QNetworkReply *reply){
|
void MainWindow::requestFinished(QNetworkReply *reply){
|
||||||
|
|
||||||
QString submitUrl = serverConnection->buildURLFromLocation(mySettings->value(SETTING_LOC_SUBMIT));
|
QString submitUrl = serverConnection->buildURLFromLocation(mySettings->value(SETTING_LOC_SUBMIT));
|
||||||
QString statusRequestUrl = serverConnection->buildURLFromLocation(mySettings->value(SETTING_LOC_STATE));
|
QString statusRequestUrl = serverConnection->buildURLFromLocation(mySettings->value(SETTING_LOC_STATE));
|
||||||
QString requestTranscriptUrl = serverConnection->buildURLFromLocation(mySettings->value(SETTING_LOC_TRANSCRIPT));
|
QString requestTranscriptUrl = serverConnection->buildURLFromLocation(mySettings->value(SETTING_LOC_TRANSCRIPT));
|
||||||
|
QString flushCacheUrl = serverConnection->buildURLFromLocation(QString(FLUSH_SERVER_CACHE));
|
||||||
|
|
||||||
if(QString::compare(reply->url().toString(), submitUrl) == 0){
|
if(QString::compare(reply->url().toString(), submitUrl) == 0){
|
||||||
addTrackingToList(reply);
|
addTrackingToList(reply);
|
||||||
@@ -403,6 +420,9 @@ void MainWindow::requestFinished(QNetworkReply *reply){
|
|||||||
}else if (reply->url().toString().startsWith(requestTranscriptUrl)) {
|
}else if (reply->url().toString().startsWith(requestTranscriptUrl)) {
|
||||||
qDebug("Saving transcript");
|
qDebug("Saving transcript");
|
||||||
saveTranscript(reply);
|
saveTranscript(reply);
|
||||||
|
}else if (reply->url().toString().startsWith(flushCacheUrl)) {
|
||||||
|
showNotification("Server um Cache-Löschung gebeten.");
|
||||||
|
qDebug("CacheFlushed");
|
||||||
}else{
|
}else{
|
||||||
qDebug("URL-Response: %s", qUtf8Printable(reply->url().toString()));
|
qDebug("URL-Response: %s", qUtf8Printable(reply->url().toString()));
|
||||||
qFatal("Unexpected responding URL");
|
qFatal("Unexpected responding URL");
|
||||||
|
|||||||
@@ -30,10 +30,12 @@ private slots:
|
|||||||
void appyConfigChanges();
|
void appyConfigChanges();
|
||||||
void openAboutWindow();
|
void openAboutWindow();
|
||||||
void openSpeechConfigWindow();
|
void openSpeechConfigWindow();
|
||||||
|
void flushServerCacheRequest();
|
||||||
private:
|
private:
|
||||||
Ui::MainWindow *ui;
|
Ui::MainWindow *ui;
|
||||||
QTableWidget *tw;
|
QTableWidget *tw;
|
||||||
QPushButton *button;
|
QPushButton *button;
|
||||||
|
QPushButton *flushCacheButton;
|
||||||
QAction *standardsMenu;
|
QAction *standardsMenu;
|
||||||
QSettings *mySettings;
|
QSettings *mySettings;
|
||||||
ServerConnection *serverConnection;
|
ServerConnection *serverConnection;
|
||||||
|
|||||||
485
mainwindow.ui
485
mainwindow.ui
@@ -6,13 +6,477 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>519</width>
|
<width>827</width>
|
||||||
<height>504</height>
|
<height>670</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>MainWindow</string>
|
<string>MainWindow</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="windowIcon">
|
||||||
|
<iconset theme="icon.png"/>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QToolTip
|
||||||
|
{
|
||||||
|
border: 1px solid black;
|
||||||
|
background-color: #ffa02f;
|
||||||
|
padding: 1px;
|
||||||
|
border-radius: 3px;
|
||||||
|
opacity: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget
|
||||||
|
{
|
||||||
|
color: #b1b1b1;
|
||||||
|
background-color: #323232;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget:item:hover
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #ca0619);
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget:item:selected
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenuBar::item
|
||||||
|
{
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenuBar::item:selected
|
||||||
|
{
|
||||||
|
background: transparent;
|
||||||
|
border: 1px solid #ffaa00;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenuBar::item:pressed
|
||||||
|
{
|
||||||
|
background: #444;
|
||||||
|
border: 1px solid #000;
|
||||||
|
background-color: QLinearGradient(
|
||||||
|
x1:0, y1:0,
|
||||||
|
x2:0, y2:1,
|
||||||
|
stop:1 #212121,
|
||||||
|
stop:0.4 #343434/*,
|
||||||
|
stop:0.2 #343434,
|
||||||
|
stop:0.1 #ffaa00*/
|
||||||
|
);
|
||||||
|
margin-bottom:-1px;
|
||||||
|
padding-bottom:1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenu
|
||||||
|
{
|
||||||
|
border: 1px solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenu::item
|
||||||
|
{
|
||||||
|
padding: 2px 20px 2px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenu::item:selected
|
||||||
|
{
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget:disabled
|
||||||
|
{
|
||||||
|
color: #404040;
|
||||||
|
background-color: #323232;
|
||||||
|
}
|
||||||
|
|
||||||
|
QAbstractItemView
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4d4d4d, stop: 0.1 #646464, stop: 1 #5d5d5d);
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget:focus
|
||||||
|
{
|
||||||
|
/*border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);*/
|
||||||
|
}
|
||||||
|
|
||||||
|
QLineEdit
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4d4d4d, stop: 0 #646464, stop: 1 #5d5d5d);
|
||||||
|
padding: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
border: 1px solid #1e1e1e;
|
||||||
|
border-radius: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton
|
||||||
|
{
|
||||||
|
color: #b1b1b1;
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #565656, stop: 0.1 #525252, stop: 0.5 #4e4e4e, stop: 0.9 #4a4a4a, stop: 1 #464646);
|
||||||
|
border-width: 1px;
|
||||||
|
border-color: #1e1e1e;
|
||||||
|
border-style: solid;
|
||||||
|
border-radius: 6;
|
||||||
|
padding: 3px;
|
||||||
|
font-size: 12px;
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton:pressed
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2d2d2d, stop: 0.1 #2b2b2b, stop: 0.5 #292929, stop: 0.9 #282828, stop: 1 #252525);
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox
|
||||||
|
{
|
||||||
|
selection-background-color: #ffaa00;
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #565656, stop: 0.1 #525252, stop: 0.5 #4e4e4e, stop: 0.9 #4a4a4a, stop: 1 #464646);
|
||||||
|
border-style: solid;
|
||||||
|
border: 1px solid #1e1e1e;
|
||||||
|
border-radius: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox:hover,QPushButton:hover
|
||||||
|
{
|
||||||
|
border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QComboBox:on
|
||||||
|
{
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-left: 4px;
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2d2d2d, stop: 0.1 #2b2b2b, stop: 0.5 #292929, stop: 0.9 #282828, stop: 1 #252525);
|
||||||
|
selection-background-color: #ffaa00;
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox QAbstractItemView
|
||||||
|
{
|
||||||
|
border: 2px solid darkgray;
|
||||||
|
selection-background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox::drop-down
|
||||||
|
{
|
||||||
|
subcontrol-origin: padding;
|
||||||
|
subcontrol-position: top right;
|
||||||
|
width: 15px;
|
||||||
|
|
||||||
|
border-left-width: 0px;
|
||||||
|
border-left-color: darkgray;
|
||||||
|
border-left-style: solid; /* just a single line */
|
||||||
|
border-top-right-radius: 3px; /* same radius as the QComboBox */
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox::down-arrow
|
||||||
|
{
|
||||||
|
image: url(:/down_arrow.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
QGroupBox:focus
|
||||||
|
{
|
||||||
|
border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
QTextEdit:focus
|
||||||
|
{
|
||||||
|
border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar:horizontal {
|
||||||
|
border: 1px solid #222222;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #121212, stop: 0.2 #282828, stop: 1 #484848);
|
||||||
|
height: 7px;
|
||||||
|
margin: 0px 16px 0 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::handle:horizontal
|
||||||
|
{
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffa02f, stop: 0.5 #d7801a, stop: 1 #ffa02f);
|
||||||
|
min-height: 20px;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::add-line:horizontal {
|
||||||
|
border: 1px solid #1b1b19;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
width: 14px;
|
||||||
|
subcontrol-position: right;
|
||||||
|
subcontrol-origin: margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::sub-line:horizontal {
|
||||||
|
border: 1px solid #1b1b19;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
width: 14px;
|
||||||
|
subcontrol-position: left;
|
||||||
|
subcontrol-origin: margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::right-arrow:horizontal, QScrollBar::left-arrow:horizontal
|
||||||
|
{
|
||||||
|
border: 1px solid black;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
|
||||||
|
{
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar:vertical
|
||||||
|
{
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0.0 #121212, stop: 0.2 #282828, stop: 1 #484848);
|
||||||
|
width: 7px;
|
||||||
|
margin: 16px 0 16px 0;
|
||||||
|
border: 1px solid #222222;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::handle:vertical
|
||||||
|
{
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 0.5 #d7801a, stop: 1 #ffa02f);
|
||||||
|
min-height: 20px;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::add-line:vertical
|
||||||
|
{
|
||||||
|
border: 1px solid #1b1b19;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
height: 14px;
|
||||||
|
subcontrol-position: bottom;
|
||||||
|
subcontrol-origin: margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::sub-line:vertical
|
||||||
|
{
|
||||||
|
border: 1px solid #1b1b19;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #d7801a, stop: 1 #ffa02f);
|
||||||
|
height: 14px;
|
||||||
|
subcontrol-position: top;
|
||||||
|
subcontrol-origin: margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical
|
||||||
|
{
|
||||||
|
border: 1px solid black;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
|
||||||
|
{
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTextEdit
|
||||||
|
{
|
||||||
|
background-color: #242424;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPlainTextEdit
|
||||||
|
{
|
||||||
|
background-color: #242424;
|
||||||
|
}
|
||||||
|
|
||||||
|
QHeaderView::section
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #616161, stop: 0.5 #505050, stop: 0.6 #434343, stop:1 #656565);
|
||||||
|
color: white;
|
||||||
|
padding-left: 4px;
|
||||||
|
border: 1px solid #6c6c6c;
|
||||||
|
}
|
||||||
|
|
||||||
|
QCheckBox:disabled
|
||||||
|
{
|
||||||
|
color: #414141;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDockWidget::title
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
spacing: 3px; /* spacing between items in the tool bar */
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #323232, stop: 0.5 #242424, stop:1 #323232);
|
||||||
|
}
|
||||||
|
|
||||||
|
QDockWidget::close-button, QDockWidget::float-button
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
spacing: 1px; /* spacing between items in the tool bar */
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #323232, stop: 0.5 #242424, stop:1 #323232);
|
||||||
|
}
|
||||||
|
|
||||||
|
QDockWidget::close-button:hover, QDockWidget::float-button:hover
|
||||||
|
{
|
||||||
|
background: #242424;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDockWidget::close-button:pressed, QDockWidget::float-button:pressed
|
||||||
|
{
|
||||||
|
padding: 1px -1px -1px 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMainWindow::separator
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #161616, stop: 0.5 #151515, stop: 0.6 #212121, stop:1 #343434);
|
||||||
|
color: white;
|
||||||
|
padding-left: 4px;
|
||||||
|
border: 1px solid #4c4c4c;
|
||||||
|
spacing: 3px; /* spacing between items in the tool bar */
|
||||||
|
}
|
||||||
|
|
||||||
|
QMainWindow::separator:hover
|
||||||
|
{
|
||||||
|
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #d7801a, stop:0.5 #b56c17 stop:1 #ffa02f);
|
||||||
|
color: white;
|
||||||
|
padding-left: 4px;
|
||||||
|
border: 1px solid #6c6c6c;
|
||||||
|
spacing: 3px; /* spacing between items in the tool bar */
|
||||||
|
}
|
||||||
|
|
||||||
|
QToolBar::handle
|
||||||
|
{
|
||||||
|
spacing: 3px; /* spacing between items in the tool bar */
|
||||||
|
background: url(:/images/handle.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenu::separator
|
||||||
|
{
|
||||||
|
height: 2px;
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #161616, stop: 0.5 #151515, stop: 0.6 #212121, stop:1 #343434);
|
||||||
|
color: white;
|
||||||
|
padding-left: 4px;
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QProgressBar
|
||||||
|
{
|
||||||
|
border: 2px solid grey;
|
||||||
|
border-radius: 5px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
QProgressBar::chunk
|
||||||
|
{
|
||||||
|
background-color: #d7801a;
|
||||||
|
width: 2.15px;
|
||||||
|
margin: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab {
|
||||||
|
color: #b1b1b1;
|
||||||
|
border: 1px solid #444;
|
||||||
|
border-bottom-style: none;
|
||||||
|
background-color: #323232;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
margin-right: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabWidget::pane {
|
||||||
|
border: 1px solid #444;
|
||||||
|
top: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:last
|
||||||
|
{
|
||||||
|
margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:first:!selected
|
||||||
|
{
|
||||||
|
margin-left: 0px; /* the last selected tab has nothing to overlap with on the right */
|
||||||
|
|
||||||
|
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:!selected
|
||||||
|
{
|
||||||
|
color: #b1b1b1;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
margin-top: 3px;
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:1 #212121, stop:.4 #343434);
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:selected
|
||||||
|
{
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:!selected:hover
|
||||||
|
{
|
||||||
|
/*border-top: 2px solid #ffaa00;
|
||||||
|
padding-bottom: 3px;*/
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:1 #212121, stop:0.4 #343434, stop:0.2 #343434, stop:0.1 #ffaa00);
|
||||||
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator:checked, QRadioButton::indicator:unchecked{
|
||||||
|
color: #b1b1b1;
|
||||||
|
background-color: #323232;
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator:checked
|
||||||
|
{
|
||||||
|
background-color: qradialgradient(
|
||||||
|
cx: 0.5, cy: 0.5,
|
||||||
|
fx: 0.5, fy: 0.5,
|
||||||
|
radius: 1.0,
|
||||||
|
stop: 0.25 #ffaa00,
|
||||||
|
stop: 0.3 #323232
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
QCheckBox::indicator{
|
||||||
|
color: #b1b1b1;
|
||||||
|
background-color: #323232;
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator
|
||||||
|
{
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator:hover, QCheckBox::indicator:hover
|
||||||
|
{
|
||||||
|
border: 1px solid #ffaa00;
|
||||||
|
}
|
||||||
|
|
||||||
|
QCheckBox::indicator:checked
|
||||||
|
{
|
||||||
|
image:url(:/images/checkbox.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
QCheckBox::indicator:disabled, QRadioButton::indicator:disabled
|
||||||
|
{
|
||||||
|
border: 1px solid #444;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
<widget class="QWidget" name="centralWidget">
|
<widget class="QWidget" name="centralWidget">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
@@ -22,6 +486,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QPushButton" name="flushCacheButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Server Cache Leeren</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QTableWidget" name="tableWidget"/>
|
<widget class="QTableWidget" name="tableWidget"/>
|
||||||
</item>
|
</item>
|
||||||
@@ -32,7 +503,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>519</width>
|
<width>827</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -43,14 +514,6 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<addaction name="menuKonfiguration"/>
|
<addaction name="menuKonfiguration"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QToolBar" name="mainToolBar">
|
|
||||||
<attribute name="toolBarArea">
|
|
||||||
<enum>TopToolBarArea</enum>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="toolBarBreak">
|
|
||||||
<bool>false</bool>
|
|
||||||
</attribute>
|
|
||||||
</widget>
|
|
||||||
<action name="actionServer">
|
<action name="actionServer">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Server</string>
|
<string>&Server</string>
|
||||||
|
|||||||
2414
qrc_defaultres.cpp
Normal file
2414
qrc_defaultres.cpp
Normal file
File diff suppressed because it is too large
Load Diff
484
settings.ui
Normal file
484
settings.ui
Normal file
@@ -0,0 +1,484 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>settings</class>
|
||||||
|
<widget class="QMainWindow" name="settings">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>281</width>
|
||||||
|
<height>245</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>MainWindow</string>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QToolTip
|
||||||
|
{
|
||||||
|
border: 1px solid black;
|
||||||
|
background-color: #ffa02f;
|
||||||
|
padding: 1px;
|
||||||
|
border-radius: 3px;
|
||||||
|
opacity: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget
|
||||||
|
{
|
||||||
|
color: #b1b1b1;
|
||||||
|
background-color: #323232;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget:item:hover
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #ca0619);
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget:item:selected
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenuBar::item
|
||||||
|
{
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenuBar::item:selected
|
||||||
|
{
|
||||||
|
background: transparent;
|
||||||
|
border: 1px solid #ffaa00;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenuBar::item:pressed
|
||||||
|
{
|
||||||
|
background: #444;
|
||||||
|
border: 1px solid #000;
|
||||||
|
background-color: QLinearGradient(
|
||||||
|
x1:0, y1:0,
|
||||||
|
x2:0, y2:1,
|
||||||
|
stop:1 #212121,
|
||||||
|
stop:0.4 #343434/*,
|
||||||
|
stop:0.2 #343434,
|
||||||
|
stop:0.1 #ffaa00*/
|
||||||
|
);
|
||||||
|
margin-bottom:-1px;
|
||||||
|
padding-bottom:1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenu
|
||||||
|
{
|
||||||
|
border: 1px solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenu::item
|
||||||
|
{
|
||||||
|
padding: 2px 20px 2px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenu::item:selected
|
||||||
|
{
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget:disabled
|
||||||
|
{
|
||||||
|
color: #404040;
|
||||||
|
background-color: #323232;
|
||||||
|
}
|
||||||
|
|
||||||
|
QAbstractItemView
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4d4d4d, stop: 0.1 #646464, stop: 1 #5d5d5d);
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget:focus
|
||||||
|
{
|
||||||
|
/*border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);*/
|
||||||
|
}
|
||||||
|
|
||||||
|
QLineEdit
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4d4d4d, stop: 0 #646464, stop: 1 #5d5d5d);
|
||||||
|
padding: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
border: 1px solid #1e1e1e;
|
||||||
|
border-radius: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton
|
||||||
|
{
|
||||||
|
color: #b1b1b1;
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #565656, stop: 0.1 #525252, stop: 0.5 #4e4e4e, stop: 0.9 #4a4a4a, stop: 1 #464646);
|
||||||
|
border-width: 1px;
|
||||||
|
border-color: #1e1e1e;
|
||||||
|
border-style: solid;
|
||||||
|
border-radius: 6;
|
||||||
|
padding: 3px;
|
||||||
|
font-size: 12px;
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton:pressed
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2d2d2d, stop: 0.1 #2b2b2b, stop: 0.5 #292929, stop: 0.9 #282828, stop: 1 #252525);
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox
|
||||||
|
{
|
||||||
|
selection-background-color: #ffaa00;
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #565656, stop: 0.1 #525252, stop: 0.5 #4e4e4e, stop: 0.9 #4a4a4a, stop: 1 #464646);
|
||||||
|
border-style: solid;
|
||||||
|
border: 1px solid #1e1e1e;
|
||||||
|
border-radius: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox:hover,QPushButton:hover
|
||||||
|
{
|
||||||
|
border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QComboBox:on
|
||||||
|
{
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-left: 4px;
|
||||||
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2d2d2d, stop: 0.1 #2b2b2b, stop: 0.5 #292929, stop: 0.9 #282828, stop: 1 #252525);
|
||||||
|
selection-background-color: #ffaa00;
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox QAbstractItemView
|
||||||
|
{
|
||||||
|
border: 2px solid darkgray;
|
||||||
|
selection-background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox::drop-down
|
||||||
|
{
|
||||||
|
subcontrol-origin: padding;
|
||||||
|
subcontrol-position: top right;
|
||||||
|
width: 15px;
|
||||||
|
|
||||||
|
border-left-width: 0px;
|
||||||
|
border-left-color: darkgray;
|
||||||
|
border-left-style: solid; /* just a single line */
|
||||||
|
border-top-right-radius: 3px; /* same radius as the QComboBox */
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox::down-arrow
|
||||||
|
{
|
||||||
|
image: url(:/down_arrow.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
QGroupBox:focus
|
||||||
|
{
|
||||||
|
border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
QTextEdit:focus
|
||||||
|
{
|
||||||
|
border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar:horizontal {
|
||||||
|
border: 1px solid #222222;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #121212, stop: 0.2 #282828, stop: 1 #484848);
|
||||||
|
height: 7px;
|
||||||
|
margin: 0px 16px 0 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::handle:horizontal
|
||||||
|
{
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffa02f, stop: 0.5 #d7801a, stop: 1 #ffa02f);
|
||||||
|
min-height: 20px;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::add-line:horizontal {
|
||||||
|
border: 1px solid #1b1b19;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
width: 14px;
|
||||||
|
subcontrol-position: right;
|
||||||
|
subcontrol-origin: margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::sub-line:horizontal {
|
||||||
|
border: 1px solid #1b1b19;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
width: 14px;
|
||||||
|
subcontrol-position: left;
|
||||||
|
subcontrol-origin: margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::right-arrow:horizontal, QScrollBar::left-arrow:horizontal
|
||||||
|
{
|
||||||
|
border: 1px solid black;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
|
||||||
|
{
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar:vertical
|
||||||
|
{
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0.0 #121212, stop: 0.2 #282828, stop: 1 #484848);
|
||||||
|
width: 7px;
|
||||||
|
margin: 16px 0 16px 0;
|
||||||
|
border: 1px solid #222222;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::handle:vertical
|
||||||
|
{
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 0.5 #d7801a, stop: 1 #ffa02f);
|
||||||
|
min-height: 20px;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::add-line:vertical
|
||||||
|
{
|
||||||
|
border: 1px solid #1b1b19;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
|
||||||
|
height: 14px;
|
||||||
|
subcontrol-position: bottom;
|
||||||
|
subcontrol-origin: margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::sub-line:vertical
|
||||||
|
{
|
||||||
|
border: 1px solid #1b1b19;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #d7801a, stop: 1 #ffa02f);
|
||||||
|
height: 14px;
|
||||||
|
subcontrol-position: top;
|
||||||
|
subcontrol-origin: margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical
|
||||||
|
{
|
||||||
|
border: 1px solid black;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
|
||||||
|
{
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTextEdit
|
||||||
|
{
|
||||||
|
background-color: #242424;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPlainTextEdit
|
||||||
|
{
|
||||||
|
background-color: #242424;
|
||||||
|
}
|
||||||
|
|
||||||
|
QHeaderView::section
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #616161, stop: 0.5 #505050, stop: 0.6 #434343, stop:1 #656565);
|
||||||
|
color: white;
|
||||||
|
padding-left: 4px;
|
||||||
|
border: 1px solid #6c6c6c;
|
||||||
|
}
|
||||||
|
|
||||||
|
QCheckBox:disabled
|
||||||
|
{
|
||||||
|
color: #414141;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDockWidget::title
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
spacing: 3px; /* spacing between items in the tool bar */
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #323232, stop: 0.5 #242424, stop:1 #323232);
|
||||||
|
}
|
||||||
|
|
||||||
|
QDockWidget::close-button, QDockWidget::float-button
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
spacing: 1px; /* spacing between items in the tool bar */
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #323232, stop: 0.5 #242424, stop:1 #323232);
|
||||||
|
}
|
||||||
|
|
||||||
|
QDockWidget::close-button:hover, QDockWidget::float-button:hover
|
||||||
|
{
|
||||||
|
background: #242424;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDockWidget::close-button:pressed, QDockWidget::float-button:pressed
|
||||||
|
{
|
||||||
|
padding: 1px -1px -1px 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMainWindow::separator
|
||||||
|
{
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #161616, stop: 0.5 #151515, stop: 0.6 #212121, stop:1 #343434);
|
||||||
|
color: white;
|
||||||
|
padding-left: 4px;
|
||||||
|
border: 1px solid #4c4c4c;
|
||||||
|
spacing: 3px; /* spacing between items in the tool bar */
|
||||||
|
}
|
||||||
|
|
||||||
|
QMainWindow::separator:hover
|
||||||
|
{
|
||||||
|
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #d7801a, stop:0.5 #b56c17 stop:1 #ffa02f);
|
||||||
|
color: white;
|
||||||
|
padding-left: 4px;
|
||||||
|
border: 1px solid #6c6c6c;
|
||||||
|
spacing: 3px; /* spacing between items in the tool bar */
|
||||||
|
}
|
||||||
|
|
||||||
|
QToolBar::handle
|
||||||
|
{
|
||||||
|
spacing: 3px; /* spacing between items in the tool bar */
|
||||||
|
background: url(:/images/handle.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenu::separator
|
||||||
|
{
|
||||||
|
height: 2px;
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #161616, stop: 0.5 #151515, stop: 0.6 #212121, stop:1 #343434);
|
||||||
|
color: white;
|
||||||
|
padding-left: 4px;
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QProgressBar
|
||||||
|
{
|
||||||
|
border: 2px solid grey;
|
||||||
|
border-radius: 5px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
QProgressBar::chunk
|
||||||
|
{
|
||||||
|
background-color: #d7801a;
|
||||||
|
width: 2.15px;
|
||||||
|
margin: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab {
|
||||||
|
color: #b1b1b1;
|
||||||
|
border: 1px solid #444;
|
||||||
|
border-bottom-style: none;
|
||||||
|
background-color: #323232;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
margin-right: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabWidget::pane {
|
||||||
|
border: 1px solid #444;
|
||||||
|
top: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:last
|
||||||
|
{
|
||||||
|
margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:first:!selected
|
||||||
|
{
|
||||||
|
margin-left: 0px; /* the last selected tab has nothing to overlap with on the right */
|
||||||
|
|
||||||
|
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:!selected
|
||||||
|
{
|
||||||
|
color: #b1b1b1;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
margin-top: 3px;
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:1 #212121, stop:.4 #343434);
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:selected
|
||||||
|
{
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:!selected:hover
|
||||||
|
{
|
||||||
|
/*border-top: 2px solid #ffaa00;
|
||||||
|
padding-bottom: 3px;*/
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:1 #212121, stop:0.4 #343434, stop:0.2 #343434, stop:0.1 #ffaa00);
|
||||||
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator:checked, QRadioButton::indicator:unchecked{
|
||||||
|
color: #b1b1b1;
|
||||||
|
background-color: #323232;
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator:checked
|
||||||
|
{
|
||||||
|
background-color: qradialgradient(
|
||||||
|
cx: 0.5, cy: 0.5,
|
||||||
|
fx: 0.5, fy: 0.5,
|
||||||
|
radius: 1.0,
|
||||||
|
stop: 0.25 #ffaa00,
|
||||||
|
stop: 0.3 #323232
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
QCheckBox::indicator{
|
||||||
|
color: #b1b1b1;
|
||||||
|
background-color: #323232;
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator
|
||||||
|
{
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator:hover, QCheckBox::indicator:hover
|
||||||
|
{
|
||||||
|
border: 1px solid #ffaa00;
|
||||||
|
}
|
||||||
|
|
||||||
|
QCheckBox::indicator:checked
|
||||||
|
{
|
||||||
|
image:url(:/images/checkbox.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
QCheckBox::indicator:disabled, QRadioButton::indicator:disabled
|
||||||
|
{
|
||||||
|
border: 1px solid #444;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="centralwidget">
|
||||||
|
<layout class="QGridLayout" name="gridLayout"/>
|
||||||
|
</widget>
|
||||||
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
@@ -57,9 +57,13 @@ HEADERS += \
|
|||||||
FORMS += \
|
FORMS += \
|
||||||
mainwindow.ui \
|
mainwindow.ui \
|
||||||
listItemServeConfig.ui \
|
listItemServeConfig.ui \
|
||||||
serverconfigitem.ui
|
serverconfigitem.ui \
|
||||||
|
settings.ui
|
||||||
|
|
||||||
# Default rules for deployment.
|
# Default rules for deployment.
|
||||||
qnx: target.path = /tmp/$${TARGET}/bin
|
qnx: target.path = /tmp/$${TARGET}/bin
|
||||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||||
!isEmpty(target.path): INSTALLS += target
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|
||||||
|
RESOURCES += \
|
||||||
|
defaultres.qrc
|
||||||
|
|||||||
Reference in New Issue
Block a user