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

twin

  • twin
tabbox.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_TABBOX_H
13 #define KWIN_TABBOX_H
14 
15 #include <tqframe.h>
16 #include <tqtimer.h>
17 #include <tqvaluelist.h>
18 #include "utils.h"
19 
20 class TQLabel;
21 
22 namespace KWinInternal
23 {
24 
25 class Workspace;
26 class Client;
27 
28 class TabBox : public TQFrame
29  {
30  TQ_OBJECT
31  public:
32  TabBox( Workspace *ws, const char *name=0 );
33  ~TabBox();
34 
35  Client* currentClient();
36  void setCurrentClient( Client* c );
37  int currentDesktop();
38 
39  // DesktopMode and WindowsMode are based on the order in which the desktop
40  // or window were viewed.
41  // DesktopListMode lists them in the order created.
42  enum Mode { DesktopMode, DesktopListMode, WindowsMode };
43  void setMode( Mode mode );
44  void setAppsOnly( bool a );
45  Mode mode() const;
46  bool isAppsOnly() const;
47 
48  void reset();
49  void nextPrev( bool next = TRUE);
50 
51  void delayedShow();
52  void hide();
53 
54  void handleMouseEvent( XEvent* );
55 
56  Workspace* workspace() const;
57 
58  void reconfigure();
59 
60  protected:
61  void showEvent( TQShowEvent* );
62  void hideEvent( TQHideEvent* );
63  void drawContents( TQPainter * );
64 
65  private:
66  void createClientList(ClientList &list, int desktop /*-1 = all*/, Client *start, bool chain);
67  void updateOutline();
68 
69  private:
70  Client* current_client;
71  Mode m;
72  Workspace* wspace;
73  ClientList clients;
74  int desk;
75  int lineHeight;
76  bool showMiniIcon;
77  bool appsOnly;
78  TQTimer delayedShowTimer;
79  TQString no_tasks;
80  bool options_traverse_all;
81  Window outline_left, outline_right, outline_top, outline_bottom;
82  };
83 
84 
88 inline Workspace* TabBox::workspace() const
89  {
90  return wspace;
91  }
92 
98 inline TabBox::Mode TabBox::mode() const
99  {
100  return m;
101  }
102 
108 inline bool TabBox::isAppsOnly() const
109  {
110  return appsOnly;
111  }
112 
113 
114 } // namespace
115 
116 #endif

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.9.1
This website is maintained by Timothy Pearson.