File indexing completed on 2024-04-14 04:00:11

0001 //
0002 // C++ Interface: cscripteditor
0003 //
0004 // Description: Script editor - used in dialogs
0005 /*
0006 Copyright 2010-2011 Tomas Mecir <kmuddy@kmuddy.com>
0007 
0008 This program is free software; you can redistribute it and/or
0009 modify it under the terms of the GNU General Public License as
0010 published by the Free Software Foundation; either version 2 of 
0011 the License, or (at your option) any later version.
0012 
0013 This program is distributed in the hope that it will be useful,
0014 but WITHOUT ANY WARRANTY; without even the implied warranty of
0015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016 GNU General Public License for more details.
0017 
0018 You should have received a copy of the GNU General Public License
0019 along with this program.  If not, see <http://www.gnu.org/licenses/>.
0020 */
0021 
0022 #ifndef CSCRIPTEDITOR_H
0023 #define CSCRIPTEDITOR_H
0024 
0025 #include <QWidget>
0026 #include <kmuddy_export.h>
0027 
0028 class KMUDDY_EXPORT cScriptEditor : public QWidget {
0029 Q_OBJECT
0030  public:
0031   cScriptEditor (QWidget *parent);
0032   ~cScriptEditor () override;
0033   void setText (const QString &text);
0034   QString text() const;
0035  protected slots:
0036   void timedCheckScript ();
0037   void checkScript ();
0038  private:
0039   struct Private;
0040   Private *d;
0041 };
0042 
0043 #endif   // CSCRIPTEDITOR_H