1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
25 #include "YAlignment.h"
29 class YQAlignment : public QWidget, public YAlignment
38 YQAlignment( YWidget * parent,
39 YAlignmentType horAlign,
40 YAlignmentType vertAlign );
43 * Constructor for cases where the YWidget parent's widgetRep() isn't the
44 * QWidget parent, for example in compound widgets like YQWizard where it
45 * makes sense to pass a child of the YQWizard (the client area) as the
48 * Use this only if you know very well what you are doing.
50 YQAlignment( YWidget * yParent,
52 YAlignmentType horAlign,
53 YAlignmentType vertAlign );
56 * Move the child widget to a new position.
58 * Implemented from YAlignment.
60 virtual void moveChild( YWidget * child, int newX, int newY );
63 * Enable or disable this widget and its child.
65 * Reimplemented from YWidget.
67 virtual void setEnabled( bool enabled );
70 * Set the new size of the widget.
72 * Reimplemented from YWidget.
74 virtual void setSize( int newWidth, int newHeight );
77 * Set the background pixmap.
79 * Reimplemented from YAlignment.
81 virtual void setBackgroundPixmap( const string & pixmapFileName );
86 #endif // YQAlignment_h