// Size of the InputDialog window QSize MainWindowSize() { QVariant value(Get("MainWindowSize")); return value.isNull() ? QSize(800,600) : value.value<QSize>(); }
static inline void set(std::string key, double value) { Get().ctx_[key] = std::to_string(value); }
static inline void set(std::string key, std::string value) { Get().ctx_[key] = value; }
// Font for displaying the output files. QFont FileDisplayFont() { QVariant value(Get("FileDisplayFont")); return value.isNull() ? QFont("Courier New") : value.value<QFont>(); }
FPredictionKeyEvent& FPredictionKeyDelegates::NewCaughtUpDelegate(FPredictionKey::KeyType Key) { TArray<FPredictionKeyEvent>& DelegateList = Get().DelegateMap.FindOrAdd(Key).CaughtUpDelegates; DelegateList.Add(FPredictionKeyEvent()); return DelegateList.Top(); }
QString PasswordVaultKey() { QVariant value(Get("PasswordVaultKey")); return value.isNull() ? QString() : value.value<QString>(); }
// Size of the Output file display QSize FileDisplayWindowSize() { QVariant value(Get("FileDisplayWindowSize")); return value.isNull() ? QSize(550,400) : value.value<QSize>(); }
bool LoggingEnabled() { QVariant value(Get("LoggingEnabled")); return value.isNull() ? true : value.value<bool>(); }
QString DefaultShader() { QVariant value(Get("DefaultShader")); return value.isNull() ? ShaderLibrary::NoShader : value.value<QString>(); }
// FileDialogs should use this to initialize the filename when opening and // saving files QString LastFileAccessed() { QVariant value(Get("LastFileAccesed")); QString home(QDir::homePath()); return value.isNull() ? home : value.value<QString>(); }
bool LogFileHidden() { QVariant value(Get("LogFileHidden")); return value.isNull() ? true : value.value<bool>(); }
int LabelFontSize() { QVariant value(Get("LabelFontSize")); return value.isNull() ? 14 : value.value<int>(); }
int UndoLimit() { QVariant value(Get("UndoLimit")); return value.isNull() ? 10 : value.value<int>(); }
// Width of the ModelView window on the left of the MainWindow bool ShowModelView() { QVariant value(Get("ShowModelView")); return value.isNull() ? true : value.value<bool>(); }
QStringList RecentFiles() { QVariant value(Get("RecentFiles")); return value.isNull() ? QStringList() : value.value<QStringList>(); }
QString DefaultForceField() { QVariant value(Get("DefaultForceField")); return value.isNull() ? QString("UFF") : value.value<QString>(); }
unsigned int PasswordVaultSeed() { QVariant value(Get("PasswordVaultSeed")); return value.isNull() ? 0 : value.value<unsigned int>(); }
double SymmetryTolerance() { QVariant value(Get("SymmetryTolerance")); return value.isNull() ? 0.100 : value.value<double>(); }
// Size of the InputDialog window QSize QuiWindowSize() { QVariant value(Get("QuiWindowSize")); return value.isNull() ? QSize(960,570) : value.value<QSize>(); }
QColor PositiveSurfaceColor() { QVariant value(Get("PositiveSurfaceColor")); return value.isNull() ? QColor("blue") : value.value<QColor>(); }
// Font for the InputDialog previewText display QFont PreviewFont() { QVariant value(Get("PreviewTextFont")); return value.isNull() ? QFont("Courier New") : value.value<QFont>(); }
QColor NegativeSurfaceColor() { QVariant value(Get("NegativeSurfaceColor")); return value.isNull() ? QColor("red") : value.value<QColor>(); }
QString TemplateDirectory() { QVariant value(Get("TemplateDirectory")); return value.isNull() ? QString() : value.value<QString>(); }
QColor BackgroundColor() { QVariant value(Get("BackgroundColor")); return value.isNull() ? QColor(32, 92, 168) : value.value<QColor>(); }
void FPredictionKeyDelegates::NewRejectOrCaughtUpDelegate(FPredictionKey::KeyType Key, FPredictionKeyEvent NewEvent) { FDelegates& Delegates = Get().DelegateMap.FindOrAdd(Key); Delegates.CaughtUpDelegates.Add(NewEvent); Delegates.RejectedDelegates.Add(NewEvent); }
QColor ForegroundColor() { QVariant value(Get("ForegroundColor")); return value.isNull() ? QColor(180, 180, 180) : value.value<QColor>(); }
static inline void set(std::string key, bool value) { Get().ctx_[key] = (value) ? "true" : "false"; }
QColor VibrationVectorColor() { QVariant value(Get("VibrationVectorColor")); return value.isNull() ? QColor(255, 0, 255) : value.value<QColor>(); }
inline static Phase phase() { return Get().phase_; }
Anope::string IgnoreImpl::GetMask() { return Get(&IgnoreType::mask); }