|
|
|
|
@ -103,8 +103,6 @@ void Settings::loadDefault() |
|
|
|
|
|
|
|
|
|
this->backgroundColor = 0xDCDAD5; |
|
|
|
|
|
|
|
|
|
this->eventCompression = true; |
|
|
|
|
|
|
|
|
|
this->pageTemplate = "xoj/template\ncopyLastPageSettings=true\nsize=595.275591x841.889764\nbackgroundType=lined\nbackgroundColor=#ffffff\n"; |
|
|
|
|
|
|
|
|
|
inTransaction = false; |
|
|
|
|
@ -300,10 +298,6 @@ void Settings::parseItem(xmlDocPtr doc, xmlNodePtr cur) |
|
|
|
|
{ |
|
|
|
|
this->widthMaximumMultiplier = g_ascii_strtod((const char*) value, NULL); |
|
|
|
|
} |
|
|
|
|
else if (xmlStrcmp(name, (const xmlChar*) "eventCompression") == 0) |
|
|
|
|
{ |
|
|
|
|
this->eventCompression = xmlStrcmp(value, (const xmlChar*) "true") ? false : true; |
|
|
|
|
} |
|
|
|
|
else if (xmlStrcmp(name, (const xmlChar*) "sidebarOnRight") == 0) |
|
|
|
|
{ |
|
|
|
|
this->sidebarOnRight = xmlStrcmp(value, (const xmlChar*) "true") ? false : true; |
|
|
|
|
@ -730,8 +724,6 @@ void Settings::save() |
|
|
|
|
WRITE_DOUBLE_PROP(widthMaximumMultiplier); |
|
|
|
|
WRITE_COMMENT("The multiplier for the pressure sensitivity of the pen"); |
|
|
|
|
|
|
|
|
|
WRITE_BOOL_PROP(eventCompression); |
|
|
|
|
|
|
|
|
|
WRITE_COMMENT("Config for new pages"); |
|
|
|
|
WRITE_STRING_PROP(pageTemplate); |
|
|
|
|
|
|
|
|
|
@ -1041,27 +1033,6 @@ void Settings::setDefaultSaveName(string name) |
|
|
|
|
save(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool Settings::isEventCompression() |
|
|
|
|
{ |
|
|
|
|
XOJ_CHECK_TYPE(Settings); |
|
|
|
|
|
|
|
|
|
return this->eventCompression; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Settings::setEventCompression(bool enabled) |
|
|
|
|
{ |
|
|
|
|
XOJ_CHECK_TYPE(Settings); |
|
|
|
|
|
|
|
|
|
if (this->eventCompression == enabled) |
|
|
|
|
{ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this->eventCompression = enabled; |
|
|
|
|
|
|
|
|
|
save(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
string Settings::getPageTemplate() |
|
|
|
|
{ |
|
|
|
|
XOJ_CHECK_TYPE(Settings); |
|
|
|
|
|