45 #include "private/qsoftkeymanager_p.h" 46 #include "private/qaction_p.h" 47 #include "private/qsoftkeymanager_common_p.h" 50 #include "private/qsoftkeymanager_s60_p.h" 51 #include "private/qt_s60_p.h" 54 #ifndef QT_NO_SOFTKEYMANAGER 62 switch (standardKey) {
95 QObject(*(new QSoftKeyManagerPrivateS60), 0)
105 #if defined(Q_WS_S60) && !defined(SYMBIAN_VERSION_9_4) && !defined(SYMBIAN_VERSION_9_3) && !defined(SYMBIAN_VERSION_9_2) 107 switch (standardKey) {
112 key = EAknSoftkeySelect;
115 key = EAknSoftkeyDone;
118 key = EAknSoftkeyOptions;
121 key = EAknSoftkeyCancel;
132 switch (standardKey) {
166 #if defined(Q_WS_S60) && !defined(SYMBIAN_VERSION_9_4) && !defined(SYMBIAN_VERSION_9_3) && !defined(SYMBIAN_VERSION_9_2) 173 return action.
take();
174 #endif //QT_NO_ACTION 183 d->keyedActions.remove(action);
184 #if defined(Q_WS_S60) && !defined(SYMBIAN_VERSION_9_4) && !defined(SYMBIAN_VERSION_9_3) && !defined(SYMBIAN_VERSION_9_2) 185 d->softKeyCommandActions.remove(action);
208 if (S60->wsSession().GetFocusWindowGroup() != S60->windowGroup().WindowGroupId())
223 d->requestedSoftKeyActions.insert(level, action);
245 if (!previousSource) {
272 bool implicitMerging =
d->requestedSoftKeyActions.isEmpty();
278 bool merging = (implicitMerging || explicitMerging || recursiveMerging) && !previousSource->
isWindow();
280 source = merging ? previousSource->
parentWidget() : NULL;
289 d->requestedSoftKeyActions.clear();
290 bool recursiveMerging =
false;
292 d->initialSoftKeySource = source;
299 d->updateSoftKeys_sys();
300 d->pendingUpdate =
false;
319 #endif //QT_NO_ACTION 324 bool QSoftKeyManager::handleCommand(
int command)
334 #endif //QT_NO_SOFTKEYMANAGER QWidget * softkeySource(QWidget *previousSource, bool &recursiveMerging)
The QKeyEvent class describes a key event.
static QString standardSoftKeyText(StandardSoftKey standardKey)
bool handleUpdateSoftKeys()
#define QT_END_NAMESPACE
This macro expands to.
T * data() const
Returns the value of the pointer referenced by this object.
static void postEvent(QObject *receiver, QEvent *event)
Adds the event event, with the object receiver as the receiver of the event, to an event queue and re...
uint forceEnabledInSoftkeys
static QWidget * activeWindow()
Returns the application top-level window that has the keyboard input focus, or 0 if no application wi...
T * take()
Returns the value of the pointer referenced by this object.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
void cleanupHash(QObject *obj)
The QString class provides a Unicode character string.
T * qobject_cast(QObject *object)
bool appendSoftkeys(const QWidget &source, int level)
The QObject class is the base class of all Qt objects.
bool event(QEvent *e)
This virtual function receives events to an object and should return true if the event e was recogniz...
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
QWidget * parentWidget() const
Returns the parent widget.
static QAction * createKeyedAction(StandardSoftKey standardKey, Qt::Key key, QWidget *actionWidget)
Creates a QAction and registers the 'triggered' signal to send the given key event to actionWidget as...
static QWidget * activeModalWidget()
Returns the active modal widget.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool isChildOf(const QWidget *c, const QWidget *p)
void destroyed(QObject *=0)
This signal is emitted immediately before the object obj is destroyed, and can not be blocked...
static QSoftKeyManager * instance()
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
void setSoftKeyRole(SoftKeyRole softKeyRole)
static QActionPrivate * get(QAction *q)
SoftKeyRole
This enum describes how an action should be placed in the softkey bar.
static void setForceEnabledInSoftkeys(QAction *action)
void reset(T *other=0)
Deletes the existing object it is pointing to if any, and sets its pointer to other.
SoftKeyRole softKeyRole
the action's softkey role
static QScopedPointer< QSoftKeyManager > self
static QAction * createAction(StandardSoftKey standardKey, QWidget *actionWidget)
static void updateSoftKeys()
static QWidget * activePopupWidget()
Returns the active popup widget.
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
static QWidget * focusWidget()
Returns the application widget that has the keyboard input focus, or 0 if no widget in this applicati...
static bool isForceEnabledInSofkeys(QAction *action)
The QAction class provides an abstract user interface action that can be inserted into widgets...