Beispiel #1
0
// Size of the InputDialog window
QSize MainWindowSize() 
{
   QVariant value(Get("MainWindowSize"));
   return value.isNull() ? QSize(800,600) : value.value<QSize>();
}
Beispiel #2
0
 static inline void set(std::string key, double value) {
   Get().ctx_[key] = std::to_string(value);
 }
Beispiel #3
0
 static inline void set(std::string key, std::string value) {
   Get().ctx_[key] = value;
 }
Beispiel #4
0
// 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();
}
Beispiel #6
0
QString PasswordVaultKey()
{
   QVariant value(Get("PasswordVaultKey"));
   return value.isNull() ? QString() : value.value<QString>();
}
Beispiel #7
0
// Size of the Output file display
QSize FileDisplayWindowSize() {
   QVariant value(Get("FileDisplayWindowSize"));
   return value.isNull() ? QSize(550,400) : value.value<QSize>();
}
Beispiel #8
0
bool LoggingEnabled()
{
   QVariant value(Get("LoggingEnabled"));
   return value.isNull() ? true : value.value<bool>();
}
Beispiel #9
0
QString DefaultShader()
{
   QVariant value(Get("DefaultShader"));
   return value.isNull() ? ShaderLibrary::NoShader : value.value<QString>();
}
Beispiel #10
0
// 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>();
}
Beispiel #11
0
bool LogFileHidden()
{
   QVariant value(Get("LogFileHidden"));
   return value.isNull() ? true : value.value<bool>();
}
Beispiel #12
0
int LabelFontSize() 
{
   QVariant value(Get("LabelFontSize"));
   return value.isNull() ? 14 : value.value<int>();
}
Beispiel #13
0
int UndoLimit() 
{
   QVariant value(Get("UndoLimit"));
   return value.isNull() ? 10 : value.value<int>();
}
Beispiel #14
0
// Width of the ModelView window on the left of the MainWindow
bool ShowModelView()
{
   QVariant value(Get("ShowModelView"));
   return value.isNull() ? true : value.value<bool>();
}
Beispiel #15
0
QStringList RecentFiles() 
{
   QVariant value(Get("RecentFiles"));
   return value.isNull() ? QStringList() : value.value<QStringList>();
}
Beispiel #16
0
QString DefaultForceField()
{
   QVariant value(Get("DefaultForceField"));
   return value.isNull() ? QString("UFF") : value.value<QString>();
}
Beispiel #17
0
unsigned int PasswordVaultSeed()
{
   QVariant value(Get("PasswordVaultSeed"));
   return value.isNull() ? 0 : value.value<unsigned int>();
}
Beispiel #18
0
double SymmetryTolerance()
{
   QVariant value(Get("SymmetryTolerance"));
   return value.isNull() ? 0.100  : value.value<double>();
}
Beispiel #19
0
// Size of the InputDialog window
QSize QuiWindowSize() {
   QVariant value(Get("QuiWindowSize"));
   return value.isNull() ? QSize(960,570) : value.value<QSize>();
}
Beispiel #20
0
QColor PositiveSurfaceColor() 
{
   QVariant value(Get("PositiveSurfaceColor"));
   return value.isNull() ? QColor("blue") : value.value<QColor>();
}
Beispiel #21
0
// Font for the InputDialog previewText display
QFont PreviewFont() {
   QVariant value(Get("PreviewTextFont"));
   return value.isNull() ? QFont("Courier New") : value.value<QFont>();
}
Beispiel #22
0
QColor NegativeSurfaceColor() 
{
   QVariant value(Get("NegativeSurfaceColor"));
   return value.isNull() ? QColor("red") : value.value<QColor>();
}
Beispiel #23
0
QString TemplateDirectory() {
   QVariant value(Get("TemplateDirectory"));
   return value.isNull() ? QString() : value.value<QString>();
}
Beispiel #24
0
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);
}
Beispiel #26
0
QColor ForegroundColor() 
{
   QVariant value(Get("ForegroundColor"));
   return value.isNull() ? QColor(180, 180, 180) : value.value<QColor>();
}
Beispiel #27
0
 static inline void set(std::string key, bool value) {
   Get().ctx_[key] = (value) ? "true" : "false";
 }
Beispiel #28
0
QColor VibrationVectorColor() 
{
   QVariant value(Get("VibrationVectorColor"));
   return value.isNull() ? QColor(255, 0, 255) : value.value<QColor>();
}
Beispiel #29
0
 inline static Phase phase() { 
   return Get().phase_; 
 }
Beispiel #30
0
Anope::string IgnoreImpl::GetMask()
{
	return Get(&IgnoreType::mask);
}