mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
Emu: some cleanup
This commit is contained in:
parent
a3e8a61547
commit
03b76b4606
149 changed files with 957 additions and 1139 deletions
|
@ -70,9 +70,10 @@ namespace gui
|
|||
case column_compat:
|
||||
return "column_compat";
|
||||
case column_count:
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
fmt::throw_exception("get_game_list_column_name: Invalid column");
|
||||
}
|
||||
|
||||
const QSize gl_icon_size_min = QSize(40, 22);
|
||||
|
@ -84,8 +85,8 @@ namespace gui
|
|||
|
||||
inline int get_Index(const QSize& current)
|
||||
{
|
||||
int size_delta = gl_icon_size_max.width() - gl_icon_size_min.width();
|
||||
int current_delta = current.width() - gl_icon_size_min.width();
|
||||
const int size_delta = gl_icon_size_max.width() - gl_icon_size_min.width();
|
||||
const int current_delta = current.width() - gl_icon_size_min.width();
|
||||
return gl_max_slider_pos * current_delta / size_delta;
|
||||
}
|
||||
|
||||
|
@ -248,28 +249,28 @@ public:
|
|||
/** Changes the settings file to the destination preset*/
|
||||
bool ChangeToConfig(const QString& config_name);
|
||||
|
||||
bool GetCategoryVisibility(int cat);
|
||||
bool GetCategoryVisibility(int cat) const;
|
||||
|
||||
void ShowConfirmationBox(const QString& title, const QString& text, const gui_save& entry, int* result, QWidget* parent);
|
||||
void ShowInfoBox(const QString& title, const QString& text, const gui_save& entry, QWidget* parent);
|
||||
bool GetBootConfirmation(QWidget* parent, const gui_save& gui_save_entry = gui_save());
|
||||
|
||||
logs::level GetLogLevel();
|
||||
bool GetGamelistColVisibility(int col);
|
||||
QColor GetCustomColor(int col);
|
||||
QStringList GetConfigEntries();
|
||||
QStringList GetStylesheetEntries();
|
||||
QStringList GetGameListCategoryFilters();
|
||||
logs::level GetLogLevel() const;
|
||||
bool GetGamelistColVisibility(int col) const;
|
||||
QColor GetCustomColor(int col) const;
|
||||
QStringList GetConfigEntries() const;
|
||||
QStringList GetStylesheetEntries() const;
|
||||
QStringList GetGameListCategoryFilters() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void Reset(bool remove_meta = false);
|
||||
void Reset(bool remove_meta = false) const;
|
||||
|
||||
/** Sets the visibility of the chosen category. */
|
||||
void SetCategoryVisibility(int cat, const bool& val);
|
||||
void SetCategoryVisibility(int cat, const bool& val) const;
|
||||
|
||||
void SetGamelistColVisibility(int col, bool val);
|
||||
void SetGamelistColVisibility(int col, bool val) const;
|
||||
|
||||
void SetCustomColor(int col, const QColor& val);
|
||||
void SetCustomColor(int col, const QColor& val) const;
|
||||
|
||||
void SaveCurrentConfig(const QString& config_name);
|
||||
|
||||
|
@ -277,9 +278,7 @@ public Q_SLOTS:
|
|||
static gui_save GetGuiSaveForColumn(int col);
|
||||
|
||||
private:
|
||||
void SaveConfigNameToDefault(const QString& config_name);
|
||||
void BackupSettingsToTarget(const QString& config_name);
|
||||
void SaveConfigNameToDefault(const QString& config_name) const;
|
||||
void BackupSettingsToTarget(const QString& config_name) const;
|
||||
void ShowBox(QMessageBox::Icon icon, const QString& title, const QString& text, const gui_save& entry, int* result, QWidget* parent, bool always_on_top);
|
||||
|
||||
QString m_current_name;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue