//Author: Timothy Pearson , (C) 2012 //Copyright: See COPYING file that comes with this distribution #ifndef INSTRUMENTVIEW_H #define INSTRUMENTVIEW_H #include #include #include #include class KAction; namespace RemoteLab { typedef KParts::RemoteInstrumentPart InstrumentPart; class InstrumentView : public KMdiChildView { Q_OBJECT public: InstrumentView(const TQString &library, TQWidget *parentWidget=0L, const char *name=0L, WFlags f=0); InstrumentView(const TQString &library, const TQString &caption, TQWidget *parentWidget=0L, const char *name=0L, WFlags f=0); ~InstrumentView(); void connectServer(TQString server); void closeConnections(); TQPtrList menuActionList(); protected: virtual void saveProperties(KConfig *); virtual void readProperties(KConfig *); virtual bool queryExit(); virtual void resizeEvent(TQResizeEvent *); private slots: void setStatusMessage(const TQString& message); signals: void statusMessageSet(const TQString&); private: void init(); TQString m_libraryName; RemoteLab::InstrumentPart *m_instrumentPart; bool* m_canary; }; } // namespace RemoteLab #endif