AntiMicroX
mainwindow.h
Go to the documentation of this file.
1 /* antimicrox Gamepad to KB+M event mapper
2  * Copyright (C) 2015 Travis Nickles <nickles.travis@gmail.com>
3  * Copyright (C) 2020 Jagoda Górska <juliagoda.pl@protonmail>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9 
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14 
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef MAINWINDOW_H
20 #define MAINWINDOW_H
21 
22 #include <SDL2/SDL_joystick.h>
23 
24 #include <QMainWindow>
25 #include <QMap>
26 #include <QSystemTrayIcon>
27 
28 #ifdef CHECK_FOR_UPDATES
29  #include <QNetworkAccessManager>
30  #include <QNetworkReply>
31 #endif
32 
33 class InputDevice;
34 class CommandLineUtility;
35 class AntiMicroSettings;
36 class QWidget;
37 class QTranslator;
38 class AutoProfileInfo;
39 class AutoProfileWatcher;
40 class QLocalServer;
41 class AboutDialog;
42 class QAction;
43 class QMenu;
44 class QShowEvent;
45 class QEvent;
46 class QCloseEvent;
47 class JoyTabWidget;
48 
49 namespace Ui {
50 class MainWindow;
51 }
52 
53 class MainWindow : public QMainWindow
54 {
55  Q_OBJECT
56 
57  public:
58  MainWindow(QMap<SDL_JoystickID, InputDevice *> *joysticks, CommandLineUtility *cmdutility, AntiMicroSettings *settings,
59  bool graphical = true, QWidget *parent = nullptr);
60  ~MainWindow();
61 
62  bool getGraphicalStatus();
63 
64  void setTranslator(QTranslator *translator);
65  QTranslator *getTranslator() const;
66 
67  void setAppTranslator(QTranslator *translator);
68  QTranslator *getAppTranslator() const;
69 
70  QMap<int, QList<QAction *>> const &getProfileActions();
71 
72  bool isKeypadUnlocked();
73 
74  protected:
75  virtual void showEvent(QShowEvent *event);
76  virtual void changeEvent(QEvent *event);
77  virtual void closeEvent(QCloseEvent *event);
78 
79  bool eventFilter(QObject *obj, QEvent *event) override;
80 
81  void retranslateUi();
82  void loadConfigFile(QString fileLocation, int joystickIndex = 0); // MainConfiguration class
83  void loadConfigFile(QString fileLocation, QString controllerID); // MainConfiguration class
84  void unloadCurrentConfig(int joystickIndex = 0); // MainConfiguration class
85  void unloadCurrentConfig(QString controllerID); // MainConfiguration class
86  void changeStartSetNumber(int startSetNumber, QString controllerID); // MainConfiguration class
87  void changeStartSetNumber(int startSetNumber, int joystickIndex = 0); // MainConfiguration class
88  void convertGUIDtoUniqueID(InputDevice *currentDevice, QString controlEntryLastSelectedGUID);
89 
90  signals:
92  void readConfig(int index); // MainConfiguration class
93  void mappingUpdated(QString mapping, InputDevice *device);
94 
95  public slots:
96  void checkEachTenMinutesBattery(QMap<SDL_JoystickID, InputDevice *> *joysticks);
97  void fillButtons();
98  void makeJoystickTabs();
99  void alterConfigFromSettings(); // MainConfiguration class
100  void fillButtonsID(InputDevice *joystick);
101  void fillButtonsMap(QMap<SDL_JoystickID, InputDevice *> *joysticks);
102  void startJoystickRefresh();
103  void hideWindow();
104  void saveAppConfig(); // MainConfiguration class
105  void loadAppConfig(bool forceRefresh = false); // MainConfiguration class
106  void removeJoyTabs();
107  void quitProgram();
108  void changeWindowStatus();
110  void testMappingUpdateNow(int index, InputDevice *device);
111  void removeJoyTab(SDL_JoystickID deviceID);
112  void addJoyTab(InputDevice *device);
113  void selectControllerJoyTab(QString GUID);
115 
116  private slots:
117  void refreshTrayIconMenu();
118  void trayIconClickAction(QSystemTrayIcon::ActivationReason reason);
119  void mainMenuChange(QMenu *tempMenu);
120  void disableFlashActions();
121  void enableFlashActions();
122 
123  void joystickTrayShow(QMenu *tempmenu);
125  void profileTrayActionTriggered(QAction *action, bool checked);
126 
127  void populateTrayIcon();
128  void openAboutDialog();
130  void openKeyCheckerDialog();
131  void openGitHubPage();
132  void openIssuesPage();
133  void openWikiPage();
134  void openCalibration();
135  void propogateNameDisplayStatus(JoyTabWidget *tabwidget, bool displayNames);
136  void changeLanguage(QString language); // MainConfiguration class
137  void openMainSettingsDialog();
139  void checkHideEmptyOption();
140 
141 #ifdef Q_OS_WIN
142  void restartAsElevated();
143 #endif
144 
145  void propogateMappingUpdate(QString mapping, InputDevice *device);
146  void autoprofileLoad(AutoProfileInfo *info); // MainConfiguration class
147  void checkAutoProfileWatcherTimer(); // MainConfiguration class
148  void updateMenuOptions();
149 
150  private:
154  void showBatteryLevel(SDL_JoystickPowerLevel powerLevSDL, QString batteryLev, QString percent, InputDevice *device);
155 
156  Ui::MainWindow *ui;
157 
158  QMap<SDL_JoystickID, InputDevice *> *m_joysticks;
159  QMap<int, QList<QAction *>> profileActions;
160 
161  QSystemTrayIcon *trayIcon;
162  QMenu *trayIconMenu;
166  QTranslator *m_translator;
167  QTranslator *m_appTranslator;
169 
170  QAction *hideAction;
171  QAction *restoreAction;
172  QAction *closeAction;
173  QAction *updateJoy;
174 
178 
179 #ifdef CHECK_FOR_UPDATES
180  QNetworkAccessManager m_network_manager; // Used for checking updates
181  void networkManagerFinished(QNetworkReply *reply);
182  void updateButtonPressed();
183 #endif
184 };
185 
186 #endif // MAINWINDOW_H
ControllerOptionsInfo
Definition: commandlineutility.h:29
CommandLineUtility::hasControllerID
bool hasControllerID()
Definition: commandlineutility.cpp:389
JoyTabWidget
Widget containing tab representing selected joystick.
Definition: joytabwidget.h:50
InputDevice::setCounterUniques
virtual void setCounterUniques(int counter)=0
DPadPushButton::enableFlashes
void enableFlashes() override
Definition: dpadpushbutton.cpp:66
MainWindow::openCalibration
void openCalibration()
Definition: mainwindow.cpp:1085
JoyControlStickPushButton::enableFlashes
void enableFlashes() override
Definition: joycontrolstickpushbutton.cpp:72
joycontrolstickpushbutton.h
VERBOSE
#define VERBOSE()
Definition: logger.h:42
MainWindow::trayIconClickAction
void trayIconClickAction(QSystemTrayIcon::ActivationReason reason)
Definition: mainwindow.cpp:675
MainWindow::m_translator
QTranslator * m_translator
Definition: mainwindow.h:166
MainWindow::showEvent
virtual void showEvent(QShowEvent *event)
Definition: mainwindow.cpp:939
AutoProfileWatcher::isUniqueIDLocked
bool isUniqueIDLocked(QString uniqueID)
Definition: autoprofilewatcher.cpp:607
joystickstatuswindow.h
DEBUG
#define DEBUG()
Definition: logger.h:41
AutoProfileInfo::getUniqueID
QString getUniqueID() const
Definition: autoprofileinfo.cpp:58
CommandLineUtility
Definition: commandlineutility.h:81
PadderCommon::programVersion
const QString programVersion
Definition: common.h:152
MainWindow::checkAutoProfileWatcherTimer
void checkAutoProfileWatcherTimer()
Definition: mainwindow.cpp:1646
MainWindow::fillButtonsID
void fillButtonsID(InputDevice *joystick)
Definition: mainwindow.cpp:345
mainsettingsdialog.h
MainWindow::mainMenuChange
void mainMenuChange(QMenu *tempMenu)
Definition: mainwindow.cpp:689
MainWindow::saveAppConfig
void saveAppConfig()
Definition: mainwindow.cpp:703
MainWindow::m_graphical
bool m_graphical
Definition: mainwindow.h:177
PadderCommon::reloadTranslations
void reloadTranslations(QTranslator *translator, QTranslator *appTranslator, QString language)
Reload main application and base Qt translation files.
Definition: common.cpp:125
MainWindow::m_cmdutility
CommandLineUtility * m_cmdutility
Definition: mainwindow.h:164
MainWindow::getTranslator
QTranslator * getTranslator() const
Definition: mainwindow.cpp:1808
MainWindow::loadConfigFile
void loadConfigFile(QString fileLocation, int joystickIndex=0)
Definition: mainwindow.cpp:996
MainWindow::isKeypadUnlocked
bool isKeypadUnlocked()
Definition: mainwindow.cpp:1830
MainWindow::signalDisconnect
bool signalDisconnect
Definition: mainwindow.h:175
Calibration
Opens calibration window used for calibration.
Definition: calibration.h:40
JoyControlStickButtonPushButton::enableFlashes
void enableFlashes() override
Definition: joycontrolstickbuttonpushbutton.cpp:81
dpadpushbutton.h
JoyAxisWidget::enableFlashes
void enableFlashes() override
Definition: joyaxiswidget.cpp:63
JoyButtonWidget::tryFlash
void tryFlash()
Definition: joybuttonwidget.cpp:78
ControllerOptionsInfo::hasControllerID
bool hasControllerID()
Definition: commandlineutility.h:51
ControllerOptionsInfo::getControllerNumber
int getControllerNumber()
Definition: commandlineutility.h:47
MainWindow::checkHideEmptyOption
void checkHideEmptyOption()
Definition: mainwindow.cpp:1380
INFO
#define INFO()
Definition: logger.h:43
joycontrolstickbuttonpushbutton.h
JoyTabWidget::convToUniqueIDControllerGroupSett
void convToUniqueIDControllerGroupSett(QSettings *sett, QString guidControllerSett, QString uniqueControllerSett)
Definition: joytabwidget.cpp:2567
MainWindow::handleInstanceDisconnect
void handleInstanceDisconnect()
Definition: mainwindow.cpp:1052
MainWindow::changeLanguage
void changeLanguage(QString language)
Change language used by the application.
Definition: mainwindow.cpp:1251
InputDevice::getGUIDString
virtual QString getGUIDString() const =0
JoyControlStickPushButton
Definition: joycontrolstickpushbutton.h:27
MainWindow::selectControllerJoyTab
void selectControllerJoyTab(QString GUID)
Select appropriate tab that has a device with the specified GUID.
Definition: mainwindow.cpp:1745
PadderCommon::loadIcon
QIcon loadIcon(const QString &name, const QString &fallback_location)
Universal method for loading icons.
Definition: common.cpp:162
MainWindow::readConfig
void readConfig(int index)
JoySensorPushButton::enableFlashes
void enableFlashes() override
Enables highlight when the sensor axis is moved.
Definition: joysensorpushbutton.cpp:76
InputDevice
Abstract class representing a hardware input device, e.g a joystick or controller.
Definition: inputdevice.h:50
CHECK_BATTERIES_MSEC
#define CHECK_BATTERIES_MSEC
Definition: mainwindow.cpp:86
MainWindow::MainWindow
MainWindow(QMap< SDL_JoystickID, InputDevice * > *joysticks, CommandLineUtility *cmdutility, AntiMicroSettings *settings, bool graphical=true, QWidget *parent=nullptr)
Definition: mainwindow.cpp:88
MainWindow::openMainSettingsDialog
void openMainSettingsDialog()
Build list of current input devices and pass it to settings dialog instance. Open Settings dialog.
Definition: mainwindow.cpp:1216
MainWindow::setTranslator
void setTranslator(QTranslator *translator)
Definition: mainwindow.cpp:1806
AutoProfileWatcher::disconnectWindowTimer
static void disconnectWindowTimer()
Definition: autoprofilewatcher.cpp:67
InputDevice::getJoyNumber
int getJoyNumber()
Definition: inputdevice.cpp:58
ControllerOptionsInfo::getJoyStartSetNumber
int getJoyStartSetNumber()
Definition: commandlineutility.h:63
MainWindow::setAppTranslator
void setAppTranslator(QTranslator *translator)
Definition: mainwindow.cpp:1810
JoystickStatusWindow
The joystick "Properties" window. Shows various raw values to the user.
Definition: joystickstatuswindow.h:36
MainWindow::openJoystickStatusWindow
void openJoystickStatusWindow()
Definition: mainwindow.cpp:1058
MainWindow::testMappingUpdateNow
void testMappingUpdateNow(int index, InputDevice *device)
Definition: mainwindow.cpp:1434
inputdevicexml.h
MainWindow::~MainWindow
~MainWindow()
Definition: mainwindow.cpp:224
MainSettingsDialog
Definition: mainsettingsdialog.h:39
MainWindow::autoprofileLoad
void autoprofileLoad(AutoProfileInfo *info)
Definition: mainwindow.cpp:1542
MainWindow::checkEachTenMinutesBattery
void checkEachTenMinutesBattery(QMap< SDL_JoystickID, InputDevice * > *joysticks)
Definition: mainwindow.cpp:1884
JoyTabWidget::unloadConfig
void unloadConfig()
Definition: joytabwidget.cpp:1439
MainWindow::getProfileActions
const QMap< int, QList< QAction * > > & getProfileActions()
Definition: mainwindow.cpp:1828
InputDevice::getStringIdentifier
virtual QString getStringIdentifier()
Definition: inputdevice.cpp:1220
MainWindow::openKeyCheckerDialog
void openKeyCheckerDialog()
Definition: mainwindow.cpp:1073
winextras.h
MainWindow::alterConfigFromSettings
void alterConfigFromSettings()
Definition: mainwindow.cpp:237
JoySensorPushButton
The central button in a SensorPushButtonGroup.
Definition: joysensorpushbutton.h:27
MainWindow::showBatteryLevel
void showBatteryLevel(SDL_JoystickPowerLevel powerLevSDL, QString batteryLev, QString percent, InputDevice *device)
Check state of batteries in controllers and notify user (only when powerLevSDL matches current batter...
Definition: mainwindow.cpp:1688
MainWindow::propogateNameDisplayStatus
void propogateNameDisplayStatus(JoyTabWidget *tabwidget, bool displayNames)
Definition: mainwindow.cpp:1154
AntiMicroSettings
Definition: antimicrosettings.h:26
JoyButtonWidget::enableFlashes
void enableFlashes() override
Definition: joybuttonwidget.cpp:55
MainWindow::getAppTranslator
QTranslator * getAppTranslator() const
Definition: mainwindow.cpp:1812
joydpadbuttonwidget.h
autoprofilewatcher.h
JoyTabWidget::getConfigName
QString getConfigName(int index)
Definition: joytabwidget.cpp:1235
JoyControlStickButtonPushButton
Definition: joycontrolstickbuttonpushbutton.h:27
MainWindow::m_settings
AntiMicroSettings * m_settings
Definition: mainwindow.h:165
joystick.h
InputDevice::getRealJoyNumber
int getRealJoyNumber()
Definition: inputdevice.cpp:60
MainWindow::updateJoy
QAction * updateJoy
Definition: mainwindow.h:173
MainWindow::populateTrayIcon
void populateTrayIcon()
Definition: mainwindow.cpp:426
MainWindow::refreshTabHelperThreads
void refreshTabHelperThreads()
Definition: mainwindow.cpp:1816
MainWindow::propogateMappingUpdate
void propogateMappingUpdate(QString mapping, InputDevice *device)
Definition: mainwindow.cpp:1432
MainWindow::changeWindowStatus
void changeWindowStatus()
Definition: mainwindow.cpp:1776
joybuttonwidget.h
AutoProfileInfo::isCurrentDefault
bool isCurrentDefault()
is this autoprofile loaded by default? There is one default profile for all of controllers and there ...
Definition: autoprofileinfo.cpp:117
JoyDPadButtonWidget
Definition: joydpadbuttonwidget.h:27
gamecontrollermappingdialog.h
AboutDialog
Definition: aboutdialog.h:30
JoyTabWidget::saveDeviceSettings
void saveDeviceSettings(bool sync=false)
Definition: joytabwidget.cpp:1441
joysensorpushbutton.h
MainWindow::showStickAssignmentDialog
void showStickAssignmentDialog()
Show abstracted controller dialog for use in SDL 1.2. No longer used for versions of the program runn...
Definition: mainwindow.cpp:1283
aboutdialog.h
DPadPushButton::tryFlash
void tryFlash()
Definition: dpadpushbutton.cpp:81
InputDevice::getJoyHandle
SDL_Joystick * getJoyHandle() const
Definition: inputdevice.cpp:1727
MainWindow::mappingUpdated
void mappingUpdated(QString mapping, InputDevice *device)
MainWindow::singleTrayProfileMenuShow
void singleTrayProfileMenuShow()
Display a version of the tray menu that shows all recent profiles for all controllers in one list.
Definition: mainwindow.cpp:1301
JoyTabWidget::discardUnsavedProfileChanges
bool discardUnsavedProfileChanges()
Definition: joytabwidget.cpp:1669
QKeyDisplayDialog
Definition: qkeydisplaydialog.h:31
AutoProfileWatcher::foundApplicableProfile
void foundApplicableProfile(AutoProfileInfo *info)
MainWindow::joystickRefreshRequested
void joystickRefreshRequested()
InputDevice::getSDLName
virtual QString getSDLName()=0
Ui
Definition: aboutdialog.h:26
MainWindow
Definition: mainwindow.h:53
JoyTabWidget::namesDisplayChanged
void namesDisplayChanged(bool status)
InputDevice::getName
virtual QString getName()=0
MainWindow::loadAppConfig
void loadAppConfig(bool forceRefresh=false)
Definition: mainwindow.cpp:750
JoyAxisWidget::disableFlashes
void disableFlashes() override
Definition: joyaxiswidget.cpp:56
AutoProfileWatcher::stopTimer
void stopTimer()
Definition: autoprofilewatcher.cpp:75
MainWindow::updateMenuOptions
void updateMenuOptions()
TODO: Check if method is save to remove.
Definition: mainwindow.cpp:1670
JoyControlStickPushButton::tryFlash
void tryFlash()
Definition: joycontrolstickpushbutton.cpp:86
PadderCommon::githubIssuesPage
const QString githubIssuesPage
Definition: common.h:141
JoyTabWidget::loadSettings
void loadSettings(bool forceRefresh=false)
Definition: joytabwidget.cpp:1098
AutoProfileWatcher::syncProfileAssignment
void syncProfileAssignment()
Definition: autoprofilewatcher.cpp:336
Joystick
General input device (which is not a typical gamepad like steering wheels, flight sticks etc....
Definition: joystick.h:34
joyaxiswidget.h
AutoProfileWatcher::getCustomDefaults
QList< AutoProfileInfo * > * getCustomDefaults()
Definition: autoprofilewatcher.cpp:591
JoyControlStickButtonPushButton::tryFlash
void tryFlash()
Definition: joycontrolstickbuttonpushbutton.cpp:125
advancestickassignmentdialog.h
MainWindow::quitProgram
void quitProgram()
Definition: mainwindow.cpp:645
JoyTabWidget::getCurrentConfigName
QString getCurrentConfigName()
Definition: joytabwidget.cpp:1233
MainWindow::enableFlashActions
void enableFlashActions()
Definition: mainwindow.cpp:817
MainWindow::removeJoyTabs
void removeJoyTabs()
Definition: mainwindow.cpp:1038
reason
if the work is an executable linked with the with the complete machine readable work that uses the as object code and or source so that the user can modify the Library and then relink to produce a modified executable containing the modified rather than copying library functions into the if the user installs as long as the modified version is interface compatible with the version that the work was made with c Accompany the work with a written valid for at least three to give the same user the materials specified in for a charge no more than the cost of performing this distribution d If distribution of the work is made by offering access to copy from a designated offer equivalent access to copy the above specified materials from the same place e Verify that the user has already received a copy of these materials or that you have already sent this user a copy For an the required form of the work that uses the Library must include any data and utility programs needed for reproducing the executable from it as a special the materials to be distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system Such a contradiction means you cannot use both them and the Library together in an executable that you distribute You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities not covered by this and distribute such a combined provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise and provided that you do these two uncombined with any other library facilities This must be distributed under the terms of the Sections above b Give prominent notice with the combined library of the fact that part of it is a work based on the and explaining where to find the accompanying uncombined form of the same work You may not link or distribute the Library except as expressly provided under this License Any attempt otherwise to link or distribute the Library is and will automatically terminate your rights under this License parties who have received or from you under this License will not have their licenses terminated so long as such parties remain in full compliance You are not required to accept this since you have not signed it nothing else grants you permission to modify or distribute the Library or its derivative works These actions are prohibited by law if you do not accept this License by modifying or distributing the you indicate your acceptance of this License to do and all its terms and conditions for distributing or modifying the Library or works based on it Each time you redistribute the the recipient automatically receives a license from the original licensor to link with or modify the Library subject to these terms and conditions You may not impose any further restrictions on the recipients exercise of the rights granted herein You are not responsible for enforcing compliance by third parties with this License as a consequence of a court judgment or allegation of patent infringement or for any other reason(not limited to patent issues)
ControllerOptionsInfo::hasControllerNumber
bool hasControllerNumber()
Definition: commandlineutility.h:45
MainWindow::profileActions
QMap< int, QList< QAction * > > profileActions
Definition: mainwindow.h:159
JoyTabWidget::changeCurrentSet
void changeCurrentSet(int index)
Definition: joytabwidget.cpp:1237
JoyTabWidget::recentConfigs
QHash< int, QString > * recentConfigs()
Definition: joytabwidget.cpp:1211
joytabwidget.h
JoyTabWidget::loadDeviceSettings
void loadDeviceSettings()
Definition: joytabwidget.cpp:1459
MainWindow::makeJoystickTabs
void makeJoystickTabs()
Definition: mainwindow.cpp:307
inputdevice.h
CommandLineUtility::getControllerOptionsList
const QList< ControllerOptionsInfo > & getControllerOptionsList()
Definition: commandlineutility.cpp:407
JoyControlStickPushButton::disableFlashes
void disableFlashes() override
Definition: joycontrolstickpushbutton.cpp:65
JoyControlStickButtonPushButton::disableFlashes
void disableFlashes() override
Definition: joycontrolstickbuttonpushbutton.cpp:71
MainWindow::removeJoyTab
void removeJoyTab(SDL_JoystickID deviceID)
Definition: mainwindow.cpp:1463
PadderCommon::wikiPage
const QString wikiPage
Definition: common.h:142
MainWindow::m_appTranslator
QTranslator * m_appTranslator
Definition: mainwindow.h:167
MainWindow::changeStartSetNumber
void changeStartSetNumber(int startSetNumber, QString controllerID)
Definition: mainwindow.cpp:1169
MainWindow::showTrayIcon
bool showTrayIcon
Definition: mainwindow.h:176
MainWindow::trayIconMenu
QMenu * trayIconMenu
Definition: mainwindow.h:162
JoyTabWidget::fillButtons
void fillButtons()
Create and render all push buttons corresponding to joystick controls for all sets.
Definition: joytabwidget.cpp:585
MainWindow::convertGUIDtoUniqueID
void convertGUIDtoUniqueID(InputDevice *currentDevice, QString controlEntryLastSelectedGUID)
Definition: mainwindow.cpp:1848
MainWindow::retranslateUi
void retranslateUi()
Definition: mainwindow.cpp:1814
AutoProfileInfo::getProfileLocation
QString getProfileLocation() const
Definition: autoprofileinfo.cpp:73
JoyButtonWidget
Definition: joybuttonwidget.h:27
JoyTabWidget::isDisplayingNames
bool isDisplayingNames()
Definition: joytabwidget.cpp:1465
JoyTabWidget::getCurrentConfigIndex
int getCurrentConfigIndex()
Definition: joytabwidget.cpp:1231
ControllerOptionsInfo::isUnloadRequested
bool isUnloadRequested()
Definition: commandlineutility.h:57
MainWindow::startJoystickRefresh
void startJoystickRefresh()
Definition: mainwindow.cpp:415
WinExtras::IsRunningAsAdmin
static bool IsRunningAsAdmin()
Check if the application is running with administrative privileges.
Definition: winextras.cpp:372
ControllerOptionsInfo::getControllerID
QString getControllerID()
Definition: commandlineutility.h:53
JoyTabWidget::refreshHelperThread
void refreshHelperThread()
Definition: joytabwidget.cpp:2555
JoyTabWidget::saveSettings
void saveSettings()
Definition: joytabwidget.cpp:974
MainWindow::openWikiPage
void openWikiPage()
Definition: mainwindow.cpp:1083
JoyTabWidget::mappingUpdated
void mappingUpdated(QString mapping, InputDevice *device)
AdvanceStickAssignmentDialog
Definition: advancestickassignmentdialog.h:35
common.h
joybuttonslotxml.h
MainWindow::ui
Ui::MainWindow * ui
Definition: mainwindow.h:156
MainWindow::refreshTrayIconMenu
void refreshTrayIconMenu()
Definition: mainwindow.cpp:662
JoyTabWidget::refreshButtons
void refreshButtons()
Definition: joytabwidget.cpp:1758
AutoProfileWatcher::getAutoProfileWatcherInstance
static AutoProfileWatcher * getAutoProfileWatcherInstance()
Definition: autoprofilewatcher.cpp:65
ControllerOptionsInfo::hasProfile
bool hasProfile()
Definition: commandlineutility.h:39
JoyTabWidget::loadConfigFile
void loadConfigFile(QString fileLocation)
Definition: joytabwidget.cpp:1345
WinExtras::elevateAntiMicro
static bool elevateAntiMicro()
Attempt to elevate process using runas.
Definition: winextras.cpp:345
MainWindow::fillButtonsMap
void fillButtonsMap(QMap< SDL_JoystickID, InputDevice * > *joysticks)
Definition: mainwindow.cpp:352
MainWindow::eventFilter
bool eventFilter(QObject *obj, QEvent *event) override
Definition: mainwindow.cpp:1838
ControllerOptionsInfo::getStartSetNumber
int getStartSetNumber()
Definition: commandlineutility.h:61
ControllerOptionsInfo::getProfileLocation
QString getProfileLocation()
Definition: commandlineutility.h:41
MainWindow::aboutDialog
AboutDialog * aboutDialog
Definition: mainwindow.h:163
MainWindow::m_joysticks
QMap< SDL_JoystickID, InputDevice * > * m_joysticks
Definition: mainwindow.h:158
JoyTabWidget::setCurrentConfig
void setCurrentConfig(int index)
Definition: joytabwidget.cpp:1223
JoyTabWidget::changeNameDisplay
void changeNameDisplay(bool displayNames)
Definition: joytabwidget.cpp:1467
WARN
#define WARN()
Definition: logger.h:44
AutoProfileWatcher::startTimer
void startTimer()
Definition: autoprofilewatcher.cpp:73
autoprofileinfo.h
DPadPushButton::disableFlashes
void disableFlashes() override
Definition: dpadpushbutton.cpp:58
MainSettingsDialog::changeLanguage
void changeLanguage(QString language)
MainWindow::hideAction
QAction * hideAction
Definition: mainwindow.h:170
JoyTabWidget::checkHideEmptyOption
void checkHideEmptyOption()
Definition: joytabwidget.cpp:1885
AntiMicroSettings::runtimeValue
QVariant runtimeValue(const QString &key, const QVariant &defaultValue=QVariant()) const
Get the currently used value such as an setting overridden with a command line argument.
Definition: antimicrosettings.cpp:37
MainWindow::addJoyTab
void addJoyTab(InputDevice *device)
Definition: mainwindow.cpp:1507
MainWindow::restoreAction
QAction * restoreAction
Definition: mainwindow.h:171
qkeydisplaydialog.h
JoyTabWidget::joystickConfigChanged
void joystickConfigChanged(int index)
JoyTabWidget::openConfigFileDialog
void openConfigFileDialog()
Definition: joytabwidget.cpp:525
AutoProfileInfo
Links information about targeted application with recommended profile.
Definition: autoprofileinfo.h:29
PadderCommon::githubProjectPage
const QString githubProjectPage
Definition: common.h:140
JoyAxisWidget::tryFlash
void tryFlash()
Definition: joyaxiswidget.cpp:90
MainWindow::unloadCurrentConfig
void unloadCurrentConfig(int joystickIndex=0)
Definition: mainwindow.cpp:1112
MainWindow::closeAction
QAction * closeAction
Definition: mainwindow.h:172
MainWindow::openAboutDialog
void openAboutDialog()
Definition: mainwindow.cpp:994
commandlineutility.h
DPadPushButton
Definition: dpadpushbutton.h:27
JoyAxisWidget
Definition: joyaxiswidget.h:27
CommandLineUtility::hasControllerNumber
bool hasControllerNumber()
Definition: commandlineutility.cpp:379
number
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Lesser General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: lgpl-2.1.txt:423
calibration.h
MainWindow::disableFlashActions
void disableFlashActions()
Definition: mainwindow.cpp:759
MainWindow::getGraphicalStatus
bool getGraphicalStatus()
Definition: mainwindow.cpp:1804
CommandLineUtility::isHiddenRequested
bool isHiddenRequested()
Definition: commandlineutility.cpp:385
MainWindow::profileTrayActionTriggered
void profileTrayActionTriggered(QAction *action, bool checked)
Definition: mainwindow.cpp:1352
CommandLineUtility::getControllerNumber
int getControllerNumber()
Definition: commandlineutility.cpp:383
InputDevice::getSDLJoystickID
virtual SDL_JoystickID getSDLJoystickID()=0
InputDevice::getUniqueIDString
virtual QString getUniqueIDString() const =0
MainWindow::trayIcon
QSystemTrayIcon * trayIcon
Definition: mainwindow.h:161
JoyTabWidget::getJoystick
InputDevice * getJoystick()
Definition: joytabwidget.cpp:1417
AutoProfileWatcher
Manages auto profile functionality. Allows for profiles to be associated with specific applications.
Definition: autoprofilewatcher.h:35
antimicrosettings.h
CommandLineUtility::shouldListControllers
bool shouldListControllers()
Definition: commandlineutility.cpp:399
mainwindow.h
CommandLineUtility::isTrayHidden
bool isTrayHidden()
Definition: commandlineutility.cpp:375
MainWindow::closeEvent
virtual void closeEvent(QCloseEvent *event)
Check if the program should really quit or if it should be minimized.
Definition: mainwindow.cpp:1264
MainWindow::changeEvent
virtual void changeEvent(QEvent *event)
Definition: mainwindow.cpp:969
InputDevice::isDeviceEdited
bool isDeviceEdited()
Definition: inputdevice.cpp:1216
MainWindow::appWatcher
AutoProfileWatcher * appWatcher
Definition: mainwindow.h:168
MainWindow::joystickTrayShow
void joystickTrayShow(QMenu *tempmenu)
Definition: mainwindow.cpp:896
CommandLineUtility::hasProfile
bool hasProfile()
Definition: commandlineutility.cpp:377
MainWindow::openGitHubPage
void openGitHubPage()
Definition: mainwindow.cpp:1079
MainWindow::fillButtons
void fillButtons()
Definition: mainwindow.cpp:305
MainWindow::openIssuesPage
void openIssuesPage()
Definition: mainwindow.cpp:1081
MainWindow::hideWindow
void hideWindow()
Definition: mainwindow.cpp:889
JoyButtonWidget::disableFlashes
void disableFlashes() override
Definition: joybuttonwidget.cpp:47
CommandLineUtility::getProfileLocation
QString getProfileLocation()
Definition: commandlineutility.cpp:381