forked from qt-creator/qt-creator
Fossil: Aspectify settings
Change-Id: I090cf3c63cd705220abb09e5d58eef89e9b55147 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -25,25 +25,26 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <coreplugin/dialogs/ioptionspage.h>
|
||||
#include <vcsbase/vcsbaseclientsettings.h>
|
||||
|
||||
namespace Fossil {
|
||||
namespace Internal {
|
||||
|
||||
class FossilSettings : public VcsBase::VcsBaseClientSettings
|
||||
class FossilSettings : public VcsBase::VcsBaseSettings
|
||||
{
|
||||
public:
|
||||
static const QString defaultRepoPathKey;
|
||||
static const QString sslIdentityFileKey;
|
||||
static const QString diffIgnoreAllWhiteSpaceKey;
|
||||
static const QString diffStripTrailingCRKey;
|
||||
static const QString annotateShowCommittersKey;
|
||||
static const QString annotateListVersionsKey;
|
||||
static const QString timelineWidthKey;
|
||||
static const QString timelineLineageFilterKey;
|
||||
static const QString timelineVerboseKey;
|
||||
static const QString timelineItemTypeKey;
|
||||
static const QString disableAutosyncKey;
|
||||
Utils::StringAspect defaultRepoPath;
|
||||
Utils::StringAspect sslIdentityFile;
|
||||
Utils::BoolAspect diffIgnoreAllWhiteSpace;
|
||||
Utils::BoolAspect diffStripTrailingCR;
|
||||
Utils::BoolAspect annotateShowCommitters;
|
||||
Utils::BoolAspect annotateListVersions;
|
||||
Utils::IntegerAspect timelineWidth;
|
||||
Utils::StringAspect timelineLineageFilter;
|
||||
Utils::BoolAspect timelineVerbose;
|
||||
Utils::StringAspect timelineItemType;
|
||||
Utils::BoolAspect disableAutosync;
|
||||
|
||||
FossilSettings();
|
||||
};
|
||||
@@ -66,5 +67,11 @@ inline bool operator== (const RepositorySettings &lh, const RepositorySettings &
|
||||
&& lh.sslIdentityFile == rh.sslIdentityFile);
|
||||
}
|
||||
|
||||
class OptionsPage : public Core::IOptionsPage
|
||||
{
|
||||
public:
|
||||
OptionsPage(const std::function<void()> &onApply, FossilSettings *settings);
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Fossil
|
||||
|
||||
Reference in New Issue
Block a user