# include <stdio.h>
#endif // HAVE_STDIO_H
-bool obResource::m_initialized = false;
+bool Resource::m_initialized = false;
-obResource::obResource(const std::string &file) {
+Resource::Resource(const std::string &file) {
setFile(file);
m_modified = false;
m_database = NULL;
}
}
-obResource::obResource() {
+Resource::Resource() {
m_modified = false;
m_database = NULL;
m_autosave = true;
}
}
-obResource::~obResource() {
+Resource::~Resource() {
if (m_database != NULL)
XrmDestroyDatabase(m_database);
}
-void obResource::setFile(const std::string &file) {
+void Resource::setFile(const std::string &file) {
m_file = file;
}
-void obResource::setAutoSave(bool autosave) {
+void Resource::setAutoSave(bool autosave) {
m_autosave = autosave;
}
-void obResource::save() {
+void Resource::save() {
ASSERT(m_database != NULL);
XrmPutFileDatabase(m_database, m_file.c_str());
m_modified = false;
}
-bool obResource::load() {
+bool Resource::load() {
if (m_database != NULL)
XrmDestroyDatabase(m_database);
m_modified = false;
return true;
}
-void obResource::setValue(const std::string &rname, bool value) {
+void Resource::setValue(const std::string &rname, bool value) {
ASSERT(m_database != NULL);
const char *val = (value ? "True" : "False");
save();
}
-void obResource::setValue(const std::string &rname, int value) {
+void Resource::setValue(const std::string &rname, int value) {
setValue(rname, (long)value);
}
-void obResource::setValue(const std::string &rname, long value) {
+void Resource::setValue(const std::string &rname, long value) {
ASSERT(m_database != NULL);
char val[11];
save();
}
-void obResource::setValue(const std::string &rname, const char *value) {
+void Resource::setValue(const std::string &rname, const char *value) {
ASSERT(m_database != NULL);
std::string rc_string = rname + ": " + value;
save();
}
-void obResource::setValue(const std::string &rname, const std::string &value) {
+void Resource::setValue(const std::string &rname, const std::string &value) {
ASSERT(m_database != NULL);
std::string rc_string = rname + ": " + value;
save();
}
-bool obResource::getValue(const std::string &rname, const std::string &rclass,
+bool Resource::getValue(const std::string &rname, const std::string &rclass,
bool &value) const {
ASSERT(rclass.c_str() != NULL);
ASSERT(m_database != NULL);
return true;
}
-bool obResource::getValue(const std::string &rname, const std::string &rclass,
+bool Resource::getValue(const std::string &rname, const std::string &rclass,
long &value) const {
ASSERT(m_database != NULL);
return true;
}
-bool obResource::getValue(const std::string &rname, const std::string &rclass,
+bool Resource::getValue(const std::string &rname, const std::string &rclass,
std::string &value) const {
ASSERT(m_database != NULL);
auto_edge_balance, image_dither, ordered_dither, opaque_move, full_max,
focus_new, focus_last, toolbar_total_hide;
BColor border_color;
- obResource styleconfig;
+ Resource styleconfig;
int workspaces, toolbar_placement, toolbar_width_percent, placement_policy,
edge_snap_threshold, row_direction, col_direction;