# HG changeset patch # User insilmaril # Date 1194610040 0 # Node ID 7ba1c04d96d5a83f3593f03ae612ad3f47eac291 # Parent 9f739222ee8cbc57c194a29c4b5e9a01e1e1a16c 1.11.3 Better windows support diff -r 9f739222ee8c -r 7ba1c04d96d5 attributedialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/attributedialog.cpp Fri Nov 09 12:07:20 2007 +0000 @@ -0,0 +1,19 @@ +#include "attributedialog.h" + + +AttributeDialog::AttributeDialog (QWidget *parent):QDialog (parent) +{ + ui.setupUi (this); +} + + +void AttributeDialog::closeEvent( QCloseEvent* ce ) +{ + ce->accept(); // can be reopened with show() + hide(); + emit (windowClosed() ); + return; +} + + + diff -r 9f739222ee8c -r 7ba1c04d96d5 attributedialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/attributedialog.h Fri Nov 09 12:07:20 2007 +0000 @@ -0,0 +1,22 @@ +#ifndef ATTRIBUTEDIALOG_H +#define ATTRIBUTEDIALOG_H + +#include "ui_attributedialog.h" + +#include +#include + +class AttributeDialog:public QDialog +{ + Q_OBJECT +public: + AttributeDialog (QWidget *parent=0 ); +signals: + void windowClosed(); +protected: + void closeEvent(QCloseEvent*); +private: + Ui::AttributeDialog ui; +}; + +#endif diff -r 9f739222ee8c -r 7ba1c04d96d5 attributedialog.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/attributedialog.ui Fri Nov 09 12:07:20 2007 +0000 @@ -0,0 +1,89 @@ + + AttributeDialog + + + + 0 + 0 + 468 + 78 + + + + + 0 + 0 + + + + Attributes + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok + + + + + + + + + + + buttonBox + accepted() + AttributeDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + AttributeDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff -r 9f739222ee8c -r 7ba1c04d96d5 attributewidget.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/attributewidget.cpp Fri Nov 09 12:07:20 2007 +0000 @@ -0,0 +1,6 @@ +#include "attributewidget.h" + +AttributeWidget::AttributeWidget (QWidget *parent):QWidget (parent) +{ + ui.setupUi (this); +} diff -r 9f739222ee8c -r 7ba1c04d96d5 attributewidget.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/attributewidget.h Fri Nov 09 12:07:20 2007 +0000 @@ -0,0 +1,17 @@ +#ifndef ATTRIBUTEWIDGET_H +#define ATTRIBUTEWIDGET_H + +#include "ui_attributewidget.h" + +#include + +class AttributeWidget: public QWidget +{ + Q_OBJECT +public: + AttributeWidget (QWidget *parent=0); +private: + Ui::AttributeWidget ui; + +}; +#endif diff -r 9f739222ee8c -r 7ba1c04d96d5 attributewidget.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/attributewidget.ui Fri Nov 09 12:07:20 2007 +0000 @@ -0,0 +1,56 @@ + + AttributeWidget + + + + 0 + 0 + 400 + 115 + + + + Form + + + + 0 + + + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + + + + + + + + +