AntiMicroX
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
MainSettingsDialog Class Reference

#include <mainsettingsdialog.h>

Inheritance diagram for MainSettingsDialog:
[legend]
Collaboration diagram for MainSettingsDialog:
[legend]

Signals

void changeLanguage (QString language)
 

Public Member Functions

 MainSettingsDialog (AntiMicroSettings *settings, QList< InputDevice * > *devices, QWidget *parent=nullptr)
 
 ~MainSettingsDialog ()
 
AntiMicroSettingsgetSettings () const
 
QMap< QString, AutoProfileInfo * > * getDefaultAutoProfiles ()
 
QMap< QString, QList< AutoProfileInfo * > > * getDeviceAutoProfiles ()
 
QMap< QString, QList< AutoProfileInfo * > > * getExeAutoProfiles ()
 
QList< AutoProfileInfo * > * getDefaultList ()
 
QList< AutoProfileInfo * > * getProfileList ()
 
AutoProfileInfogetAllDefaultProfile () const
 
QList< InputDevice * > * getConnectedDevices () const
 

Protected Slots

void mappingsTableItemChanged (QTableWidgetItem *item)
 
void insertMappingRow ()
 
void deleteMappingRow ()
 
void syncMappingSettings ()
 
void saveNewSettings ()
 
void selectDefaultProfileDir ()
 
void fillGUIDComboBox ()
 
void changeDeviceForProfileTable (int index)
 
void saveAutoProfileSettings ()
 
void processAutoProfileActiveClick (QTableWidgetItem *item)
 
void openAddAutoProfileDialog ()
 
void openEditAutoProfileDialog ()
 
void openDeleteAutoProfileConfirmDialog ()
 
void changeAutoProfileButtonsState ()
 
void transferEditsToCurrentTableRow (AddEditAutoProfileDialog *dialog)
 
void transferAllProfileEditToCurrentTableRow (EditAllDefaultAutoProfileDialog *dialog)
 
void addNewAutoProfile (AddEditAutoProfileDialog *dialog)
 
void autoProfileButtonsActiveState (bool enabled)
 
void changeKeyRepeatWidgetsStatus (bool enabled)
 
void checkSmoothingWidgetStatus (bool enabled)
 
void resetMouseAcceleration ()
 
void selectLogFile ()
 

Protected Member Functions

void fillControllerMappingsTable ()
 
void insertTempControllerMapping (QHash< QString, QList< QVariant >> &hash, QString newGUID)
 
void checkLocaleChange ()
 
void populateAutoProfiles ()
 
void fillAutoProfilesTable (QString guid)
 
void fillAllAutoProfilesTable ()
 
void clearAutoProfileData ()
 
void changePresetLanguage ()
 
void fillSpringScreenPresets ()
 
void refreshExtraMouseInfo ()
 
void convToUniqueIDAutoProfGroupSett (QSettings *sett, QString guidAutoProfSett, QString uniqueAutoProfSett)
 

Private Slots

void on_resetBtn_clicked ()
 

Private Member Functions

void resetGeneralSett ()
 
void resetAutoProfSett ()
 
void resetMouseSett ()
 
void resetAdvancedSett ()
 

Private Attributes

Ui::MainSettingsDialog * ui
 
AntiMicroSettingssettings
 
QMap< QString, AutoProfileInfo * > defaultAutoProfiles
 
QMap< QString, QList< AutoProfileInfo * > > deviceAutoProfiles
 
QMap< QString, QList< AutoProfileInfo * > > exeAutoProfiles
 
QList< AutoProfileInfo * > defaultList
 
QList< AutoProfileInfo * > profileList
 
AutoProfileInfoallDefaultProfile
 
QList< InputDevice * > * connectedDevices
 

Constructor & Destructor Documentation

◆ MainSettingsDialog()

