PieDock  1.6.3
MenuItems.h
1 /*
2  * O ,-
3  * o . - ' ,-
4  * . ` . ,
5  * ( )) . (
6  * `-;_ . - `.`.
7  * `._'
8  *
9  * Copyright (c) 2007-2011 Markus Fisch <mf@markusfisch.de>
10  *
11  * Licensed under the MIT license:
12  * http://www.opensource.org/licenses/mit-license.php
13  */
14 #ifndef _PieDock_MenuItems_
15 #define _PieDock_MenuItems_
16 
17 #include "MenuItem.h"
18 
19 #include <list>
20 
21 namespace PieDock
22 {
28  class MenuItems : public std::list<MenuItem *>
29  {
30  public:
31  MenuItems() : windows( false ), one( false ), only( false ) {}
32  virtual ~MenuItems() {}
33  inline const bool &includeWindows() const {
34  return windows; }
35  inline void setIncludeWindows( bool w ) { windows = w; }
36  inline const bool &oneIconPerWindow() const {
37  return one; }
38  inline void setOneIconPerWindow( bool o ) { one = o; }
39  inline const bool &onlyFromActive() const {
40  return only; }
41  inline void setOnlyFromActive( bool o ) { only = o; }
42 
43  private:
44  bool windows;
45  bool one;
46  bool only;
47  };
48 }
49 
50 #endif