diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 03:02:23 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 03:02:23 -0500 |
commit | 4453d587364e38c11f218c46db482f0b2ebe93ae (patch) | |
tree | c1035338d94298316b2de0eb88e6f39ceef86210 /sigmodr/widgets/TypeUI.h | |
parent | c076cd60d8dc8b4a8f9636e5b8ce828f9aee3f7c (diff) | |
download | sigen-4453d587364e38c11f218c46db482f0b2ebe93ae.tar.gz sigen-4453d587364e38c11f218c46db482f0b2ebe93ae.tar.xz sigen-4453d587364e38c11f218c46db482f0b2ebe93ae.zip |
Converted some classes to load from the resource instead of using inheritence for forms
Diffstat (limited to 'sigmodr/widgets/TypeUI.h')
-rw-r--r-- | sigmodr/widgets/TypeUI.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/sigmodr/widgets/TypeUI.h b/sigmodr/widgets/TypeUI.h index 89b83304..bd3e92c3 100644 --- a/sigmodr/widgets/TypeUI.h +++ b/sigmodr/widgets/TypeUI.h @@ -18,13 +18,15 @@ #ifndef SIGMODRWIDGETS_TYPEUI #define SIGMODRWIDGETS_TYPEUI -// Form include -#include "ui_type.h" - // Sigmodr widget includes #include "ObjectUI.h" // Forward declarations +class KLineEdit; +namespace Sigcore +{ +class Fraction; +} namespace Sigmod { class Type; @@ -34,20 +36,25 @@ namespace Sigmodr { namespace Widgets { -class SIGMODRWIDGETS_EXPORT TypeUI : public ObjectUI, private Ui::formType +class FractionWidget; + +class SIGMODRWIDGETS_EXPORT TypeUI : public ObjectUI { Q_OBJECT public: TypeUI(Sigmod::Type* type, QWidget* parent); - ~TypeUI(); public slots: void apply(); void discard(); protected slots: - void on_varName_textChanged(const QString& name); - void on_varSTAB_valueChanged(const Sigcore::Fraction& stab); + void nameChanged(const QString& name); + void stabChanged(const Sigcore::Fraction& stab); + private: + KLineEdit* ui_name; + FractionWidget* ui_stab; private slots: + void initGui(); void setGui(); }; } |