summaryrefslogtreecommitdiffstats
path: root/sigmodr/widgets/StoreUI.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-24 11:15:57 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-24 11:15:57 -0500
commit4a2e1b318419361fb814581aab583f7d856b7149 (patch)
tree9d406c9f7dbed40c31d76363d8772f121b3a25af /sigmodr/widgets/StoreUI.h
parentb48cebf7472f2a30e1ae8747349045661ecf6547 (diff)
downloadsigen-4a2e1b318419361fb814581aab583f7d856b7149.tar.gz
sigen-4a2e1b318419361fb814581aab583f7d856b7149.tar.xz
sigen-4a2e1b318419361fb814581aab583f7d856b7149.zip
MOve widgets cleaned up
Diffstat (limited to 'sigmodr/widgets/StoreUI.h')
-rw-r--r--sigmodr/widgets/StoreUI.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/sigmodr/widgets/StoreUI.h b/sigmodr/widgets/StoreUI.h
index c8fd3cd9..f736278c 100644
--- a/sigmodr/widgets/StoreUI.h
+++ b/sigmodr/widgets/StoreUI.h
@@ -18,13 +18,13 @@
#ifndef SIGMODRWIDGETS_STOREUI
#define SIGMODRWIDGETS_STOREUI
-// Form include
-#include "ui_store.h"
-
// Sigmodr widget includes
#include "ObjectUI.h"
// Forward declarations
+class KActionSelector;
+class KLineEdit;
+class QListWidgetItem;
namespace Sigmod
{
class Store;
@@ -34,21 +34,24 @@ namespace Sigmodr
{
namespace Widgets
{
-class SIGMODRWIDGETS_EXPORT StoreUI : public ObjectUI, private Ui::formStore
+class SIGMODRWIDGETS_EXPORT StoreUI : public ObjectUI
{
Q_OBJECT
public:
StoreUI(Sigmod::Store* store, QWidget* parent);
- ~StoreUI();
public slots:
void apply();
void discard();
protected slots:
- void on_varName_textChanged(const QString& name);
- void on_varItems_added(QListWidgetItem* item);
- void on_varItems_removed(QListWidgetItem* item);
+ void nameChanged(const QString& name);
+ void itemAdded(QListWidgetItem* item);
+ void itemRemoved(QListWidgetItem* item);
+ private:
+ KLineEdit* ui_name;
+ KActionSelector* ui_items;
private slots:
+ void initGui();
void refreshGui();
void setGui();
};