Exemplo n.º 1
0
// Size of the InputDialog window
QSize MainWindowSize() 
{
   QVariant value(Get("MainWindowSize"));
   return value.isNull() ? QSize(800,600) : value.value<QSize>();
}
Exemplo n.º 2
0
 static inline void set(std::string key, double value) {
   Get().ctx_[key] = std::to_string(value);
 }
Exemplo n.º 3
0
 static inline void set(std::string key, std::string value) {
   Get().ctx_[key] = value;
 }
Exemplo n.º 4
0
// Font for displaying the output files.
QFont FileDisplayFont() {
   QVariant value(Get("FileDisplayFont"));
   return value.isNull() ? QFont("Courier New") : value.value<QFont>();
}
Exemplo n.º 5
0
FPredictionKeyEvent& FPredictionKeyDelegates::NewCaughtUpDelegate(FPredictionKey::KeyType Key)
{
	TArray<FPredictionKeyEvent>& DelegateList = Get().DelegateMap.FindOrAdd(Key).CaughtUpDelegates;
	DelegateList.Add(FPredictionKeyEvent());
	return DelegateList.Top();
}
Exemplo n.º 6
0
QString PasswordVaultKey()
{
   QVariant value(Get("PasswordVaultKey"));
   return value.isNull() ? QString() : value.value<QString>();
}
Exemplo n.º 7
0
// Size of the Output file display
QSize FileDisplayWindowSize() {
   QVariant value(Get("FileDisplayWindowSize"));
   return value.isNull() ? QSize(550,400) : value.value<QSize>();
}
Exemplo n.º 8
0
bool LoggingEnabled()
{
   QVariant value(Get("LoggingEnabled"));
   return value.isNull() ? true : value.value<bool>();
}
Exemplo n.º 9
0
QString DefaultShader()
{
   QVariant value(Get("DefaultShader"));
   return value.isNull() ? ShaderLibrary::NoShader : value.value<QString>();
}
Exemplo n.º 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>();
}
Exemplo n.º 11
0
bool LogFileHidden()
{
   QVariant value(Get("LogFileHidden"));
   return value.isNull() ? true : value.value<bool>();
}
Exemplo n.º 12
0
int LabelFontSize() 
{
   QVariant value(Get("LabelFontSize"));
   return value.isNull() ? 14 : value.value<int>();
}
Exemplo n.º 13
0
int UndoLimit() 
{
   QVariant value(Get("UndoLimit"));
   return value.isNull() ? 10 : value.value<int>();
}
Exemplo n.º 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>();
}
Exemplo n.º 15
0
QStringList RecentFiles() 
{
   QVariant value(Get("RecentFiles"));
   return value.isNull() ? QStringList() : value.value<QStringList>();
}
Exemplo n.º 16
0
QString DefaultForceField()
{
   QVariant value(Get("DefaultForceField"));
   return value.isNull() ? QString("UFF") : value.value<QString>();
}
Exemplo n.º 17
0
unsigned int PasswordVaultSeed()
{
   QVariant value(Get("PasswordVaultSeed"));
   return value.isNull() ? 0 : value.value<unsigned int>();
}
Exemplo n.º 18
0
double SymmetryTolerance()
{
   QVariant value(Get("SymmetryTolerance"));
   return value.isNull() ? 0.100  : value.value<double>();
}
Exemplo n.º 19
0
// Size of the InputDialog window
QSize QuiWindowSize() {
   QVariant value(Get("QuiWindowSize"));
   return value.isNull() ? QSize(960,570) : value.value<QSize>();
}
Exemplo n.º 20
0
QColor PositiveSurfaceColor() 
{
   QVariant value(Get("PositiveSurfaceColor"));
   return value.isNull() ? QColor("blue") : value.value<QColor>();
}
Exemplo n.º 21
0
// Font for the InputDialog previewText display
QFont PreviewFont() {
   QVariant value(Get("PreviewTextFont"));
   return value.isNull() ? QFont("Courier New") : value.value<QFont>();
}
Exemplo n.º 22
0
QColor NegativeSurfaceColor() 
{
   QVariant value(Get("NegativeSurfaceColor"));
   return value.isNull() ? QColor("red") : value.value<QColor>();
}
Exemplo n.º 23
0
QString TemplateDirectory() {
   QVariant value(Get("TemplateDirectory"));
   return value.isNull() ? QString() : value.value<QString>();
}
Exemplo n.º 24
0
QColor BackgroundColor() 
{
   QVariant value(Get("BackgroundColor"));
   return value.isNull() ? QColor(32, 92, 168) : value.value<QColor>();
}
Exemplo n.º 25
0
void FPredictionKeyDelegates::NewRejectOrCaughtUpDelegate(FPredictionKey::KeyType Key, FPredictionKeyEvent NewEvent)
{
	FDelegates& Delegates = Get().DelegateMap.FindOrAdd(Key);
	Delegates.CaughtUpDelegates.Add(NewEvent);
	Delegates.RejectedDelegates.Add(NewEvent);
}
Exemplo n.º 26
0
QColor ForegroundColor() 
{
   QVariant value(Get("ForegroundColor"));
   return value.isNull() ? QColor(180, 180, 180) : value.value<QColor>();
}
Exemplo n.º 27
0
 static inline void set(std::string key, bool value) {
   Get().ctx_[key] = (value) ? "true" : "false";
 }
Exemplo n.º 28
0
QColor VibrationVectorColor() 
{
   QVariant value(Get("VibrationVectorColor"));
   return value.isNull() ? QColor(255, 0, 255) : value.value<QColor>();
}
Exemplo n.º 29
0
 inline static Phase phase() { 
   return Get().phase_; 
 }
Exemplo n.º 30
0
Anope::string IgnoreImpl::GetMask()
{
	return Get(&IgnoreType::mask);
}