~phablet-team/phablet-extras/maliit-plugins

« back to all changes in this revision

Viewing changes to maliit-keyboard/lib/logic/dynamiclayout.h

dynamiclayout unittests.

Approved by PS Jenkins bot, Günter Schwann.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        return self;
49
49
    }
50
50
 
51
 
    void initDynamicLayout();
 
51
    static void reset()
 
52
    {
 
53
        if (self)
 
54
            self = new DynamicLayout;
 
55
    }
 
56
 
 
57
    void initDynamicLayout(QString fileName = MALIIT_KEYBOARD_DATA_DIR "/maliit-ui-constants.qml");
52
58
 
53
59
    int keypadHeight(LayoutHelper::Orientation orientation);
54
60
    int windowWidth(LayoutHelper::Orientation orientation);
84
90
 
85
91
    Q_SLOT void onWordEngineSettingsChanged(bool wordEngineEnabled);
86
92
 
 
93
    /* interface to primaryScreen */
 
94
    Q_SLOT void onPrimaryOrientationChanged(Qt::ScreenOrientation orientation);
 
95
    Q_SLOT void onOrientationChanged(Qt::ScreenOrientation orientation);
 
96
    Q_SLOT void onGeometryChanged(const QRect & geometry);
 
97
 
87
98
private:
88
99
    explicit DynamicLayout(QObject *parent = 0);
89
100
    DynamicLayout(DynamicLayout const&) : QObject(0) {}