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

« back to all changes in this revision

Viewing changes to common/maliit/namespace.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:
21
21
//! \ingroup common
22
22
namespace Maliit {
23
23
    /*!
24
 
     * \brief Orientation angle of windows in the application.
25
 
     *
26
 
     * \sa Orientation
27
 
     */
28
 
    enum OrientationAngle {
29
 
        Angle0   =   0,
30
 
        Angle90  =  90,
31
 
        Angle180 = 180,
32
 
        Angle270 = 270
33
 
    };
34
 
 
35
 
    /*!
36
 
     * \brief Possible orientations of windows in the application.
37
 
     *
38
 
     * \sa OrientationAngle
39
 
     */
40
 
    enum Orientation {
41
 
        Portrait, //!< equal to either Maliit::Angle90 or Maliit::Angle270 orientation angles
42
 
        Landscape //!< equal to either Maliit::Angle0 or Maliit::Angle180 orientation angles
 
24
     * \brief Position of the window on the screen.
 
25
     */
 
26
    enum Position {
 
27
        PositionOverlay,
 
28
        PositionCenterBottom,
 
29
        PositionLeftBottom,
 
30
        PositionRightBottom,
43
31
    };
44
32
 
45
33
    /*!
70
58
        CustomContentType
71
59
    };
72
60
 
73
 
    //! \brief Type of toolbar widget
74
 
    enum ItemType {
75
 
        //! Undefined item type
76
 
        ItemUndefined,
77
 
 
78
 
        //! Item should be visualized as button
79
 
        ItemButton,
80
 
 
81
 
        //! Item should be visualized as label
82
 
        ItemLabel
83
 
    };
84
 
 
85
 
    //! \brief Type of visible premiss for toolbar button
86
 
    enum VisibleType {
87
 
        //! Item's visibility will not be changed automatically
88
 
        VisibleUndefined,
89
 
 
90
 
        //! Item's visibility depends on text selection
91
 
        VisibleWhenSelectingText,
92
 
 
93
 
        //! Item is always visible
94
 
        VisibleAlways
95
 
    };
96
 
 
97
 
    //! \brief Type of action
98
 
    enum ActionType {
99
 
        //! Do nothing
100
 
        ActionUndefined,
101
 
 
102
 
        //! Send key sequence like Ctrl+D
103
 
        ActionSendKeySequence,
104
 
 
105
 
        //! Send string
106
 
        ActionSendString,
107
 
 
108
 
        //! Send command (not implemented yet)
109
 
        ActionSendCommand,
110
 
 
111
 
        //! Copy selected text
112
 
        ActionCopy,
113
 
 
114
 
        //! Paste text from clipboard
115
 
        ActionPaste,
116
 
 
117
 
        //! Show some group of items
118
 
        ActionShowGroup,
119
 
 
120
 
        //! Hide some group of items
121
 
        ActionHideGroup,
122
 
 
123
 
        //! Close virtual keyboard
124
 
        ActionClose,
125
 
 
126
 
        //! Standard copy/paste button
127
 
        ActionCopyPaste
128
 
    };
129
 
 
130
61
    /*!
131
62
     * \brief State of Copy/Paste button.
132
63
     */
171
102
        EventRequestEventOnly     //!< Only a Qt::KeyEvent
172
103
    };
173
104
 
174
 
     /*!
175
 
      * \brief Possible values for all the modes that are shown in the Input
176
 
      * mode indicator.
177
 
      */
178
 
    enum InputModeIndicator {
179
 
        NoIndicator,                 //!< No indicator should be shown
180
 
        LatinLowerIndicator,         //!< Latin lower case mode
181
 
        LatinUpperIndicator,         //!< Latin upper case mode
182
 
        LatinLockedIndicator,        //!< Latin caps locked mode
183
 
        CyrillicLowerIndicator,      //!< Cyrillic lower case mode
184
 
        CyrillicUpperIndicator,      //!< Cyrillic upper case mode
185
 
        CyrillicLockedIndicator,     //!< Cyrillic caps locked mode
186
 
        ArabicIndicator,             //!< Arabic mode
187
 
        PinyinIndicator,             //!< Pinyin mode
188
 
        ZhuyinIndicator,             //!< Zhuyin mode
189
 
        CangjieIndicator,            //!< Cangjie mode
190
 
        NumAndSymLatchedIndicator,   //!< Number and Symbol latched mode
191
 
        NumAndSymLockedIndicator,    //!< Number and Symbol locked mode
192
 
        DeadKeyAcuteIndicator,       //!< Dead key acute mode
193
 
        DeadKeyCaronIndicator,       //!< Dead key caron mode
194
 
        DeadKeyCircumflexIndicator,  //!< Dead key circumflex mode
195
 
        DeadKeyDiaeresisIndicator,   //!< Dead key diaeresis mode
196
 
        DeadKeyGraveIndicator,       //!< Dead key grave mode
197
 
        DeadKeyTildeIndicator        //!< Dead key tilde mode
198
 
    };
199
 
 
200
 
    enum InputMethodMode {
201
 
        //! Normal mode allows to use preedit and error correction
202
 
        InputMethodModeNormal,
203
 
 
204
 
        //! Virtual keyboard sends QKeyEvent for every key press or release
205
 
        InputMethodModeDirect,
206
 
 
207
 
        //! Used with proxy widget
208
 
        InputMethodModeProxy
209
 
    };
210
 
 
211
105
    /*!
212
106
     * \brief The text format for part of the preedit string, specified by
213
107
     * start and length.
228
122
        {};
229
123
    };
230
124
 
231
 
    /*! \brief Extensions for Qt::inputMethodQuery
232
 
     * \note the inputMethodQuery interface may change or be removed in Qt 5!
233
 
     */
234
 
    enum InputMethodQueryExtensions {
235
 
        VisualizationPriorityQuery = 10001, //!< Tells if input method widget wants to have high
236
 
        //!< priority for visualization. Input method should
237
 
        //!< honor this and stay out of widgets space.
238
 
        PreeditRectangleQuery,      //!< Retrieve bounding rectangle for current preedit text.
239
 
        ImCorrectionEnabledQuery,   //!< Explicit correction enabling for text entries.
240
 
        ImModeQuery,                //!< Retrieve mode: normal, direct or proxy.
241
 
        InputMethodAttributeExtensionIdQuery, //!< Attribute extension identifier for text entry.
242
 
        InputMethodAttributeExtensionQuery, //!< Attribute extension file name for text entry.
243
 
        WesternNumericInputEnforcedQuery //!< Overrides localized numeric input with western numeric input.
244
 
    };
245
 
 
246
125
    namespace InputMethodQuery
247
126
    {
248
127
        //! Name of property which tells whether correction is enabled.
294
173
}
295
174
 
296
175
Q_DECLARE_METATYPE(Maliit::TextContentType)
297
 
Q_DECLARE_METATYPE(Maliit::Orientation)
298
 
Q_DECLARE_METATYPE(Maliit::OrientationAngle)
299
 
Q_DECLARE_METATYPE(Maliit::InputMethodMode)
300
 
Q_DECLARE_METATYPE(Maliit::InputMethodQueryExtensions)
 
176
Q_DECLARE_METATYPE(Maliit::PreeditTextFormat)
301
177
Q_DECLARE_METATYPE(QList<Maliit::PreeditTextFormat>)
302
178
 
303
179
#endif