mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-02-05 05:49:02 +01:00
Cleanup
This commit is contained in:
Binary file not shown.
@@ -206,10 +206,6 @@
|
||||
<source>Default minimize</source>
|
||||
<translation>Standard Minimieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize to tray, method 1</source>
|
||||
<translation type="vanished">In Systemleiste verbergen, Methode 1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="83"/>
|
||||
<source>Minimize to tray, method 2</source>
|
||||
@@ -235,10 +231,6 @@
|
||||
<source>Start application minimized</source>
|
||||
<translation>Anwendung minimiert starten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize on close</source>
|
||||
<translation type="vanished">Beim Fensterschließen, Minimieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="354"/>
|
||||
<source>Number properties</source>
|
||||
@@ -358,7 +350,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="878"/>
|
||||
<source>Startup application</source>
|
||||
<source>Start application</source>
|
||||
<translation>Startanwendung</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -186,10 +186,6 @@
|
||||
<source>Default minimize</source>
|
||||
<translation>Προεπιλεγμένη ελαχιστοποίηση</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize to tray, method 1</source>
|
||||
<translation type="vanished">Μέθοδος 1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="83"/>
|
||||
<source>Minimize to tray, method 2</source>
|
||||
@@ -347,11 +343,6 @@
|
||||
<source>Arguments:</source>
|
||||
<translation>Επιχειρήματα:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="878"/>
|
||||
<source>Startup application</source>
|
||||
<translation>Εφαρμογή εκκίνησης</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="935"/>
|
||||
<source>Mail</source>
|
||||
@@ -383,6 +374,11 @@
|
||||
<source>Apps</source>
|
||||
<translation>Εφαρμογές</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="878"/>
|
||||
<source>Start application</source>
|
||||
<translation>Εφαρμογή εκκίνησης</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="1045"/>
|
||||
<source>Save</source>
|
||||
|
||||
Binary file not shown.
@@ -211,10 +211,6 @@
|
||||
<source>Default minimize</source>
|
||||
<translation>Default minimize</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize to tray, method 1</source>
|
||||
<translation type="vanished">Minimize to tray, method 1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="83"/>
|
||||
<source>Minimize to tray, method 2</source>
|
||||
@@ -240,10 +236,6 @@
|
||||
<source>Start application minimized</source>
|
||||
<translation>Start application minimized</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize on close</source>
|
||||
<translation type="vanished">Minimize on close</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="354"/>
|
||||
<source>Number properties</source>
|
||||
@@ -363,12 +355,8 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="878"/>
|
||||
<source>Startup application</source>
|
||||
<translation>Startup application</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Arguments: </source>
|
||||
<translation type="vanished">Arguments:</translation>
|
||||
<source>Start application</source>
|
||||
<translation>Start application</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="935"/>
|
||||
|
||||
Binary file not shown.
@@ -192,10 +192,6 @@
|
||||
<source>Default minimize</source>
|
||||
<translation>Minimizzazione predefinita</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize to tray, method 1</source>
|
||||
<translation type="vanished">Minimizza nel vassoio, metodo 1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="83"/>
|
||||
<source>Minimize to tray, method 2</source>
|
||||
@@ -348,11 +344,6 @@
|
||||
<source>Arguments:</source>
|
||||
<translation>Argomenti:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="878"/>
|
||||
<source>Startup application</source>
|
||||
<translation>Applicazione di avvio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="935"/>
|
||||
<source>Mail</source>
|
||||
@@ -384,6 +375,11 @@
|
||||
<source>Apps</source>
|
||||
<translation>Applicazioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="878"/>
|
||||
<source>Start application</source>
|
||||
<translation>Applicazione di avvio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="1045"/>
|
||||
<source>Save</source>
|
||||
|
||||
Binary file not shown.
@@ -210,10 +210,6 @@
|
||||
<source>Default minimize</source>
|
||||
<translation>Standaard minimalisatie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize to tray, method 1</source>
|
||||
<translation type="vanished">Minimaliseer naar systeemvak, methode 1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="83"/>
|
||||
<source>Minimize to tray, method 2</source>
|
||||
@@ -239,10 +235,6 @@
|
||||
<source>Start application minimized</source>
|
||||
<translation>Start programma geminimaliseerd</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize on close</source>
|
||||
<translation type="vanished">Minimaliseren bij sluiten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="354"/>
|
||||
<source>Number properties</source>
|
||||
@@ -362,7 +354,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="878"/>
|
||||
<source>Startup application</source>
|
||||
<source>Start application</source>
|
||||
<translation>Start programma</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -208,11 +208,6 @@
|
||||
<source>Default minimize</source>
|
||||
<translation>Comportamento padrão</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize to tray, method 1</source>
|
||||
<translatorcomment>Minimizar para à área de notificações? (muito grande)</translatorcomment>
|
||||
<translation type="vanished">Minimizar para a tray, método 1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="83"/>
|
||||
<source>Minimize to tray, method 2</source>
|
||||
@@ -239,10 +234,6 @@
|
||||
<source>Start application minimized</source>
|
||||
<translation>Iniciar aplicação minimizada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize on close</source>
|
||||
<translation type="vanished">Minimizar ao fechar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="354"/>
|
||||
<source>Number properties</source>
|
||||
@@ -362,7 +353,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="878"/>
|
||||
<source>Startup application</source>
|
||||
<source>Start application</source>
|
||||
<translation>Aplicativo de inicialização</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -207,10 +207,6 @@
|
||||
<translatorcomment>Need documentation what methods do...</translatorcomment>
|
||||
<translation>Свернуть окно</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize to tray, method 1</source>
|
||||
<translation type="vanished">Свернуть в трей, вариант 1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="83"/>
|
||||
<source>Minimize to tray, method 2</source>
|
||||
@@ -236,10 +232,6 @@
|
||||
<source>Start application minimized</source>
|
||||
<translation>Запуск приложения свернутым</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize on close</source>
|
||||
<translation type="vanished">Сворачивать при закрытии</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="354"/>
|
||||
<source>Number properties</source>
|
||||
@@ -359,7 +351,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.ui" line="878"/>
|
||||
<source>Startup application</source>
|
||||
<source>Start application</source>
|
||||
<translation>Приложение при запуске</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
@@ -81,8 +81,8 @@ Preferences::Preferences( QObject *parent ) : QObject( parent )
|
||||
|
||||
m_theme = PREF_THEME_LIGHT;
|
||||
|
||||
m_startup_app = "";
|
||||
m_startup_app_args = "";
|
||||
m_start_app = "";
|
||||
m_start_app_args = "";
|
||||
m_close_app = "";
|
||||
m_close_app_args = "";
|
||||
}
|
||||
@@ -693,55 +693,55 @@ void Preferences::setTheme( Theme theme )
|
||||
|
||||
|
||||
/*
|
||||
* Get the startup application.
|
||||
* Get the start application.
|
||||
*/
|
||||
QString Preferences::getStartupApplication() const
|
||||
QString Preferences::getStartApp() const
|
||||
{
|
||||
|
||||
return m_startup_app;
|
||||
return m_start_app;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set the startup application.
|
||||
* Set the start application.
|
||||
*/
|
||||
void Preferences::setStartupApplication( QString app )
|
||||
void Preferences::setStartApp( QString app )
|
||||
{
|
||||
if( m_startup_app != app )
|
||||
if( m_start_app != app )
|
||||
{
|
||||
m_startup_app = app;
|
||||
m_start_app = app;
|
||||
|
||||
/*
|
||||
* Tell the world the new preference
|
||||
*/
|
||||
emit signalStartupAppChange();
|
||||
emit signalStartAppChange();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Get the startup application arguments.
|
||||
* Get the start application arguments.
|
||||
*/
|
||||
QString Preferences::getStartupApplicationArgs() const
|
||||
QString Preferences::getStartAppArgs() const
|
||||
{
|
||||
|
||||
return m_startup_app_args;
|
||||
return m_start_app_args;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set the startup application arguments.
|
||||
* Set the start application arguments.
|
||||
*/
|
||||
void Preferences::setStartupApplicationArgs( QString args )
|
||||
void Preferences::setStartAppArgs( QString args )
|
||||
{
|
||||
if( m_startup_app_args != args )
|
||||
if( m_start_app_args != args )
|
||||
{
|
||||
m_startup_app_args = args;
|
||||
m_start_app_args = args;
|
||||
|
||||
/*
|
||||
* Tell the world the new preference
|
||||
*/
|
||||
emit signalStartupAppArgsChange();
|
||||
emit signalStartAppArgsChange();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -749,7 +749,7 @@ void Preferences::setStartupApplicationArgs( QString args )
|
||||
/*
|
||||
* Get the close application.
|
||||
*/
|
||||
QString Preferences::getCloseApplication() const
|
||||
QString Preferences::getCloseApp() const
|
||||
{
|
||||
|
||||
return m_close_app;
|
||||
@@ -759,7 +759,7 @@ QString Preferences::getCloseApplication() const
|
||||
/*
|
||||
* Set the close application.
|
||||
*/
|
||||
void Preferences::setCloseApplication( QString app )
|
||||
void Preferences::setCloseApp( QString app )
|
||||
{
|
||||
if( m_close_app != app )
|
||||
{
|
||||
@@ -776,7 +776,7 @@ void Preferences::setCloseApplication( QString app )
|
||||
/*
|
||||
* Get the close application arguments.
|
||||
*/
|
||||
QString Preferences::getCloseApplicationArgs() const
|
||||
QString Preferences::getCloseAppArgs() const
|
||||
{
|
||||
|
||||
return m_close_app_args;
|
||||
@@ -786,7 +786,7 @@ QString Preferences::getCloseApplicationArgs() const
|
||||
/*
|
||||
* Set the close application arguments.
|
||||
*/
|
||||
void Preferences::setCloseApplicationArgs( QString args )
|
||||
void Preferences::setCloseAppArgs( QString args )
|
||||
{
|
||||
if( m_close_app_args != args )
|
||||
{
|
||||
|
||||
@@ -463,60 +463,60 @@ class Preferences : public QObject
|
||||
void setTheme( Theme theme );
|
||||
|
||||
/**
|
||||
* @brief getStartupApplication. Get the startup application.
|
||||
* @brief getStartApp. Get the start application.
|
||||
*
|
||||
* @return The app.
|
||||
*/
|
||||
QString getStartupApplication() const;
|
||||
QString getStartApp() const;
|
||||
|
||||
/**
|
||||
* @brief setStartupApplication. Set the startup application.
|
||||
* @brief setStartApp. Set the start application.
|
||||
*
|
||||
* @param app The app.
|
||||
*/
|
||||
void setStartupApplication( QString app );
|
||||
void setStartApp( QString app );
|
||||
|
||||
/**
|
||||
* @brief getStartupApplicationArgs. Get the startup application arguments.
|
||||
* @brief getStartAppArgs. Get the start application arguments.
|
||||
*
|
||||
* @return The arg.
|
||||
*/
|
||||
QString getStartupApplicationArgs() const;
|
||||
QString getStartAppArgs() const;
|
||||
|
||||
/**
|
||||
* @brief setStartupApplicationArgs. Set the startup application arguments.
|
||||
* @brief setStartAppArgs. Set the start application arguments.
|
||||
*
|
||||
* @param app The args.
|
||||
*/
|
||||
void setStartupApplicationArgs( QString args );
|
||||
void setStartAppArgs( QString args );
|
||||
|
||||
/**
|
||||
* @brief getCloseApplication. Get the close application.
|
||||
* @brief getCloseApp. Get the close application.
|
||||
*
|
||||
* @return The app.
|
||||
*/
|
||||
QString getCloseApplication() const;
|
||||
QString getCloseApp() const;
|
||||
|
||||
/**
|
||||
* @brief setCloseApplication. Set the close application.
|
||||
* @brief setCloseApp. Set the close application.
|
||||
*
|
||||
* @param app The app.
|
||||
*/
|
||||
void setCloseApplication( QString app );
|
||||
void setCloseApp( QString app );
|
||||
|
||||
/**
|
||||
* @brief getCloseApplicationArgs. Get the close application arguments.
|
||||
* @brief getCloseAppArgs. Get the close application arguments.
|
||||
*
|
||||
* @return The args.
|
||||
*/
|
||||
QString getCloseApplicationArgs() const;
|
||||
QString getCloseAppArgs() const;
|
||||
|
||||
/**
|
||||
* @brief setCloseApplicationArgs. Set the close application arguments.
|
||||
* @brief setCloseAppArgs. Set the close application arguments.
|
||||
*
|
||||
* @param args The args.
|
||||
*/
|
||||
void setCloseApplicationArgs( QString args );
|
||||
void setCloseAppArgs( QString args );
|
||||
|
||||
/**
|
||||
* @brief getDebug. Get the debug windows state.
|
||||
@@ -670,14 +670,14 @@ class Preferences : public QObject
|
||||
void signalThemeChange();
|
||||
|
||||
/**
|
||||
* @brief signalStartupAppChange. Signal a startup application change.
|
||||
* @brief signalStartAppChange. Signal a start application change.
|
||||
*/
|
||||
void signalStartupAppChange();
|
||||
void signalStartAppChange();
|
||||
|
||||
/**
|
||||
* @brief signalStartupAppArgsChange. Signal a startup application arguments change.
|
||||
* @brief signalStartAppArgsChange. Signal a start application arguments change.
|
||||
*/
|
||||
void signalStartupAppArgsChange();
|
||||
void signalStartAppArgsChange();
|
||||
|
||||
/**
|
||||
* @brief signalCloseAppChange. Signal a close application change.
|
||||
@@ -847,14 +847,14 @@ class Preferences : public QObject
|
||||
Theme m_theme;
|
||||
|
||||
/**
|
||||
* @brief m_startup_app
|
||||
* @brief m_start_app
|
||||
*/
|
||||
QString m_startup_app;
|
||||
QString m_start_app;
|
||||
|
||||
/**
|
||||
* @brief m_startup_app_args
|
||||
* @brief m_start_app_args
|
||||
*/
|
||||
QString m_startup_app_args;
|
||||
QString m_start_app_args;
|
||||
|
||||
/**
|
||||
* @brief m_close_app
|
||||
|
||||
@@ -842,7 +842,7 @@
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_12">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="closeApplicationLineEdit"/>
|
||||
<widget class="QLineEdit" name="closeAppLineEdit"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="closeBrowseButton">
|
||||
@@ -863,7 +863,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="closeApplicationArgsLineEdit"/>
|
||||
<widget class="QLineEdit" name="closeAppArgsLineEdit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@@ -875,7 +875,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>Startup application</string>
|
||||
<string>Start application</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
@@ -883,10 +883,10 @@
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_14">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="startupApplicationLineEdit"/>
|
||||
<widget class="QLineEdit" name="startAppLineEdit"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="startupBrowseButton">
|
||||
<widget class="QPushButton" name="startBrowseButton">
|
||||
<property name="text">
|
||||
<string>Browse...</string>
|
||||
</property>
|
||||
@@ -904,7 +904,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="startupApplicationArgsLineEdit"/>
|
||||
<widget class="QLineEdit" name="startAppArgsLineEdit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@@ -1059,12 +1059,12 @@
|
||||
</resources>
|
||||
<connections/>
|
||||
<buttongroups>
|
||||
<buttongroup name="iconTypeGroup"/>
|
||||
<buttongroup name="defaultIconTypeGroup"/>
|
||||
<buttongroup name="themeGroup"/>
|
||||
<buttongroup name="minimizeIconTypeGroup"/>
|
||||
<buttongroup name="countTypeGroup"/>
|
||||
<buttongroup name="minimizeTypeGroup"/>
|
||||
<buttongroup name="themeGroup"/>
|
||||
<buttongroup name="iconTypeGroup"/>
|
||||
<buttongroup name="defaultIconTypeGroup"/>
|
||||
<buttongroup name="minimizeIconTypeGroup"/>
|
||||
<buttongroup name="closeTypeGroup"/>
|
||||
</buttongroups>
|
||||
</ui>
|
||||
|
||||
@@ -118,8 +118,8 @@ PreferencesDialog::PreferencesDialog( SysTrayXLink *link, Preferences *pref, QWi
|
||||
connect( m_ui->savePushButton, &QPushButton::clicked, this, &PreferencesDialog::slotAccept);
|
||||
connect( m_ui->cancelPushButton, &QPushButton::clicked, this, &PreferencesDialog::slotReject);
|
||||
|
||||
connect( m_ui->startupBrowseButton, &QPushButton::clicked, this, &PreferencesDialog::slotStartupApplicationSelect );
|
||||
connect( m_ui->closeBrowseButton, &QPushButton::clicked, this, &PreferencesDialog::slotCloseApplicationSelect );
|
||||
connect( m_ui->startBrowseButton, &QPushButton::clicked, this, &PreferencesDialog::slotStartAppSelect );
|
||||
connect( m_ui->closeBrowseButton, &QPushButton::clicked, this, &PreferencesDialog::slotCloseAppSelect );
|
||||
|
||||
/*
|
||||
* Set number color
|
||||
@@ -153,12 +153,12 @@ PreferencesDialog::PreferencesDialog( SysTrayXLink *link, Preferences *pref, QWi
|
||||
setNumberMargins( m_pref->getNumberMargins() );
|
||||
|
||||
/*
|
||||
* Set the startup and close application parameters
|
||||
* Set the start and close application parameters
|
||||
*/
|
||||
setStartupApplication( m_pref->getStartupApplication() );
|
||||
setStartupApplicationArgs( m_pref->getStartupApplicationArgs() );
|
||||
setCloseApplication( m_pref->getCloseApplication() );
|
||||
setCloseApplicationArgs( m_pref->getCloseApplicationArgs() );
|
||||
setStartApp( m_pref->getStartApp() );
|
||||
setStartAppArgs( m_pref->getStartAppArgs() );
|
||||
setCloseApp( m_pref->getCloseApp() );
|
||||
setCloseAppArgs( m_pref->getCloseAppArgs() );
|
||||
|
||||
/*
|
||||
* Dialog on top
|
||||
@@ -445,37 +445,37 @@ void PreferencesDialog::setTheme( Preferences::Theme theme )
|
||||
|
||||
|
||||
/*
|
||||
* Set startup application
|
||||
* Set start application
|
||||
*/
|
||||
void PreferencesDialog::setStartupApplication( QString app )
|
||||
void PreferencesDialog::setStartApp( QString app )
|
||||
{
|
||||
m_ui->startupApplicationLineEdit->setText( app );
|
||||
m_ui->startAppLineEdit->setText( app );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set startup application arguments
|
||||
* Set start application arguments
|
||||
*/
|
||||
void PreferencesDialog::setStartupApplicationArgs( QString args )
|
||||
void PreferencesDialog::setStartAppArgs( QString args )
|
||||
{
|
||||
m_ui->startupApplicationArgsLineEdit->setText( args );
|
||||
m_ui->startAppArgsLineEdit->setText( args );
|
||||
}
|
||||
|
||||
/*
|
||||
* Set close application
|
||||
*/
|
||||
void PreferencesDialog::setCloseApplication( QString app )
|
||||
void PreferencesDialog::setCloseApp( QString app )
|
||||
{
|
||||
m_ui->closeApplicationLineEdit->setText( app );
|
||||
m_ui->closeAppLineEdit->setText( app );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set close application arguments
|
||||
*/
|
||||
void PreferencesDialog::setCloseApplicationArgs( QString args )
|
||||
void PreferencesDialog::setCloseAppArgs( QString args )
|
||||
{
|
||||
m_ui->closeApplicationArgsLineEdit->setText( args );
|
||||
m_ui->closeAppArgsLineEdit->setText( args );
|
||||
}
|
||||
|
||||
|
||||
@@ -519,14 +519,14 @@ void PreferencesDialog::slotAccept()
|
||||
Preferences::Theme theme = static_cast< Preferences::Theme >( m_ui->themeGroup->checkedId() );
|
||||
m_pref->setTheme( theme );
|
||||
|
||||
QString startupApp = m_ui->startupApplicationLineEdit->text();
|
||||
m_pref->setStartupApplication( startupApp );
|
||||
QString startupAppArgs= m_ui->startupApplicationArgsLineEdit->text();
|
||||
m_pref->setStartupApplicationArgs( startupAppArgs );
|
||||
QString closeApp = m_ui->closeApplicationLineEdit->text();
|
||||
m_pref->setCloseApplication( closeApp );
|
||||
QString closeAppArgs= m_ui->closeApplicationArgsLineEdit->text();
|
||||
m_pref->setCloseApplicationArgs( closeAppArgs );
|
||||
QString startApp = m_ui->startAppLineEdit->text();
|
||||
m_pref->setStartApp( startApp );
|
||||
QString startAppArgs= m_ui->startAppArgsLineEdit->text();
|
||||
m_pref->setStartAppArgs( startAppArgs );
|
||||
QString closeApp = m_ui->closeAppLineEdit->text();
|
||||
m_pref->setCloseApp( closeApp );
|
||||
QString closeAppArgs= m_ui->closeAppArgsLineEdit->text();
|
||||
m_pref->setCloseAppArgs( closeAppArgs );
|
||||
|
||||
/*
|
||||
* Force different color?
|
||||
@@ -592,10 +592,10 @@ void PreferencesDialog::slotReject()
|
||||
setNumberAlignment( m_pref->getNumberAlignment() );
|
||||
setNumberMargins( m_pref->getNumberMargins() );
|
||||
setTheme( m_pref->getTheme() );
|
||||
setStartupApplication( m_pref->getStartupApplication() );
|
||||
setStartupApplicationArgs( m_pref->getStartupApplicationArgs() );
|
||||
setCloseApplication( m_pref->getCloseApplication() );
|
||||
setCloseApplicationArgs( m_pref->getCloseApplicationArgs() );
|
||||
setStartApp( m_pref->getStartApp() );
|
||||
setStartAppArgs( m_pref->getStartAppArgs() );
|
||||
setCloseApp( m_pref->getCloseApp() );
|
||||
setCloseAppArgs( m_pref->getCloseAppArgs() );
|
||||
|
||||
setDebug( m_pref->getDebug());
|
||||
}
|
||||
@@ -666,15 +666,15 @@ void PreferencesDialog::slotColorSelect()
|
||||
|
||||
|
||||
/*
|
||||
* Handle the startup application button
|
||||
* Handle the start application button
|
||||
*/
|
||||
void PreferencesDialog::slotStartupApplicationSelect()
|
||||
void PreferencesDialog::slotStartAppSelect()
|
||||
{
|
||||
QFileDialog file_dialog( this, tr( "Select application" ), "", "" );
|
||||
|
||||
if( file_dialog.exec() )
|
||||
{
|
||||
setStartupApplication( file_dialog.selectedFiles()[ 0 ] );
|
||||
setStartApp( file_dialog.selectedFiles()[ 0 ] );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -682,13 +682,13 @@ void PreferencesDialog::slotStartupApplicationSelect()
|
||||
/*
|
||||
* Handle the close application button
|
||||
*/
|
||||
void PreferencesDialog::slotCloseApplicationSelect()
|
||||
void PreferencesDialog::slotCloseAppSelect()
|
||||
{
|
||||
QFileDialog file_dialog( this, tr( "Select application" ), "", "" );
|
||||
|
||||
if( file_dialog.exec() )
|
||||
{
|
||||
setCloseApplication( file_dialog.selectedFiles()[ 0 ] );
|
||||
setCloseApp( file_dialog.selectedFiles()[ 0 ] );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -893,20 +893,20 @@ void PreferencesDialog::slotThemeChange()
|
||||
|
||||
|
||||
/*
|
||||
* Handle the startup application change signal
|
||||
* Handle the start application change signal
|
||||
*/
|
||||
void PreferencesDialog::slotStartupAppChange()
|
||||
void PreferencesDialog::slotStartAppChange()
|
||||
{
|
||||
setStartupApplication( m_pref->getStartupApplication() );
|
||||
setStartApp( m_pref->getStartApp() );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Handle the startup application arguments change signal
|
||||
* Handle the start application arguments change signal
|
||||
*/
|
||||
void PreferencesDialog::slotStartupAppArgsChange()
|
||||
void PreferencesDialog::slotStartAppArgsChange()
|
||||
{
|
||||
setStartupApplicationArgs( m_pref->getStartupApplicationArgs() );
|
||||
setStartAppArgs( m_pref->getStartAppArgs() );
|
||||
}
|
||||
|
||||
|
||||
@@ -915,7 +915,7 @@ void PreferencesDialog::slotStartupAppArgsChange()
|
||||
*/
|
||||
void PreferencesDialog::slotCloseAppChange()
|
||||
{
|
||||
setCloseApplication( m_pref->getCloseApplication() );
|
||||
setCloseApp( m_pref->getCloseApp() );
|
||||
}
|
||||
|
||||
|
||||
@@ -924,5 +924,5 @@ void PreferencesDialog::slotCloseAppChange()
|
||||
*/
|
||||
void PreferencesDialog::slotCloseAppArgsChange()
|
||||
{
|
||||
setCloseApplicationArgs( m_pref->getCloseApplicationArgs() );
|
||||
setCloseAppArgs( m_pref->getCloseAppArgs() );
|
||||
}
|
||||
|
||||
@@ -210,32 +210,32 @@ class PreferencesDialog : public QDialog
|
||||
void setTheme( Preferences::Theme theme );
|
||||
|
||||
/**
|
||||
* @brief setStartupApplication. Set the startup application.
|
||||
* @brief setStartApp. Set the start application.
|
||||
*
|
||||
* @param app The application.
|
||||
*/
|
||||
void setStartupApplication( QString app );
|
||||
void setStartApp( QString app );
|
||||
|
||||
/**
|
||||
* @brief setStartupApplicationArgs. Set the startup application arguments.
|
||||
* @brief setStartAppArgs. Set the start application arguments.
|
||||
*
|
||||
* @param args The application arguments.
|
||||
*/
|
||||
void setStartupApplicationArgs( QString args );
|
||||
void setStartAppArgs( QString args );
|
||||
|
||||
/**
|
||||
* @brief setCloseApplication. Set the close application.
|
||||
* @brief setCloseApp. Set the close application.
|
||||
*
|
||||
* @param app The application.
|
||||
*/
|
||||
void setCloseApplication( QString app );
|
||||
void setCloseApp( QString app );
|
||||
|
||||
/**
|
||||
* @brief setCloseApplicationArgs. Set the close application arguments.
|
||||
* @brief setCloseAppArgs. Set the close application arguments.
|
||||
*
|
||||
* @param args The application arguments.
|
||||
*/
|
||||
void setCloseApplicationArgs( QString args );
|
||||
void setCloseAppArgs( QString args );
|
||||
|
||||
|
||||
signals:
|
||||
@@ -355,14 +355,14 @@ class PreferencesDialog : public QDialog
|
||||
void slotThemeChange();
|
||||
|
||||
/**
|
||||
* @brief slotStartupAppChange. Slot for handling startup application change.
|
||||
* @brief slotStartAppChange. Slot for handling start application change.
|
||||
*/
|
||||
void slotStartupAppChange();
|
||||
void slotStartAppChange();
|
||||
|
||||
/**
|
||||
* @brief slotStartupAppArgsChange. Slot for handling startup application arguments change.
|
||||
* @brief slotStartAppArgsChange. Slot for handling start application arguments change.
|
||||
*/
|
||||
void slotStartupAppArgsChange();
|
||||
void slotStartAppArgsChange();
|
||||
|
||||
/**
|
||||
* @brief slotCloseAppChange. Slot for handling close application change.
|
||||
@@ -402,14 +402,14 @@ class PreferencesDialog : public QDialog
|
||||
void slotColorSelect();
|
||||
|
||||
/**
|
||||
* @brief slotStartupApplicationSelect. Handle the startup application button click.
|
||||
* @brief slotStartAppSelect. Handle the start application button click.
|
||||
*/
|
||||
void slotStartupApplicationSelect();
|
||||
void slotStartAppSelect();
|
||||
|
||||
/**
|
||||
* @brief slotCloseApplicationSelect. Handle the close application button click.
|
||||
* @brief slotCloseAppSelect. Handle the close application button click.
|
||||
*/
|
||||
void slotCloseApplicationSelect();
|
||||
void slotCloseAppSelect();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -133,8 +133,8 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent )
|
||||
connect( m_preferences, &Preferences::signalRestoreWindowPositionsChange, m_pref_dialog, &PreferencesDialog::slotRestoreWindowPositionsChange );
|
||||
connect( m_preferences, &Preferences::signalCloseTypeChange, m_pref_dialog, &PreferencesDialog::slotCloseTypeChange );
|
||||
connect( m_preferences, &Preferences::signalThemeChange, m_pref_dialog, &PreferencesDialog::slotThemeChange );
|
||||
connect( m_preferences, &Preferences::signalStartupAppChange, m_pref_dialog, &PreferencesDialog::slotStartupAppChange );
|
||||
connect( m_preferences, &Preferences::signalStartupAppArgsChange, m_pref_dialog, &PreferencesDialog::slotStartupAppArgsChange );
|
||||
connect( m_preferences, &Preferences::signalStartAppChange, m_pref_dialog, &PreferencesDialog::slotStartAppChange );
|
||||
connect( m_preferences, &Preferences::signalStartAppArgsChange, m_pref_dialog, &PreferencesDialog::slotStartAppArgsChange );
|
||||
connect( m_preferences, &Preferences::signalCloseAppChange, m_pref_dialog, &PreferencesDialog::slotCloseAppChange );
|
||||
connect( m_preferences, &Preferences::signalCloseAppArgsChange, m_pref_dialog, &PreferencesDialog::slotCloseAppArgsChange );
|
||||
connect( m_preferences, &Preferences::signalDebugChange, m_pref_dialog, &PreferencesDialog::slotDebugChange );
|
||||
@@ -157,8 +157,8 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent )
|
||||
connect( m_preferences, &Preferences::signalRestoreWindowPositionsChange, m_link, &SysTrayXLink::slotRestoreWindowPositionsChange );
|
||||
connect( m_preferences, &Preferences::signalCloseTypeChange, m_link, &SysTrayXLink::slotCloseTypeChange );
|
||||
connect( m_preferences, &Preferences::signalThemeChange, m_link, &SysTrayXLink::slotThemeChange );
|
||||
connect( m_preferences, &Preferences::signalStartupAppChange, m_link, &SysTrayXLink::slotStartupAppChange );
|
||||
connect( m_preferences, &Preferences::signalStartupAppArgsChange, m_link, &SysTrayXLink::slotStartupAppArgsChange );
|
||||
connect( m_preferences, &Preferences::signalStartAppChange, m_link, &SysTrayXLink::slotStartAppChange );
|
||||
connect( m_preferences, &Preferences::signalStartAppArgsChange, m_link, &SysTrayXLink::slotStartAppArgsChange );
|
||||
connect( m_preferences, &Preferences::signalCloseAppChange, m_link, &SysTrayXLink::slotCloseAppChange );
|
||||
connect( m_preferences, &Preferences::signalCloseAppArgsChange, m_link, &SysTrayXLink::slotCloseAppArgsChange );
|
||||
connect( m_preferences, &Preferences::signalDebugChange, m_link, &SysTrayXLink::slotDebugChange );
|
||||
@@ -176,7 +176,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent )
|
||||
connect( m_link, &SysTrayXLink::signalVersion, this, &SysTrayX::slotVersion );
|
||||
connect( m_link, &SysTrayXLink::signalKdeIntegration, this, &SysTrayX::slotSelectIconObject );
|
||||
connect( m_link, &SysTrayXLink::signalLocale, this, &SysTrayX::slotLoadLanguage );
|
||||
connect( m_link, &SysTrayXLink::signalStartupApp, this, &SysTrayX::slotStartupApp );
|
||||
connect( m_link, &SysTrayXLink::signalStartApp, this, &SysTrayX::slotStartApp );
|
||||
connect( m_link, &SysTrayXLink::signalCloseApp, this, &SysTrayX::slotCloseApp );
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
@@ -209,7 +209,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent )
|
||||
|
||||
m_preferences->setStartupApplication( "/home/maxime/test.sh" );
|
||||
m_preferences->setStartupApplicationArgs( "/home/maxime/startup.txt StartupString" );
|
||||
slotStartupApp();
|
||||
slotStartApp();
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -728,10 +728,10 @@ void SysTrayX::slotLoadLanguage( QString locale )
|
||||
/*
|
||||
* Handle a startup app launch request
|
||||
*/
|
||||
void SysTrayX::slotStartupApp()
|
||||
void SysTrayX::slotStartApp()
|
||||
{
|
||||
QString app = m_preferences->getStartupApplication();
|
||||
QString args = m_preferences->getStartupApplicationArgs();
|
||||
QString app = m_preferences->getStartApp();
|
||||
QString args = m_preferences->getStartAppArgs();
|
||||
QStringList args_list = args.split( ' ', Qt::SkipEmptyParts );
|
||||
|
||||
if( !app.isEmpty() )
|
||||
@@ -746,8 +746,8 @@ void SysTrayX::slotStartupApp()
|
||||
*/
|
||||
void SysTrayX::slotCloseApp()
|
||||
{
|
||||
QString app = m_preferences->getCloseApplication();
|
||||
QString args = m_preferences->getCloseApplicationArgs();
|
||||
QString app = m_preferences->getCloseApp();
|
||||
QString args = m_preferences->getCloseAppArgs();
|
||||
QStringList args_list = args.split( ' ', Qt::SkipEmptyParts );
|
||||
|
||||
if( !app.isEmpty() )
|
||||
|
||||
@@ -139,9 +139,9 @@ class SysTrayX : public QObject
|
||||
void slotLoadLanguage( QString locale );
|
||||
|
||||
/**
|
||||
* @brief slotStartupApp. Handle a startup app launch request.
|
||||
* @brief slotStartApp. Handle a start app launch request.
|
||||
*/
|
||||
void slotStartupApp();
|
||||
void slotStartApp();
|
||||
|
||||
/**
|
||||
* @brief slotCloseApp. Handle a close app launch request.
|
||||
|
||||
@@ -435,19 +435,19 @@ void SysTrayXLink::DecodeMessage( const QByteArray& message )
|
||||
DecodePreferences( jsonObject[ "preferences" ].toObject() );
|
||||
}
|
||||
|
||||
if( jsonObject.contains( "startupApp" ) && jsonObject[ "startupApp" ].isString() &&
|
||||
jsonObject.contains( "startupAppArgs" ) && jsonObject[ "startupAppArgs" ].isString() )
|
||||
if( jsonObject.contains( "startApp" ) && jsonObject[ "startApp" ].isString() &&
|
||||
jsonObject.contains( "startAppArgs" ) && jsonObject[ "startAppArgs" ].isString() )
|
||||
{
|
||||
QString app = jsonObject[ "startupApp" ].toString();
|
||||
QString args = jsonObject[ "startupAppArgs" ].toString();
|
||||
QString app = jsonObject[ "startApp" ].toString();
|
||||
QString args = jsonObject[ "startAppArgs" ].toString();
|
||||
|
||||
/*
|
||||
* Store the new startup application parameters
|
||||
* Store the new start application parameters
|
||||
*/
|
||||
m_pref->setStartupApplication( app );
|
||||
m_pref->setStartupApplicationArgs( args );
|
||||
m_pref->setStartApp( app );
|
||||
m_pref->setStartAppArgs( args );
|
||||
|
||||
emit signalStartupApp();
|
||||
emit signalStartApp();
|
||||
}
|
||||
|
||||
if( jsonObject.contains( "closeApp" ) && jsonObject[ "closeApp" ].isString() )
|
||||
@@ -791,24 +791,24 @@ void SysTrayXLink::DecodePreferences( const QJsonObject& pref )
|
||||
m_pref->setTheme( theme );
|
||||
}
|
||||
|
||||
if( pref.contains( "startupApp" ) && pref[ "startupApp" ].isString() )
|
||||
if( pref.contains( "startApp" ) && pref[ "startApp" ].isString() )
|
||||
{
|
||||
QString app = pref[ "startupApp" ].toString();
|
||||
QString app = pref[ "startApp" ].toString();
|
||||
|
||||
/*
|
||||
* Store the new startup application
|
||||
* Store the new start application
|
||||
*/
|
||||
m_pref->setStartupApplication( app );
|
||||
m_pref->setStartApp( app );
|
||||
}
|
||||
|
||||
if( pref.contains( "startupAppArgs" ) && pref[ "startupAppArgs" ].isString() )
|
||||
if( pref.contains( "startAppArgs" ) && pref[ "startAppArgs" ].isString() )
|
||||
{
|
||||
QString args = pref[ "startupAppArgs" ].toString();
|
||||
QString args = pref[ "startAppArgs" ].toString();
|
||||
|
||||
/*
|
||||
* Store the new startup application arguments
|
||||
* Store the new start application arguments
|
||||
*/
|
||||
m_pref->setStartupApplicationArgs( args );
|
||||
m_pref->setStartAppArgs( args );
|
||||
}
|
||||
|
||||
if( pref.contains( "closeApp" ) && pref[ "closeApp" ].isString() )
|
||||
@@ -818,7 +818,7 @@ void SysTrayXLink::DecodePreferences( const QJsonObject& pref )
|
||||
/*
|
||||
* Store the new close application
|
||||
*/
|
||||
m_pref->setCloseApplication( app );
|
||||
m_pref->setCloseApp( app );
|
||||
}
|
||||
|
||||
if( pref.contains( "closeAppArgs" ) && pref[ "closeAppArgs" ].isString() )
|
||||
@@ -828,7 +828,7 @@ void SysTrayXLink::DecodePreferences( const QJsonObject& pref )
|
||||
/*
|
||||
* Store the new close application arguments
|
||||
*/
|
||||
m_pref->setCloseApplicationArgs( args );
|
||||
m_pref->setCloseAppArgs( args );
|
||||
}
|
||||
|
||||
if( pref.contains( "debug" ) && pref[ "debug" ].isString() )
|
||||
@@ -911,10 +911,10 @@ void SysTrayXLink::EncodePreferences( const Preferences& pref )
|
||||
prefObject.insert("startupDelay", QJsonValue::fromVariant( QString::number( pref.getStartupDelay() ) ) );
|
||||
prefObject.insert("theme", QJsonValue::fromVariant( QString::number( pref.getTheme() ) ) );
|
||||
|
||||
prefObject.insert("startupApp", QJsonValue::fromVariant( pref.getStartupApplication() ) );
|
||||
prefObject.insert("startupAppArgs", QJsonValue::fromVariant( pref.getStartupApplicationArgs() ) );
|
||||
prefObject.insert("closeApp", QJsonValue::fromVariant( pref.getCloseApplication() ) );
|
||||
prefObject.insert("closeAppArgs", QJsonValue::fromVariant( pref.getCloseApplicationArgs() ) );
|
||||
prefObject.insert("startApp", QJsonValue::fromVariant( pref.getStartApp() ) );
|
||||
prefObject.insert("startAppArgs", QJsonValue::fromVariant( pref.getStartAppArgs() ) );
|
||||
prefObject.insert("closeApp", QJsonValue::fromVariant( pref.getCloseApp() ) );
|
||||
prefObject.insert("closeAppArgs", QJsonValue::fromVariant( pref.getCloseAppArgs() ) );
|
||||
|
||||
QJsonObject preferencesObject;
|
||||
preferencesObject.insert("preferences", prefObject );
|
||||
@@ -1185,9 +1185,9 @@ void SysTrayXLink::slotThemeChange()
|
||||
|
||||
|
||||
/*
|
||||
* Handle a startup application change signal
|
||||
* Handle a start application change signal
|
||||
*/
|
||||
void SysTrayXLink::slotStartupAppChange()
|
||||
void SysTrayXLink::slotStartAppChange()
|
||||
{
|
||||
if( m_pref->getAppPrefChanged() )
|
||||
{
|
||||
@@ -1197,9 +1197,9 @@ void SysTrayXLink::slotStartupAppChange()
|
||||
|
||||
|
||||
/*
|
||||
* Handle a startup application arguments change signal
|
||||
* Handle a start application arguments change signal
|
||||
*/
|
||||
void SysTrayXLink::slotStartupAppArgsChange()
|
||||
void SysTrayXLink::slotStartAppArgsChange()
|
||||
{
|
||||
if( m_pref->getAppPrefChanged() )
|
||||
{
|
||||
|
||||
@@ -242,9 +242,9 @@ class SysTrayXLink : public QObject
|
||||
void signalWindowPositions( QList< QPoint > window_positions );
|
||||
|
||||
/**
|
||||
* @brief signalStartupApp. Signal the startup app launch request.
|
||||
* @brief signalStartApp. Signal the start app launch request.
|
||||
*/
|
||||
void signalStartupApp();
|
||||
void signalStartApp();
|
||||
|
||||
/**
|
||||
* @brief signalCloseApp. Signal the close app launch request.
|
||||
@@ -354,14 +354,14 @@ class SysTrayXLink : public QObject
|
||||
void slotThemeChange();
|
||||
|
||||
/**
|
||||
* @brief slotStartupAppChange. Slot for handling startup application change signals.
|
||||
* @brief slotStartAppChange. Slot for handling start application change signals.
|
||||
*/
|
||||
void slotStartupAppChange();
|
||||
void slotStartAppChange();
|
||||
|
||||
/**
|
||||
* @brief slotStartupAppArgsChange. Slot for handling startup application arguments change signals.
|
||||
* @brief slotStartAppArgsChange. Slot for handling start application arguments change signals.
|
||||
*/
|
||||
void slotStartupAppArgsChange();
|
||||
void slotStartAppArgsChange();
|
||||
|
||||
/**
|
||||
* @brief slotCloseAppChange. Slot for handling close application change signals.
|
||||
|
||||
@@ -314,19 +314,19 @@
|
||||
"description": "Title for Apps options"
|
||||
},
|
||||
|
||||
"startup_application": {
|
||||
"start_application": {
|
||||
"message": "Startanwendung",
|
||||
"description": "The startup application parameters"
|
||||
"description": "The start application parameters"
|
||||
},
|
||||
|
||||
"startup_app": {
|
||||
"start_app": {
|
||||
"message": "Anwendung: ",
|
||||
"description": "The startup application"
|
||||
"description": "The start application"
|
||||
},
|
||||
|
||||
"startup_app_args": {
|
||||
"start_app_args": {
|
||||
"message": "Argumente: ",
|
||||
"description": "Arguments for a startup application"
|
||||
"description": "Arguments for a start application"
|
||||
},
|
||||
|
||||
"close_application": {
|
||||
|
||||
@@ -314,19 +314,19 @@
|
||||
"description": "Title for Apps options"
|
||||
},
|
||||
|
||||
"startup_application": {
|
||||
"start_application": {
|
||||
"message": "Εφαρμογή εκκίνησης",
|
||||
"description": "The startup application parameters"
|
||||
"description": "The start application parameters"
|
||||
},
|
||||
|
||||
"startup_app": {
|
||||
"start_app": {
|
||||
"message": "Εφαρμογή: ",
|
||||
"description": "The startup application"
|
||||
"description": "The start application"
|
||||
},
|
||||
|
||||
"startup_app_args": {
|
||||
"start_app_args": {
|
||||
"message": "Επιχειρήματα: ",
|
||||
"description": "Arguments for a startup application"
|
||||
"description": "Arguments for a start application"
|
||||
},
|
||||
|
||||
"close_application": {
|
||||
|
||||
@@ -314,19 +314,19 @@
|
||||
"description": "Title for Apps options"
|
||||
},
|
||||
|
||||
"startup_application": {
|
||||
"message": "Startup application",
|
||||
"description": "The startup application parameters"
|
||||
"start_application": {
|
||||
"message": "Start application",
|
||||
"description": "The start application parameters"
|
||||
},
|
||||
|
||||
"startup_app": {
|
||||
"start_app": {
|
||||
"message": "Application: ",
|
||||
"description": "The startup application"
|
||||
"description": "The start application"
|
||||
},
|
||||
|
||||
"startup_app_args": {
|
||||
"start_app_args": {
|
||||
"message": "Arguments: ",
|
||||
"description": "Arguments for a startup application"
|
||||
"description": "Arguments for a start application"
|
||||
},
|
||||
|
||||
"close_application": {
|
||||
|
||||
@@ -314,19 +314,19 @@
|
||||
"description": "Title for Apps options"
|
||||
},
|
||||
|
||||
"startup_application": {
|
||||
"start_application": {
|
||||
"message": "Applicazione di avvio",
|
||||
"description": "The startup application parameters"
|
||||
"description": "The start application parameters"
|
||||
},
|
||||
|
||||
"startup_app": {
|
||||
"start_app": {
|
||||
"message": "Applicazione: ",
|
||||
"description": "The startup application"
|
||||
"description": "The start application"
|
||||
},
|
||||
|
||||
"startup_app_args": {
|
||||
"start_app_args": {
|
||||
"message": "Argomenti: ",
|
||||
"description": "Arguments for a startup application"
|
||||
"description": "Arguments for a start application"
|
||||
},
|
||||
|
||||
"close_application": {
|
||||
|
||||
@@ -314,19 +314,19 @@
|
||||
"description": "Title for Apps options"
|
||||
},
|
||||
|
||||
"startup_application": {
|
||||
"start_application": {
|
||||
"message": "Start programma",
|
||||
"description": "The startup application parameters"
|
||||
"description": "The start application parameters"
|
||||
},
|
||||
|
||||
"startup_app": {
|
||||
"start_app": {
|
||||
"message": "Programma: ",
|
||||
"description": "The startup application"
|
||||
"description": "The start application"
|
||||
},
|
||||
|
||||
"startup_app_args": {
|
||||
"start_app_args": {
|
||||
"message": "Argumenten: ",
|
||||
"description": "Arguments for a startup application"
|
||||
"description": "Arguments for a start application"
|
||||
},
|
||||
|
||||
"close_application": {
|
||||
|
||||
@@ -314,19 +314,19 @@
|
||||
"description": "Title for Apps options"
|
||||
},
|
||||
|
||||
"startup_application": {
|
||||
"start_application": {
|
||||
"message": "Aplicativo de inicialização",
|
||||
"description": "The startup application parameters"
|
||||
"description": "The start application parameters"
|
||||
},
|
||||
|
||||
"startup_app": {
|
||||
"start_app": {
|
||||
"message": "Aplicativo: ",
|
||||
"description": "The startup application"
|
||||
"description": "The start application"
|
||||
},
|
||||
|
||||
"startup_app_args": {
|
||||
"start_app_args": {
|
||||
"message": "Argumentos: ",
|
||||
"description": "Arguments for a startup application"
|
||||
"description": "Arguments for a start application"
|
||||
},
|
||||
|
||||
"close_application": {
|
||||
|
||||
@@ -314,19 +314,19 @@
|
||||
"description": "Title for Apps options"
|
||||
},
|
||||
|
||||
"startup_application": {
|
||||
"start_application": {
|
||||
"message": "Приложение при запуске",
|
||||
"description": "The startup application parameters"
|
||||
"description": "The start application parameters"
|
||||
},
|
||||
|
||||
"startup_app": {
|
||||
"start_app": {
|
||||
"message": "Приложение: ",
|
||||
"description": "The startup application"
|
||||
"description": "The start application"
|
||||
},
|
||||
|
||||
"startup_app_args": {
|
||||
"start_app_args": {
|
||||
"message": "аргументы: ",
|
||||
"description": "Arguments for a startup application"
|
||||
"description": "Arguments for a start application"
|
||||
},
|
||||
|
||||
"close_application": {
|
||||
|
||||
@@ -6,8 +6,8 @@ var SysTrayX = {
|
||||
|
||||
hideDefaultIcon: false,
|
||||
|
||||
startupApp: "",
|
||||
startupAppArgs: "",
|
||||
startApp: "",
|
||||
startAppArgs: "",
|
||||
};
|
||||
|
||||
SysTrayX.Info = {
|
||||
@@ -66,8 +66,8 @@ SysTrayX.Messaging = {
|
||||
// Send preferences to app
|
||||
SysTrayX.Messaging.sendPreferences();
|
||||
|
||||
// Send startup app trigger
|
||||
SysTrayX.Messaging.sendStartupApp();
|
||||
// Send start app trigger
|
||||
SysTrayX.Messaging.sendStartApp();
|
||||
|
||||
// Let us wait until TB is ready, needed for TB91 and higher?
|
||||
const startupDelay = await storage()
|
||||
@@ -581,10 +581,10 @@ SysTrayX.Messaging = {
|
||||
});
|
||||
},
|
||||
|
||||
sendStartupApp: function () {
|
||||
sendStartApp: function () {
|
||||
SysTrayX.Link.postSysTrayXMessage({
|
||||
startupApp: SysTrayX.startupApp,
|
||||
startupAppArgs: SysTrayX.startupAppArgs,
|
||||
startApp: SysTrayX.startApp,
|
||||
startAppArgs: SysTrayX.startAppArgs,
|
||||
});
|
||||
},
|
||||
|
||||
@@ -618,8 +618,8 @@ SysTrayX.Messaging = {
|
||||
"countType",
|
||||
"startupDelay",
|
||||
"theme",
|
||||
"startupApp",
|
||||
"startupAppArgs",
|
||||
"startApp",
|
||||
"startAppArgs",
|
||||
"closeApp",
|
||||
"closeAppArgs",
|
||||
])
|
||||
@@ -656,8 +656,8 @@ SysTrayX.Messaging = {
|
||||
const countType = result.countType || "0";
|
||||
const startupDelay = result.startupDelay || "5";
|
||||
const theme = result.theme || "0";
|
||||
const startupApp = result.startupApp || "";
|
||||
const startupAppArgs = result.startupAppArgs || "";
|
||||
const startApp = result.startApp || "";
|
||||
const startAppArgs = result.startAppArgs || "";
|
||||
const closeApp = result.closeApp || "";
|
||||
const closeAppArgs = result.closeAppArgs || "";
|
||||
|
||||
@@ -691,8 +691,8 @@ SysTrayX.Messaging = {
|
||||
countType,
|
||||
startupDelay,
|
||||
theme,
|
||||
startupApp,
|
||||
startupAppArgs,
|
||||
startApp,
|
||||
startAppArgs,
|
||||
closeApp,
|
||||
closeAppArgs,
|
||||
},
|
||||
@@ -907,17 +907,17 @@ SysTrayX.Link = {
|
||||
});
|
||||
}
|
||||
|
||||
const startupApp = response["preferences"].startupApp;
|
||||
if (startupApp !== undefined) {
|
||||
const startApp = response["preferences"].startApp;
|
||||
if (startApp !== undefined) {
|
||||
await storage().set({
|
||||
startupApp: startupApp,
|
||||
startApp: startApp,
|
||||
});
|
||||
}
|
||||
|
||||
const startupAppArgs = response["preferences"].startupAppArgs;
|
||||
if (startupAppArgs !== undefined) {
|
||||
const startAppArgs = response["preferences"].startAppArgs;
|
||||
if (startAppArgs !== undefined) {
|
||||
await storage().set({
|
||||
startupAppArgs: startupAppArgs,
|
||||
startAppArgs: startAppArgs,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1032,9 +1032,9 @@ async function start() {
|
||||
SysTrayX.hideDefaultIcon = hideDefaultIcon;
|
||||
|
||||
// Get startup app launch parameters
|
||||
const {startupApp, startupAppArgs} = await getStartupAppParam();
|
||||
SysTrayX.startupApp = startupApp;
|
||||
SysTrayX.startupAppArgs = startupAppArgs;
|
||||
const {startApp, startAppArgs} = await getStartAppParam();
|
||||
SysTrayX.startApp = startApp;
|
||||
SysTrayX.startAppArgs = startAppArgs;
|
||||
|
||||
// Used sync storage
|
||||
// const inUse = await browser.storage.sync.getBytesInUse();
|
||||
|
||||
@@ -138,7 +138,7 @@ body {
|
||||
padding: 10px 10px 10px 10px;
|
||||
}
|
||||
|
||||
#startupapplicationselect {
|
||||
#startapplicationselect {
|
||||
width: 25em;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
|
||||
@@ -289,19 +289,19 @@ async function getCountType() {
|
||||
//
|
||||
// Get startup app parameters
|
||||
//
|
||||
async function getStartupAppParam() {
|
||||
async function getStartAppParam() {
|
||||
function resolve(result) {
|
||||
const startupApp = result.startupApp || "";
|
||||
const startupAppArgs = result.startupAppArgs || "";
|
||||
return { startupApp, startupAppArgs };
|
||||
const startApp = result.startApp || "";
|
||||
const startAppArgs = result.startAppArgs || "";
|
||||
return { startApp, startAppArgs };
|
||||
}
|
||||
|
||||
function reject() {
|
||||
return { startupApp: "", startupAppArgs: "" };
|
||||
return { startApp: "", startAppArgs: "" };
|
||||
}
|
||||
|
||||
return await storage()
|
||||
.get(["startupApp", "startupAppArgs"])
|
||||
.get(["startApp", "startAppArgs"])
|
||||
.then(resolve, reject);
|
||||
}
|
||||
|
||||
|
||||
@@ -517,29 +517,29 @@
|
||||
<form name="appsform">
|
||||
<h3>__MSG_apps__</h3>
|
||||
|
||||
<table id="startupapplicationselect">
|
||||
<table id="startapplicationselect">
|
||||
<caption>
|
||||
__MSG_startup_application__
|
||||
__MSG_start_application__
|
||||
</caption>
|
||||
<tr id="startupApp">
|
||||
<tr id="startApp">
|
||||
<td>
|
||||
<label>__MSG_startup_app__</label>
|
||||
<label>__MSG_start_app__</label>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
id="startupAppInput"
|
||||
id="startAppInput"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="startupAppArgs">
|
||||
<tr id="startAppArgs">
|
||||
<td>
|
||||
<label>__MSG_startup_app_args__</label>
|
||||
<label>__MSG_start_app_args__</label>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
id="startupAppArgsInput"
|
||||
id="startAppArgsInput"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -303,10 +303,10 @@ SysTrayX.SaveOptions = {
|
||||
//
|
||||
// Save launch parameters
|
||||
//
|
||||
const startupAppInput = document.getElementById("startupAppInput");
|
||||
const startupApp = startupAppInput.value;
|
||||
const startupAppArgsInput = document.getElementById("startupAppArgsInput");
|
||||
const startupAppArgs = startupAppArgsInput.value;
|
||||
const startAppInput = document.getElementById("startAppInput");
|
||||
const startApp = startAppInput.value;
|
||||
const startAppArgsInput = document.getElementById("startAppArgsInput");
|
||||
const startAppArgs = startAppArgsInput.value;
|
||||
|
||||
const closeAppInput = document.getElementById("closeAppInput");
|
||||
const closeApp = closeAppInput.value;
|
||||
@@ -315,8 +315,8 @@ SysTrayX.SaveOptions = {
|
||||
|
||||
// Store launch parameters
|
||||
await storage().set({
|
||||
startupApp: startupApp,
|
||||
startupAppArgs: startupAppArgs,
|
||||
startApp: startApp,
|
||||
startAppArgs: startAppArgs,
|
||||
closeApp: closeApp,
|
||||
closeAppArgs: closeAppArgs,
|
||||
});
|
||||
@@ -537,17 +537,17 @@ SysTrayX.RestoreOptions = {
|
||||
// Restore launch parameters
|
||||
//
|
||||
await storage()
|
||||
.get("startupApp")
|
||||
.get("startApp")
|
||||
.then(
|
||||
SysTrayX.RestoreOptions.setStartupApp,
|
||||
SysTrayX.RestoreOptions.onStartupAppError
|
||||
SysTrayX.RestoreOptions.setStartApp,
|
||||
SysTrayX.RestoreOptions.onStartAppError
|
||||
);
|
||||
|
||||
await storage()
|
||||
.get("startupAppArgs")
|
||||
.get("startAppArgs")
|
||||
.then(
|
||||
SysTrayX.RestoreOptions.setStartupAppArgs,
|
||||
SysTrayX.RestoreOptions.onStartupAppArgsError
|
||||
SysTrayX.RestoreOptions.setStartAppArgs,
|
||||
SysTrayX.RestoreOptions.onStartAppArgsError
|
||||
);
|
||||
|
||||
await storage()
|
||||
@@ -966,29 +966,29 @@ SysTrayX.RestoreOptions = {
|
||||
//
|
||||
// Restore startup app callbacks
|
||||
//
|
||||
setStartupApp: function (result) {
|
||||
const startupApp = result.startupApp || "";
|
||||
setStartApp: function (result) {
|
||||
const startApp = result.startApp || "";
|
||||
|
||||
const startupAppInput = document.getElementById("startupAppInput");
|
||||
startupAppInput.value = startupApp;
|
||||
const startAppInput = document.getElementById("startAppInput");
|
||||
startAppInput.value = startApp;
|
||||
},
|
||||
|
||||
onStartupAppError: function (error) {
|
||||
console.log(`StartupApp Error: ${error}`);
|
||||
onStartAppError: function (error) {
|
||||
console.log(`StartApp Error: ${error}`);
|
||||
},
|
||||
|
||||
//
|
||||
// Restore startup app args callbacks
|
||||
//
|
||||
setStartupAppArgs: function (result) {
|
||||
const startupAppArgs = result.startupAppArgs || "";
|
||||
setStartAppArgs: function (result) {
|
||||
const startAppArgs = result.startAppArgs || "";
|
||||
|
||||
const startupAppArgsInput = document.getElementById("startupAppArgsInput");
|
||||
startupAppArgsInput.value = startupAppArgs;
|
||||
const startAppArgsInput = document.getElementById("startAppArgsInput");
|
||||
startAppArgsInput.value = startAppArgs;
|
||||
},
|
||||
|
||||
onStartupAppArgsError: function (error) {
|
||||
console.log(`StartupAppArgs Error: ${error}`);
|
||||
onStartAppArgsError: function (error) {
|
||||
console.log(`StartAppArgs Error: ${error}`);
|
||||
},
|
||||
|
||||
//
|
||||
@@ -1269,14 +1269,14 @@ SysTrayX.StorageChanged = {
|
||||
theme: changes[item].newValue,
|
||||
});
|
||||
}
|
||||
if (item === "startupApp") {
|
||||
SysTrayX.RestoreOptions.setStartupApp({
|
||||
startupApp: changes[item].newValue,
|
||||
if (item === "startApp") {
|
||||
SysTrayX.RestoreOptions.setStartApp({
|
||||
startApp: changes[item].newValue,
|
||||
});
|
||||
}
|
||||
if (item === "startupAppArgs") {
|
||||
SysTrayX.RestoreOptions.setStartupAppArgs({
|
||||
startupAppArgs: changes[item].newValue,
|
||||
if (item === "startAppArgs") {
|
||||
SysTrayX.RestoreOptions.setStartAppArgs({
|
||||
startAppArgs: changes[item].newValue,
|
||||
});
|
||||
}
|
||||
if (item === "closeApp") {
|
||||
@@ -1321,7 +1321,7 @@ SysTrayX.StorageChanged = {
|
||||
document.getElementById("minimizeiconselect").className = "active";
|
||||
document.getElementById("closeselect").className = "active";
|
||||
document.getElementById("themeselect").className = "active";
|
||||
document.getElementById("startupapplicationselect").className = "active";
|
||||
document.getElementById("startapplicationselect").className = "active";
|
||||
document.getElementById("closeapplicationselect").className = "active";
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user