itom  3.0.0
widgetPropEditorAPI.h
1 /* ********************************************************************
2  itom software
3  URL: http://www.uni-stuttgart.de/ito
4  Copyright (C) 2016, Institut fuer Technische Optik (ITO),
5  Universitaet Stuttgart, Germany
6 
7  This file is part of itom.
8 
9  itom is free software; you can redistribute it and/or modify it
10  under the terms of the GNU Library General Public Licence as published by
11  the Free Software Foundation; either version 2 of the Licence, or (at
12  your option) any later version.
13 
14  itom is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17  General Public Licence for more details.
18 
19  You should have received a copy of the GNU Library General Public License
20  along with itom. If not, see <http://www.gnu.org/licenses/>.
21 *********************************************************************** */
22 
23 #ifndef WIDGETPROPEDITORAPI_H
24 #define WIDGETPROPEDITORAPI_H
25 
26 #include "abstractPropertyPageWidget.h"
27 
28 #include <qlistwidget.h>
29 #include <qwidget.h>
30 #include <qstring.h>
31 
32 #include "../organizer/qsciApiManager.h"
33 
34 #include "ui_widgetPropEditorAPI.h"
35 
36 namespace ito
37 {
38 
40 {
41  Q_OBJECT
42 
43 public:
44  WidgetPropEditorAPI(QWidget *parent = NULL);
46 
47  void readSettings();
48  void writeSettings();
49 
50 protected:
51 
52 private:
53  Ui::WidgetPropEditorAPI ui;
54 
55  ito::QsciApiManager *m_pApiManager;
56 
57  QString m_lastApiFileDirectory;
58  QString m_notExistAppendix;
59 
60  QString m_canonicalBasePath;
61 
62  bool m_changes;
63 
64 private slots:
65  void on_listWidget_currentItemChanged(QListWidgetItem* current, QListWidgetItem* previous);
66  void on_listWidget_itemActivated(QListWidgetItem* item);
67  void on_btnAdd_clicked();
68  void on_btnRemove_clicked();
69 
70 };
71 
72 } //end namespace ito
73 
74 #endif
Definition: abstractPropertyPageWidget.h:31
Definition: qsciApiManager.h:42
Definition: widgetPropEditorAPI.h:39
Definition: apiFunctionsGraph.cpp:39
void writeSettings()
Definition: widgetPropEditorAPI.cpp:105
void readSettings()
Definition: widgetPropEditorAPI.cpp:73