Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / nsplugins / viewer / pluginhost_xt.h
blobd3a67665fef94ee48e4e43f03129a8336d96584d
1 /*
3 Xt plugin embedding support
5 Copyright (c) 2000 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
6 Stefan Schimanski <1Stein@gmx.de>
7 2003-2005 George Staikos <staikos@kde.org>
8 2007 Maksim Orlovich <maksim@kde.org>
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 #ifndef PLUGIN_HOST_XT_H
27 #define PLUGIN_HOST_XT_H
29 #include "pluginhost.h"
30 #include <QX11EmbedContainer>
32 #include <X11/Intrinsic.h>
33 #include <X11/Composite.h>
34 #include <X11/Constraint.h>
35 #include <X11/Shell.h>
36 #include <X11/StringDefs.h>
37 #include <fixx11h.h>
39 class PluginHostXt : public PluginHost
41 public:
42 PluginHostXt(NSPluginInstance* plugin);
43 virtual void setupWindow(int winId, int width, int height);
44 virtual void resizePlugin(int pluginWinId, int w, int h);
45 virtual ~PluginHostXt();
46 private:
47 static void forwarder(Widget w, XtPointer cl_data, XEvent * event, Boolean * cont);
48 NSPluginInstance* _plugin;
49 QX11EmbedWidget* _outside;
50 Widget _toplevel;
51 Widget _form;
55 #endif
57 // kate: indent-width 4; replace-tabs on; tab-width 4; space-indent on;