1
/* This file is part of Maliit framework
3
* Copyright (C) 2012 Mattia Barbon <mattia@develer.com>
4
* Copyright (C) 2012 Openismus GmbH
6
* Contact: maliit-discuss@lists.maliit.org
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the licence, or (at your option) any later version.
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the
20
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21
* Boston, MA 02111-1307, USA.
27
#include "settingsmanager.h"
28
#include "settingsentry.h"
30
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
31
#include <QtWidgets/QPushButton>
32
#include <QtWidgets/QTabWidget>
33
#include <QtWidgets/QComboBox>
34
#include <QtWidgets/QTextEdit>
39
class MainWindow : public QWidget
47
bool eventFilter(QObject *watched,
51
void pluginSettingsReceived(const QList<QSharedPointer<Maliit::PluginSettings> > &settings);
54
void setLanguage(int index);
55
void languageChanged();
56
void enableAllLayouts();
59
Maliit::SettingsManager *maliit_settings;
60
QSharedPointer<Maliit::SettingsEntry> language_entry, enabled_entry;
61
QComboBox* language_selector;
62
QPushButton* enable_all;
63
QTextEdit *im_testing_entry;