MainSettingsDialog::MainSettingsDialog ( AntiMicroSettings settings,
QList< InputDevice * > *  devices,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~MainSettingsDialog()

MainSettingsDialog::~MainSettingsDialog ( )

Member Function Documentation

◆ addNewAutoProfile

void MainSettingsDialog::addNewAutoProfile ( AddEditAutoProfileDialog dialog)
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ autoProfileButtonsActiveState

void MainSettingsDialog::autoProfileButtonsActiveState ( bool  enabled)
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeAutoProfileButtonsState

void MainSettingsDialog::changeAutoProfileButtonsState ( )
protectedslot
Here is the caller graph for this function:

◆ changeDeviceForProfileTable

void MainSettingsDialog::changeDeviceForProfileTable ( int  index)
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeKeyRepeatWidgetsStatus

void MainSettingsDialog::changeKeyRepeatWidgetsStatus ( bool  enabled)
protectedslot
Here is the caller graph for this function:

◆ changeLanguage

void MainSettingsDialog::changeLanguage ( QString  language)
signal
Here is the caller graph for this function:

◆ changePresetLanguage()

void MainSettingsDialog::changePresetLanguage ( )
protected
Here is the caller graph for this function:

◆ checkLocaleChange()

void MainSettingsDialog::checkLocaleChange ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkSmoothingWidgetStatus

void MainSettingsDialog::checkSmoothingWidgetStatus ( bool  enabled)
protectedslot
Here is the caller graph for this function:

◆ clearAutoProfileData()

void MainSettingsDialog::clearAutoProfileData ( )
protected

◆ convToUniqueIDAutoProfGroupSett()

void MainSettingsDialog::convToUniqueIDAutoProfGroupSett ( QSettings *  sett,
QString  guidAutoProfSett,
QString  uniqueAutoProfSett 
)
protected
Here is the caller graph for this function:

◆ deleteMappingRow

void MainSettingsDialog::deleteMappingRow ( )
protectedslot
Here is the caller graph for this function:

◆ fillAllAutoProfilesTable()

void MainSettingsDialog::fillAllAutoProfilesTable ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fillAutoProfilesTable()

void MainSettingsDialog::fillAutoProfilesTable ( QString  guid)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fillControllerMappingsTable()

void MainSettingsDialog::fillControllerMappingsTable ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fillGUIDComboBox

void MainSettingsDialog::fillGUIDComboBox ( )
protectedslot
Here is the caller graph for this function:

◆ fillSpringScreenPresets()

void MainSettingsDialog::fillSpringScreenPresets ( )
protected
Here is the caller graph for this function:

◆ getAllDefaultProfile()

AutoProfileInfo * MainSettingsDialog::getAllDefaultProfile ( ) const

◆ getConnectedDevices()

QList< InputDevice * > * MainSettingsDialog::getConnectedDevices ( ) const

◆ getDefaultAutoProfiles()

QMap< QString, AutoProfileInfo * > * MainSettingsDialog::getDefaultAutoProfiles ( )

◆ getDefaultList()

QList< AutoProfileInfo * > * MainSettingsDialog::getDefaultList ( )

◆ getDeviceAutoProfiles()

QMap< QString, QList< AutoProfileInfo * > > * MainSettingsDialog::getDeviceAutoProfiles ( )

◆ getExeAutoProfiles()

QMap< QString, QList< AutoProfileInfo * > > * MainSettingsDialog::getExeAutoProfiles ( )

◆ getProfileList()

QList< AutoProfileInfo * > * MainSettingsDialog::getProfileList ( )

◆ getSettings()

AntiMicroSettings * MainSettingsDialog::getSettings ( ) const

◆ insertMappingRow

void MainSettingsDialog::insertMappingRow ( )
protectedslot
Here is the caller graph for this function:

◆ insertTempControllerMapping()

void MainSettingsDialog::insertTempControllerMapping ( QHash< QString, QList< QVariant >> &  hash,
QString  newGUID 
)
protected
Here is the caller graph for this function:

◆ mappingsTableItemChanged

void MainSettingsDialog::mappingsTableItemChanged ( QTableWidgetItem *  item)
protectedslot
Here is the caller graph for this function:

◆ on_resetBtn_clicked

void MainSettingsDialog::on_resetBtn_clicked ( )
privateslot
Here is the call graph for this function:

◆ openAddAutoProfileDialog

void MainSettingsDialog::openAddAutoProfileDialog ( )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openDeleteAutoProfileConfirmDialog

void MainSettingsDialog::openDeleteAutoProfileConfirmDialog ( )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openEditAutoProfileDialog

void MainSettingsDialog::openEditAutoProfileDialog ( )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ populateAutoProfiles()

void MainSettingsDialog::populateAutoProfiles ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ processAutoProfileActiveClick

void MainSettingsDialog::processAutoProfileActiveClick ( QTableWidgetItem *  item)
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshExtraMouseInfo()

void MainSettingsDialog::refreshExtraMouseInfo ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetAdvancedSett()

void MainSettingsDialog::resetAdvancedSett ( )
private
Here is the caller graph for this function:

◆ resetAutoProfSett()

void MainSettingsDialog::resetAutoProfSett ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetGeneralSett()

void MainSettingsDialog::resetGeneralSett ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetMouseAcceleration

void MainSettingsDialog::resetMouseAcceleration ( )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetMouseSett()

void MainSettingsDialog::resetMouseSett ( )
private
Here is the caller graph for this function:

◆ saveAutoProfileSettings

void MainSettingsDialog::saveAutoProfileSettings ( )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveNewSettings

void MainSettingsDialog::saveNewSettings ( )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectDefaultProfileDir

void MainSettingsDialog::selectDefaultProfileDir ( )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectLogFile

void MainSettingsDialog::selectLogFile ( )
protectedslot
Here is the caller graph for this function:

◆ syncMappingSettings

void MainSettingsDialog::syncMappingSettings ( )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ transferAllProfileEditToCurrentTableRow

void MainSettingsDialog::transferAllProfileEditToCurrentTableRow ( EditAllDefaultAutoProfileDialog dialog)
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ transferEditsToCurrentTableRow

void MainSettingsDialog::transferEditsToCurrentTableRow ( AddEditAutoProfileDialog dialog)
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ allDefaultProfile

AutoProfileInfo* MainSettingsDialog::allDefaultProfile
private

◆ connectedDevices

QList<InputDevice *>* MainSettingsDialog::connectedDevices
private

◆ defaultAutoProfiles

QMap<QString, AutoProfileInfo *> MainSettingsDialog::defaultAutoProfiles
private

◆ defaultList

QList<AutoProfileInfo *> MainSettingsDialog::defaultList
private

◆ deviceAutoProfiles

QMap<QString, QList<AutoProfileInfo *> > MainSettingsDialog::deviceAutoProfiles
private

◆ exeAutoProfiles

QMap<QString, QList<AutoProfileInfo *> > MainSettingsDialog::exeAutoProfiles
private

◆ profileList

QList<AutoProfileInfo *> MainSettingsDialog::profileList
private

◆ settings

AntiMicroSettings* MainSettingsDialog::settings
private

◆ ui

Ui::MainSettingsDialog* MainSettingsDialog::ui
private

The documentation for this class was generated from the following files: