OSDN Git Service

various cleanups
authorIvailo Monev <xakepa10@gmail.com>
Mon, 27 Jun 2016 09:08:37 +0000 (09:08 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 27 Jun 2016 09:08:37 +0000 (09:08 +0000)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/dialogs/dialogs.cmake
src/gui/inputmethod/inputmethod.cmake
src/gui/inputmethod/qcoefepinputcontext_p.h [deleted file]
src/gui/inputmethod/qwsinputcontext_p.h [deleted file]
src/gui/util/qflickgesture_p.h [deleted file]
src/gui/util/util.cmake
src/plugins/CMakeLists.txt
src/test/CMakeLists.txt

index 6b1c07c..4c9531c 100644 (file)
@@ -86,7 +86,7 @@ elseif(${KATIE_PLATFORM} STREQUAL "mac")
         ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/qprintdialog_mac.mm
         ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/qcolordialog_mac.mm
     )
-elseif(KATIE_PLATFORM MATCHES "(linux|freebsd|openbsd|qpa)")
+elseif(KATIE_PLATFORM MATCHES "(linux|freebsd|openbsd)")
     set(GUI_HEADERS
         ${GUI_HEADERS}
         ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/qpagesetupdialog_unix_p.h
index a14abb2..42fb484 100644 (file)
@@ -35,15 +35,6 @@ elseif(KATIE_PLATFORM STREQUAL "win32")
         ${EXTRA_GUI_LIBS}
         imm32
     )
