Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > 762165ef07690bb9a218ccacf332a7fd > files > 55

birt-debug-1.2.2-4mdv2011.0.i586.rpm

#ifndef _RESIZEWIDGET_H
#define _RESIZEWIDGET_H

#include <qwidget.h>
#include <qcombobox.h>
#include <qlineedit.h>

class ResizeWidget : public QWidget
{
	public:
		ResizeWidget ( QWidget * parent = NULL, const char * name = NULL, WFlags flags = 0 );

		unsigned long Width ( ) const;
		unsigned long Height ( ) const;

		bool RatioIgnore ( ) const;
		bool RatioWidth ( ) const;
		bool RatioHeight ( ) const;
		bool RatioSmart ( ) const;

	private :
		QLineEdit * m_width, * m_height;
		QComboBox * m_ratio;

		enum RatioType { IGNORE, KEEP_WIDTH, KEEP_HEIGHT, SMART};
};

#endif