specify the std:: namespace for the ostrstreams.
This commit is contained in:
parent
32951060f6
commit
18499a6920
3 changed files with 26 additions and 26 deletions
|
@ -828,7 +828,7 @@ XFontSet BScreen::createFontSet(const char *fontname) {
|
||||||
|
|
||||||
void BScreen::setSloppyFocus(bool b) {
|
void BScreen::setSloppyFocus(bool b) {
|
||||||
resource.sloppy_focus = b;
|
resource.sloppy_focus = b;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".focusModel" << ends;
|
s << "session.screen" << getScreenNumber() << ".focusModel" << ends;
|
||||||
config.setValue(s.str(),
|
config.setValue(s.str(),
|
||||||
(resource.sloppy_focus ?
|
(resource.sloppy_focus ?
|
||||||
|
@ -840,7 +840,7 @@ void BScreen::setSloppyFocus(bool b) {
|
||||||
|
|
||||||
void BScreen::setAutoRaise(bool a) {
|
void BScreen::setAutoRaise(bool a) {
|
||||||
resource.auto_raise = a;
|
resource.auto_raise = a;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".focusModel" << ends;
|
s << "session.screen" << getScreenNumber() << ".focusModel" << ends;
|
||||||
config.setValue(s.str(),
|
config.setValue(s.str(),
|
||||||
(resource.sloppy_focus ?
|
(resource.sloppy_focus ?
|
||||||
|
@ -852,7 +852,7 @@ void BScreen::setAutoRaise(bool a) {
|
||||||
|
|
||||||
void BScreen::setImageDither(bool d) {
|
void BScreen::setImageDither(bool d) {
|
||||||
resource.image_dither = d;
|
resource.image_dither = d;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".imageDither" << ends;
|
s << "session.screen" << getScreenNumber() << ".imageDither" << ends;
|
||||||
config.setValue(s.str(), resource.image_dither);
|
config.setValue(s.str(), resource.image_dither);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -861,7 +861,7 @@ void BScreen::setImageDither(bool d) {
|
||||||
|
|
||||||
void BScreen::setOpaqueMove(bool o) {
|
void BScreen::setOpaqueMove(bool o) {
|
||||||
resource.opaque_move = o;
|
resource.opaque_move = o;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".opaqueMove" << ends;
|
s << "session.screen" << getScreenNumber() << ".opaqueMove" << ends;
|
||||||
config.setValue(s.str(), resource.opaque_move);
|
config.setValue(s.str(), resource.opaque_move);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -870,7 +870,7 @@ void BScreen::setOpaqueMove(bool o) {
|
||||||
|
|
||||||
void BScreen::setFullMax(bool f) {
|
void BScreen::setFullMax(bool f) {
|
||||||
resource.full_max = f;
|
resource.full_max = f;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".fullMaximization" << ends;
|
s << "session.screen" << getScreenNumber() << ".fullMaximization" << ends;
|
||||||
config.setValue(s.str(), resource.full_max);
|
config.setValue(s.str(), resource.full_max);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -879,7 +879,7 @@ void BScreen::setFullMax(bool f) {
|
||||||
|
|
||||||
void BScreen::setFocusNew(bool f) {
|
void BScreen::setFocusNew(bool f) {
|
||||||
resource.focus_new = f;
|
resource.focus_new = f;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".focusNewWindows" << ends;
|
s << "session.screen" << getScreenNumber() << ".focusNewWindows" << ends;
|
||||||
config.setValue(s.str(), resource.focus_new);
|
config.setValue(s.str(), resource.focus_new);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -888,7 +888,7 @@ void BScreen::setFocusNew(bool f) {
|
||||||
|
|
||||||
void BScreen::setFocusLast(bool f) {
|
void BScreen::setFocusLast(bool f) {
|
||||||
resource.focus_last = f;
|
resource.focus_last = f;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".focusLastWindow" << ends;
|
s << "session.screen" << getScreenNumber() << ".focusLastWindow" << ends;
|
||||||
config.setValue(s.str(), resource.focus_last);
|
config.setValue(s.str(), resource.focus_last);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -897,7 +897,7 @@ void BScreen::setFocusLast(bool f) {
|
||||||
|
|
||||||
void BScreen::setWindowZones(int z) {
|
void BScreen::setWindowZones(int z) {
|
||||||
resource.zones = z;
|
resource.zones = z;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".windowZones" << ends;
|
s << "session.screen" << getScreenNumber() << ".windowZones" << ends;
|
||||||
config.setValue(s.str(), resource.zones);
|
config.setValue(s.str(), resource.zones);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -906,7 +906,7 @@ void BScreen::setWindowZones(int z) {
|
||||||
|
|
||||||
void BScreen::setWorkspaceCount(int w) {
|
void BScreen::setWorkspaceCount(int w) {
|
||||||
resource.workspaces = w;
|
resource.workspaces = w;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".workspaces" << ends;
|
s << "session.screen" << getScreenNumber() << ".workspaces" << ends;
|
||||||
config.setValue(s.str(), resource.workspaces);
|
config.setValue(s.str(), resource.workspaces);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -915,7 +915,7 @@ void BScreen::setWorkspaceCount(int w) {
|
||||||
|
|
||||||
void BScreen::setPlacementPolicy(int p) {
|
void BScreen::setPlacementPolicy(int p) {
|
||||||
resource.placement_policy = p;
|
resource.placement_policy = p;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".windowPlacement" << ends;
|
s << "session.screen" << getScreenNumber() << ".windowPlacement" << ends;
|
||||||
const char *placement;
|
const char *placement;
|
||||||
switch (resource.placement_policy) {
|
switch (resource.placement_policy) {
|
||||||
|
@ -932,7 +932,7 @@ void BScreen::setPlacementPolicy(int p) {
|
||||||
|
|
||||||
void BScreen::setEdgeSnapThreshold(int t) {
|
void BScreen::setEdgeSnapThreshold(int t) {
|
||||||
resource.edge_snap_threshold = t;
|
resource.edge_snap_threshold = t;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".edgeSnapThreshold" << ends;
|
s << "session.screen" << getScreenNumber() << ".edgeSnapThreshold" << ends;
|
||||||
config.setValue(s.str(), resource.edge_snap_threshold);
|
config.setValue(s.str(), resource.edge_snap_threshold);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -941,7 +941,7 @@ void BScreen::setEdgeSnapThreshold(int t) {
|
||||||
|
|
||||||
void BScreen::setRowPlacementDirection(int d) {
|
void BScreen::setRowPlacementDirection(int d) {
|
||||||
resource.row_direction = d;
|
resource.row_direction = d;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".rowPlacementDirection" <<
|
s << "session.screen" << getScreenNumber() << ".rowPlacementDirection" <<
|
||||||
ends;
|
ends;
|
||||||
config.setValue(s.str(),
|
config.setValue(s.str(),
|
||||||
|
@ -953,7 +953,7 @@ void BScreen::setRowPlacementDirection(int d) {
|
||||||
|
|
||||||
void BScreen::setColPlacementDirection(int d) {
|
void BScreen::setColPlacementDirection(int d) {
|
||||||
resource.col_direction = d;
|
resource.col_direction = d;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".colPlacementDirection" <<
|
s << "session.screen" << getScreenNumber() << ".colPlacementDirection" <<
|
||||||
ends;
|
ends;
|
||||||
config.setValue(s.str(),
|
config.setValue(s.str(),
|
||||||
|
@ -982,7 +982,7 @@ void BScreen::setStrftimeFormat(const char *f) {
|
||||||
delete [] resource.strftime_format;
|
delete [] resource.strftime_format;
|
||||||
|
|
||||||
resource.strftime_format = bstrdup(f);
|
resource.strftime_format = bstrdup(f);
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".strftimeFormat" << ends;
|
s << "session.screen" << getScreenNumber() << ".strftimeFormat" << ends;
|
||||||
config.setValue(s.str(), resource.strftime_format);
|
config.setValue(s.str(), resource.strftime_format);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -991,7 +991,7 @@ void BScreen::setStrftimeFormat(const char *f) {
|
||||||
#else // !HAVE_STRFTIME
|
#else // !HAVE_STRFTIME
|
||||||
void BScreen::setDateFormat(int f) {
|
void BScreen::setDateFormat(int f) {
|
||||||
resource.date_format = f;
|
resource.date_format = f;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".dateFormat" << ends;
|
s << "session.screen" << getScreenNumber() << ".dateFormat" << ends;
|
||||||
config.setValue(s.str(), resource.date_format == B_EuropeanDate ?
|
config.setValue(s.str(), resource.date_format == B_EuropeanDate ?
|
||||||
"European" : "American");
|
"European" : "American");
|
||||||
|
@ -1000,7 +1000,7 @@ void BScreen::setDateFormat(int f) {
|
||||||
|
|
||||||
void BScreen::setClock24Hour(Bool c) {
|
void BScreen::setClock24Hour(Bool c) {
|
||||||
resource.clock24hour = c;
|
resource.clock24hour = c;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".clockFormat" << ends;
|
s << "session.screen" << getScreenNumber() << ".clockFormat" << ends;
|
||||||
config.setValue(s.str(), resource.clock24hour ? 24 : 12);
|
config.setValue(s.str(), resource.clock24hour ? 24 : 12);
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -1013,14 +1013,14 @@ void BScreen::setHideToolbar(bool b) {
|
||||||
getToolbar()->unMapToolbar();
|
getToolbar()->unMapToolbar();
|
||||||
else
|
else
|
||||||
getToolbar()->mapToolbar();
|
getToolbar()->mapToolbar();
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << getScreenNumber() << ".hideToolbar" << ends;
|
s << "session.screen" << getScreenNumber() << ".hideToolbar" << ends;
|
||||||
config.setValue(s.str(), resource.hide_toolbar ? "True" : "False");
|
config.setValue(s.str(), resource.hide_toolbar ? "True" : "False");
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BScreen::saveWorkspaceNames() {
|
void BScreen::saveWorkspaceNames() {
|
||||||
ostrstream rc, names;
|
std::ostrstream rc, names;
|
||||||
|
|
||||||
for (int i = 0; i < resource.workspaces; i++) {
|
for (int i = 0; i < resource.workspaces; i++) {
|
||||||
Workspace *w = getWorkspace(i);
|
Workspace *w = getWorkspace(i);
|
||||||
|
|
|
@ -212,7 +212,7 @@ void Slit::removeClient(Window w, Bool remap) {
|
||||||
|
|
||||||
void Slit::setOnTop(bool b) {
|
void Slit::setOnTop(bool b) {
|
||||||
m_ontop = b;
|
m_ontop = b;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << screen.getScreenNumber() << ".slit.onTop" << ends;
|
s << "session.screen" << screen.getScreenNumber() << ".slit.onTop" << ends;
|
||||||
config.setValue(s.str(), m_ontop ? "True" : "False");
|
config.setValue(s.str(), m_ontop ? "True" : "False");
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -220,7 +220,7 @@ void Slit::setOnTop(bool b) {
|
||||||
|
|
||||||
void Slit::setAutoHide(bool b) {
|
void Slit::setAutoHide(bool b) {
|
||||||
m_autohide = b;
|
m_autohide = b;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << screen.getScreenNumber() << ".slit.autoHide" << ends;
|
s << "session.screen" << screen.getScreenNumber() << ".slit.autoHide" << ends;
|
||||||
config.setValue(s.str(), m_autohide ? "True" : "False");
|
config.setValue(s.str(), m_autohide ? "True" : "False");
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -228,7 +228,7 @@ void Slit::setAutoHide(bool b) {
|
||||||
|
|
||||||
void Slit::setPlacement(int p) {
|
void Slit::setPlacement(int p) {
|
||||||
m_placement = p;
|
m_placement = p;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << screen.getScreenNumber() << ".slit.placement" <<
|
s << "session.screen" << screen.getScreenNumber() << ".slit.placement" <<
|
||||||
ends;
|
ends;
|
||||||
const char *placement;
|
const char *placement;
|
||||||
|
@ -248,7 +248,7 @@ void Slit::setPlacement(int p) {
|
||||||
|
|
||||||
void Slit::setDirection(int d) {
|
void Slit::setDirection(int d) {
|
||||||
m_direction = d;
|
m_direction = d;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << screen.getScreenNumber() << ".slit.direction" <<
|
s << "session.screen" << screen.getScreenNumber() << ".slit.direction" <<
|
||||||
ends;
|
ends;
|
||||||
config.setValue(s.str(),
|
config.setValue(s.str(),
|
||||||
|
|
|
@ -215,7 +215,7 @@ Toolbar::~Toolbar() {
|
||||||
|
|
||||||
void Toolbar::setOnTop(bool b) {
|
void Toolbar::setOnTop(bool b) {
|
||||||
m_ontop = b;
|
m_ontop = b;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << screen.getScreenNumber() << ".toolbar.onTop" << ends;
|
s << "session.screen" << screen.getScreenNumber() << ".toolbar.onTop" << ends;
|
||||||
config.setValue(s.str(), m_ontop ? "True" : "False");
|
config.setValue(s.str(), m_ontop ? "True" : "False");
|
||||||
s.rdbuf()->freeze(0);
|
s.rdbuf()->freeze(0);
|
||||||
|
@ -223,7 +223,7 @@ void Toolbar::setOnTop(bool b) {
|
||||||
|
|
||||||
void Toolbar::setAutoHide(bool b) {
|
void Toolbar::setAutoHide(bool b) {
|
||||||
m_autohide = b;
|
m_autohide = b;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << screen.getScreenNumber() << ".toolbar.autoHide" <<
|
s << "session.screen" << screen.getScreenNumber() << ".toolbar.autoHide" <<
|
||||||
ends;
|
ends;
|
||||||
config.setValue(s.str(), m_autohide ? "True" : "False");
|
config.setValue(s.str(), m_autohide ? "True" : "False");
|
||||||
|
@ -232,7 +232,7 @@ void Toolbar::setAutoHide(bool b) {
|
||||||
|
|
||||||
void Toolbar::setWidthPercent(int w) {
|
void Toolbar::setWidthPercent(int w) {
|
||||||
m_width_percent = w;
|
m_width_percent = w;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << screen.getScreenNumber() << ".toolbar.widthPercent"
|
s << "session.screen" << screen.getScreenNumber() << ".toolbar.widthPercent"
|
||||||
<< ends;
|
<< ends;
|
||||||
config.setValue(s.str(), m_width_percent);
|
config.setValue(s.str(), m_width_percent);
|
||||||
|
@ -241,7 +241,7 @@ void Toolbar::setWidthPercent(int w) {
|
||||||
|
|
||||||
void Toolbar::setPlacement(int p) {
|
void Toolbar::setPlacement(int p) {
|
||||||
m_placement = p;
|
m_placement = p;
|
||||||
ostrstream s;
|
std::ostrstream s;
|
||||||
s << "session.screen" << screen.getScreenNumber() << ".toolbar.placement" <<
|
s << "session.screen" << screen.getScreenNumber() << ".toolbar.placement" <<
|
||||||
ends;
|
ends;
|
||||||
const char *placement;
|
const char *placement;
|
||||||
|
|
Loading…
Reference in a new issue