-elseif(KATIE_PLATFORM STREQUAL "qws")
-    set(GUI_HEADERS
-        ${GUI_HEADERS}
-        ${CMAKE_CURRENT_SOURCE_DIR}/inputmethod/qwsinputcontext_p.h
-    )
-    set(GUI_SOURCES
-        ${GUI_SOURCES}
-        ${CMAKE_CURRENT_SOURCE_DIR}/inputmethod/qwsinputcontext_qws.cpp
-    )
 elseif(KATIE_PLATFORM STREQUAL "mac")
     set(GUI_HEADERS
         ${GUI_HEADERS}
diff --git a/src/gui/inputmethod/qcoefepinputcontext_p.h b/src/gui/inputmethod/qcoefepinputcontext_p.h
deleted file mode 100644 (file)
index 2e9f80f..0000000
+++ /dev/null
@@ -1,244 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the QtGui module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 or version 3 as published by the Free
-** Software Foundation and appearing in the file LICENSE.LGPLv21 and
-** LICENSE.LGPLv3 included in the packaging of this file. Please review the
-** following information to ensure the GNU Lesser General Public License
-** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** As a special exception, The Qt Company gives you certain additional
-** rights. These rights are described in The Qt Company LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QCOEFEPINPUTCONTEXT_P_H
-#define QCOEFEPINPUTCONTEXT_P_H
-
-//
-//  W A R N I N G
-//  -------------
-//
-// This file is not part of the Qt API.  It exists purely as an
-// implementation detail.  This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#ifndef QT_NO_IM
-
-#include "qinputcontext.h"
-#include <qhash.h>
-#include <qtimer.h>
-#include <qcore_symbian_p.h>
-#include <qt_s60_p.h>
-
-#include <fepbase.h>
-#include <aknedsts.h>
-#include <eikccpu.h>
-#include <eikedwin.h>
-#include <aknedformaccessor.h>
-
-class CAknExtendedInputCapabilities;
-
-QT_BEGIN_NAMESPACE
-
-class QCoeFepInputMaskHandler
-{
-public:
-    QCoeFepInputMaskHandler(const QString &mask);
-    ~QCoeFepInputMaskHandler();
-    bool canPasteClipboard(const QString &text);
-private:
-    bool isValidInput(QChar key, QChar mask) const;
-private:
-    struct MaskInputData {
-        enum Casemode { NoCaseMode, Upper, Lower };
-        QChar maskChar;
-        bool separator;
-        Casemode caseMode;
-    };
-    int m_maxLength;
-    QChar m_blank;
-    MaskInputData *m_maskData;
-};
-
-class Q_AUTOTEST_EXPORT QCoeFepInputContext : public QInputContext,
-                                              public MCoeFepAwareTextEditor,
-                                              public MCoeFepAwareTextEditor_Extension1,
-                                              public MObjectProvider,
-                                              public MEikCcpuEditor
-
-{
-    Q_OBJECT
-
-public:
-    QCoeFepInputContext(QObject *parent = 0);
-    ~QCoeFepInputContext();
-
-    QString identifierName() { return QLatin1String("coefep"); }
-    QString language();
-
-    void reset();
-    void update();
-
-    bool filterEvent(const QEvent *event);
-    bool symbianFilterEvent(QWidget *keyWidget, const QSymbianEvent *event);
-    void mouseHandler( int x, QMouseEvent *event);
-    bool isComposing() const { return !m_preeditString.isEmpty(); }
-
-    void setFocusWidget(QWidget * w);
-    void widgetDestroyed(QWidget *w);
-
-    TCoeInputCapabilities inputCapabilities();
-
-    void resetSplitViewWidget(bool keepInputWidget = false);
-    void ensureFocusWidgetVisible(QWidget *widget);
-
-protected:
-    void timerEvent(QTimerEvent *timerEvent);
-
-private:
-    void commitCurrentString(bool cancelFepTransaction);
-    void updateHints(bool mustUpdateInputCapabilities);
-    void applyHints(Qt::InputMethodHints hints);
-    void applyFormat(QList<QInputMethodEvent::Attribute> *attributes);
-    void queueInputCapabilitiesChanged();
-    bool needsInputPanel();
-    void commitTemporaryPreeditString();
-    bool isWidgetVisible(QWidget *widget, int offset = 0);
-    bool isPartialKeyboardSupported();
-    bool vietCharConversion(const QEvent *event);
-
-private Q_SLOTS:
-    void ensureInputCapabilitiesChanged();
-    void translateInputWidget();
-    void ensureWidgetVisibility();
-
-    // From MCoeFepAwareTextEditor
-public:
-    void StartFepInlineEditL(const TDesC& aInitialInlineText, TInt aPositionOfInsertionPointInInlineText,
-            TBool aCursorVisibility, const MFormCustomDraw* aCustomDraw,
-            MFepInlineTextFormatRetriever& aInlineTextFormatRetriever,
-            MFepPointerEventHandlerDuringInlineEdit& aPointerEventHandlerDuringInlineEdit);
-    void UpdateFepInlineTextL(const TDesC& aNewInlineText, TInt aPositionOfInsertionPointInInlineText);
-    void SetInlineEditingCursorVisibilityL(TBool aCursorVisibility);
-    void CancelFepInlineEdit();
-    TInt DocumentLengthForFep() const;
-    TInt DocumentMaximumLengthForFep() const;
-    void SetCursorSelectionForFepL(const TCursorSelection& aCursorSelection);
-    void GetCursorSelectionForFep(TCursorSelection& aCursorSelection) const;
-    void GetEditorContentForFep(TDes& aEditorContent, TInt aDocumentPosition, TInt aLengthToRetrieve) const;
-    void GetFormatForFep(TCharFormat& aFormat, TInt aDocumentPosition) const;
-    void GetScreenCoordinatesForFepL(TPoint& aLeftSideOfBaseLine, TInt& aHeight, TInt& aAscent,
-            TInt aDocumentPosition) const;
-private:
-    void DoCommitFepInlineEditL();
-    MCoeFepAwareTextEditor_Extension1* Extension1(TBool& aSetToTrue);
-    void ReportAknEdStateEvent(MAknEdStateObserver::EAknEdwinStateEvent aEventType);
-    void enableSymbianCcpuSupport();
-    void changeCBA(bool showCopyAndOrPaste);
-    void copyOrCutTextToClipboard(const char *operation);
-    void getScreenCoordinatesForFepX(TPoint& aLeftSideOfBaseLine, TInt& aHeight, TInt& aAscent,
-            TInt aDocumentPosition) const;
-
-    //From MEikCcpuEditor interface
-public:
-    TBool CcpuIsFocused() const;
-    TBool CcpuCanCut() const;
-    void CcpuCutL();
-    TBool CcpuCanCopy() const;
-    void CcpuCopyL();
-    TBool CcpuCanPaste() const;
-    void CcpuPasteL();
-    TBool CcpuCanUndo() const;
-    void CcpuUndoL();
-
-private slots:
-    void copy();
-    void paste();
-
-    // From MCoeFepAwareTextEditor_Extension1
-public:
-    void SetStateTransferingOwnershipL(MCoeFepAwareTextEditor_Extension1::CState* aState, TUid aTypeSafetyUid);
-    MCoeFepAwareTextEditor_Extension1::CState* State(TUid aTypeSafetyUid);
-
-    // From MObjectProvider
-public:
-    TTypeUid::Ptr MopSupplyObject(TTypeUid id);
-    MObjectProvider *MopNext();
-
-private:
-    QSymbianControl *m_parent;
-    CAknEdwinState *m_fepState;
-    QString m_preeditString;
-    Qt::InputMethodHints m_lastImHints;
-    TUint m_textCapabilities;
-    bool m_inDestruction;
-    bool m_pendingInputCapabilitiesChanged;
-    bool m_pendingTransactionCancel;
-    int m_cursorVisibility;
-    int m_inlinePosition;
-    MFepInlineTextFormatRetriever *m_formatRetriever;
-    MFepPointerEventHandlerDuringInlineEdit *m_pointerHandler;
-    QBasicTimer m_tempPreeditStringTimeout;
-    bool m_hasTempPreeditString;
-    QString m_cachedPreeditString;
-    int m_cachedCursorAndAnchorPosition;
-
-    int m_splitViewResizeBy;
-    Qt::WindowStates m_splitViewPreviousWindowStates;
-    QRectF m_transformation;
-    QGraphicsItem *m_splitViewPreviousFocusItem; //can't use QPointer<> since QGraphicsItem is not a QObject.
-
-    CAknCcpuSupport *m_ccpu;
-    QAction *m_copyAction;
-    QAction *m_pasteAction;
-    QPointer<QWidget> m_lastFocusedEditor;
-    QPointer<QObject> m_lastFocusedObject;
-
-    CAknExtendedInputCapabilities *m_extendedInputCapabilities;
-
-    QScopedPointer<CAknEdwinFormAccessor> m_formAccessor;
-    QScopedPointer<CEikEdwin> m_dummyEditor;
-
-    friend class tst_QInputContext;
-};
-
-Q_GUI_EXPORT void qt_s60_setPartialScreenInputMode(bool enable);
-Q_GUI_EXPORT void qt_s60_setPartialScreenAutomaticTranslation(bool enable);
-Q_GUI_EXPORT void qt_s60_setEditorFlags(int flags);
-
-QT_END_NAMESPACE
-
-#endif // QT_NO_IM
-
-#endif // QCOEFEPINPUTCONTEXT_P_H
diff --git a/src/gui/inputmethod/qwsinputcontext_p.h b/src/gui/inputmethod/qwsinputcontext_p.h
deleted file mode 100644 (file)
index c59b9c7..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the QtGui module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 or version 3 as published by the Free
-** Software Foundation and appearing in the file LICENSE.LGPLv21 and
-** LICENSE.LGPLv3 included in the packaging of this file. Please review the
-** following information to ensure the GNU Lesser General Public License
-** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** As a special exception, The Qt Company gives you certain additional
-** rights. These rights are described in The Qt Company LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QWSINPUTCONTEXT_P_H
-#define QWSINPUTCONTEXT_P_H
-
-//
-//  W A R N I N G
-//  -------------
-//
-// This file is not part of the Qt API.  It exists for the convenience
-// of the QLibrary class.  This header file may change from
-// version to version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include "QtGui/qinputcontext.h"
-
-#ifndef QT_NO_QWS_INPUTMETHODS
-
-QT_BEGIN_NAMESPACE
-
-class QWSIMEvent;
-class QWSIMQueryEvent;
-class QWSIMInitEvent;
-
-class QWSInputContext : public QInputContext
-{
-    Q_OBJECT
-public:
-    explicit QWSInputContext(QObject* parent = 0);
-    ~QWSInputContext() {}
-
-
-    inline QString identifierName() { return QString(); }
-    inline QString language() { return QString(); }
-
-    void reset();
-    void update();
-    void mouseHandler( int x, QMouseEvent *event);
-
-    void setFocusWidget( QWidget *w );
-    void widgetDestroyed(QWidget *w);
-
-    bool isComposing() const;
-
-    static QWidget *activeWidget();
-    static bool translateIMEvent(QWidget *w, const QWSIMEvent *e);
-    static bool translateIMQueryEvent(QWidget *w, const QWSIMQueryEvent *e);
-    static bool translateIMInitEvent(const QWSIMInitEvent *e);
-    static void updateImeStatus(QWidget *w, bool hasFocus);
-};
-
-QT_END_NAMESPACE
-
-#endif // QT_NO_QWS_INPUTMETHODS
-
-#endif // QWSINPUTCONTEXT_P_H
diff --git a/src/gui/util/qflickgesture_p.h b/src/gui/util/qflickgesture_p.h
deleted file mode 100644 (file)
index 0355fb3..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the QtGui module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 or version 3 as published by the Free
-** Software Foundation and appearing in the file LICENSE.LGPLv21 and
-** LICENSE.LGPLv3 included in the packaging of this file. Please review the
-** following information to ensure the GNU Lesser General Public License
-** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** As a special exception, The Qt Company gives you certain additional
-** rights. These rights are described in The Qt Company LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file.  Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QFLICKGESTURE_P_H
-#define QFLICKGESTURE_P_H
-
-//
-//  W A R N I N G
-//  -------------
-//
-// This file is not part of the Qt API.  It exists for the convenience
-// of other Qt classes.  This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include "qevent.h"
-#include "qgesturerecognizer.h"
-#include "qgesture_p.h"
-#include "qscroller.h"
-#include "qscopedpointer.h"
-
-#ifndef QT_NO_GESTURES
-
-QT_BEGIN_NAMESPACE
-
-class QFlickGesturePrivate;
-class QGraphicsItem;
-
-class Q_GUI_EXPORT QFlickGesture : public QGesture
-{
-    Q_OBJECT
-    Q_DECLARE_PRIVATE(QFlickGesture)
-
-public:
-    QFlickGesture(QObject *receiver, Qt::MouseButton button, QObject *parent = 0);
-    ~QFlickGesture();
-
-    friend class QFlickGestureRecognizer;
-};
-
-class PressDelayHandler;
-
-class QFlickGesturePrivate : public QGesturePrivate
-{
-    Q_DECLARE_PUBLIC(QFlickGesture)
-public:
-    QFlickGesturePrivate();
-
-    QPointer<QObject> receiver;
-    QScroller *receiverScroller;
-    Qt::MouseButton button; // NoButton == Touch
-    bool macIgnoreWheel;
-    static PressDelayHandler *pressDelayHandler;
-};
-
-class QFlickGestureRecognizer : public QGestureRecognizer
-{
-public:
-    QFlickGestureRecognizer(Qt::MouseButton button);
-
-    QGesture *create(QObject *target);
-    QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event);
-    void reset(QGesture *state);
-
-private:
-    Qt::MouseButton button; // NoButton == Touch
-};
-
-QT_END_NAMESPACE
-
-#endif // QT_NO_GESTURES
-
-#endif // QFLICKGESTURE_P_H
index 983e49f..d6c5774 100644 (file)
@@ -43,9 +43,4 @@ elseif(KATIE_PLATFORM STREQUAL "mac")
         ${GUI_SOURCES}
         ${CMAKE_CURRENT_SOURCE_DIR}/util/qsystemtrayicon_mac.mm
     )
