~schwann/ubuntu-keyboard/keyboard-html-enter

« back to all changes in this revision

Viewing changes to src/lib/logic/dynamiclayout.h

  • Committer: Thomas Moenicke
  • Date: 2013-08-09 15:22:29 UTC
  • Revision ID: thomas.moenicke@canonical.com-20130809152229-2v2e0y9ajtlfdtz4
sync with latest trunk phablet maliit-plugins

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);
 
60
    int windowWidth(LayoutHelper::Orientation orientation);
54
61
    QRect windowGeometryRect(Qt::ScreenOrientation orientation);
55
62
    qreal keyboardScreenWidthRatio(LayoutHelper::Orientation orientation);
56
63
 
83
90
 
84
91
    Q_SLOT void onWordEngineSettingsChanged(bool wordEngineEnabled);
85
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
 
86
98
private:
87
99
    explicit DynamicLayout(QObject *parent = 0);
88
100
    DynamicLayout(DynamicLayout const&) : QObject(0) {}