~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to examples/apps/settings/mainwindow.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of Maliit framework
2
 
 *
3
 
 * Copyright (C) 2012 Mattia Barbon <mattia@develer.com>
4
 
 * Copyright (C) 2012 Openismus GmbH
5
 
 *
6
 
 * Contact: maliit-discuss@lists.maliit.org
7
 
 *
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.
12
 
 *
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.
17
 
 *
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.
22
 
 */
23
 
 
24
 
#ifndef MAINWINDOW_H
25
 
#define MAINWINDOW_H
26
 
 
27
 
#include "settingsmanager.h"
28
 
#include "settingsentry.h"
29
 
 
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>
35
 
#endif
36
 
 
37
 
#include <QtGui>
38
 
 
39
 
class MainWindow : public QWidget
40
 
{
41
 
    Q_OBJECT
42
 
 
43
 
public:
44
 
    MainWindow();
45
 
 
46
 
protected:
47
 
    bool eventFilter(QObject *watched,
48
 
                     QEvent *event);
49
 
 
50
 
private Q_SLOTS:
51
 
    void pluginSettingsReceived(const QList<QSharedPointer<Maliit::PluginSettings> > &settings);
52
 
    void connected();
53
 
 
54
 
    void setLanguage(int index);
55
 
    void languageChanged();
56
 
    void enableAllLayouts();
57
 
 
58
 
private:
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;
64
 
    QTabWidget tabs;
65
 
};
66
 
 
67
 
#endif