]> Dogcows Code - chaz/openbox/commitdiff
add a skeletal OBActions class for user actions
authorDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 04:11:24 +0000 (04:11 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 04:11:24 +0000 (04:11 +0000)
src/Makefile.am
src/actions.cc [new file with mode: 0644]
src/actions.hh [new file with mode: 0644]
src/openbox.cc
src/openbox.hh

index ac4534c6026630564d9a5d844439eab8b343882e..bc83bb6fb80fd743dd8b9e70c7000bcac67c6276 100644 (file)
@@ -15,7 +15,7 @@ bin_PROGRAMS= openbox3
 
 openbox3_LDADD=../otk/libotk.a @LIBINTL@
 
-openbox3_SOURCES= client.cc frame.cc openbox.cc screen.cc \
+openbox3_SOURCES= actions.cc client.cc frame.cc openbox.cc screen.cc \
                   main.cc rootwindow.cc
 
 MAINTAINERCLEANFILES= Makefile.in
diff --git a/src/actions.cc b/src/actions.cc
new file mode 100644 (file)
index 0000000..2ee6bc5
--- /dev/null
@@ -0,0 +1,20 @@
+// -*- mode: C++; indent-tabs-mode: nil; -*-
+
+#ifdef HAVE_CONFIG_H
+# include "../config.h"
+#endif
+
+#include "actions.hh"
+
+namespace ob {
+
+OBActions::OBActions()
+{
+}
+
+
+OBActions::~OBActions()
+{
+}
+
+}
diff --git a/src/actions.hh b/src/actions.hh
new file mode 100644 (file)
index 0000000..1013e52
--- /dev/null
@@ -0,0 +1,27 @@
+// -*- mode: C++; indent-tabs-mode: nil; -*-
+#ifndef __actions_hh
+#define __actions_hh
+
+/*! @file actions.hh
+  @brief The action interface for user-available actions
+*/
+
+namespace ob {
+
+//! The action interface for user-available actions
+/*!
+*/
+class OBActions {
+public:
+  
+private:
+
+public:
+  OBActions();
+  virtual ~OBActions();
+  
+};
+
+}
+
+#endif // __actions_hh
index 44d3b8c42cf92872bd21d75d1ce689d0167e0632..d17a55000b8dcfb70ab2eb39accb9d66ba2afc75 100644 (file)
@@ -8,6 +8,7 @@
 #include "openbox.hh"
 #include "client.hh"
 #include "screen.hh"
+#include "actions.hh"
 #include "otk/property.hh"
 #include "otk/display.hh"
 #include "otk/assassin.hh"
@@ -49,7 +50,8 @@ extern "C" {
 
 namespace ob {
 
-Openbox *Openbox::instance = (Openbox *) 0;
+Openbox *Openbox::instance  = (Openbox *) 0;
+OBActions *Openbox::actions = (OBActions *) 0;
 
 
 void Openbox::signalHandler(int signal)
@@ -122,6 +124,8 @@ Openbox::Openbox(int argc, char **argv)
 
   _property = new otk::OBProperty();
 
+  Openbox::actions = new OBActions();
+
   // create the mouse cursors we'll use
   _cursors.session = XCreateFontCursor(otk::OBDisplay::display, XC_left_ptr);
   _cursors.move = XCreateFontCursor(otk::OBDisplay::display, XC_fleur);
index 75a3a2e0a4adbcf16d8eb7c476efadae7b6a9e25..b6c3d6d19f6581fb8f03750ed09119ed7ca20797 100644 (file)
@@ -29,8 +29,9 @@ namespace ob {
 
 class OBScreen;
 class OBClient;
+class OBActions;
 
-//! The main class for the Openbox window manager.
+//! The main class for the Openbox window manager
 /*!
   Only a single instance of the Openbox class may be used in the application. A
   pointer to this instance is held in the Openbox::instance static member
@@ -43,13 +44,16 @@ class OBClient;
 class Openbox : public otk::OtkEventDispatcher, public otk::OtkEventHandler
 {
 public:
-  //! The single instance of the Openbox class for the application.
+  //! The single instance of the Openbox class for the application
   /*!
     Since this variable is globally available in the application, the Openbox
     class does not need to be passed around to any of the other classes.
   */
   static Openbox *instance;
 
+  //! The action interface through which all user-available actions occur
+  static OBActions *actions;
+
   //! The posible running states of the window manager
   enum RunState {
     State_Starting, //!< The window manager is starting up (being created)
This page took 0.027386 seconds and 4 git commands to generate.