KDevelop API Documentation

lib/compat/kdevwidgetaction.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 ***************************************************************************/ 00009 00010 #ifndef _KDEVWIDGETACTION_H_ 00011 #define _KDEVWIDGETACTION_H_ 00012 00013 #include <kdeversion.h> 00014 00015 #if !(KDE_VERSION > 305) 00016 00017 #include <qguardedptr.h> 00018 #include <kaction.h> 00019 00020 namespace KDevCompat { 00021 00022 //--------------------begin-of-copy-of-kde-3.1----------- 00027 class KWidgetAction : public KAction 00028 { 00029 Q_OBJECT 00030 public: 00036 KWidgetAction( QWidget* widget, const QString& text, 00037 const KShortcut& cut, 00038 const QObject* receiver, const char* slot, 00039 KActionCollection* parent, const char* name ); 00040 virtual ~KWidgetAction(); 00041 00045 QWidget* widget() { return m_widget; } 00046 00047 void setAutoSized( bool ); 00048 00053 virtual int plug( QWidget* w, int index = -1 ); 00058 virtual void unplug( QWidget *w ); 00059 private: 00060 QGuardedPtr<QWidget> m_widget; 00061 bool m_autoSized; 00062 protected: 00063 virtual void virtual_hook( int id, void* data ); 00064 private: 00065 class KWidgetActionPrivate; 00066 KWidgetActionPrivate *d; 00067 }; 00068 00069 }; // namespace 00070 //--------------------end-of-copy-of-kde-3.1----------- 00071 #endif // !(KDE_VERSION > 305) 00072 00073 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:07 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003