fix typo
[staging/HomeScreen.git] / HomeScreen / src / popupwidget.h
1 /*
2  * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef POPUPWIDGET_H
18 #define POPUPWIDGET_H
19
20 #include <QWidget>
21 #include <include/popup.hpp>
22 #include "popup_adaptor.h"
23
24 namespace Ui {
25 class PopupWidget;
26 }
27
28 class PopupWidget : public QWidget
29 {
30     Q_OBJECT
31
32 public:
33     explicit PopupWidget(QWidget *parent = 0);
34     ~PopupWidget();
35 public slots:
36     void updateColorScheme();
37
38     // from popup_adaptor.h
39 public Q_SLOTS: // METHODS
40     void showPopup(int /*type*/, const QString &text);
41     void showPopupComboBox(const QString &text, const QStringList &choices);
42
43 private slots:
44     void on_pushButton_OK_clicked();
45
46 signals:
47     void comboBoxResult(QString choice);
48
49 private:
50     Ui::PopupWidget *mp_ui;
51
52     PopupAdaptor *mp_popupAdaptor;
53     bool m_sendComboBoxChoice;
54     // for showPupupFor LayoutSelection
55     //QList<QPushButton> m_pushButtons;
56 };
57
58 #endif // POPUPWIDGET_H