summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-08 09:23:24 +0000
committerDana Jansens <danakj@orodu.net>2003-02-08 09:23:24 +0000
commitc54d92b784036a4d9e829592aab938e661287fca (patch)
treed4b56f262fea40360b0cc8001c7ec9c59d37968b
parente4fa1c5a71fd8719ead9c9b9211c142c4970dcca (diff)
this is no longer used
-rw-r--r--src/widgetbase.hh71
1 files changed, 0 insertions, 71 deletions
diff --git a/src/widgetbase.hh b/src/widgetbase.hh
deleted file mode 100644
index 46aacb9f..00000000
--- a/src/widgetbase.hh
+++ /dev/null
@@ -1,71 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef __widgetbase_hh
-#define __widgetbase_hh
-
-#include "python.hh"
-
-namespace ob {
-
-class WidgetBase {
-public:
- enum WidgetType {
- Type_Frame,
- Type_Titlebar,
- Type_Handle,
- Type_Plate,
- Type_Label,
- Type_MaximizeButton,
- Type_CloseButton,
- Type_IconifyButton,
- Type_AllDesktopsButton,
- Type_LeftGrip,
- Type_RightGrip,
- Type_Client,
- Type_Root
- };
-
-private:
- WidgetType _type;
-
-public:
- WidgetBase(WidgetType type) : _type(type) {}
-
- inline WidgetType type() const { return _type; }
-
- inline MouseContext::MC mcontext() const {
- switch (_type) {
- case Type_Frame:
- return MouseContext::Frame;
- case Type_Titlebar:
- return MouseContext::Titlebar;
- case Type_Handle:
- return MouseContext::Handle;
- case Type_Plate:
- return MouseContext::Window;
- case Type_Label:
- return MouseContext::Titlebar;
- case Type_MaximizeButton:
- return MouseContext::MaximizeButton;
- case Type_CloseButton:
- return MouseContext::CloseButton;
- case Type_IconifyButton:
- return MouseContext::IconifyButton;
- case Type_AllDesktopsButton:
- return MouseContext::AllDesktopsButton;
- case Type_LeftGrip:
- return MouseContext::Grip;
- case Type_RightGrip:
- return MouseContext::Grip;
- case Type_Client:
- return MouseContext::Window;
- case Type_Root:
- return MouseContext::Root;
- default:
- assert(false); // unhandled type
- }
- }
-};
-
-}
-
-#endif // __widgetbase_hh