1 #pragma once 2 3 #ifndef SCRIPTCONSOLEPANEL_H 4 #define SCRIPTCONSOLEPANEL_H 5 6 #include "pane.h" 7 8 class ScriptConsole; 9 10 class ScriptConsolePanel final : public TPanel { 11 Q_OBJECT 12 ScriptConsole *m_scriptConsole; 13 14 public: 15 #if QT_VERSION >= 0x050500 16 ScriptConsolePanel(QWidget *parent = 0, Qt::WindowFlags flags = 0); 17 #else 18 ScriptConsolePanel(QWidget *parent = 0, Qt::WFlags flags = 0); 19 #endif 20 ~ScriptConsolePanel(); 21 22 void executeCommand(const QString &cmd); 23 24 public slots: 25 void selectNone(); 26 }; 27 28 #endif // TESTPANEL_H 29