include the all otk stuff into the openbox python module. rename widget.hh to stop conflicting with the one in otk/
This commit is contained in:
parent
e0878c9fc2
commit
c8e246f8de
12 changed files with 13093 additions and 710 deletions
|
@ -35,6 +35,6 @@ openbox.i: openbox.hh screen.hh client.hh python.hh
|
|||
touch $@
|
||||
|
||||
openbox_wrap.cc: openbox.i
|
||||
swig $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
|
||||
swig -I../otk $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
|
||||
|
||||
# local dependencies
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#endif
|
||||
|
||||
#include "actions.hh"
|
||||
#include "widget.hh"
|
||||
#include "widgetbase.hh"
|
||||
#include "openbox.hh"
|
||||
#include "client.hh"
|
||||
#include "screen.hh"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#define __obbackgroundwidget_hh
|
||||
|
||||
#include "otk/widget.hh"
|
||||
#include "widget.hh"
|
||||
#include "widgetbase.hh"
|
||||
|
||||
namespace ob {
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
#ifndef __obbuttonwidget_hh
|
||||
#define __obbuttonwidget_hh
|
||||
|
||||
#include "widgetbase.hh"
|
||||
#include "otk/widget.hh"
|
||||
#include "widget.hh"
|
||||
|
||||
namespace ob {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
property changes on the window and some client messages
|
||||
*/
|
||||
|
||||
#include "widget.hh"
|
||||
#include "widgetbase.hh"
|
||||
#include "otk/point.hh"
|
||||
#include "otk/strut.hh"
|
||||
#include "otk/rect.hh"
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
#ifndef __oblabelwidget_hh
|
||||
#define __oblabelwidget_hh
|
||||
|
||||
#include "widgetbase.hh"
|
||||
#include "otk/widget.hh"
|
||||
#include "otk/font.hh"
|
||||
#include "otk/style.hh"
|
||||
#include "widget.hh"
|
||||
|
||||
namespace ob {
|
||||
|
||||
|
|
|
@ -107,13 +107,10 @@ void python_callback(PyObject *func, KeyData *data)
|
|||
}
|
||||
};
|
||||
|
||||
%import "../otk/eventdispatcher.hh"
|
||||
%import "../otk/eventhandler.hh"
|
||||
%import "widget.hh"
|
||||
%import "actions.hh"
|
||||
%include "../otk/otk.i"
|
||||
|
||||
%include "../otk/point.hh"
|
||||
%include "../otk/rect.hh"
|
||||
%import "widgetbase.hh"
|
||||
%import "actions.hh"
|
||||
|
||||
%include "openbox.hh"
|
||||
%include "screen.hh"
|
||||
|
|
1966
src/openbox.py
1966
src/openbox.py
File diff suppressed because it is too large
Load diff
11805
src/openbox_wrap.cc
11805
src/openbox_wrap.cc
File diff suppressed because it is too large
Load diff
|
@ -31,7 +31,7 @@ void python_init(char *argv0)
|
|||
otk::expandTilde("~/.openbox/python") +
|
||||
"')").c_str()));
|
||||
// PyRun_SimpleString("from _otk import *; from _openbox import *;");
|
||||
PyRun_SimpleString("from otk import *; from openbox import *;");
|
||||
PyRun_SimpleString("from openbox import *;");
|
||||
PyRun_SimpleString("openbox = Openbox_instance()");
|
||||
PyRun_SimpleString("display = OBDisplay_display()");
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ extern "C" {
|
|||
}
|
||||
|
||||
#include "client.hh"
|
||||
#include "widget.hh"
|
||||
#include "widgetbase.hh"
|
||||
#include "otk/image.hh"
|
||||
#include "otk/strut.hh"
|
||||
#include "otk/rect.hh"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
|
||||
#ifndef __obwidget_hh
|
||||
#define __obwidget_hh
|
||||
#ifndef __obwidgetbase_hh
|
||||
#define __obwidgetbase_hh
|
||||
|
||||
#include "python.hh"
|
||||
|
||||
|
@ -8,7 +8,6 @@ namespace ob {
|
|||
|
||||
class OBWidget {
|
||||
public:
|
||||
// update the enum in openbox.i to match this one
|
||||
enum WidgetType {
|
||||
Type_Frame,
|
||||
Type_Titlebar,
|
||||
|
@ -69,4 +68,4 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif // __obwidget_hh
|
||||
#endif // __obwidgetbase_hh
|
Loading…
Reference in a new issue