Cosmetics
This commit is contained in:
@@ -176,7 +176,7 @@ set(companion_SRCS
|
||||
fusesdialog.cpp
|
||||
logsdialog.cpp
|
||||
downloaddialog.cpp
|
||||
splashlibrary.cpp
|
||||
splashlibrarydialog.cpp
|
||||
mainwindow.cpp
|
||||
companion.cpp
|
||||
radionotfound.cpp
|
||||
@@ -196,7 +196,7 @@ set(companion_MOC_HDRS
|
||||
releasenotesdialog.h
|
||||
releasenotesfirmwaredialog.h
|
||||
customizesplashdialog.h
|
||||
splashlibrary.h
|
||||
splashlibrarydialog.h
|
||||
splashlabel.h
|
||||
progresswidget.h
|
||||
progressdialog.h
|
||||
@@ -226,7 +226,7 @@ set(companion_UIS
|
||||
printdialog.ui
|
||||
htmldialog.ui
|
||||
customizesplashdialog.ui
|
||||
splashlibrary.ui
|
||||
splashlibrarydialog.ui
|
||||
progresswidget.ui
|
||||
progressdialog.ui
|
||||
flashfirmwaredialog.ui
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
#include "flashfirmwaredialog.h"
|
||||
#include "appdata.h"
|
||||
#include "helpers.h"
|
||||
#include "splashlibrary.h"
|
||||
#include "firmwareinterface.h"
|
||||
#include "splashlibrarydialog.h"
|
||||
|
||||
//*** Side Class ***
|
||||
|
||||
@@ -233,7 +233,7 @@ void customizeSplashDialog::on_rightLibraryButton_clicked(){libraryButton_clicke
|
||||
void customizeSplashDialog::libraryButton_clicked( Side side )
|
||||
{
|
||||
QString fileName;
|
||||
splashLibrary *ld = new splashLibrary(this,&fileName);
|
||||
SplashLibraryDialog *ld = new SplashLibraryDialog(this,&fileName);
|
||||
ld->exec();
|
||||
if (!fileName.isEmpty()) {
|
||||
if (!side.displayImage( fileName, UNDEFINED ))
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
#include "ui_flasheepromdialog.h"
|
||||
#include "eeprominterface.h"
|
||||
#include "helpers.h"
|
||||
#include "splashlibrary.h"
|
||||
#include "firmwareinterface.h"
|
||||
#include "hexinterface.h"
|
||||
#include "appdata.h"
|
||||
#include "progressdialog.h"
|
||||
#include "radiointerface.h"
|
||||
#include "converteeprom.h"
|
||||
#include "splashlibrarydialog.h"
|
||||
|
||||
FlashEEpromDialog::FlashEEpromDialog(QWidget *parent, const QString &filename):
|
||||
QDialog(parent),
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#include "hexinterface.h"
|
||||
#include "progressdialog.h"
|
||||
#include "radiointerface.h"
|
||||
#include "splashlibrary.h"
|
||||
#include "progresswidget.h"
|
||||
#include "splashlibrarydialog.h"
|
||||
|
||||
#if defined WIN32 || !defined __GNUC__
|
||||
#include <windows.h>
|
||||
@@ -185,7 +185,7 @@ void FlashFirmwareDialog::on_useExternalSplash_clicked()
|
||||
void FlashFirmwareDialog::on_useLibrarySplash_clicked()
|
||||
{
|
||||
QString fileName;
|
||||
splashLibrary *ld = new splashLibrary(this, &fileName);
|
||||
SplashLibraryDialog *ld = new SplashLibraryDialog(this, &fileName);
|
||||
ld->exec();
|
||||
if (!fileName.isEmpty()) {
|
||||
QImage image(fileName);
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
@@ -344,7 +344,7 @@
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<widget class="QToolButton" name="splashLibraryButton">
|
||||
<widget class="QToolButton" name="SplashLibraryDialogButton">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
@@ -455,7 +455,7 @@
|
||||
<tabstop>splashincludeCB</tabstop>
|
||||
<tabstop>SplashFileName</tabstop>
|
||||
<tabstop>SplashSelect</tabstop>
|
||||
<tabstop>splashLibraryButton</tabstop>
|
||||
<tabstop>SplashLibraryDialogButton</tabstop>
|
||||
<tabstop>clearImageButton</tabstop>
|
||||
<tabstop>InvertPixels</tabstop>
|
||||
<tabstop>buttonBox</tabstop>
|
||||
|
||||
@@ -1,15 +1,18 @@
|
||||
#include "splashlibrary.h"
|
||||
#include "ui_splashlibrary.h"
|
||||
#include "splashlibrarydialog.h"
|
||||
#include "ui_splashlibrarydialog.h"
|
||||
#include "appdata.h"
|
||||
#include <QtGui>
|
||||
#include "helpers.h"
|
||||
#include "firmwareinterface.h"
|
||||
#include "helpers.h"
|
||||
|
||||
splashLibrary::splashLibrary(QWidget *parent, QString * fileName) : QDialog(parent), ui(new Ui::splashLibrary) {
|
||||
splashFileName = fileName;
|
||||
SplashLibraryDialog::SplashLibraryDialog(QWidget *parent, QString * filename):
|
||||
QDialog(parent),
|
||||
ui(new Ui::SplashLibraryDialog),
|
||||
splashFileName(filename)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowIcon(CompanionIcon("library.png"));
|
||||
setWindowIcon(CompanionIcon("library.png"));
|
||||
ui->nextPage->setIcon(CompanionIcon("arrow-right.png"));
|
||||
ui->prevPage->setIcon(CompanionIcon("arrow-left.png"));
|
||||
page = 0;
|
||||
@@ -24,11 +27,13 @@ splashLibrary::splashLibrary(QWidget *parent, QString * fileName) : QDialog(pare
|
||||
}
|
||||
}
|
||||
|
||||
splashLibrary::~splashLibrary() {
|
||||
SplashLibraryDialog::~SplashLibraryDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void splashLibrary::setupPage(int page) {
|
||||
void SplashLibraryDialog::setupPage(int page)
|
||||
{
|
||||
splashLabel * sl[] = { ui->FwImage_01, ui->FwImage_02, ui->FwImage_03, ui->FwImage_04 ,
|
||||
ui->FwImage_05, ui->FwImage_06, ui->FwImage_07, ui->FwImage_08 ,
|
||||
ui->FwImage_09, ui->FwImage_10, ui->FwImage_11, ui->FwImage_12 ,
|
||||
@@ -60,7 +65,8 @@ void splashLibrary::setupPage(int page) {
|
||||
setWindowTitle(tr("Splash Library - page %1 of %2").arg(page + 1).arg(ceil((float) imageList.size() / 20.0)));
|
||||
}
|
||||
|
||||
void splashLibrary::getFileList() {
|
||||
void SplashLibraryDialog::getFileList()
|
||||
{
|
||||
imageList.clear();
|
||||
if (g.embedSplashes()) {
|
||||
QDir myRes(":/images/library");
|
||||
@@ -102,11 +108,13 @@ void splashLibrary::getFileList() {
|
||||
}
|
||||
}
|
||||
|
||||
void splashLibrary::dclose() {
|
||||
void SplashLibraryDialog::dclose()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
void splashLibrary::onButtonPressed(int button) {
|
||||
void SplashLibraryDialog::onButtonPressed(int button)
|
||||
{
|
||||
splashLabel * myLabel = qobject_cast<splashLabel *>(sender());
|
||||
|
||||
foreach(splashLabel *sl, findChildren<splashLabel *>()) {
|
||||
@@ -123,7 +131,7 @@ void splashLibrary::onButtonPressed(int button) {
|
||||
myLabel->setStyleSheet("border:1px solid; border-color:#00ffff");
|
||||
}
|
||||
|
||||
void splashLibrary::on_nextPage_clicked() {
|
||||
void SplashLibraryDialog::on_nextPage_clicked() {
|
||||
page++;
|
||||
if (page >= (imageList.size() / 20)) {
|
||||
ui->nextPage->setDisabled(true);
|
||||
@@ -132,7 +140,7 @@ void splashLibrary::on_nextPage_clicked() {
|
||||
setupPage(page);
|
||||
}
|
||||
|
||||
void splashLibrary::on_prevPage_clicked() {
|
||||
void SplashLibraryDialog::on_prevPage_clicked() {
|
||||
page--;
|
||||
if (page == 0) {
|
||||
ui->prevPage->setDisabled(true);
|
||||
@@ -5,16 +5,16 @@
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class splashLibrary;
|
||||
class SplashLibraryDialog;
|
||||
}
|
||||
|
||||
class splashLibrary : public QDialog
|
||||
class SplashLibraryDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit splashLibrary(QWidget *parent = 0, QString * fileName=NULL);
|
||||
~splashLibrary();
|
||||
explicit SplashLibraryDialog(QWidget *parent = 0, QString * fileName=NULL);
|
||||
~SplashLibraryDialog();
|
||||
|
||||
private slots:
|
||||
void dclose();
|
||||
@@ -25,7 +25,7 @@ private slots:
|
||||
private:
|
||||
void getFileList();
|
||||
void setupPage(int page);
|
||||
Ui::splashLibrary *ui;
|
||||
Ui::SplashLibraryDialog *ui;
|
||||
QString * splashFileName;
|
||||
QString libraryPath;
|
||||
QStringList imageList;
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>splashLibrary</class>
|
||||
<widget class="QDialog" name="splashLibrary">
|
||||
<class>SplashLibraryDialog</class>
|
||||
<widget class="QDialog" name="SplashLibraryDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
@@ -14766,7 +14766,7 @@ Mode 4:
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -15537,7 +15537,7 @@ Die kann auch unterschiedlch zur Firmwaresprache sein</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -13214,7 +13214,7 @@ Puede ser diferente del lenguaje del firmware</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -17161,7 +17161,7 @@ Voi olla eri kun firmwaren kieli</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -14015,7 +14015,7 @@ Indique l'affectation voie / numéro de voie par défaut utilisée lors de
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -11554,7 +11554,7 @@ Press cancel to abort joystick calibration</source>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -12155,7 +12155,7 @@ Premere annulla per cancellare l'operazione</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -11546,7 +11546,7 @@ Press cancel to abort joystick calibration</source>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -11952,7 +11952,7 @@ Anuluj w celu przerwania kalibracji joysticka</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -12159,7 +12159,7 @@ Press cancel to abort joystick calibration</source>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -12164,7 +12164,7 @@ This is used by the templated to determine which channel goes to what number out
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<location filename="../splashlibrary.ui" line="47"/>
|
||||
<location filename="../splashlibrary.ui" line="879"/>
|
||||
|
||||
@@ -10325,7 +10325,7 @@ Får skilja från språket för mjukvaran</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>splashLibrary</name>
|
||||
<name>SplashLibraryDialog</name>
|
||||
<message>
|
||||
<source>...</source>
|
||||
<translation>...</translation>
|
||||
|
||||
Reference in New Issue
Block a user