From 6d8bc516acf7a5995736423e838c987d08e69c09 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 17 May 2011 14:56:28 +0000 Subject: Ok, you can now open files, save files, save files from proxies and clients, and add new root items to files. Later I'll add some actual editing capabilities, should be really easy. --- src/gatscon/filewidget.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/gatscon/filewidget.h') diff --git a/src/gatscon/filewidget.h b/src/gatscon/filewidget.h index ac46685..9993bfe 100644 --- a/src/gatscon/filewidget.h +++ b/src/gatscon/filewidget.h @@ -2,13 +2,14 @@ #define FILE_WIDGET_H #include "ui_filewidget.h" +#include "iobase.h" namespace Gats { class Object; }; -class FileWidget : public QWidget, protected Ui::FileWidget +class FileWidget : public QWidget, protected Ui::FileWidget, public IoBase { Q_OBJECT; public: @@ -16,6 +17,12 @@ public: FileWidget( QWidget *pParent, QString sFile ); virtual ~FileWidget(); + virtual void saveTo( const QString &sFile ); + +public slots: + void addRootItem(); + void delRootItem(); + private: }; -- cgit v1.2.3