• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • twin
 

twin

  • twin
options.h
1 /*****************************************************************
2  KWin - the KDE window manager
3  This file is part of the KDE project.
4 
5 Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
6 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
7 
8 You can Freely distribute this program under the GNU General Public
9 License. See the file "COPYING" for the exact licensing terms.
10 ******************************************************************/
11 
12 #ifndef KWIN_OPTIONS_H
13 #define KWIN_OPTIONS_H
14 
15 #include <tqobject.h>
16 #include <tqfont.h>
17 #include <tqpalette.h>
18 #include <tqstringlist.h>
19 #include <kdecoration_p.h>
20 
21 #include "placement.h"
22 
23 namespace KWinInternal
24 {
25 
26 class Client;
27 
28 class Options : public KDecorationOptions
29  {
30  public:
31 
32  Options();
33  ~Options();
34 
35  virtual unsigned long updateSettings();
36 
68  enum FocusPolicy { ClickToFocus, FocusFollowsMouse, FocusUnderMouse, FocusStrictlyUnderMouse };
69  FocusPolicy focusPolicy;
70 
71 
76  bool clickRaise;
77 
81  bool autoRaise;
82 
86  int autoRaiseInterval;
87 
91  bool delayFocus;
92 
96  int delayFocusInterval;
97 
101  bool shadeHover;
102 
106  int shadeHoverInterval;
107 
125  enum AltTabStyle { KDE, CDE };
126  AltTabStyle altTabStyle;
127 
128  // whether to see Xinerama screens separately for focus (in Alt+Tab, when activating next client)
129  bool separateScreenFocus;
130  // whether active Xinerama screen is the one with mouse (or with the active window)
131  bool activeMouseScreen;
132 
136  bool xineramaEnabled;
137  bool xineramaPlacementEnabled;
138  bool xineramaMovementEnabled;
139  bool xineramaMaximizeEnabled;
140  bool xineramaFullscreenEnabled;
141 
142  // number, or -1 = active screen (Workspace::activeScreen())
143  int xineramaPlacementScreen;
144 
148  enum MoveResizeMode { Transparent, Opaque };
149 
150  MoveResizeMode moveMode;
151  MoveResizeMode resizeMode;
152  MoveResizeMode tilingMode;
153 
154  static MoveResizeMode stringToMoveResizeMode( const TQString& s );
155  static const char* moveResizeModeToString( MoveResizeMode mode );
156 
157  Placement::Policy placement;
158 
159  bool focusPolicyIsReasonable()
160  {
161  return focusPolicy == ClickToFocus || focusPolicy == FocusFollowsMouse;
162  }
163 
167  bool animateShade;
168 
172  int borderSnapZone;
173 
177  int windowSnapZone;
178 
179 
183  bool snapOnlyWhenOverlapping;
184 
188  bool animateMinimize;
189 
193  int animateMinimizeSpeed;
194 
195  bool showDesktopIsMinimizeAll;
196 
200  bool rollOverDesktops;
201 
202  // 0 - 4 , see Workspace::allowClientActivation()
203  int focusStealingPreventionLevel;
204 
208  TQStringList ignorePositionClasses;
209 
210  bool checkIgnoreFocusStealing( const Client* c );
211 
212  WindowOperation operationTitlebarDblClick() { return OpTitlebarDblClick; }
213 
214  enum MouseCommand
215  {
216  MouseRaise, MouseLower, MouseOperationsMenu, MouseToggleRaiseAndLower,
217  MouseActivateAndRaise, MouseActivateAndLower, MouseActivate,
218  MouseActivateRaiseAndPassClick, MouseActivateAndPassClick,
219  MouseMove, MouseUnrestrictedMove,
220  MouseActivateRaiseAndMove, MouseActivateRaiseAndUnrestrictedMove,
221  MouseResize, MouseUnrestrictedResize,
222  MouseShade, MouseSetShade, MouseUnsetShade,
223  MouseMaximize, MouseRestore, MouseMinimize,
224  MouseNextDesktop, MousePreviousDesktop,
225  MouseAbove, MouseBelow,
226  MouseOpacityMore, MouseOpacityLess,
227  MouseNothing
228  };
229 
230  enum MouseWheelCommand
231  {
232  MouseWheelRaiseLower, MouseWheelShadeUnshade, MouseWheelMaximizeRestore,
233  MouseWheelAboveBelow, MouseWheelPreviousNextDesktop,
234  MouseWheelChangeOpacity,
235  MouseWheelNothing
236  };
237 
238  MouseCommand operationTitlebarMouseWheel( int delta )
239  {
240  return wheelToMouseCommand( CmdTitlebarWheel, delta, CmdTitlebarRevWheel );
241  }
242  MouseCommand operationWindowMouseWheel( int delta )
243  {
244  return wheelToMouseCommand( CmdAllWheel, delta, CmdAllRevWheel );
245  }
246 
247  MouseCommand commandActiveTitlebar1() { return CmdActiveTitlebar1; }
248  MouseCommand commandActiveTitlebar2() { return CmdActiveTitlebar2; }
249  MouseCommand commandActiveTitlebar3() { return CmdActiveTitlebar3; }
250  MouseCommand commandInactiveTitlebar1() { return CmdInactiveTitlebar1; }
251  MouseCommand commandInactiveTitlebar2() { return CmdInactiveTitlebar2; }
252  MouseCommand commandInactiveTitlebar3() { return CmdInactiveTitlebar3; }
253  MouseCommand commandWindow1() { return CmdWindow1; }
254  MouseCommand commandWindow2() { return CmdWindow2; }
255  MouseCommand commandWindow3() { return CmdWindow3; }
256  MouseCommand commandAll1() { return CmdAll1; }
257  MouseCommand commandAll2() { return CmdAll2; }
258  MouseCommand commandAll3() { return CmdAll3; }
259  uint keyCmdAllModKey() { return CmdAllModKey; }
260 
261 
262  static WindowOperation windowOperation(const TQString &name, bool restricted );
263  static MouseCommand mouseCommand(const TQString &name, bool restricted );
264  static MouseWheelCommand mouseWheelCommand(const TQString &name);
265 
270  bool showGeometryTip();
271 
277  bool resetMaximizedWindowGeometry();
278 
283  TQColor &shadowColour(bool active=true);
284 
289  bool shadowWindowType(NET::WindowType t);
290 
294  bool shadowEnabled(bool active=true);
295 
299  double shadowOpacity(bool active=true);
300 
304  int shadowThickness(bool active=true);
305 
310  int shadowXOffset(bool active=true);
311 
316  int shadowYOffset(bool active=true);
317 
318  enum { ActiveDisabled = 0,
319  ActiveSwitchOnMove = 1,
320  ActiveSwitchAlways = 2,
321  ActiveTileOnly = 3,
322  ActiveTileMaximize = 4 };
328  int activeBorders();
329 
330  int borderActivationDistance();
331 
335  int activeBorderDelay();
336 
337  bool topMenuEnabled() const { return topmenus; }
338  bool desktopTopMenu() const { return desktop_topmenu; }
339 
340  // timeout before non-responding application will be killed after attempt to close
341  int killPingTimeout;
342 
343  // Whether to hide utility windows for inactive applications.
344  bool hideUtilityWindowsForInactive;
345 
346  //translucency settings
347  bool useTranslucency;
348  bool translucentActiveWindows;
349  uint activeWindowOpacity;
350  bool translucentInactiveWindows;
351  uint inactiveWindowOpacity;
352  bool translucentMovingWindows;
353  uint movingWindowOpacity;
354  bool removeShadowsOnResize;
355  bool removeShadowsOnMove;
356  bool translucentDocks;
357  uint dockOpacity;
358  bool keepAboveAsActive;
359  bool useTitleMenuSlider;
360  uint activeWindowShadowSize;
361  uint inactiveWindowShadowSize;
362  uint dockShadowSize;
363  uint menuShadowSize;
364  bool onlyDecoTranslucent;
365  bool resetKompmgr;
366  bool tabboxOutline;
367 
368  private:
369  WindowOperation OpTitlebarDblClick;
370 
371  // mouse bindings
372  MouseCommand CmdActiveTitlebar1;
373  MouseCommand CmdActiveTitlebar2;
374  MouseCommand CmdActiveTitlebar3;
375  MouseCommand CmdInactiveTitlebar1;
376  MouseCommand CmdInactiveTitlebar2;
377  MouseCommand CmdInactiveTitlebar3;
378  MouseWheelCommand CmdTitlebarWheel;
379  bool CmdTitlebarRevWheel;
380  MouseCommand CmdWindow1;
381  MouseCommand CmdWindow2;
382  MouseCommand CmdWindow3;
383  MouseCommand CmdAll1;
384  MouseCommand CmdAll2;
385  MouseCommand CmdAll3;
386  MouseWheelCommand CmdAllWheel;
387  bool CmdAllRevWheel;
388  uint CmdAllModKey;
389 
390  int active_borders;
391  int active_border_delay;
392  int active_border_distance;
393  bool show_geometry_tip;
394  bool reset_maximized_window_geometry;
395  bool topmenus;
396  bool desktop_topmenu;
397  TQColor shadow_colour;
398  TQColor shadow_inactive_colour;
399  bool shadow_docks;
400  bool shadow_menus;
401  bool shadow_overrides;
402  bool shadow_topMenus;
403  bool shadow_inactive_enabled;
404  bool shadow_enabled;
405  double shadow_inactive_opacity;
406  double shadow_opacity;
407  int shadow_inactive_thickness;
408  int shadow_thickness;
409  int shadow_inactive_x_offset;
410  int shadow_x_offset;
411  int shadow_inactive_y_offset;
412  int shadow_y_offset;
413  // List of window classes for which not to use focus stealing prevention
414  TQStringList ignoreFocusStealingClasses;
415 
416  MouseCommand wheelToMouseCommand( MouseWheelCommand com, int delta, bool revDir );
417  };
418 
419 extern Options* options;
420 
421 } // namespace
422 
423 #endif
KWinInternal
Definition: activation.cpp:34

twin

Skip menu "twin"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

twin

Skip menu "twin"
  • kate
  • libkonq
  • twin
  •   lib
Generated for twin by doxygen 1.8.13
This website is maintained by Timothy Pearson.