aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-02-16 10:26:03 (GMT)
committerfluxgen <fluxgen>2004-02-16 10:26:03 (GMT)
commit17c41e5bacb70bbe2910ec3bd967343236a437db (patch)
treea487fcdc40019c1a9a3acc3eba7ccc7249dfe451 /src/Remember.hh
parentc0cf1d918bd4a8b21ae57f79c570a534866795e7 (diff)
downloadfluxbox_pavel-17c41e5bacb70bbe2910ec3bd967343236a437db.zip
fluxbox_pavel-17c41e5bacb70bbe2910ec3bd967343236a437db.tar.bz2
added hidden state to remember, patch from akira
Diffstat (limited to 'src/Remember.hh')
-rw-r--r--src/Remember.hh22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/Remember.hh b/src/Remember.hh
index 50c15df..2e92e42 100644
--- a/src/Remember.hh
+++ b/src/Remember.hh
@@ -21,7 +21,7 @@
21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22// DEALINGS IN THE SOFTWARE. 22// DEALINGS IN THE SOFTWARE.
23 23
24// $Id: Remember.hh,v 1.14 2004/01/19 18:26:25 fluxgen Exp $ 24// $Id: Remember.hh,v 1.15 2004/02/16 10:25:34 fluxgen Exp $
25 25
26/* Based on the original "Remember patch" by Xavier Brouckaert */ 26/* Based on the original "Remember patch" by Xavier Brouckaert */
27 27
@@ -50,6 +50,7 @@ public:
50 inline void forgetShadedstate() { shadedstate_remember = false; } 50 inline void forgetShadedstate() { shadedstate_remember = false; }
51 inline void forgetTabstate() { tabstate_remember = false; } 51 inline void forgetTabstate() { tabstate_remember = false; }
52 inline void forgetDecostate() { decostate_remember = false; } 52 inline void forgetDecostate() { decostate_remember = false; }
53 inline void forgetHiddenstate() { hiddenstate_remember= false; }
53 inline void forgetStuckstate() { stuckstate_remember = false; } 54 inline void forgetStuckstate() { stuckstate_remember = false; }
54 inline void forgetJumpworkspace() { jumpworkspace_remember = false; } 55 inline void forgetJumpworkspace() { jumpworkspace_remember = false; }
55 inline void forgetLayer() { layer_remember = false; } 56 inline void forgetLayer() { layer_remember = false; }
@@ -59,6 +60,9 @@ public:
59 { workspace = ws; workspace_remember = true; } 60 { workspace = ws; workspace_remember = true; }
60 inline void rememberDimensions(int width, int height) 61 inline void rememberDimensions(int width, int height)
61 { w = width; h = height; dimensions_remember = true; } 62 { w = width; h = height; dimensions_remember = true; }
63
64 inline void rememberHiddenstate(bool state)
65 { hiddenstate= state; hiddenstate_remember= true; }
62 inline void rememberPosition(int posx, int posy, unsigned char rfc= 0 ) 66 inline void rememberPosition(int posx, int posy, unsigned char rfc= 0 )
63 { x = posx; y = posy; refc = rfc; position_remember = true; } 67 { x = posx; y = posy; refc = rfc; position_remember = true; }
64 inline void rememberShadedstate(bool state) 68 inline void rememberShadedstate(bool state)
@@ -102,6 +106,9 @@ public:
102 bool stuckstate_remember; 106 bool stuckstate_remember;
103 bool stuckstate; 107 bool stuckstate;
104 108
109 bool hiddenstate_remember;
110 bool hiddenstate;
111
105 bool jumpworkspace_remember; 112 bool jumpworkspace_remember;
106 bool jumpworkspace; 113 bool jumpworkspace;
107 114
@@ -129,16 +136,17 @@ public:
129 * holds which attributes to remember 136 * holds which attributes to remember
130 */ 137 */
131 enum Attribute { 138 enum Attribute {
132 REM_WORKSPACE=0, 139 REM_DECOSTATE= 0,
133 REM_DIMENSIONS, 140 REM_DIMENSIONS,
141 REM_HIDDENSTATE,
142 REM_JUMPWORKSPACE,
143 REM_LAYER,
134 REM_POSITION, 144 REM_POSITION,
135 REM_STUCKSTATE, 145 REM_SAVEONCLOSE,
136 REM_DECOSTATE,
137 REM_SHADEDSTATE, 146 REM_SHADEDSTATE,
147 REM_STUCKSTATE,
138 //REM_TABSTATE, ... external tabs disabled atm 148 //REM_TABSTATE, ... external tabs disabled atm
139 REM_LAYER, 149 REM_WORKSPACE,
140 REM_JUMPWORKSPACE,
141 REM_SAVEONCLOSE,
142 REM_LASTATTRIB // not actually used 150 REM_LASTATTRIB // not actually used
143 }; 151 };
144 152