mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 12:03:55 -07:00
Refactred settings to use settingscache & ini files
This commit is contained in:
parent
9c28cdd1f5
commit
c8d59eec5e
29 changed files with 780 additions and 241 deletions
36
cockatrice/src/settings/layoutssettings.h
Normal file
36
cockatrice/src/settings/layoutssettings.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#ifndef LAYOUTSSETTINGS_H
|
||||
#define LAYOUTSSETTINGS_H
|
||||
|
||||
#include "settingsmanager.h"
|
||||
#include <QSize>
|
||||
|
||||
class LayoutsSettings : public SettingsManager
|
||||
{
|
||||
Q_OBJECT
|
||||
friend class SettingsCache;
|
||||
public:
|
||||
|
||||
void setDeckEditorLayoutState(const QByteArray &value);
|
||||
void setDeckEditorGeometry(const QByteArray &value);
|
||||
void setDeckEditorCardSize(const QSize &value);
|
||||
void setDeckEditorDeckSize(const QSize &value);
|
||||
void setDeckEditorFilterSize(const QSize &value);
|
||||
|
||||
const QByteArray getDeckEditorLayoutState();
|
||||
const QByteArray getDeckEditorGeometry();
|
||||
const QSize getDeckEditorCardSize();
|
||||
const QSize getDeckEditorDeckSize();
|
||||
const QSize getDeckEditorFilterSize();
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
private:
|
||||
LayoutsSettings(QString settingPath,QObject *parent = 0);
|
||||
LayoutsSettings( const LayoutsSettings& /*other*/ );
|
||||
LayoutsSettings( LayoutsSettings& /*other*/ );
|
||||
LayoutsSettings( volatile const LayoutsSettings& /*other*/ );
|
||||
LayoutsSettings( volatile LayoutsSettings& /*other*/ );
|
||||
};
|
||||
|
||||
#endif // LAYOUTSSETTINGS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue