Permalink
Browse files

Initial upload to github

  • Loading branch information...
0 parents commit 78f9f8da685e329b5e82f0d698f498876a583ee1 pixelpartner committed Sep 22, 2011
Showing with 3,223 additions and 0 deletions.
  1. +273 −0 Makefile
  2. +103 −0 droparea.cpp
  3. +77 −0 droparea.h
  4. +11 −0 main.cpp
  5. +1,573 −0 mainwindow.cpp
  6. +81 −0 mainwindow.h
  7. +93 −0 moc_droparea.cpp
  8. +100 −0 moc_mainwindow.cpp
  9. +315 −0 qt-faststart.c
  10. +20 −0 trueColor3D.pro
  11. +300 −0 trueColor3D.pro.user
  12. +207 −0 trueColor3D.pro.user.2.3pre1
  13. +70 −0 ui_mainwindow.h
273 Makefile
@@ -0,0 +1,273 @@
+#############################################################################
+# Makefile for building: trueColor3D.app/Contents/MacOS/trueColor3D
+# Generated by qmake (2.01a) (Qt 4.7.3) on: Mi. Jul 27 10:08:45 2011
+# Project: trueColor3D.pro
+# Template: app
+# Command: /usr/bin/qmake -spec /usr/local/Qt4.7/mkspecs/macx-g++ -o Makefile trueColor3D.pro
+#############################################################################
+
+####### Compiler, tools and options
+
+CC = gcc
+CXX = g++
+DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
+CFLAGS = -pipe -g -gdwarf-2 -Wall -W $(DEFINES)
+CXXFLAGS = -pipe -g -gdwarf-2 -Wall -W $(DEFINES)
+INCPATH = -I/usr/local/Qt4.7/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I. -F/Library/Frameworks
+LINK = g++
+LFLAGS = -headerpad_max_install_names
+LIBS = $(SUBLIBS) -F/Library/Frameworks -L/Library/Frameworks -framework QtGui -framework QtCore
+AR = ar cq
+RANLIB = ranlib -s
+QMAKE = /usr/bin/qmake
+TAR = tar -cf
+COMPRESS = gzip -9f
+COPY = cp -f
+SED = sed
+COPY_FILE = cp -f
+COPY_DIR = cp -f -R
+STRIP =
+INSTALL_FILE = $(COPY_FILE)
+INSTALL_DIR = $(COPY_DIR)
+INSTALL_PROGRAM = $(COPY_FILE)
+DEL_FILE = rm -f
+SYMLINK = ln -f -s
+DEL_DIR = rmdir
+MOVE = mv -f
+CHK_DIR_EXISTS= test -d
+MKDIR = mkdir -p
+export MACOSX_DEPLOYMENT_TARGET = 10.4
+
+####### Output directory
+
+OBJECTS_DIR = ./
+
+####### Files
+
+SOURCES = main.cpp \
+ mainwindow.cpp \
+ droparea.cpp moc_mainwindow.cpp \
+ moc_droparea.cpp
+OBJECTS = main.o \
+ mainwindow.o \
+ droparea.o \
+ moc_mainwindow.o \
+ moc_droparea.o
+DIST = /usr/local/Qt4.7/mkspecs/common/unix.conf \
+ /usr/local/Qt4.7/mkspecs/common/mac.conf \
+ /usr/local/Qt4.7/mkspecs/common/mac-g++.conf \
+ /usr/local/Qt4.7/mkspecs/qconfig.pri \
+ /usr/local/Qt4.7/mkspecs/modules/qt_webkit_version.pri \
+ /usr/local/Qt4.7/mkspecs/features/qt_functions.prf \
+ /usr/local/Qt4.7/mkspecs/features/qt_config.prf \
+ /usr/local/Qt4.7/mkspecs/features/exclusive_builds.prf \
+ /usr/local/Qt4.7/mkspecs/features/default_pre.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/default_pre.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/dwarf2.prf \
+ /usr/local/Qt4.7/mkspecs/features/debug.prf \
+ /usr/local/Qt4.7/mkspecs/features/default_post.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/default_post.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/objective_c.prf \
+ /usr/local/Qt4.7/mkspecs/features/warn_on.prf \
+ /usr/local/Qt4.7/mkspecs/features/qt.prf \
+ /usr/local/Qt4.7/mkspecs/features/unix/thread.prf \
+ /usr/local/Qt4.7/mkspecs/features/moc.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/rez.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/sdk.prf \
+ /usr/local/Qt4.7/mkspecs/features/resources.prf \
+ /usr/local/Qt4.7/mkspecs/features/uic.prf \
+ /usr/local/Qt4.7/mkspecs/features/yacc.prf \
+ /usr/local/Qt4.7/mkspecs/features/lex.prf \
+ /usr/local/Qt4.7/mkspecs/features/include_source_dir.prf \
+ trueColor3D.pro
+QMAKE_TARGET = trueColor3D
+DESTDIR =
+TARGET = trueColor3D.app/Contents/MacOS/trueColor3D
+
+####### Custom Compiler Variables
+QMAKE_COMP_QMAKE_OBJECTIVE_CFLAGS = -pipe \
+ -g \
+ -gdwarf-2 \
+ -Wall \
+ -W
+
+
+first: all
+####### Implicit rules
+
+.SUFFIXES: .o .c .cpp .cc .cxx .C
+
+.cpp.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cc.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cxx.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.C.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.c.o:
+ $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
+
+####### Build rules
+
+all: Makefile trueColor3D.app/Contents/PkgInfo trueColor3D.app/Contents/Resources/empty.lproj trueColor3D.app/Contents/Info.plist $(TARGET)
+
+$(TARGET): $(OBJECTS)
+ @$(CHK_DIR_EXISTS) trueColor3D.app/Contents/MacOS/ || $(MKDIR) trueColor3D.app/Contents/MacOS/
+ $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
+
+Makefile: trueColor3D.pro /usr/local/Qt4.7/mkspecs/macx-g++/qmake.conf /usr/local/Qt4.7/mkspecs/common/unix.conf \
+ /usr/local/Qt4.7/mkspecs/common/mac.conf \
+ /usr/local/Qt4.7/mkspecs/common/mac-g++.conf \
+ /usr/local/Qt4.7/mkspecs/qconfig.pri \
+ /usr/local/Qt4.7/mkspecs/modules/qt_webkit_version.pri \
+ /usr/local/Qt4.7/mkspecs/features/qt_functions.prf \
+ /usr/local/Qt4.7/mkspecs/features/qt_config.prf \
+ /usr/local/Qt4.7/mkspecs/features/exclusive_builds.prf \
+ /usr/local/Qt4.7/mkspecs/features/default_pre.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/default_pre.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/dwarf2.prf \
+ /usr/local/Qt4.7/mkspecs/features/debug.prf \
+ /usr/local/Qt4.7/mkspecs/features/default_post.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/default_post.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/objective_c.prf \
+ /usr/local/Qt4.7/mkspecs/features/warn_on.prf \
+ /usr/local/Qt4.7/mkspecs/features/qt.prf \
+ /usr/local/Qt4.7/mkspecs/features/unix/thread.prf \
+ /usr/local/Qt4.7/mkspecs/features/moc.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/rez.prf \
+ /usr/local/Qt4.7/mkspecs/features/mac/sdk.prf \
+ /usr/local/Qt4.7/mkspecs/features/resources.prf \
+ /usr/local/Qt4.7/mkspecs/features/uic.prf \
+ /usr/local/Qt4.7/mkspecs/features/yacc.prf \
+ /usr/local/Qt4.7/mkspecs/features/lex.prf \
+ /usr/local/Qt4.7/mkspecs/features/include_source_dir.prf \
+ /Library/Frameworks/QtGui.framework/QtGui.prl \
+ /Library/Frameworks/QtCore.framework/QtCore.prl
+ $(QMAKE) -spec /usr/local/Qt4.7/mkspecs/macx-g++ -o Makefile trueColor3D.pro
+/usr/local/Qt4.7/mkspecs/common/unix.conf:
+/usr/local/Qt4.7/mkspecs/common/mac.conf:
+/usr/local/Qt4.7/mkspecs/common/mac-g++.conf:
+/usr/local/Qt4.7/mkspecs/qconfig.pri:
+/usr/local/Qt4.7/mkspecs/modules/qt_webkit_version.pri:
+/usr/local/Qt4.7/mkspecs/features/qt_functions.prf:
+/usr/local/Qt4.7/mkspecs/features/qt_config.prf:
+/usr/local/Qt4.7/mkspecs/features/exclusive_builds.prf:
+/usr/local/Qt4.7/mkspecs/features/default_pre.prf:
+/usr/local/Qt4.7/mkspecs/features/mac/default_pre.prf:
+/usr/local/Qt4.7/mkspecs/features/mac/dwarf2.prf:
+/usr/local/Qt4.7/mkspecs/features/debug.prf:
+/usr/local/Qt4.7/mkspecs/features/default_post.prf:
+/usr/local/Qt4.7/mkspecs/features/mac/default_post.prf:
+/usr/local/Qt4.7/mkspecs/features/mac/objective_c.prf:
+/usr/local/Qt4.7/mkspecs/features/warn_on.prf:
+/usr/local/Qt4.7/mkspecs/features/qt.prf:
+/usr/local/Qt4.7/mkspecs/features/unix/thread.prf:
+/usr/local/Qt4.7/mkspecs/features/moc.prf:
+/usr/local/Qt4.7/mkspecs/features/mac/rez.prf:
+/usr/local/Qt4.7/mkspecs/features/mac/sdk.prf:
+/usr/local/Qt4.7/mkspecs/features/resources.prf:
+/usr/local/Qt4.7/mkspecs/features/uic.prf:
+/usr/local/Qt4.7/mkspecs/features/yacc.prf:
+/usr/local/Qt4.7/mkspecs/features/lex.prf:
+/usr/local/Qt4.7/mkspecs/features/include_source_dir.prf:
+/Library/Frameworks/QtGui.framework/QtGui.prl:
+/Library/Frameworks/QtCore.framework/QtCore.prl:
+qmake: FORCE
+ @$(QMAKE) -spec /usr/local/Qt4.7/mkspecs/macx-g++ -o Makefile trueColor3D.pro
+
+trueColor3D.app/Contents/PkgInfo:
+ @$(CHK_DIR_EXISTS) trueColor3D.app/Contents || $(MKDIR) trueColor3D.app/Contents
+ @$(DEL_FILE) trueColor3D.app/Contents/PkgInfo
+ @echo "APPL????" >trueColor3D.app/Contents/PkgInfo
+trueColor3D.app/Contents/Resources/empty.lproj:
+ @$(CHK_DIR_EXISTS) trueColor3D.app/Contents/Resources || $(MKDIR) trueColor3D.app/Contents/Resources
+ @touch trueColor3D.app/Contents/Resources/empty.lproj
+
+trueColor3D.app/Contents/Info.plist:
+ @$(CHK_DIR_EXISTS) trueColor3D.app/Contents || $(MKDIR) trueColor3D.app/Contents
+ @$(DEL_FILE) trueColor3D.app/Contents/Info.plist
+ @sed -e "s,@ICON@,,g" -e "s,@EXECUTABLE@,trueColor3D,g" -e "s,@TYPEINFO@,????,g" /usr/local/Qt4.7/mkspecs/macx-g++/Info.plist.app >trueColor3D.app/Contents/Info.plist
+dist:
+ @$(CHK_DIR_EXISTS) .tmp/trueColor3D1.0.0 || $(MKDIR) .tmp/trueColor3D1.0.0
+ $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/trueColor3D1.0.0/ && $(COPY_FILE) --parents mainwindow.h droparea.h .tmp/trueColor3D1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp droparea.cpp .tmp/trueColor3D1.0.0/ && (cd `dirname .tmp/trueColor3D1.0.0` && $(TAR) trueColor3D1.0.0.tar trueColor3D1.0.0 && $(COMPRESS) trueColor3D1.0.0.tar) && $(MOVE) `dirname .tmp/trueColor3D1.0.0`/trueColor3D1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/trueColor3D1.0.0
+
+
+clean:compiler_clean
+ -$(DEL_FILE) $(OBJECTS)
+ -$(DEL_FILE) *~ core *.core
+
+
+####### Sub-libraries
+
+distclean: clean
+ -$(DEL_FILE) -r trueColor3D.app
+ -$(DEL_FILE) Makefile
+
+
+check: first
+
+mocclean: compiler_moc_header_clean compiler_moc_source_clean
+
+mocables: compiler_moc_header_make_all compiler_moc_source_make_all
+
+compiler_objective_c_make_all:
+compiler_objective_c_clean:
+compiler_moc_header_make_all: moc_mainwindow.cpp moc_droparea.cpp
+compiler_moc_header_clean:
+ -$(DEL_FILE) moc_mainwindow.cpp moc_droparea.cpp
+moc_mainwindow.cpp: mainwindow.h
+ /Developer/Tools/Qt/moc $(DEFINES) $(INCPATH) -D__APPLE__ -D__GNUC__ mainwindow.h -o moc_mainwindow.cpp
+
+moc_droparea.cpp: droparea.h
+ /Developer/Tools/Qt/moc $(DEFINES) $(INCPATH) -D__APPLE__ -D__GNUC__ droparea.h -o moc_droparea.cpp
+
+compiler_rcc_make_all:
+compiler_rcc_clean:
+compiler_image_collection_make_all: qmake_image_collection.cpp
+compiler_image_collection_clean:
+ -$(DEL_FILE) qmake_image_collection.cpp
+compiler_moc_source_make_all:
+compiler_moc_source_clean:
+compiler_rez_source_make_all:
+compiler_rez_source_clean:
+compiler_uic_make_all:
+compiler_uic_clean:
+compiler_yacc_decl_make_all:
+compiler_yacc_decl_clean:
+compiler_yacc_impl_make_all:
+compiler_yacc_impl_clean:
+compiler_lex_make_all:
+compiler_lex_clean:
+compiler_clean: compiler_moc_header_clean
+
+####### Compile
+
+main.o: main.cpp mainwindow.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
+
+mainwindow.o: mainwindow.cpp droparea.h \
+ mainwindow.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
+
+droparea.o: droparea.cpp droparea.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o droparea.o droparea.cpp
+
+moc_mainwindow.o: moc_mainwindow.cpp
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
+
+moc_droparea.o: moc_droparea.cpp
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_droparea.o moc_droparea.cpp
+
+####### Install
+
+install: FORCE
+
+uninstall: FORCE
+
+FORCE:
+
@@ -0,0 +1,103 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include <QtGui>
+
+#include "droparea.h"
+
+//! [DropArea constructor]
+DropArea::DropArea(QWidget *parent)
+ : QLabel(parent)
+{
+ setMinimumSize(150, 50);
+ setFrameStyle(QFrame::Sunken | QFrame::StyledPanel);
+ setAlignment(Qt::AlignCenter);
+ setAcceptDrops(true);
+ setAutoFillBackground(true);
+ clear();
+}
+//! [DropArea constructor]
+
+//! [dragEnterEvent() function]
+void DropArea::dragEnterEvent(QDragEnterEvent *event)
+{
+ setText(tr("<drop 3D movie>"));
+ setBackgroundRole(QPalette::Highlight);
+
+ event->acceptProposedAction();
+ emit changed(event->mimeData());
+}
+//! [dragEnterEvent() function]
+
+//! [dragMoveEvent() function]
+void DropArea::dragMoveEvent(QDragMoveEvent *event)
+{
+ event->acceptProposedAction();
+}
+//! [dragMoveEvent() function]
+
+//! [dropEvent() function part1]
+void DropArea::dropEvent(QDropEvent *event)
+{
+//! [dropEvent() function part1]
+
+//! [dropEvent() function part3]
+ setBackgroundRole(QPalette::Dark);
+ event->acceptProposedAction();
+}
+//! [dropEvent() function part3]
+
+//! [dragLeaveEvent() function]
+void DropArea::dragLeaveEvent(QDragLeaveEvent *event)
+{
+ clear();
+ event->accept();
+}
+//! [dragLeaveEvent() function]
+
+//! [clear() function]
+void DropArea::clear()
+{
+ setText(tr("<drop 3D movie>"));
+ setBackgroundRole(QPalette::Dark);
+
+ emit changed();
+}
+//! [clear() function]
Oops, something went wrong.

0 comments on commit 78f9f8d

Please sign in to comment.