aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-27 17:05:49 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-27 17:05:49 (GMT)
commit55fd49614bb1b9e37561147f18719b2ac277b64b (patch)
treec0f58db24f6fa3a457bca26393c00632dd630328 /src/Remember.cc
parent08c8c6431f88ff3d5012d800a8df689b7028fe98 (diff)
downloadfluxbox_pavel-55fd49614bb1b9e37561147f18719b2ac277b64b.zip
fluxbox_pavel-55fd49614bb1b9e37561147f18719b2ac277b64b.tar.bz2
move FbWinFrame::State class to a new file
Diffstat (limited to 'src/Remember.cc')
-rw-r--r--src/Remember.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/Remember.cc b/src/Remember.cc
index 1df5045..0ea8a6c 100644
--- a/src/Remember.cc
+++ b/src/Remember.cc
@@ -500,7 +500,7 @@ int parseApp(ifstream &file, Application &app, string *first_line = 0) {
500 app.rememberIconHiddenstate((strcasecmp(str_label.c_str(), "yes") == 0)); 500 app.rememberIconHiddenstate((strcasecmp(str_label.c_str(), "yes") == 0));
501 app.rememberFocusHiddenstate((strcasecmp(str_label.c_str(), "yes") == 0)); 501 app.rememberFocusHiddenstate((strcasecmp(str_label.c_str(), "yes") == 0));
502 } else if (str_key == "deco") { 502 } else if (str_key == "deco") {
503 int deco = FbWinFrame::getDecoMaskFromString(str_label); 503 int deco = WindowState::getDecoMaskFromString(str_label);
504 if (deco == -1) 504 if (deco == -1)
505 had_error = 1; 505 had_error = 1;
506 else 506 else
@@ -535,13 +535,13 @@ int parseApp(ifstream &file, Application &app, string *first_line = 0) {
535 app.rememberMinimizedstate((strcasecmp(str_label.c_str(), "yes") == 0)); 535 app.rememberMinimizedstate((strcasecmp(str_label.c_str(), "yes") == 0));
536 } else if (str_key == "maximized") { 536 } else if (str_key == "maximized") {
537 if (strcasecmp(str_label.c_str(), "yes") == 0) 537 if (strcasecmp(str_label.c_str(), "yes") == 0)
538 app.rememberMaximizedstate(FbWinFrame::MAX_FULL); 538 app.rememberMaximizedstate(WindowState::MAX_FULL);
539 else if (strcasecmp(str_label.c_str(), "horz") == 0) 539 else if (strcasecmp(str_label.c_str(), "horz") == 0)
540 app.rememberMaximizedstate(FbWinFrame::MAX_HORZ); 540 app.rememberMaximizedstate(WindowState::MAX_HORZ);
541 else if (strcasecmp(str_label.c_str(), "vert") == 0) 541 else if (strcasecmp(str_label.c_str(), "vert") == 0)
542 app.rememberMaximizedstate(FbWinFrame::MAX_VERT); 542 app.rememberMaximizedstate(WindowState::MAX_VERT);
543 else 543 else
544 app.rememberMaximizedstate(FbWinFrame::MAX_NONE); 544 app.rememberMaximizedstate(WindowState::MAX_NONE);
545 } else if (str_key == "fullscreen") { 545 } else if (str_key == "fullscreen") {
546 app.rememberFullscreenstate((strcasecmp(str_label.c_str(), "yes") == 0)); 546 app.rememberFullscreenstate((strcasecmp(str_label.c_str(), "yes") == 0));
547 } else if (str_key == "jump") { 547 } else if (str_key == "jump") {
@@ -953,25 +953,25 @@ void Remember::save() {
953 apps_file << " [Deco]\t{NONE}" << endl; 953 apps_file << " [Deco]\t{NONE}" << endl;
954 break; 954 break;
955 case (0xffffffff): 955 case (0xffffffff):
956 case (FbWinFrame::DECORM_LAST - 1): 956 case (WindowState::DECORM_LAST - 1):
957 apps_file << " [Deco]\t{NORMAL}" << endl; 957 apps_file << " [Deco]\t{NORMAL}" << endl;
958 break; 958 break;
959 case (FbWinFrame::DECORM_TITLEBAR 959 case (WindowState::DECORM_TITLEBAR
960 | FbWinFrame::DECORM_ICONIFY 960 | WindowState::DECORM_ICONIFY
961 | FbWinFrame::DECORM_MENU): 961 | WindowState::DECORM_MENU):
962 apps_file << " [Deco]\t{TOOL}" << endl; 962 apps_file << " [Deco]\t{TOOL}" << endl;
963 break; 963 break;
964 case (FbWinFrame::DECORM_TITLEBAR 964 case (WindowState::DECORM_TITLEBAR
965 | FbWinFrame::DECORM_MENU): 965 | WindowState::DECORM_MENU):
966 apps_file << " [Deco]\t{TINY}" << endl; 966 apps_file << " [Deco]\t{TINY}" << endl;
967 break; 967 break;
968 case (FbWinFrame::DECORM_BORDER 968 case (WindowState::DECORM_BORDER
969 | FbWinFrame::DECORM_MENU): 969 | WindowState::DECORM_MENU):
970 apps_file << " [Deco]\t{BORDER}" << endl; 970 apps_file << " [Deco]\t{BORDER}" << endl;
971 break; 971 break;
972 case (FbWinFrame::DECORM_BORDER 972 case (WindowState::DECORM_BORDER
973 | FbWinFrame::DECORM_MENU 973 | WindowState::DECORM_MENU
974 | FbWinFrame::DECORM_TAB): 974 | WindowState::DECORM_TAB):
975 apps_file << " [Deco]\t{TAB}" << endl; 975 apps_file << " [Deco]\t{TAB}" << endl;
976 break; 976 break;
977 default: 977 default:
@@ -999,16 +999,16 @@ void Remember::save() {
999 if (a.maximizedstate_remember) { 999 if (a.maximizedstate_remember) {
1000 apps_file << " [Maximized]\t{"; 1000 apps_file << " [Maximized]\t{";
1001 switch (a.maximizedstate) { 1001 switch (a.maximizedstate) {
1002 case FbWinFrame::MAX_FULL: 1002 case WindowState::MAX_FULL:
1003 apps_file << "yes" << "}" << endl; 1003 apps_file << "yes" << "}" << endl;
1004 break; 1004 break;
1005 case FbWinFrame::MAX_HORZ: 1005 case WindowState::MAX_HORZ:
1006 apps_file << "horz" << "}" << endl; 1006 apps_file << "horz" << "}" << endl;
1007 break; 1007 break;
1008 case FbWinFrame::MAX_VERT: 1008 case WindowState::MAX_VERT:
1009 apps_file << "vert" << "}" << endl; 1009 apps_file << "vert" << "}" << endl;
1010 break; 1010 break;
1011 case FbWinFrame::MAX_NONE: 1011 case WindowState::MAX_NONE:
1012 default: 1012 default:
1013 apps_file << "no" << "}" << endl; 1013 apps_file << "no" << "}" << endl;
1014 break; 1014 break;