author | mickeyl <mickeyl> | 2004-02-13 13:38:06 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-02-13 13:38:06 (UTC) |
commit | 97bdea970b2fb017eef7d3b03d7a316eb216266b (patch) (side-by-side diff) | |
tree | 21e9eb8986829cde04447a2018ba745a64640386 /noncore/multimedia/camera | |
parent | dba46ffd80c121aee412ec45f9bd6d0b9be5058e (diff) | |
download | opie-97bdea970b2fb017eef7d3b03d7a316eb216266b.zip opie-97bdea970b2fb017eef7d3b03d7a316eb216266b.tar.gz opie-97bdea970b2fb017eef7d3b03d7a316eb216266b.tar.bz2 |
opie-camera no longer needs libopie1
-rw-r--r-- | noncore/multimedia/camera/cmd/cmd.pro | 2 | ||||
-rw-r--r-- | noncore/multimedia/camera/config.in | 6 | ||||
-rw-r--r-- | noncore/multimedia/camera/gui/gui.pro | 4 | ||||
-rw-r--r-- | noncore/multimedia/camera/gui/mainwindow.cpp | 28 | ||||
-rw-r--r-- | noncore/multimedia/camera/lib/lib.pro | 4 |
5 files changed, 21 insertions, 23 deletions
diff --git a/noncore/multimedia/camera/cmd/cmd.pro b/noncore/multimedia/camera/cmd/cmd.pro index 7981e82..b90289b 100644 --- a/noncore/multimedia/camera/cmd/cmd.pro +++ b/noncore/multimedia/camera/cmd/cmd.pro @@ -1,10 +1,8 @@ -MOC_DIR = ./moc -OBJECTS_DIR = ./obj DESTDIR = $(OPIEDIR)/bin TEMPLATE = app CONFIG += qt warn_on debug HEADERS = capture.h SOURCES = capture.cpp diff --git a/noncore/multimedia/camera/config.in b/noncore/multimedia/camera/config.in index 861abcb..cfd71ad 100644 --- a/noncore/multimedia/camera/config.in +++ b/noncore/multimedia/camera/config.in @@ -1,7 +1,7 @@ config CAMERA boolean "opie-camera (camera app to use with the Sharp CE-AG06)" default "n" - depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE && LIBOPIE2CORE - comment "opie-camera needs a libqpe, libopie and libopie2core" - depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE && LIBOPIE2CORE) + depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE + comment "opie-camera needs a libqpe, libopie2core" + depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE) diff --git a/noncore/multimedia/camera/gui/gui.pro b/noncore/multimedia/camera/gui/gui.pro index f587b57..d74f4b6 100644 --- a/noncore/multimedia/camera/gui/gui.pro +++ b/noncore/multimedia/camera/gui/gui.pro @@ -1,21 +1,19 @@ -MOC_DIR = ./moc -OBJECTS_DIR = ./obj DESTDIR = $(OPIEDIR)/bin TEMPLATE = app CONFIG += qt warn_on debug HEADERS = previewwidget.h \ mainwindow.h SOURCES = previewwidget.cpp \ mainwindow.cpp \ main.cpp INCLUDEPATH += $(OPIEDIR)/include ../lib DEPENDPATH += $(OPIEDIR)/include ../lib -LIBS += -lqpe -lopie -lopiecore2 -lopiecam +LIBS += -lopiecore2 -lopieui2 -lopiecam INTERFACES = TARGET = opiecam include ( $(OPIEDIR)/include.pro ) diff --git a/noncore/multimedia/camera/gui/mainwindow.cpp b/noncore/multimedia/camera/gui/mainwindow.cpp index 5da3757..2f42049 100644 --- a/noncore/multimedia/camera/gui/mainwindow.cpp +++ b/noncore/multimedia/camera/gui/mainwindow.cpp @@ -14,16 +14,28 @@ **********************************************************************/ #include "mainwindow.h" #include "previewwidget.h" #include "zcameraio.h" #include "imageio.h" #include "avi.h" +/* OPIE */ +#include <opie2/ofiledialog.h> +#include <opie2/odevice.h> +#include <opie2/oapplication.h> +#include <opie2/oconfig.h> +#include <opie2/odebug.h> +#include <qpe/global.h> +#include <qpe/resource.h> +#include <qpe/qcopenvelope_qws.h> +using namespace Opie; + +/* QT */ #include <qapplication.h> #include <qaction.h> #include <qvbox.h> #include <qcombobox.h> #include <qcursor.h> #include <qdatastream.h> #include <qdir.h> #include <qfile.h> @@ -31,26 +43,18 @@ #include <qlabel.h> #include <qlineedit.h> #include <qpopupmenu.h> #include <qprogressbar.h> #include <qpushbutton.h> #include <qmessagebox.h> #include <qlayout.h> #include <qdirectpainter_qws.h> -#include <qpe/global.h> -#include <qpe/resource.h> -#include <qpe/qcopenvelope_qws.h> -#include <opie/ofiledialog.h> -#include <opie/odevice.h> -using namespace Opie; -#include <opie2/oapplication.h> -#include <opie2/oconfig.h> -#include <opie2/odebug.h> +/* STD */ #include <assert.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <unistd.h> @@ -433,17 +437,17 @@ void CameraMainWindow::appendSettingsChoosen() void CameraMainWindow::shutterClicked() { if ( captureFormat != "AVI" ) // capture one photo per shutterClick { Global::statusMessage( "CAPTURING..." ); qApp->processEvents(); odebug << "Shutter has been pressed" << oendl; - ODevice::inst()->touchSound(); + ODevice::inst()->playTouchSound(); performCapture( captureFormat ); } else // capture video! start with one shutter click and stop with the next { !_capturing ? startVideoCapture() : stopVideoCapture(); } } @@ -487,17 +491,17 @@ void CameraMainWindow::performCapture( const QString& format ) odebug << captureFormat << "-image has been successfully captured" << oendl; Global::statusMessage( "Ok." ); } } void CameraMainWindow::startVideoCapture() { - ODevice::inst()->touchSound(); + ODevice::inst()->playTouchSound(); ODevice::inst()->setLedState( Led_Mail, Led_BlinkSlow ); _capturefd = ::open( CAPTUREFILE, O_WRONLY | O_CREAT | O_TRUNC ); if ( _capturefd == -1 ) { owarn << "can't open capture file: " << strerror(errno) << oendl; return; } @@ -529,17 +533,17 @@ void CameraMainWindow::timerEvent( QTimerEvent* ) setCaption( QString().sprintf( "Capturing %dx%d @ %.2f fps %d", captureX, captureY, 1000.0 / (_time.elapsed()/_videopics), _videopics ) ); } void CameraMainWindow::stopVideoCapture() { killTimers(); - ODevice::inst()->touchSound(); + ODevice::inst()->playTouchSound(); ODevice::inst()->setLedState( Led_Mail, Led_Off ); _capturing = false; updateCaption(); ::close( _capturefd ); _framerate = 1000.0 / (_time.elapsed()/_videopics); QString name; if ( outputTo == "Documents Folder" ) diff --git a/noncore/multimedia/camera/lib/lib.pro b/noncore/multimedia/camera/lib/lib.pro index 3d2c59b..1e7346f 100644 --- a/noncore/multimedia/camera/lib/lib.pro +++ b/noncore/multimedia/camera/lib/lib.pro @@ -1,24 +1,22 @@ -MOC_DIR = ./moc -OBJECTS_DIR = ./obj DESTDIR = $(OPIEDIR)/lib TEMPLATE = lib CONFIG += qt warn_on debug HEADERS = avi.h \ imageio.h \ zcameraio.h \ SOURCES = avi.c \ imageio.cpp \ zcameraio.cpp \ INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include -LIBS += -lqpe -lopie -lopiecore2 +LIBS += -lopiecore2 INTERFACES = VERSION = 1.0.0 TARGET = opiecam include ( $(OPIEDIR)/include.pro ) |