Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / plugins / pathactioneditor / pathactioneditorgadget.h
blobcaeb66f30d3ea816b785b773a32812e39b0476e6
1 /**
2 ******************************************************************************
3 * @file pathactioneditorgadget.h
4 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
5 * @addtogroup PathAction Editor GCS Plugins
6 * @{
7 * @addtogroup PathActionEditorGadgetPlugin PathAction Editor Gadget Plugin
8 * @{
9 * @brief A gadget to edit a list of pathactions
10 *****************************************************************************/
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 3 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #ifndef PathActionEditorGADGET_H_
28 #define PathActionEditorGADGET_H_
30 #include <coreplugin/iuavgadget.h>
32 namespace Core {
33 class IUAVGadget;
35 // class QWidget;
36 // class QString;
37 class PathActionEditorGadgetWidget;
39 using namespace Core;
41 class PathActionEditorGadget : public Core::IUAVGadget {
42 Q_OBJECT
43 public:
44 PathActionEditorGadget(QString classId, PathActionEditorGadgetWidget *widget, QWidget *parent = 0);
45 ~PathActionEditorGadget();
47 QList<int> context() const
49 return m_context;
51 QWidget *widget()
53 return m_widget;
55 QString contextHelpId() const
57 return QString();
60 void loadConfiguration(IUAVGadgetConfiguration *config);
61 private:
62 QWidget *m_widget;
63 QList<int> m_context;
67 #endif // PathActionEditorGADGET_H_