Move qt-ui to desktop-widgets

Since we have now destkop and mobile versions, 'qt-ui' was a very
poor name choice for a folder that contains only destkop-enabled
widgets.

Also, move the graphicsview-common.h/cpp to subsurface-core because
it doesn't depend on qgraphicsview, it merely implements all the
colors that we use throughout Subsurface, and we will use colors on both
desktop and mobile versions

Same thing applies for metrics.h/cpp

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-09-03 14:20:19 -03:00 committed by Dirk Hohndel
parent 588abd019f
commit e49d6213ad
148 changed files with 110 additions and 115 deletions

View file

@ -37,10 +37,10 @@ set(CMAKE_MODULE_PATH
include_directories(. include_directories(.
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/qt-ui ${CMAKE_BINARY_DIR}/desktop-widgets
qt-ui desktop-widgets/
qt-models qt-models
qt-ui/profile desktop-widgets/profile
subsurface-core/ subsurface-core/
) )
@ -362,7 +362,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT ANDROID)
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lpthread) set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lpthread)
endif() endif()
add_subdirectory(qt-ui) add_subdirectory(desktop-widgets)
# create the executables # create the executables
if(SUBSURFACE_MOBILE) if(SUBSURFACE_MOBILE)

View file

@ -23,12 +23,10 @@ set(SUBSURFACE_INTERFACE
diveshareexportdialog.cpp diveshareexportdialog.cpp
downloadfromdivecomputer.cpp downloadfromdivecomputer.cpp
globe.cpp globe.cpp
graphicsview-common.cpp
kmessagewidget.cpp kmessagewidget.cpp
maintab.cpp maintab.cpp
mainwindow.cpp mainwindow.cpp
modeldelegates.cpp modeldelegates.cpp
metrics.cpp
notificationwidget.cpp notificationwidget.cpp
preferences.cpp preferences.cpp
simplewidgets.cpp simplewidgets.cpp

View file

@ -525,8 +525,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>70</width> <width>445</width>
<height>16</height> <height>754</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout" name="equipmentTabScrollAreaLayout"> <layout class="QGridLayout" name="equipmentTabScrollAreaLayout">
@ -1229,7 +1229,7 @@
<customwidget> <customwidget>
<class>TagWidget</class> <class>TagWidget</class>
<extends>QPlainTextEdit</extends> <extends>QPlainTextEdit</extends>
<header>qt-ui/tagwidget.h</header> <header>tagwidget.h</header>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>DivePictureWidget</class> <class>DivePictureWidget</class>

View file

@ -50,6 +50,7 @@
#include <QUndoStack> #include <QUndoStack>
#include <qthelper.h> #include <qthelper.h>
#include <QtConcurrentRun> #include <QtConcurrentRun>
#include "subsurface-core/color.h"
#if defined(FBSUPPORT) #if defined(FBSUPPORT)
#include "socialnetworks.h" #include "socialnetworks.h"

View file

@ -3,7 +3,7 @@
#include <QObject> #include <QObject>
#include <QGraphicsLineItem> #include <QGraphicsLineItem>
#include <graphicsview-common.h> #include "subsurface-core/color.h"
class QPropertyAnimation; class QPropertyAnimation;
class DiveTextItem; class DiveTextItem;

View file

@ -5,7 +5,6 @@
#include <QGraphicsPolygonItem> #include <QGraphicsPolygonItem>
#include <QModelIndex> #include <QModelIndex>
#include "graphicsview-common.h"
#include "divelineitem.h" #include "divelineitem.h"
/* This is the Profile Item, it should be used for quite a lot of things /* This is the Profile Item, it should be used for quite a lot of things

View file

@ -1,6 +1,9 @@
#include "divetextitem.h" #include "divetextitem.h"
#include "mainwindow.h" #include "mainwindow.h"
#include "profilewidget2.h" #include "profilewidget2.h"
#include "subsurface-core/color.h"
#include <QBrush>
DiveTextItem::DiveTextItem(QGraphicsItem *parent) : QGraphicsItemGroup(parent), DiveTextItem::DiveTextItem(QGraphicsItem *parent) : QGraphicsItemGroup(parent),
internalAlignFlags(Qt::AlignHCenter | Qt::AlignVCenter), internalAlignFlags(Qt::AlignHCenter | Qt::AlignVCenter),

View file

@ -3,8 +3,8 @@
#include <QObject> #include <QObject>
#include <QGraphicsItemGroup> #include <QGraphicsItemGroup>
#include "graphicsview-common.h"
#include <QBrush> class QBrush;
/* A Line Item that has animated-properties. */ /* A Line Item that has animated-properties. */
class DiveTextItem : public QObject, public QGraphicsItemGroup { class DiveTextItem : public QObject, public QGraphicsItemGroup {

View file

@ -13,7 +13,6 @@
// * // *
// * It needs to be dynamic, things should *flow* on it, not just appear / disappear. // * It needs to be dynamic, things should *flow* on it, not just appear / disappear.
// */ // */
#include "graphicsview-common.h"
#include "divelineitem.h" #include "divelineitem.h"
#include "diveprofileitem.h" #include "diveprofileitem.h"
#include "display.h" #include "display.h"

Some files were not shown because too many files have changed in this diff Show more