mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Merge branch 'develop' of github.com:mapmapteam/mapmap into develop
This commit is contained in:
@@ -27,6 +27,7 @@ Release/
|
||||
*.tar
|
||||
*.rar
|
||||
*.qm
|
||||
!resources/texts/*.qm
|
||||
*.psd
|
||||
*.ai
|
||||
*.gif
|
||||
|
||||
@@ -1,3 +1,26 @@
|
||||
/*
|
||||
* Commands.cpp
|
||||
*
|
||||
* (c) 2014 Sofian Audry -- info(@)sofianaudry(.)com
|
||||
* (c) 2014 Alexandre Quessy -- alexandre(@)quessy(.)net
|
||||
* (c) 2014 Dame Diongue -- baydamd(@)gmail(.)com
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "MapperGLCanvas.h"
|
||||
|
||||
#include "Commands.h"
|
||||
|
||||
|
||||
+3
-2
@@ -23,8 +23,6 @@
|
||||
#define COMMANDS_H_
|
||||
|
||||
#include <QUndoCommand>
|
||||
#include "MainWindow.h"
|
||||
#include "MapperGLCanvas.h"
|
||||
|
||||
enum CommandId {
|
||||
CMD_KEY_MOVE_VERTEX,
|
||||
@@ -33,6 +31,9 @@ enum CommandId {
|
||||
CMD_MOUSE_TRANSLATE_SHAPE,
|
||||
};
|
||||
|
||||
class MainWindow;
|
||||
class MapperGLCanvas;
|
||||
|
||||
class AddShapesCommand : public QUndoCommand
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "ShapeGraphicsItem.h"
|
||||
#include "MapperGLCanvas.h"
|
||||
|
||||
#include "MainWindow.h"
|
||||
|
||||
+1
-6
@@ -39,11 +39,10 @@
|
||||
|
||||
#include "MapperGLCanvas.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include "ShapeGraphicsItem.h"
|
||||
#include "ShapeControlPainter.h"
|
||||
|
||||
#include "Util.h"
|
||||
#endif
|
||||
|
||||
#include "qtpropertymanager.h"
|
||||
#include "qtvariantproperty.h"
|
||||
@@ -54,10 +53,6 @@
|
||||
#include "variantmanager.h"
|
||||
#include "variantfactory.h"
|
||||
|
||||
class MapperGLCanvas;
|
||||
class ShapeGraphicsItem;
|
||||
class ShapeControlPainter;
|
||||
|
||||
/**
|
||||
* This is the "view" side of the Mapping class (model). It contains the graphic items for
|
||||
* both input and output as well as the properties editor.
|
||||
|
||||
@@ -25,10 +25,6 @@
|
||||
#include <QtGlobal>
|
||||
#include <cmath>
|
||||
|
||||
#ifndef M_PI
|
||||
# define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
|
||||
/// Converts from degrees to radians.
|
||||
inline qreal degreesToRadians(qreal degrees) { return degrees / 180.0f * M_PI; }
|
||||
|
||||
|
||||
@@ -235,7 +235,6 @@ bool Video::_generateThumbnail()
|
||||
|
||||
// Copy bits into thumbnail QImage.
|
||||
QImage thumbnail(getWidth(), getHeight(), QImage::Format_ARGB32);
|
||||
int i=0;
|
||||
for (int y=0; y<getHeight(); y++)
|
||||
for (int x=0; x<getWidth(); x++)
|
||||
{
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#define M_SHAPE_H_
|
||||
|
||||
#include <iostream>
|
||||
#include <cmath>
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
|
||||
@@ -22,10 +22,6 @@
|
||||
|
||||
#include "MainWindow.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include "Util.h"
|
||||
#endif
|
||||
|
||||
ShapeGraphicsItem::ShapeGraphicsItem(Mapping::ptr mapping, bool output)
|
||||
: _mapping(mapping), _output(output)
|
||||
{
|
||||
|
||||
+1
-1
@@ -296,7 +296,7 @@ void VideoImpl::resetMovie()
|
||||
if (_seekEnabled)
|
||||
{
|
||||
if (_rate > 0)
|
||||
seekTo(0UL);
|
||||
seekTo((guint64)0);
|
||||
else
|
||||
{
|
||||
// NOTE: Untested.
|
||||
|
||||
+13
-15
@@ -178,25 +178,23 @@ mac {
|
||||
# Windows-specific:
|
||||
win32 {
|
||||
DEFINES += WIN32
|
||||
INCLUDEPATH += \
|
||||
C:/gstreamer/include \
|
||||
C:/gstreamer/include/libxml2 \
|
||||
C:/gstreamer/include/glib-2.0 \
|
||||
C:/gstreamer/lib/glib-2.0/include \
|
||||
C:/gstreamer/include/gstreamer-0.10
|
||||
LIBS += -L"C:/gstreamer/lib" \
|
||||
-L"C:/gstreamer/bin" \
|
||||
-lgstreamer-0.10 \
|
||||
-lglib-2.0 \
|
||||
-lgmodule-2.0 \
|
||||
INCLUDEPATH += C:/gstreamer/1.0/x86/lib/gstreamer-1.0/include \
|
||||
C:/gstreamer/1.0/x86/include/glib-2.0 \
|
||||
C:/gstreamer/1.0/x86/lib/glib-2.0/include \
|
||||
C:/gstreamer/1.0/x86/include/gstreamer-1.0
|
||||
LIBS += -LC:/gstreamer/1.0/x86/lib \
|
||||
-lgstapp-1.0 \
|
||||
-lgstbase-1.0 \
|
||||
-lgstpbutils-1.0 \
|
||||
-lgstreamer-1.0 \
|
||||
-lgobject-2.0 \
|
||||
-lgthread-2.0 \
|
||||
-lgstinterfaces-0.10 \
|
||||
-lopengl32 \
|
||||
-lglu32
|
||||
-lglib-2.0 \
|
||||
-lopengl32
|
||||
|
||||
# Add console to the CONFIG to see debug messages printed in
|
||||
# the console on Windows
|
||||
CONFIG += console
|
||||
QMAKE_CXXFLAGS += -D_USE_MATH_DEFINES
|
||||
}
|
||||
|
||||
# Adds the tarball target
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user