2020-05-22 11:49:34 +00:00
|
|
|
#ifndef COMMON_SETTINGS_UPGRADE_H
|
|
|
|
#define COMMON_SETTINGS_UPGRADE_H
|
|
|
|
|
|
|
|
#include <QSettings>
|
|
|
|
#include <core/Cutter.h>
|
|
|
|
|
|
|
|
namespace Cutter {
|
2021-01-24 14:50:13 +00:00
|
|
|
void initializeSettings();
|
2021-03-06 17:26:58 +00:00
|
|
|
/**
|
|
|
|
* @brief Check if Cutter should offer importing settings from version that can't be directly updated.
|
|
|
|
* @return True if this is first time running Cutter and r2 based Cutter <= 1.12 settings exist.
|
|
|
|
*/
|
|
|
|
bool shouldOfferSettingImport();
|
|
|
|
/**
|
|
|
|
* @brief Ask user if Cutter should import settings from pre-rizin Cutter.
|
|
|
|
*
|
|
|
|
* This function assume that QApplication isn't running yet.
|
|
|
|
*/
|
|
|
|
void showSettingImportDialog(int &argc, char **argv);
|
2021-01-24 14:50:13 +00:00
|
|
|
void migrateThemes();
|
2020-05-22 11:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // COMMON_SETTINGS_UPGRADE_H
|