-elseif(KATIE_PLATFORM MATCHES "(qpa|qws)")
-    set(GUI_SOURCES
-        ${GUI_SOURCES}
-        ${CMAKE_CURRENT_SOURCE_DIR}/util/qsystemtrayicon_qws.cpp
-    )
-endif()
\ No newline at end of file
+endif()
index daef6c2..bbaa912 100644 (file)
@@ -113,17 +113,15 @@ if(NOT ${KATIE_PLATFORM} STREQUAL "mac")
 endif()
 
 
-if(NOT ${KATIE_PLATFORM} STREQUAL "qpa")
-    if(WITH_WALAND AND WAYLAND_FOUND)
-        include(platforms/wayland/wayland.cmake)
-    endif()
-    if(${KATIE_PLATFORM} STREQUAL "qnx")
-        include(platforms/blackberry/blackberry.cmake)
-    endif()
-    #if(WITH_X11 AND X11_FOUND)
-    #    include(platforms/xlib/xlib.cmake)
-    #endif()
+if(WITH_WALAND AND WAYLAND_FOUND)
+    include(platforms/wayland/wayland.cmake)
+endif()
+if(${KATIE_PLATFORM} STREQUAL "qnx")
+    include(platforms/blackberry/blackberry.cmake)
 endif()
+#if(WITH_X11 AND X11_FOUND)
+#    include(platforms/xlib/xlib.cmake)
+#endif()
 
 
 if(WITH_DBUS AND DBUS_FOUND)
index 67bdebc..c9d0def 100644 (file)
@@ -105,12 +105,7 @@ include_directories(
     ${CMAKE_CURRENT_SOURCE_DIR}
 )
 
-if(${KATIE_PLATFORM} STREQUAL "qws")
-    set(KATIE_CXXFLAGS
-        ${KATIE_CXXFLAGS}
-        -fno-rtti
-    )
-elseif(${KATIE_PLATFORM} STREQUAL "wince")
+if(${KATIE_PLATFORM} STREQUAL "wince")
     set(EXTRA_TEST_LIBS
         ${EXTRA_TEST_LIBS}
         libcmt.lib
@@ -122,7 +117,7 @@ elseif(${KATIE_PLATFORM} STREQUAL "wince")
         coredll.lib
         winsock.lib
     )
-elseif(${KATIE_PLATFORM} STREQUAL "qws")
+elseif(${KATIE_PLATFORM} STREQUAL "mac")
     set(KATIE_LDFLAGS
         ${KATIE_LDFLAGS}
         -framework IOKit