File indexing completed on 2024-03-24 15:43:31

0001 //
0002 // C++ Interface: ctriggereditor
0003 //
0004 // Description: trigger editor
0005 //
0006 /*
0007 Copyright 2002-2011 Tomas Mecir <kmuddy@kmuddy.com>
0008 
0009 This program is free software; you can redistribute it and/or
0010 modify it under the terms of the GNU General Public License as
0011 published by the Free Software Foundation; either version 2 of 
0012 the License, or (at your option) any later version.
0013 
0014 This program is distributed in the hope that it will be useful,
0015 but WITHOUT ANY WARRANTY; without even the implied warranty of
0016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017 GNU General Public License for more details.
0018 
0019 You should have received a copy of the GNU General Public License
0020 along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021 */
0022 
0023 #ifndef CTRIGGEREDITOR_H
0024 #define CTRIGGEREDITOR_H
0025 
0026 #include <clisteditor.h>
0027 
0028 class cTriggerEditor : public cListEditor {
0029  Q_OBJECT
0030  public:
0031   cTriggerEditor (QWidget *parent);
0032   ~cTriggerEditor () override;
0033 
0034   void createGUI(QWidget *parent) override;
0035   void fillGUI (const cListObjectData &data) override;
0036   void getDataFromGUI (cListObjectData *data) override;
0037  protected slots:
0038   void updateTest ();
0039 
0040   void addColorization ();
0041   void removeColorization ();
0042   void updateColorizationsList ();
0043 
0044   void browseForSoundFile ();
0045   void createOutputWindow ();
0046   void rewriteChanged (bool val);
0047  protected:
0048   struct Private;
0049   Private *d;
0050 };
0051 
0052 #endif  // CTRIGGEREDITOR_H