24 #ifndef KLFSIDEWIDGET_H 25 #define KLFSIDEWIDGET_H 36 struct KLFSideWidgetManagerBasePrivate;
75 bool requireSideWidgetParentConsistency =
false,
QObject *managerParent = NULL);
79 virtual QWidget * sideWidget()
const;
81 virtual QWidget * ourParentWidget()
const;
87 void setSideWidget(QWidget *widget);
90 void setOurParentWidget(QWidget *widget);
96 virtual bool sideWidgetVisible()
const = 0;
103 void sideWidgetShown(
bool shown);
113 virtual void showSideWidget(
bool show) = 0;
130 virtual void waitForShowHideActionFinished(
int timeout_ms = 2000);
135 { Q_UNUSED(oldSideWidget); Q_UNUSED(newSideWidget); }
138 { Q_UNUSED(oldParentWidget); Q_UNUSED(newParentWidget); }
156 struct KLFShowHideSideWidgetManagerPrivate;
172 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation) ;
173 Q_PROPERTY(
int calcSpacing READ calcSpacing WRITE setCalcSpacing) ;
176 QObject *managerParent = NULL);
179 Qt::Orientation orientation()
const;
180 int calcSpacing()
const;
188 void setOrientation(Qt::Orientation o);
189 void setCalcSpacing(
int cs);
194 virtual void newSideWidgetSet(QWidget *oldSideWidget, QWidget *newSideWidget);
198 void resizeParentWidget(
const QSize& size);
207 struct KLFContainerSideWidgetManagerPrivate;
229 QObject *managerParent = NULL);
232 virtual bool sideWidgetVisible()
const;
237 virtual void showSideWidget(
bool show);
244 virtual QWidget * createContainerWidget(QWidget * pw) = 0;
246 virtual QWidget * containerWidget()
const;
248 virtual void newSideWidgetSet(QWidget *oldSideWidget, QWidget *newSideWidget);
249 virtual void newParentWidgetSet(QWidget *oldWidget, QWidget *newWidget);
252 void aWidgetDestroyed(
QObject *);
263 struct KLFFloatSideWidgetManagerPrivate;
279 QObject *managerParent = NULL);
284 virtual bool sideWidgetVisible()
const;
287 virtual void showSideWidget(
bool show);
291 void newSideWidgetSet(QWidget *oldw, QWidget *w);
293 virtual QWidget * createContainerWidget(QWidget * pw);
323 QWidget *sideWidget,
QObject *parent);
327 QWidget *sideWidget,
QObject *parent);
341 struct KLFSideWidgetPrivate;
377 Q_PROPERTY(
QString sideWidgetManagerType READ sideWidgetManagerType WRITE setSideWidgetManager) ;
390 bool sideWidgetVisible()
const;
400 QString sideWidgetManagerType()
const;
412 void sideWidgetShown(
bool shown);
417 void sideWidgetManagerTypeChanged(
const QString& managerType);
426 void showSideWidget(
bool show =
true);
443 void setSideWidgetManager(
const QString& mtype);
449 void debug_unlock_qtdesigner();
455 friend class KLFSideWidgetDesPlugin;
Base declarations for klatexformula and some utilities.
Base class for factories.
virtual bool event(QEvent *e)
A base abstract factory manager class.
virtual bool eventFilter(QObject *watched, QEvent *event)
#define KLF_DECLARE_PRIVATE(ClassName)