From 05839590b40b017ba41125b31b93381cbc6aff0b Mon Sep 17 00:00:00 2001 From: Tommi Asp Date: Thu, 22 Jul 2010 10:57:26 +0300 Subject: [PATCH] added wwwpage and changed structure --- cuteexplorer.pro | 8 - cuteexplorer/cuteexplorer.pro | 8 + cuteexplorer/debian/README.Debian | 6 + cuteexplorer/debian/changelog | 78 ++++++ cuteexplorer/debian/compat | 1 + cuteexplorer/debian/control | 38 +++ cuteexplorer/debian/copyright | 36 +++ cuteexplorer/debian/cron.d.ex | 4 + cuteexplorer/debian/cuteexplorer-default.ex | 10 + cuteexplorer/debian/cuteexplorer.doc-base.EX | 22 ++ cuteexplorer/debian/dirs | 2 + cuteexplorer/debian/emacsen-install.ex | 45 ++++ cuteexplorer/debian/emacsen-remove.ex | 15 ++ cuteexplorer/debian/emacsen-startup.ex | 25 ++ cuteexplorer/debian/init.d.ex | 81 ++++++ cuteexplorer/debian/manpage.1.ex | 59 +++++ cuteexplorer/debian/manpage.sgml.ex | 156 ++++++++++++ cuteexplorer/debian/manpage.xml.ex | 148 +++++++++++ cuteexplorer/debian/menu.ex | 2 + cuteexplorer/debian/postinst.ex | 41 +++ cuteexplorer/debian/postrm.ex | 39 +++ cuteexplorer/debian/preinst.ex | 37 +++ cuteexplorer/debian/prerm.ex | 40 +++ cuteexplorer/debian/rules | 54 ++++ cuteexplorer/debian/watch.ex | 22 ++ cuteexplorer/src/cuteexplorer.desktop | 8 + cuteexplorer/src/cuteexplorer_icon.svg | 32 +++ cuteexplorer/src/cuteexplorer_icon48.base64 | 24 ++ cuteexplorer/src/cuteexplorer_icon48.png | Bin 0 -> 972 bytes cuteexplorer/src/cuteexplorer_icon64.png | Bin 0 -> 1233 bytes cuteexplorer/src/cuteexplorertranslation_fi_FI.qm | Bin 0 -> 4097 bytes cuteexplorer/src/cuteexplorertranslation_fi_FI.ts | 228 +++++++++++++++++ cuteexplorer/src/filelistwidget.cpp | 282 +++++++++++++++++++++ cuteexplorer/src/filelistwidget.h | 47 ++++ cuteexplorer/src/i18n.qrc | 5 + cuteexplorer/src/main.cpp | 29 +++ cuteexplorer/src/mainwindow.cpp | 106 ++++++++ cuteexplorer/src/mainwindow.h | 31 +++ cuteexplorer/src/mainwindow.ui | 168 ++++++++++++ cuteexplorer/src/searchdialog.cpp | 26 ++ cuteexplorer/src/searchdialog.h | 23 ++ cuteexplorer/src/searchdialog.ui | 71 ++++++ cuteexplorer/src/src.pro | 44 ++++ debian/README.Debian | 6 - debian/changelog | 78 ------ debian/compat | 1 - debian/control | 38 --- debian/copyright | 36 --- debian/cron.d.ex | 4 - debian/cuteexplorer-default.ex | 10 - debian/cuteexplorer.doc-base.EX | 22 -- debian/dirs | 2 - debian/emacsen-install.ex | 45 ---- debian/emacsen-remove.ex | 15 -- debian/emacsen-startup.ex | 25 -- debian/init.d.ex | 81 ------ debian/manpage.1.ex | 59 ----- debian/manpage.sgml.ex | 156 ------------ debian/manpage.xml.ex | 148 ----------- debian/menu.ex | 2 - debian/postinst.ex | 41 --- debian/postrm.ex | 39 --- debian/preinst.ex | 37 --- debian/prerm.ex | 40 --- debian/rules | 54 ---- debian/watch.ex | 22 -- src/cuteexplorer.desktop | 8 - src/cuteexplorer_icon.svg | 32 --- src/cuteexplorer_icon48.base64 | 24 -- src/cuteexplorer_icon48.png | Bin 972 -> 0 bytes src/cuteexplorer_icon64.png | Bin 1233 -> 0 bytes src/cuteexplorertranslation_fi_FI.qm | Bin 4097 -> 0 bytes src/cuteexplorertranslation_fi_FI.ts | 228 ----------------- src/filelistwidget.cpp | 282 --------------------- src/filelistwidget.h | 47 ---- src/i18n.qrc | 5 - src/main.cpp | 29 --- src/mainwindow.cpp | 106 -------- src/mainwindow.h | 31 --- src/mainwindow.ui | 168 ------------ src/searchdialog.cpp | 26 -- src/searchdialog.h | 23 -- src/searchdialog.ui | 71 ------ src/src.pro | 44 ---- www/index.html | 30 +++ 85 files changed, 2123 insertions(+), 2093 deletions(-) delete mode 100644 cuteexplorer.pro create mode 100644 cuteexplorer/cuteexplorer.pro create mode 100644 cuteexplorer/debian/README.Debian create mode 100644 cuteexplorer/debian/changelog create mode 100644 cuteexplorer/debian/compat create mode 100644 cuteexplorer/debian/control create mode 100644 cuteexplorer/debian/copyright create mode 100644 cuteexplorer/debian/cron.d.ex create mode 100644 cuteexplorer/debian/cuteexplorer-default.ex create mode 100644 cuteexplorer/debian/cuteexplorer.doc-base.EX create mode 100644 cuteexplorer/debian/dirs create mode 100644 cuteexplorer/debian/docs create mode 100644 cuteexplorer/debian/emacsen-install.ex create mode 100644 cuteexplorer/debian/emacsen-remove.ex create mode 100644 cuteexplorer/debian/emacsen-startup.ex create mode 100644 cuteexplorer/debian/init.d.ex create mode 100644 cuteexplorer/debian/manpage.1.ex create mode 100644 cuteexplorer/debian/manpage.sgml.ex create mode 100644 cuteexplorer/debian/manpage.xml.ex create mode 100644 cuteexplorer/debian/menu.ex create mode 100644 cuteexplorer/debian/postinst.ex create mode 100644 cuteexplorer/debian/postrm.ex create mode 100644 cuteexplorer/debian/preinst.ex create mode 100644 cuteexplorer/debian/prerm.ex create mode 100755 cuteexplorer/debian/rules create mode 100644 cuteexplorer/debian/watch.ex create mode 100644 cuteexplorer/src/cuteexplorer.desktop create mode 100644 cuteexplorer/src/cuteexplorer_icon.svg create mode 100644 cuteexplorer/src/cuteexplorer_icon48.base64 create mode 100644 cuteexplorer/src/cuteexplorer_icon48.png create mode 100644 cuteexplorer/src/cuteexplorer_icon64.png create mode 100644 cuteexplorer/src/cuteexplorertranslation_fi_FI.qm create mode 100644 cuteexplorer/src/cuteexplorertranslation_fi_FI.ts create mode 100644 cuteexplorer/src/filelistwidget.cpp create mode 100644 cuteexplorer/src/filelistwidget.h create mode 100644 cuteexplorer/src/i18n.qrc create mode 100644 cuteexplorer/src/main.cpp create mode 100644 cuteexplorer/src/mainwindow.cpp create mode 100644 cuteexplorer/src/mainwindow.h create mode 100644 cuteexplorer/src/mainwindow.ui create mode 100644 cuteexplorer/src/searchdialog.cpp create mode 100644 cuteexplorer/src/searchdialog.h create mode 100644 cuteexplorer/src/searchdialog.ui create mode 100644 cuteexplorer/src/src.pro delete mode 100644 debian/README.Debian delete mode 100644 debian/changelog delete mode 100644 debian/compat delete mode 100644 debian/control delete mode 100644 debian/copyright delete mode 100644 debian/cron.d.ex delete mode 100644 debian/cuteexplorer-default.ex delete mode 100644 debian/cuteexplorer.doc-base.EX delete mode 100644 debian/dirs delete mode 100644 debian/docs delete mode 100644 debian/emacsen-install.ex delete mode 100644 debian/emacsen-remove.ex delete mode 100644 debian/emacsen-startup.ex delete mode 100644 debian/init.d.ex delete mode 100644 debian/manpage.1.ex delete mode 100644 debian/manpage.sgml.ex delete mode 100644 debian/manpage.xml.ex delete mode 100644 debian/menu.ex delete mode 100644 debian/postinst.ex delete mode 100644 debian/postrm.ex delete mode 100644 debian/preinst.ex delete mode 100644 debian/prerm.ex delete mode 100755 debian/rules delete mode 100644 debian/watch.ex delete mode 100644 src/cuteexplorer.desktop delete mode 100644 src/cuteexplorer_icon.svg delete mode 100644 src/cuteexplorer_icon48.base64 delete mode 100644 src/cuteexplorer_icon48.png delete mode 100644 src/cuteexplorer_icon64.png delete mode 100644 src/cuteexplorertranslation_fi_FI.qm delete mode 100644 src/cuteexplorertranslation_fi_FI.ts delete mode 100644 src/filelistwidget.cpp delete mode 100644 src/filelistwidget.h delete mode 100644 src/i18n.qrc delete mode 100644 src/main.cpp delete mode 100644 src/mainwindow.cpp delete mode 100644 src/mainwindow.h delete mode 100644 src/mainwindow.ui delete mode 100644 src/searchdialog.cpp delete mode 100644 src/searchdialog.h delete mode 100644 src/searchdialog.ui delete mode 100644 src/src.pro create mode 100644 www/index.html diff --git a/cuteexplorer.pro b/cuteexplorer.pro deleted file mode 100644 index 5e620b8..0000000 --- a/cuteexplorer.pro +++ /dev/null @@ -1,8 +0,0 @@ -QMAKEVERSION = $$[QMAKE_VERSION] -ISQT4 = $$find(QMAKEVERSION, ^[2-9]) -isEmpty( ISQT4 ) { -error("Use the qmake include with Qt4.4 or greater"); -} - -TEMPLATE = subdirs -SUBDIRS = src diff --git a/cuteexplorer/cuteexplorer.pro b/cuteexplorer/cuteexplorer.pro new file mode 100644 index 0000000..5e620b8 --- /dev/null +++ b/cuteexplorer/cuteexplorer.pro @@ -0,0 +1,8 @@ +QMAKEVERSION = $$[QMAKE_VERSION] +ISQT4 = $$find(QMAKEVERSION, ^[2-9]) +isEmpty( ISQT4 ) { +error("Use the qmake include with Qt4.4 or greater"); +} + +TEMPLATE = subdirs +SUBDIRS = src diff --git a/cuteexplorer/debian/README.Debian b/cuteexplorer/debian/README.Debian new file mode 100644 index 0000000..8f8fa3c --- /dev/null +++ b/cuteexplorer/debian/README.Debian @@ -0,0 +1,6 @@ +cuteexplorer for Debian +----------------------- + + + + -- unknown Mon, 22 Mar 2010 15:26:30 +0200 diff --git a/cuteexplorer/debian/changelog b/cuteexplorer/debian/changelog new file mode 100644 index 0000000..94d2c2b --- /dev/null +++ b/cuteexplorer/debian/changelog @@ -0,0 +1,78 @@ +cuteexplorer (1.1.1-1) unstable; urgency=low + + * release for pr 1.2 + + -- Tommi Asp Thu, 27 May 2010 16:42:06 +0300 + +cuteexplorer (1.1.1) unstable; urgency=low + + * fixed filelist selection bug + * added shortcuts for commands + * fixed rename failed when canceled renamedialog + + -- Tommi Asp Thu, 6 May 2010 20:44:29 +0300 + +cuteexplorer (1.1-7) unstable; urgency=low + + * shlibs.local added + + -- Tommi Asp Wed, 14 Apr 2010 13:03:31 +0300 + +cuteexplorer (1.1-6) unstable; urgency=low + + * 4 + + -- Tommi Asp Wed, 14 Apr 2010 12:26:19 +0300 + +cuteexplorer (1.1-5) unstable; urgency=low + + * libhildonmime dep fix try number 3 + + -- Tommi Asp Wed, 14 Apr 2010 11:54:18 +0300 + +cuteexplorer (1.1-4) unstable; urgency=low + + * working dependies for pr 1.1 + + -- Tommi Asp Wed, 14 Apr 2010 10:54:24 +0300 + +cuteexplorer (1.1-3) unstable; urgency=low + + * ffs... lets wait for pr 1.2 then + + -- Tommi Asp Mon, 12 Apr 2010 13:18:43 +0300 + +cuteexplorer (1.1-2) unstable; urgency=low + + * Moved back to libqt4-maemo5 because oldversions were removed + + -- Tommi Asp Mon, 12 Apr 2010 12:21:10 +0300 + +cuteexplorer (1.1-1) unstable; urgency=low + + * moved to use libqt4 + + -- Tommi Asp Fri, 9 Apr 2010 18:37:27 +0300 + +cuteexplorer (1.1) unstable; urgency=low + + * Fixed bluetooth sending, no need to "copy" files first + * Added context menu for filelistwidget + * Actions from edit menu moved to fileslistwidgets contextmenu + * Check not to send directories via bluetooth + * Added help and about dialogs + + -- Tommi Asp Fri, 9 Apr 2010 18:02:07 +0300 + +cuteexplorer (1.0-2) unstable; urgency=low + + * Fixed broken .desktop -file + + -- Tommi Asp Mon, 22 Mar 2010 23:07:55 +0200 + +cuteexplorer (1.0-1) unstable; urgency=low + + * Initial release (Closes: #nnnn) + + -- Tommi Asp Mon, 22 Mar 2010 14:09:49 +0200 + diff --git a/cuteexplorer/debian/compat b/cuteexplorer/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/cuteexplorer/debian/compat @@ -0,0 +1 @@ +5 diff --git a/cuteexplorer/debian/control b/cuteexplorer/debian/control new file mode 100644 index 0000000..68ae33c --- /dev/null +++ b/cuteexplorer/debian/control @@ -0,0 +1,38 @@ +Source: cuteexplorer +Section: user/utilities +Priority: extra +Maintainer: Tommi Asp +Build-Depends: debhelper (>= 5), libqt4-dev, libdbus-1-dev, libhildonmime-dev +Standards-Version: 3.7.2 + +Package: cuteexplorer +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Filemanager for maemo5 using Qt + Navigate in the real filesystem. + Send files via bluetooth. +XSBC-Maemo-Display-Name: CuteExplorer +XB-Maemo-Icon-26: + iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAA7E + AAAOxAGVKw4bAAADfklEQVRoge2ZTWsrVRjHf2eal5tMILdxlbYRym27cJUu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s4AQMuX1CfAm1IFG78J + 4Fe8v0H1K89ofNhQRSgjQgg/8DawSv3MTBISOAF+kFI23aDE7EO3x8wMeM3M + gNdMvYF/Acd52O0Tf+jGAAAAAElFTkSuQmCC +XSBC-Bugtracker: https://garage.maemo.org/tracker/?atid=5332&group_id=1469&func=browse diff --git a/cuteexplorer/debian/copyright b/cuteexplorer/debian/copyright new file mode 100644 index 0000000..d66a63f --- /dev/null +++ b/cuteexplorer/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by unknown on +Mon, 22 Mar 2010 15:26:30 +0200. + +It was downloaded from + +Upstream Author: + +Copyright: + +License: + + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This package 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. + + +The Debian packaging is (C) 2010, unknown and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/cuteexplorer/debian/cron.d.ex b/cuteexplorer/debian/cron.d.ex new file mode 100644 index 0000000..8d3c775 --- /dev/null +++ b/cuteexplorer/debian/cron.d.ex @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the cuteexplorer package +# +0 4 * * * root cuteexplorer_maintenance diff --git a/cuteexplorer/debian/cuteexplorer-default.ex b/cuteexplorer/debian/cuteexplorer-default.ex new file mode 100644 index 0000000..aa9d00e --- /dev/null +++ b/cuteexplorer/debian/cuteexplorer-default.ex @@ -0,0 +1,10 @@ +# Defaults for cuteexplorer initscript +# sourced by /etc/init.d/cuteexplorer +# installed at /etc/default/cuteexplorer by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Additional options that are passed to the Daemon. +DAEMON_OPTS="" diff --git a/cuteexplorer/debian/cuteexplorer.doc-base.EX b/cuteexplorer/debian/cuteexplorer.doc-base.EX new file mode 100644 index 0000000..c396ff5 --- /dev/null +++ b/cuteexplorer/debian/cuteexplorer.doc-base.EX @@ -0,0 +1,22 @@ +Document: cuteexplorer +Title: Debian cuteexplorer Manual +Author: +Abstract: This manual describes what cuteexplorer is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/cuteexplorer/cuteexplorer.sgml.gz + +Format: postscript +Files: /usr/share/doc/cuteexplorer/cuteexplorer.ps.gz + +Format: text +Files: /usr/share/doc/cuteexplorer/cuteexplorer.text.gz + +Format: HTML +Index: /usr/share/doc/cuteexplorer/html/index.html +Files: /usr/share/doc/cuteexplorer/html/*.html + + diff --git a/cuteexplorer/debian/dirs b/cuteexplorer/debian/dirs new file mode 100644 index 0000000..ca882bb --- /dev/null +++ b/cuteexplorer/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/cuteexplorer/debian/docs b/cuteexplorer/debian/docs new file mode 100644 index 0000000..e69de29 diff --git a/cuteexplorer/debian/emacsen-install.ex b/cuteexplorer/debian/emacsen-install.ex new file mode 100644 index 0000000..293597c --- /dev/null +++ b/cuteexplorer/debian/emacsen-install.ex @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/cuteexplorer + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=cuteexplorer + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +#FLAVORTEST=`echo $FLAVOR | cut -c-6` +#if [ ${FLAVORTEST} = xemacs ] ; then +# SITEFLAG="-no-site-file" +#else +# SITEFLAG="--no-site-file" +#fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 diff --git a/cuteexplorer/debian/emacsen-remove.ex b/cuteexplorer/debian/emacsen-remove.ex new file mode 100644 index 0000000..2955d94 --- /dev/null +++ b/cuteexplorer/debian/emacsen-remove.ex @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/cuteexplorer + +FLAVOR=$1 +PACKAGE=cuteexplorer + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/cuteexplorer.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi diff --git a/cuteexplorer/debian/emacsen-startup.ex b/cuteexplorer/debian/emacsen-startup.ex new file mode 100644 index 0000000..8b3d715 --- /dev/null +++ b/cuteexplorer/debian/emacsen-startup.ex @@ -0,0 +1,25 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file, e.g. /etc/emacs/site-start.d/50cuteexplorer.el +;; for the Debian cuteexplorer package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The cuteexplorer package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(let ((package-dir (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/cuteexplorer"))) +;; If package-dir does not exist, the cuteexplorer package must have +;; removed but not purged, and we should skip the setup. + (when (file-directory-p package-dir) + (setq load-path (cons package-dir load-path)) + (autoload 'cuteexplorer-mode "cuteexplorer-mode" + "Major mode for editing cuteexplorer files." t) + (add-to-list 'auto-mode-alist '("\\.cuteexplorer$" . cuteexplorer-mode)))) + diff --git a/cuteexplorer/debian/init.d.ex b/cuteexplorer/debian/init.d.ex new file mode 100644 index 0000000..740c9d7 --- /dev/null +++ b/cuteexplorer/debian/init.d.ex @@ -0,0 +1,81 @@ +#! /bin/sh +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian +# by Ian Murdock . +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/cuteexplorer +NAME=cuteexplorer +DESC=cuteexplorer + +test -x $DAEMON || exit 0 + +# Include cuteexplorer defaults if available +if [ -f /etc/default/cuteexplorer ] ; then + . /etc/default/cuteexplorer +fi + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart" except that it does nothing if the + # daemon isn't already running. + # check wether $DAEMON is running. If so, restart + start-stop-daemon --stop --test --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON \ + && $0 restart \ + || exit 0 + ;; + restart) + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/cuteexplorer/debian/manpage.1.ex b/cuteexplorer/debian/manpage.1.ex new file mode 100644 index 0000000..fee2a3b --- /dev/null +++ b/cuteexplorer/debian/manpage.1.ex @@ -0,0 +1,59 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH CUTEEXPLORER SECTION "March 22, 2010" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +cuteexplorer \- program to do something +.SH SYNOPSIS +.B cuteexplorer +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B cuteexplorer +and +.B bar +commands. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBcuteexplorer\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +cuteexplorer was written by . +.PP +This manual page was written by unknown , +for the Debian project (but may be used by others). diff --git a/cuteexplorer/debian/manpage.sgml.ex b/cuteexplorer/debian/manpage.sgml.ex new file mode 100644 index 0000000..bb856e1 --- /dev/null +++ b/cuteexplorer/debian/manpage.sgml.ex @@ -0,0 +1,156 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + FIRSTNAME"> + SURNAME"> + + March 22, 2010"> + + SECTION"> + tomma.asp@gmail.com"> + + CUTEEXPLORER"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in the &gnu; + Info format; see below. + + &dhpackage; is a program that... + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + Info files. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + diff --git a/cuteexplorer/debian/manpage.xml.ex b/cuteexplorer/debian/manpage.xml.ex new file mode 100644 index 0000000..78da485 --- /dev/null +++ b/cuteexplorer/debian/manpage.xml.ex @@ -0,0 +1,148 @@ + +.
will be generated. You may view the +manual page with: nroff -man .
| less'. A +typical entry in a Makefile or Makefile.am is: + +DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\ +manpages/docbook.xsl +XP=xsltproc -''-nonet + +manpage.1: manpage.dbk + $(XP) $(DB2MAN) $< + +The xsltproc binary is found in the xsltproc package. The +XSL files are in docbook-xsl. Please remember that if you +create the nroff version in one of the debian/rules file +targets (such as build), you will need to include xsltproc +and docbook-xsl in your Build-Depends control field. + +--> + + + FIRSTNAME"> + SURNAME"> + + March 22, 2010"> + + SECTION"> + tomma.asp@gmail.com"> + + CUTEEXPLORER"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in the &gnu; + Info format; see below. + + &dhpackage; is a program that... + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + Info files. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ diff --git a/cuteexplorer/debian/menu.ex b/cuteexplorer/debian/menu.ex new file mode 100644 index 0000000..aab1a2c --- /dev/null +++ b/cuteexplorer/debian/menu.ex @@ -0,0 +1,2 @@ +?package(cuteexplorer):needs="X11|text|vc|wm" section="Apps/see-menu-manual"\ + title="cuteexplorer" command="/usr/bin/cuteexplorer" diff --git a/cuteexplorer/debian/postinst.ex b/cuteexplorer/debian/postinst.ex new file mode 100644 index 0000000..1453621 --- /dev/null +++ b/cuteexplorer/debian/postinst.ex @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for cuteexplorer +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/cuteexplorer/debian/postrm.ex b/cuteexplorer/debian/postrm.ex new file mode 100644 index 0000000..b042d76 --- /dev/null +++ b/cuteexplorer/debian/postrm.ex @@ -0,0 +1,39 @@ +#!/bin/sh +# postrm script for cuteexplorer +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/cuteexplorer/debian/preinst.ex b/cuteexplorer/debian/preinst.ex new file mode 100644 index 0000000..98c07e9 --- /dev/null +++ b/cuteexplorer/debian/preinst.ex @@ -0,0 +1,37 @@ +#!/bin/sh +# preinst script for cuteexplorer +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/cuteexplorer/debian/prerm.ex b/cuteexplorer/debian/prerm.ex new file mode 100644 index 0000000..ee5ea81 --- /dev/null +++ b/cuteexplorer/debian/prerm.ex @@ -0,0 +1,40 @@ +#!/bin/sh +# prerm script for cuteexplorer +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/cuteexplorer/debian/rules b/cuteexplorer/debian/rules new file mode 100755 index 0000000..67631fc --- /dev/null +++ b/cuteexplorer/debian/rules @@ -0,0 +1,54 @@ +#!/usr/bin/make -f +APPNAME := cuteexplorer +builddir: + mkdir -p builddir + +builddir/Makefile: builddir + cd builddir && qmake PREFIX=/usr ../$(APPNAME).pro + +build: build-stamp + +build-stamp: builddir/Makefile + dh_testdir + # Add here commands to compile the package. + cd builddir && $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + # Add here commands to clean up after the build process. + rm -rf builddir + dh_clean +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/your_appname + cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install + # Build architecture-independent files here. +binary-indep: build install + # We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installman + dh_link + #dh_strip --dbg-package=$(APPNAME)-dbg + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/cuteexplorer/debian/watch.ex b/cuteexplorer/debian/watch.ex new file mode 100644 index 0000000..c995601 --- /dev/null +++ b/cuteexplorer/debian/watch.ex @@ -0,0 +1,22 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Uncomment to examine a Webpage +# +#http://www.example.com/downloads.php cuteexplorer-(.*)\.tar\.gz + +# Uncomment to examine a Webserver directory +#http://www.example.com/pub/cuteexplorer-(.*)\.tar\.gz + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/cuteexplorer-(.*)\.tar\.gz debian uupdate + +# Uncomment to find new files on sourceforge, for debscripts >= 2.9 +# http://sf.net/cuteexplorer/cuteexplorer-(.*)\.tar\.gz + + diff --git a/cuteexplorer/src/cuteexplorer.desktop b/cuteexplorer/src/cuteexplorer.desktop new file mode 100644 index 0000000..cf35967 --- /dev/null +++ b/cuteexplorer/src/cuteexplorer.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.2 +Type=Application +Name=CuteExplorer +Comment=Explore your maemo +Exec=/usr/bin/cuteexplorer +Icon=cuteexplorer_icon64 diff --git a/cuteexplorer/src/cuteexplorer_icon.svg b/cuteexplorer/src/cuteexplorer_icon.svg new file mode 100644 index 0000000..9286d9e --- /dev/null +++ b/cuteexplorer/src/cuteexplorer_icon.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/cuteexplorer/src/cuteexplorer_icon48.base64 b/cuteexplorer/src/cuteexplorer_icon48.base64 new file mode 100644 index 0000000..aaff62f --- /dev/null +++ b/cuteexplorer/src/cuteexplorer_icon48.base64 @@ -0,0 +1,24 @@ +begin-base64 644 maemoexplorer_icon48.png +iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAA7E +AAAOxAGVKw4bAAADfklEQVRoge2ZTWsrVRjHf2eal5tMILdxlbYRym27cJUu +pCi34MZFtZvrxg/gQr+ApRuhO6nVnYLQT2AXIsJdiILbG4R7K6ISpoFSLWnv +hZjbppPJS3NcJGecvHfy4iSQHxwy88xzcv7/M3POzJwRUkqmGc1rAcMyM+A1 +U29AACHgEbDgsZa7kgW+lVIWVSANyCkraWBRSoloBABKI+qhcRNs/H4npXyk +DHwspfzcmbWzs/NjoTynSTQxV31Z6fevWkDTiBKovahZo1Kq67q+v7//0BkT +QuwCnwJFKWXY14gXWitbllX658Huu3IuRPS3XQBisRjr6+tNeWdnZxiGwf33 +7xN+GOb5J8+pvqiOxIBlWd93CCutAQBfhwQbf+4XmAva+8VikdPT06acfD4P +QOn3EuKeoHZVG1zxAHQ1EAwGM/eyj7+A/waJaZqcnJx0zDefmphPzZGK8/v9 +PTsYehjQdf3Pg4ODr0eqyCV7e3sf9cuxDQghAsA7wANAbG9vvyGEiIxRX19a +NGSAx605ysArwDPgNXXg4uIC4L0xa+xJBw1/AN84c5SBD4EEgKbVny6EEPa2 +IplMsrm5ORaxR0dHXF5eNsWcGmq1GtQ7+ANnjjKQAFhZWSEajdYDiYSqZBOP +x9tio2JtbY2FheanGaeGfD5PJpMBeNWZ0zSIw+Fwz0ZyuRzFYrFnzqBYVu/7 +XzdtfacpJ8lkkq2tLTdV7szh4SHn5+eu67kykEqlSKVSrhsZJ64MbGxsTPcZ +OD4+Jp1Ou27kLhQKbY9jd8KVgVgsxvLy8kANKTKZTNt0OQyuDEQiEZaWloZq +MJvNDlW/FVcGDMPAMIyRChiWqX+pnxnwmqYxYJomPl89VKlUiMfjnohSlMtl +bm5ubD0tvFQbXi+RDFo+UwvTP0+AGLflJyAgpcQHfAW8BbC6umpfQpNGpVJx +vo9/KaUsQ8sYCIVCCCHI5XJUq6NZGhkWn89HLBbr2rFt0evra0qlyVmku729 +5erqikik8+t52zQ6rjeuYeilaSruA0KIrsfaDOi63rPC/40QouvlA/Ux8Jfa +KRQKzM/Ps7i4ODGXkqZp9sTi4G+1IaifhSfA63Zwgs4AQMuX1CfAm1IFG78J +4Fe8v0H1K89ofNhQRSgjQgg/8DawSv3MTBISOAF+kFI23aDE7EO3x8wMeM3M +gNdMvYF/Acd52O0Tf+jGAAAAAElFTkSuQmCC +==== diff --git a/cuteexplorer/src/cuteexplorer_icon48.png b/cuteexplorer/src/cuteexplorer_icon48.png new file mode 100644 index 0000000000000000000000000000000000000000..bd653e7fc937f3650ee683b528af7e8168682f7f GIT binary patch literal 972 zcmV;-12g=IP)_>$<+bzyHt~6GH3)p8`cGW!Tq<7g{S@mR0)a!S1_qE=2UVT>xUS80+in zO?hW$XBdXT{rB$^ei-KYC(o(AsE)*dWm(^M2rI1t0AGg$8-MN>mGu-io}hMB8(i@KbTtqR1~d1vkH3Kb28n5!oSd9=%r~E!m`}}-iu3#ZJv$hB z7|?b7&x3=5u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W!l;C22P+;xG<-F1<>EM2(aP_~ai$c)SdR|p!HxLuxVm8o z&&+}yvvNWjRBX+3qKe=!h@9=*Eakj&Ff>K$=^bUpz9Vn zfuzO*p?SOpdF)4$W67BBRR)D~|Iz~vPdj_vy37xh;wm}j7ei#EP8}QvkQOq4V{58t zGMU{{*;PV?m6bgil^vX4Q)sIXq?CtF=kr@kfrI$DOVs{Jkgag^vt-zKW`aXff`r+wL1}(;M-uN z0r!~dc!1(DX?Es}!ZaQUs-s#0W^Tudce87qSf|kVF?0l`_F|l}B@dWl)XO;n9UkdB k0h6WX@+@V`=RE1SPC^XlHFMnQOeKpo + + + + FileListWidget + + + Rename + Uudelleen nimeä + + + + New filename: + Uusi tiedoston nimi: + + + + + + + Error! + Virhe! + + + + Renaming file %1 failed + Tiedoston %1 uudelleen nimeäminen epäonnistui + + + + Copying file %1 failed + Tiedoston %1 kopiointi epäonnistui + + + + Moving file %1 failed + Tiedoston %1 siirto epäonnistui + + + + Deleting file + Tiedoston poisto + + + + You are about to delete %1 file(s). +Are you sure you want to continue? + Olet poistamassa %1 tiedostoa.\nOletko varma että tahdot jatkaa? + + + + Deleting file %1 failed + Tiedoston %1 poistaminen epäonnistui + + + + + Sending files + Tiedostojen lähetys + + + + Sending directories not supported + Hakemistojen lähetys ei tuettu + + + To send files, select files you want to send and copy them. + Lähettääksesi tiedostoja; valitse tiedostot, kopioi ja lähetä tiedostot. + + + + Only in maemo5 for now + Vain maemo5:ssä tällähetkellä + + + + MainWindow + + + CuteExplorer + Maemo Explorer + CuteExplorer + + + + Up + Ylös + + + + Backspace + Backspace + + + + File + Tiedosto + + + Edit + Muokkaa + + + + View + Näkymä + + + + + + + Help + Apua + + + + Exit + Lopeta + + + + Cut + Leikkaa + + + + Copy + Kopioi + + + + Paste + Liitä + + + + Delete + Poista + + + + Icon view + Kuvake näkymä + + + + Send files + Lähetä tiedostoja + + + + About + + + + Switch Mode + Vaihda näkymä + + + + Rename + Uudelleen nimeä + + + + Show hidden + Näytä piilotetut + + + + Cut, copy, delete, rename, paste and send files + Leikkaa, kopioi, poista, uudelleen nimeä ja lähetä tiedostoja + + + + commands can be found from context menu (click and hold on maemo). + komennot löytyvät context valikosta (pitkä painallus maemossa). + + + + To select files, use ctrl and shift + Valitaksesi tiedostoja paina ctrl tai shift pohjassa + + + + <p>Version %1<br/> + <p>Versio %1<br/> + + + + Using Qt %1<br/> + Using Qt %1 +<br/> + Käyttää Qt %1<br/> + + + + Copyright + + + + + <p>CuteExplorer is file manager mainly for maemo5.<br/> + <p>CuteExplorer on tiedosto manageri pääasiassa maemo5:lle.<br/> + + + + This is still under development so please visit<br/> + Tämä on vielä kehityksen alla, joten käy<br/> + + + + <a href=http://cuteexplorer.garage.maemo.org>http://cuteexplorer.garage.maemo.org</a><br/> + + + + + to report bugs or leave feature requests. Thanks!</p> + ilmoittaaksesi bugeista. Kiitos! </p> + + + + About CuteExplorer + + + + diff --git a/cuteexplorer/src/filelistwidget.cpp b/cuteexplorer/src/filelistwidget.cpp new file mode 100644 index 0000000..f578e7c --- /dev/null +++ b/cuteexplorer/src/filelistwidget.cpp @@ -0,0 +1,282 @@ +#include "filelistwidget.h" +#include +#include +#include +#include +#include +#include +#include +#ifdef Q_WS_MAEMO_5 +# include +# include +#endif +/*! +Widget that shows filesystemmodel and handles navigation +in directory tree and opening files with assosiated programs + +@todo in symbian and windows filesystems navigating to "root" wont show drives + */ +FileListWidget::FileListWidget(QWidget *parent) : + QListView(parent), + fileSystemModel( new QFileSystemModel(this)), + currentDir(QDir::homePath()), + mode_cut(false), + mode_copy(false), + select(false) +{ + this->setModel(fileSystemModel); + this->setRootIndex(fileSystemModel->index(currentDir.absolutePath())); + fileSystemModel->setRootPath(currentDir.absolutePath()); + fileSystemModel->setFilter(fileSystemModel->filter() | QDir::System); + connect(this, SIGNAL(activated(QModelIndex)), this, SLOT(handleItemActivation(QModelIndex))); + +} + +/** + Switches view mode + @param iconmode true shows iconview, false shows listview + */ +void FileListWidget::actionSwitchMode(bool iconmode) +{ + if(iconmode) { + this->setViewMode(QListView::IconMode); + this->setWordWrap(true); + this->setGridSize(QSize(80,80)); + } else { + this->setViewMode(QListView::ListMode); + this->setWordWrap(false); + this->setGridSize(QSize()); + } +} + +/** + Switches show hidden + @param show true shows hidden files + */ +void FileListWidget::actionShowHidden(bool show) +{ + if(show) + fileSystemModel->setFilter(fileSystemModel->filter() | QDir::Hidden); + else + fileSystemModel->setFilter(fileSystemModel->filter() &~ QDir::Hidden); + + this->clearSelection(); +} + +/** + Rename selected file + */ +void FileListWidget::actionRename() +{ + QFileInfo file = fileSystemModel->fileInfo(this->selectedIndexes().first()); + QString newName = QInputDialog::getText(this, tr("Rename"), tr("New filename: "), QLineEdit::Normal, file.fileName()); + if(newName != file.fileName() && !newName.isEmpty()) + { + if(QFile::rename(file.absoluteFilePath(), file.absolutePath()+"/"+newName)) + return; + else + QMessageBox::critical(this,tr("Error!") + ,tr("Renaming file %1 failed") + .arg(file.fileName()) + ,QMessageBox::Ok); + } +} +/** + Selected files will be moved when actionPaste is called + */ +void FileListWidget::actionCut() +{ + mode_cut = true; + mode_copy = false; + selectedFiles = this->selectedIndexes(); +} +/** + Selected files will be copied when actionPaste is called + */ +void FileListWidget::actionCopy() +{ + mode_cut = false; + mode_copy = true; + selectedFiles = this->selectedIndexes(); +} + +/** + Moves or copies files that were selected when actionCut or actionCopy called + */ +void FileListWidget::actionPaste() +{ + fileSystemModel->setReadOnly(false); + if(mode_copy) { + //Copy files until filelist is empty or error occured + while(!selectedFiles.isEmpty()) { + if(QFile::copy(fileSystemModel->fileInfo(selectedFiles.first()).absoluteFilePath() + , fileSystemModel->rootPath()+"/"+fileSystemModel->fileName(selectedFiles.first()))) { + selectedFiles.removeFirst(); + } + else if(QFile::copy(fileSystemModel->fileInfo(selectedFiles.first()).absoluteFilePath() + , fileSystemModel->rootPath()+"/copy_"+fileSystemModel->fileName(selectedFiles.first()))) { + selectedFiles.removeFirst(); + } else { + QMessageBox::critical(this,tr("Error!") + ,tr("Copying file %1 failed") + .arg(fileSystemModel->fileName(selectedFiles.first())) + ,QMessageBox::Ok); + break; + } + } + if(selectedFiles.isEmpty()) + mode_copy = false; + } else if(mode_cut) { + //Move files until filelist is empty or error occured + while(!selectedFiles.isEmpty()) { + if(QFile::rename(fileSystemModel->fileInfo(selectedFiles.first()).absoluteFilePath() + , fileSystemModel->rootPath()+"/"+fileSystemModel->fileName(selectedFiles.first()))) { + selectedFiles.removeFirst(); + } else { + QMessageBox::critical(this,tr("Error!") + ,tr("Moving file %1 failed") + .arg(fileSystemModel->fileName(selectedFiles.first())) + ,QMessageBox::Ok); + break; + } + } + if(selectedFiles.isEmpty()) + mode_cut = false; + } + fileSystemModel->setReadOnly(true); + this->clearSelection(); +} + +/** + Deletes selected files + */ +void FileListWidget::actionDelete() +{ + mode_cut = false; + mode_copy = false; + if(QMessageBox::Yes == QMessageBox::warning(this, tr("Deleting file") + ,tr("You are about to delete %1 file(s).\nAre you sure you want to continue?") + .arg(this->selectedIndexes().count()) + , QMessageBox::Yes, QMessageBox::No)) { + fileSystemModel->setReadOnly(false); + selectedFiles = this->selectedIndexes(); + //delete files until filelist empty or error occured + while(!selectedFiles.isEmpty()) { + if(fileSystemModel->remove(selectedFiles.first())) { + selectedFiles.removeFirst(); + } else { + QMessageBox::critical(this,tr("Error!") + ,tr("Deleting file %1 failed") + .arg(fileSystemModel->fileName(selectedFiles.first())) + ,QMessageBox::Ok); + break; + } + } + fileSystemModel->setReadOnly(true); + this->clearSelection(); + } +} + +/** + @return Current directory shown + */ +QString FileListWidget::getPath() +{ + return currentDir.absolutePath(); +} + +/** + Changes current directory + @param path directory to change to + */ +void FileListWidget::changePath(QString path) +{ + currentDir.cd(path); + QString newPath = currentDir.absolutePath(); + fileSystemModel->setRootPath(newPath); + this->clearSelection(); + this->setRootIndex(fileSystemModel->index(newPath)); + emit pathChanged(newPath); +} + +/** + Equivalent to changePath("..") + */ +void FileListWidget::changePathUp() +{ + changePath(".."); +} + +void FileListWidget::handleItemActivation(QModelIndex index) +{ + if(!select) { + QFileInfo file = fileSystemModel->fileInfo(index); + if(file.isDir()) { + changePath(file.absoluteFilePath()); + } else if(file.isExecutable()) { + // Make process + QProcess::startDetached(file.absoluteFilePath()); + } else { +#ifdef Q_WS_MAEMO_5 // Uses native file opening method + //TODO: find better solution for this, maybe get fixed in Qt + DBusConnection* conn; + conn = dbus_bus_get(DBUS_BUS_SESSION, 0); + hildon_mime_open_file(conn, QUrl::fromLocalFile(file.absoluteFilePath()).toEncoded().constData()); +#else + /* + Not working with maemo5. + Uses hildon_uri_open function from + libhildonmime which should work, + but all files opened in browser. + */ + QDesktopServices::openUrl(QUrl::fromLocalFile(file.absoluteFilePath())); +#endif + } + } +} +/** + @param mode true activates file selection + */ +void FileListWidget::setSelectMode(bool mode) +{ + if(mode) + this->setSelectionMode(QAbstractItemView::ExtendedSelection); + else + this->setSelectionMode(QAbstractItemView::SingleSelection); + select = mode; +} + +/** + Opens native bluetooth dialog to choose receiving device and sends selected files there. + */ +void FileListWidget::actionSendFiles() +{ +#ifdef Q_WS_MAEMO_5 + // Create list of file urls + QStringList files; + QFileInfo file; + foreach(QModelIndex index, this->selectedIndexes()) { + file = fileSystemModel->fileInfo(index); + if(file.isDir()) { + QMessageBox::warning(this, + tr("Sending files"), + tr("Sending directories not supported"), + QMessageBox::Cancel); + return; + } + files.append(QUrl::fromLocalFile(file.absoluteFilePath()).toString()); + } + + // Make dbuscall to send files + QDBusInterface interface("com.nokia.bt_ui", "/com/nokia/bt_ui", "com.nokia.bt_ui",QDBusConnection::systemBus()); + interface.call(QDBus::Block, "show_send_file_dlg", files); + +#else + QMessageBox::information(this, + tr("Sending files"), + tr("Only in maemo5 for now"), + QMessageBox::Cancel); +#endif + +} + diff --git a/cuteexplorer/src/filelistwidget.h b/cuteexplorer/src/filelistwidget.h new file mode 100644 index 0000000..48304cf --- /dev/null +++ b/cuteexplorer/src/filelistwidget.h @@ -0,0 +1,47 @@ +#ifndef FILELISTWIDGET_H +#define FILELISTWIDGET_H + +#include +#include +#include +#include +#include + +class FileListWidget : public QListView +{ +Q_OBJECT +public: + explicit FileListWidget(QWidget *parent = 0); + + QString getPath(); + +signals: + void pathChanged(QString newPath); + +public slots: + void changePath(QString path); + void changePathUp(); + + void actionDelete(); + void actionCut(); + void actionCopy(); + void actionPaste(); + void actionSwitchMode(bool iconmode=true); + void actionRename(); + void actionShowHidden(bool show=true); + void actionSendFiles(); + + void setSelectMode(bool mode=true); +private slots: + void handleItemActivation(QModelIndex index); + +private: + QFileSystemModel *fileSystemModel; + QDir currentDir; + QModelIndexList selectedFiles; + bool mode_cut; + bool mode_copy; + bool select; +}; + +#endif // FILELISTWIDGET_H diff --git a/cuteexplorer/src/i18n.qrc b/cuteexplorer/src/i18n.qrc new file mode 100644 index 0000000..9962489 --- /dev/null +++ b/cuteexplorer/src/i18n.qrc @@ -0,0 +1,5 @@ + + + cuteexplorertranslation_fi_FI.qm + + diff --git a/cuteexplorer/src/main.cpp b/cuteexplorer/src/main.cpp new file mode 100644 index 0000000..9da8be5 --- /dev/null +++ b/cuteexplorer/src/main.cpp @@ -0,0 +1,29 @@ +#include +#include +#include +#include "mainwindow.h" +#include +#include +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + QTranslator translator; + + /* For some reason QLocale::system() returns + locale by LC_NUMERIC environment variable in linux which is + meant for numerics like thousand separator etc. + + In this solution we get locale from LANG environment variable + and use QLocale::system() as fallback. + */ + if(QProcessEnvironment::systemEnvironment().contains("LANG")) + translator.load(":/cuteexplorertranslation_"+QLocale(QProcessEnvironment::systemEnvironment().value("LANG")).name()); + else + translator.load(":/cuteexplorertranslation_"+QLocale::system().name()); + + a.installTranslator(&translator); + + MainWindow w; + w.show(); + return a.exec(); +} diff --git a/cuteexplorer/src/mainwindow.cpp b/cuteexplorer/src/mainwindow.cpp new file mode 100644 index 0000000..5673d64 --- /dev/null +++ b/cuteexplorer/src/mainwindow.cpp @@ -0,0 +1,106 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); + connect(ui->actionExit, SIGNAL(triggered()), this, SLOT(close())); + connect(ui->upButton, SIGNAL(clicked()), ui->fileListWidget, SLOT(changePathUp())); + connect(ui->locationLine, SIGNAL(returnPressed()), this, SLOT(locationLineEnterKeyHandler())); + connect(ui->fileListWidget, SIGNAL(pathChanged(QString)), ui->locationLine, SLOT(setText(QString))); + connect(ui->actionDelete, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionDelete())); + connect(ui->actionMode, SIGNAL(toggled(bool)), ui->fileListWidget, SLOT(actionSwitchMode(bool))); + connect(ui->actionCopy, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionCopy())); + connect(ui->actionCut, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionCut())); + connect(ui->actionPaste, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionPaste())); + connect(ui->actionShow_hidden, SIGNAL(toggled(bool)), ui->fileListWidget, SLOT(actionShowHidden(bool))); + connect(ui->actionRename, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionRename())); + connect(ui->actionSend, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionSendFiles())); + + connect(ui->actionHelp, SIGNAL(triggered()), this, SLOT(showHelp())); + connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAbout())); + + ui->locationLine->setText(ui->fileListWidget->getPath()); + + ui->actionExit->setShortcut(QKeySequence::Quit); + + ui->actionCopy->setShortcut(QKeySequence::Copy); + ui->actionCut->setShortcut(QKeySequence::Cut); + ui->actionPaste->setShortcut(QKeySequence::Paste); + ui->actionDelete->setShortcut(QKeySequence("Ctrl+D")); + ui->actionRename->setShortcut(QKeySequence("Ctrl+R")); + ui->actionSend->setShortcut(QKeySequence::Save); + ui->fileListWidget->addAction(ui->actionCopy); + ui->fileListWidget->addAction(ui->actionCut); + ui->fileListWidget->addAction(ui->actionPaste); + ui->fileListWidget->addAction(ui->actionDelete); + ui->fileListWidget->addAction(ui->actionRename); + ui->fileListWidget->addAction(ui->actionSend); +} + +MainWindow::~MainWindow() +{ + delete ui; +} + +void MainWindow::locationLineEnterKeyHandler() +{ + ui->fileListWidget->changePath(ui->locationLine->text()); +} +void MainWindow::keyPressEvent(QKeyEvent *e) +{ + if(e->key() == Qt::Key_Control || e->key() == Qt::Key_Shift) + ui->fileListWidget->setSelectMode(true); + else + QMainWindow::keyPressEvent(e); +} +void MainWindow::keyReleaseEvent(QKeyEvent *e) +{ + if(e->key() == Qt::Key_Control || e->key() == Qt::Key_Shift) + ui->fileListWidget->setSelectMode(false); + else + QMainWindow::keyPressEvent(e); +} + +void MainWindow::changeEvent(QEvent *e) +{ + QMainWindow::changeEvent(e); + switch (e->type()) { + case QEvent::LanguageChange: + ui->retranslateUi(this); + break; + default: + break; + } +} + +void MainWindow::showHelp() +{ + QString helpText; + + helpText.append("

CuteExplorer "+tr("Help") +"

"); + helpText.append("

"+ tr("Cut, copy, delete, rename, paste and send files")+"
"); + helpText.append(tr("commands can be found from context menu (click and hold on maemo).")+"
"); + helpText.append(tr("To select files, use ctrl and shift")+"
"); + QMessageBox::about(this, tr("Help"), + helpText); +} +void MainWindow::showAbout() +{ + QString about; + about.append("

CuteExplorer

"); + about.append(tr("

Version %1
").arg(QString(CUTE_VERSION))); + about.append(tr("Using Qt %1
").arg(QString(QT_VERSION_STR))); + about.append(tr("Copyright") + " 2010 Tommi \"tomma\" Asp <tomma.asp@gmail.com>
"); + + about.append(tr("

CuteExplorer is file manager mainly for maemo5.
")); + about.append(tr("This is still under development so please visit
")); + about.append(tr("http://cuteexplorer.garage.maemo.org
")); + about.append(tr("to report bugs or leave feature requests. Thanks!

")); + + QMessageBox::about(this, tr("About CuteExplorer"), + about); +} + diff --git a/cuteexplorer/src/mainwindow.h b/cuteexplorer/src/mainwindow.h new file mode 100644 index 0000000..b2fa0f9 --- /dev/null +++ b/cuteexplorer/src/mainwindow.h @@ -0,0 +1,31 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { + class MainWindow; +} + +class MainWindow : public QMainWindow { + Q_OBJECT +public: + MainWindow(QWidget *parent = 0); + ~MainWindow(); + +public slots: + void showHelp(); + void showAbout(); +protected: + void changeEvent(QEvent *e); + void keyPressEvent(QKeyEvent *e); + void keyReleaseEvent(QKeyEvent *e); +private slots: + void locationLineEnterKeyHandler(); + +private: + Ui::MainWindow *ui; + +}; + +#endif // MAINWINDOW_H diff --git a/cuteexplorer/src/mainwindow.ui b/cuteexplorer/src/mainwindow.ui new file mode 100644 index 0000000..b79de1c --- /dev/null +++ b/cuteexplorer/src/mainwindow.ui @@ -0,0 +1,168 @@ + + + MainWindow + + + + 0 + 0 + 600 + 400 + + + + CuteExplorer + + + + + + + + + + + + Up + + + Backspace + + + + + + + + + + + + + + Qt::ActionsContextMenu + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + Qt::ElideRight + + + + + + + + + + + 0 + 0 + 600 + 21 + + + + + View + + + + + + + File + + + + + + Help + + + + + + + + + + + Exit + + + + + Cut + + + + + Copy + + + + + Paste + + + + + Delete + + + + + true + + + Icon view + + + + + Rename + + + + + true + + + Show hidden + + + + + Send files + + + + + Help + + + + + About + + + + + + + FileListWidget + QListView +
filelistwidget.h
+
+
+ + +
diff --git a/cuteexplorer/src/searchdialog.cpp b/cuteexplorer/src/searchdialog.cpp new file mode 100644 index 0000000..5f99421 --- /dev/null +++ b/cuteexplorer/src/searchdialog.cpp @@ -0,0 +1,26 @@ +#include "searchdialog.h" +#include "ui_searchdialog.h" + +SearchDialog::SearchDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::SearchDialog) +{ + ui->setupUi(this); +} + +SearchDialog::~SearchDialog() +{ + delete ui; +} + +void SearchDialog::changeEvent(QEvent *e) +{ + QDialog::changeEvent(e); + switch (e->type()) { + case QEvent::LanguageChange: + ui->retranslateUi(this); + break; + default: + break; + } +} diff --git a/cuteexplorer/src/searchdialog.h b/cuteexplorer/src/searchdialog.h new file mode 100644 index 0000000..49dbd25 --- /dev/null +++ b/cuteexplorer/src/searchdialog.h @@ -0,0 +1,23 @@ +#ifndef SEARCHDIALOG_H +#define SEARCHDIALOG_H + +#include + +namespace Ui { + class SearchDialog; +} + +class SearchDialog : public QDialog { + Q_OBJECT +public: + SearchDialog(QWidget *parent = 0); + ~SearchDialog(); + +protected: + void changeEvent(QEvent *e); + +private: + Ui::SearchDialog *ui; +}; + +#endif // SEARCHDIALOG_H diff --git a/cuteexplorer/src/searchdialog.ui b/cuteexplorer/src/searchdialog.ui new file mode 100644 index 0000000..b78659c --- /dev/null +++ b/cuteexplorer/src/searchdialog.ui @@ -0,0 +1,71 @@ + + + + + SearchDialog + + + + 0 + 0 + 400 + 300 + + + + Dialog + + + + + 30 + 240 + 341 + 32 + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + buttonBox + accepted() + SearchDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + SearchDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/cuteexplorer/src/src.pro b/cuteexplorer/src/src.pro new file mode 100644 index 0000000..aa4e790 --- /dev/null +++ b/cuteexplorer/src/src.pro @@ -0,0 +1,44 @@ +# ------------------------------------------------- +# Project created by QtCreator 2010-01-13T19:38:20 +# ------------------------------------------------- +TARGET = cuteexplorer +TEMPLATE = app +QT += dbus +SOURCES += main.cpp \ + mainwindow.cpp \ + filelistwidget.cpp \ + searchdialog.cpp +HEADERS += mainwindow.h \ + filelistwidget.h \ + searchdialog.h +FORMS += mainwindow.ui \ + searchdialog.ui +TRANSLATIONS += cuteexplorertranslation_fi_FI.ts +RESOURCES += i18n.qrc +DEFINES += CUTE_VERSION=\\\"1.2\\\" +maemo5 { + # VARIABLES + CONFIG += link_pkgconfig + PKGCONFIG += dbus-1 \ + gnome-vfs-2.0 + LIBS += -lhildonmime \ + -ldbus-1 + isEmpty(PREFIX):PREFIX = /usr + BINDIR = $$PREFIX/bin + DATADIR = $$PREFIX/share + DEFINES += DATADIR=\\\"$$DATADIR\\\" \ + PKGDATADIR=\\\"$$PKGDATADIR\\\" + + # MAKE INSTALL + INSTALLS += target \ + desktop \ + icon \ + icon64 + target.path = $$BINDIR + desktop.path = $$DATADIR/applications/hildon + desktop.files += $${TARGET}.desktop + icon64.path = $$DATADIR/icons/hicolor/64x64/apps + icon64.files += $${TARGET}_icon64.png + icon.path = $$DATADIR/icons/hicolor/scalable/apps + icon.files += $${TARGET}_icon.svg +} diff --git a/debian/README.Debian b/debian/README.Debian deleted file mode 100644 index 8f8fa3c..0000000 --- a/debian/README.Debian +++ /dev/null @@ -1,6 +0,0 @@ -cuteexplorer for Debian ------------------------ - - - - -- unknown Mon, 22 Mar 2010 15:26:30 +0200 diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index 94d2c2b..0000000 --- a/debian/changelog +++ /dev/null @@ -1,78 +0,0 @@ -cuteexplorer (1.1.1-1) unstable; urgency=low - - * release for pr 1.2 - - -- Tommi Asp Thu, 27 May 2010 16:42:06 +0300 - -cuteexplorer (1.1.1) unstable; urgency=low - - * fixed filelist selection bug - * added shortcuts for commands - * fixed rename failed when canceled renamedialog - - -- Tommi Asp Thu, 6 May 2010 20:44:29 +0300 - -cuteexplorer (1.1-7) unstable; urgency=low - - * shlibs.local added - - -- Tommi Asp Wed, 14 Apr 2010 13:03:31 +0300 - -cuteexplorer (1.1-6) unstable; urgency=low - - * 4 - - -- Tommi Asp Wed, 14 Apr 2010 12:26:19 +0300 - -cuteexplorer (1.1-5) unstable; urgency=low - - * libhildonmime dep fix try number 3 - - -- Tommi Asp Wed, 14 Apr 2010 11:54:18 +0300 - -cuteexplorer (1.1-4) unstable; urgency=low - - * working dependies for pr 1.1 - - -- Tommi Asp Wed, 14 Apr 2010 10:54:24 +0300 - -cuteexplorer (1.1-3) unstable; urgency=low - - * ffs... lets wait for pr 1.2 then - - -- Tommi Asp Mon, 12 Apr 2010 13:18:43 +0300 - -cuteexplorer (1.1-2) unstable; urgency=low - - * Moved back to libqt4-maemo5 because oldversions were removed - - -- Tommi Asp Mon, 12 Apr 2010 12:21:10 +0300 - -cuteexplorer (1.1-1) unstable; urgency=low - - * moved to use libqt4 - - -- Tommi Asp Fri, 9 Apr 2010 18:37:27 +0300 - -cuteexplorer (1.1) unstable; urgency=low - - * Fixed bluetooth sending, no need to "copy" files first - * Added context menu for filelistwidget - * Actions from edit menu moved to fileslistwidgets contextmenu - * Check not to send directories via bluetooth - * Added help and about dialogs - - -- Tommi Asp Fri, 9 Apr 2010 18:02:07 +0300 - -cuteexplorer (1.0-2) unstable; urgency=low - - * Fixed broken .desktop -file - - -- Tommi Asp Mon, 22 Mar 2010 23:07:55 +0200 - -cuteexplorer (1.0-1) unstable; urgency=low - - * Initial release (Closes: #nnnn) - - -- Tommi Asp Mon, 22 Mar 2010 14:09:49 +0200 - diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7ed6ff8..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/debian/control b/debian/control deleted file mode 100644 index 68ae33c..0000000 --- a/debian/control +++ /dev/null @@ -1,38 +0,0 @@ -Source: cuteexplorer -Section: user/utilities -Priority: extra -Maintainer: Tommi Asp -Build-Depends: debhelper (>= 5), libqt4-dev, libdbus-1-dev, libhildonmime-dev -Standards-Version: 3.7.2 - -Package: cuteexplorer -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: Filemanager for maemo5 using Qt - Navigate in the real filesystem. - Send files via bluetooth. -XSBC-Maemo-Display-Name: CuteExplorer -XB-Maemo-Icon-26: - iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAA7E - AAAOxAGVKw4bAAADfklEQVRoge2ZTWsrVRjHf2eal5tMILdxlbYRym27cJUu - pCi34MZFtZvrxg/gQr+ApRuhO6nVnYLQT2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hQRSgjQgg/8DawSv3MTBISOAF+kFI23aDE7EO3x8wMeM3M - gNdMvYF/Acd52O0Tf+jGAAAAAElFTkSuQmCC -XSBC-Bugtracker: https://garage.maemo.org/tracker/?atid=5332&group_id=1469&func=browse diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index d66a63f..0000000 --- a/debian/copyright +++ /dev/null @@ -1,36 +0,0 @@ -This package was debianized by unknown on -Mon, 22 Mar 2010 15:26:30 +0200. - -It was downloaded from - -Upstream Author: - -Copyright: - -License: - - This package is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This package 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this package; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -On Debian systems, the complete text of the GNU Lesser General -Public License can be found in `/usr/share/common-licenses/LGPL'. - - -The Debian packaging is (C) 2010, unknown and -is licensed under the GPL, see `/usr/share/common-licenses/GPL'. - - -# Please also look if there are files or directories which have a -# different copyright/license attached and list them here. diff --git a/debian/cron.d.ex b/debian/cron.d.ex deleted file mode 100644 index 8d3c775..0000000 --- a/debian/cron.d.ex +++ /dev/null @@ -1,4 +0,0 @@ -# -# Regular cron jobs for the cuteexplorer package -# -0 4 * * * root cuteexplorer_maintenance diff --git a/debian/cuteexplorer-default.ex b/debian/cuteexplorer-default.ex deleted file mode 100644 index aa9d00e..0000000 --- a/debian/cuteexplorer-default.ex +++ /dev/null @@ -1,10 +0,0 @@ -# Defaults for cuteexplorer initscript -# sourced by /etc/init.d/cuteexplorer -# installed at /etc/default/cuteexplorer by the maintainer scripts - -# -# This is a POSIX shell fragment -# - -# Additional options that are passed to the Daemon. -DAEMON_OPTS="" diff --git a/debian/cuteexplorer.doc-base.EX b/debian/cuteexplorer.doc-base.EX deleted file mode 100644 index c396ff5..0000000 --- a/debian/cuteexplorer.doc-base.EX +++ /dev/null @@ -1,22 +0,0 @@ -Document: cuteexplorer -Title: Debian cuteexplorer Manual -Author: -Abstract: This manual describes what cuteexplorer is - and how it can be used to - manage online manuals on Debian systems. -Section: unknown - -Format: debiandoc-sgml -Files: /usr/share/doc/cuteexplorer/cuteexplorer.sgml.gz - -Format: postscript -Files: /usr/share/doc/cuteexplorer/cuteexplorer.ps.gz - -Format: text -Files: /usr/share/doc/cuteexplorer/cuteexplorer.text.gz - -Format: HTML -Index: /usr/share/doc/cuteexplorer/html/index.html -Files: /usr/share/doc/cuteexplorer/html/*.html - - diff --git a/debian/dirs b/debian/dirs deleted file mode 100644 index ca882bb..0000000 --- a/debian/dirs +++ /dev/null @@ -1,2 +0,0 @@ -usr/bin -usr/sbin diff --git a/debian/docs b/debian/docs deleted file mode 100644 index e69de29..0000000 diff --git a/debian/emacsen-install.ex b/debian/emacsen-install.ex deleted file mode 100644 index 293597c..0000000 --- a/debian/emacsen-install.ex +++ /dev/null @@ -1,45 +0,0 @@ -#! /bin/sh -e -# /usr/lib/emacsen-common/packages/install/cuteexplorer - -# Written by Jim Van Zandt , borrowing heavily -# from the install scripts for gettext by Santiago Vila -# and octave by Dirk Eddelbuettel . - -FLAVOR=$1 -PACKAGE=cuteexplorer - -if [ ${FLAVOR} = emacs ]; then exit 0; fi - -echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} - -#FLAVORTEST=`echo $FLAVOR | cut -c-6` -#if [ ${FLAVORTEST} = xemacs ] ; then -# SITEFLAG="-no-site-file" -#else -# SITEFLAG="--no-site-file" -#fi -FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" - -ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} -ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} - -# Install-info-altdir does not actually exist. -# Maybe somebody will write it. -if test -x /usr/sbin/install-info-altdir; then - echo install/${PACKAGE}: install Info links for ${FLAVOR} - install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz -fi - -install -m 755 -d ${ELCDIR} -cd ${ELDIR} -FILES=`echo *.el` -cp ${FILES} ${ELCDIR} -cd ${ELCDIR} - -cat << EOF > path.el -(setq load-path (cons "." load-path) byte-compile-warnings nil) -EOF -${FLAVOR} ${FLAGS} ${FILES} -rm -f *.el path.el - -exit 0 diff --git a/debian/emacsen-remove.ex b/debian/emacsen-remove.ex deleted file mode 100644 index 2955d94..0000000 --- a/debian/emacsen-remove.ex +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -e -# /usr/lib/emacsen-common/packages/remove/cuteexplorer - -FLAVOR=$1 -PACKAGE=cuteexplorer - -if [ ${FLAVOR} != emacs ]; then - if test -x /usr/sbin/install-info-altdir; then - echo remove/${PACKAGE}: removing Info links for ${FLAVOR} - install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/cuteexplorer.info.gz - fi - - echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} - rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} -fi diff --git a/debian/emacsen-startup.ex b/debian/emacsen-startup.ex deleted file mode 100644 index 8b3d715..0000000 --- a/debian/emacsen-startup.ex +++ /dev/null @@ -1,25 +0,0 @@ -;; -*-emacs-lisp-*- -;; -;; Emacs startup file, e.g. /etc/emacs/site-start.d/50cuteexplorer.el -;; for the Debian cuteexplorer package -;; -;; Originally contributed by Nils Naumann -;; Modified by Dirk Eddelbuettel -;; Adapted for dh-make by Jim Van Zandt - -;; The cuteexplorer package follows the Debian/GNU Linux 'emacsen' policy and -;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, -;; xemacs19, emacs20, xemacs20...). The compiled code is then -;; installed in a subdirectory of the respective site-lisp directory. -;; We have to add this to the load-path: -(let ((package-dir (concat "/usr/share/" - (symbol-name flavor) - "/site-lisp/cuteexplorer"))) -;; If package-dir does not exist, the cuteexplorer package must have -;; removed but not purged, and we should skip the setup. - (when (file-directory-p package-dir) - (setq load-path (cons package-dir load-path)) - (autoload 'cuteexplorer-mode "cuteexplorer-mode" - "Major mode for editing cuteexplorer files." t) - (add-to-list 'auto-mode-alist '("\\.cuteexplorer$" . cuteexplorer-mode)))) - diff --git a/debian/init.d.ex b/debian/init.d.ex deleted file mode 100644 index 740c9d7..0000000 --- a/debian/init.d.ex +++ /dev/null @@ -1,81 +0,0 @@ -#! /bin/sh -# -# skeleton example file to build /etc/init.d/ scripts. -# This file should be used to construct scripts for /etc/init.d. -# -# Written by Miquel van Smoorenburg . -# Modified for Debian -# by Ian Murdock . -# -# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl -# - -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -DAEMON=/usr/sbin/cuteexplorer -NAME=cuteexplorer -DESC=cuteexplorer - -test -x $DAEMON || exit 0 - -# Include cuteexplorer defaults if available -if [ -f /etc/default/cuteexplorer ] ; then - . /etc/default/cuteexplorer -fi - -set -e - -case "$1" in - start) - echo -n "Starting $DESC: " - start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ - --exec $DAEMON -- $DAEMON_OPTS - echo "$NAME." - ;; - stop) - echo -n "Stopping $DESC: " - start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ - --exec $DAEMON - echo "$NAME." - ;; - #reload) - # - # If the daemon can reload its config files on the fly - # for example by sending it SIGHUP, do it here. - # - # If the daemon responds to changes in its config file - # directly anyway, make this a do-nothing entry. - # - # echo "Reloading $DESC configuration files." - # start-stop-daemon --stop --signal 1 --quiet --pidfile \ - # /var/run/$NAME.pid --exec $DAEMON - #;; - force-reload) - # - # If the "reload" option is implemented, move the "force-reload" - # option to the "reload" entry above. If not, "force-reload" is - # just the same as "restart" except that it does nothing if the - # daemon isn't already running. - # check wether $DAEMON is running. If so, restart - start-stop-daemon --stop --test --quiet --pidfile \ - /var/run/$NAME.pid --exec $DAEMON \ - && $0 restart \ - || exit 0 - ;; - restart) - echo -n "Restarting $DESC: " - start-stop-daemon --stop --quiet --pidfile \ - /var/run/$NAME.pid --exec $DAEMON - sleep 1 - start-stop-daemon --start --quiet --pidfile \ - /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS - echo "$NAME." - ;; - *) - N=/etc/init.d/$NAME - # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 - exit 1 - ;; -esac - -exit 0 diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex deleted file mode 100644 index fee2a3b..0000000 --- a/debian/manpage.1.ex +++ /dev/null @@ -1,59 +0,0 @@ -.\" Hey, EMACS: -*- nroff -*- -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH CUTEEXPLORER SECTION "March 22, 2010" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -cuteexplorer \- program to do something -.SH SYNOPSIS -.B cuteexplorer -.RI [ options ] " files" ... -.br -.B bar -.RI [ options ] " files" ... -.SH DESCRIPTION -This manual page documents briefly the -.B cuteexplorer -and -.B bar -commands. -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBcuteexplorer\fP is a program that... -.SH OPTIONS -These programs follow the usual GNU command line syntax, with long -options starting with two dashes (`-'). -A summary of options is included below. -For a complete description, see the Info files. -.TP -.B \-h, \-\-help -Show summary of options. -.TP -.B \-v, \-\-version -Show version of program. -.SH SEE ALSO -.BR bar (1), -.BR baz (1). -.br -The programs are documented fully by -.IR "The Rise and Fall of a Fooish Bar" , -available via the Info system. -.SH AUTHOR -cuteexplorer was written by . -.PP -This manual page was written by unknown , -for the Debian project (but may be used by others). diff --git a/debian/manpage.sgml.ex b/debian/manpage.sgml.ex deleted file mode 100644 index bb856e1..0000000 --- a/debian/manpage.sgml.ex +++ /dev/null @@ -1,156 +0,0 @@ - manpage.1'. You may view - the manual page with: `docbook-to-man manpage.sgml | nroff -man | - less'. A typical entry in a Makefile or Makefile.am is: - -manpage.1: manpage.sgml - docbook-to-man $< > $@ - - - The docbook-to-man binary is found in the docbook-to-man package. - Please remember that if you create the nroff version in one of the - debian/rules file targets (such as build), you will need to include - docbook-to-man in your Build-Depends control field. - - --> - - - FIRSTNAME"> - SURNAME"> - - March 22, 2010"> - - SECTION"> - tomma.asp@gmail.com"> - - CUTEEXPLORER"> - - - Debian"> - GNU"> - GPL"> -]> - - - -
- &dhemail; -
- - &dhfirstname; - &dhsurname; - - - 2003 - &dhusername; - - &dhdate; -
- - &dhucpackage; - - &dhsection; - - - &dhpackage; - - program to do something - - - - &dhpackage; - - - - - - - - DESCRIPTION - - This manual page documents briefly the - &dhpackage; and bar - commands. - - This manual page was written for the &debian; distribution - because the original program does not have a manual page. - Instead, it has documentation in the &gnu; - Info format; see below. - - &dhpackage; is a program that... - - - - OPTIONS - - These programs follow the usual &gnu; command line syntax, - with long options starting with two dashes (`-'). A summary of - options is included below. For a complete description, see the - Info files. - - - - - - - - Show summary of options. - - - - - - - - Show version of program. - - - - - - SEE ALSO - - bar (1), baz (1). - - The programs are documented fully by The Rise and - Fall of a Fooish Bar available via the - Info system. - - - AUTHOR - - This manual page was written by &dhusername; &dhemail; for - the &debian; system (but may be used by others). Permission is - granted to copy, distribute and/or modify this document under - the terms of the &gnu; General Public License, Version 2 any - later version published by the Free Software Foundation. - - - On Debian systems, the complete text of the GNU General Public - License can be found in /usr/share/common-licenses/GPL. - - - -
- - - - diff --git a/debian/manpage.xml.ex b/debian/manpage.xml.ex deleted file mode 100644 index 78da485..0000000 --- a/debian/manpage.xml.ex +++ /dev/null @@ -1,148 +0,0 @@ - -.
will be generated. You may view the -manual page with: nroff -man .
| less'. A -typical entry in a Makefile or Makefile.am is: - -DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\ -manpages/docbook.xsl -XP=xsltproc -''-nonet - -manpage.1: manpage.dbk - $(XP) $(DB2MAN) $< - -The xsltproc binary is found in the xsltproc package. The -XSL files are in docbook-xsl. Please remember that if you -create the nroff version in one of the debian/rules file -targets (such as build), you will need to include xsltproc -and docbook-xsl in your Build-Depends control field. - ---> - - - FIRSTNAME"> - SURNAME"> - - March 22, 2010"> - - SECTION"> - tomma.asp@gmail.com"> - - CUTEEXPLORER"> - - - Debian"> - GNU"> - GPL"> -]> - - - -
- &dhemail; -
- - &dhfirstname; - &dhsurname; - - - 2003 - &dhusername; - - &dhdate; -
- - &dhucpackage; - - &dhsection; - - - &dhpackage; - - program to do something - - - - &dhpackage; - - - - - - - - DESCRIPTION - - This manual page documents briefly the - &dhpackage; and bar - commands. - - This manual page was written for the &debian; distribution - because the original program does not have a manual page. - Instead, it has documentation in the &gnu; - Info format; see below. - - &dhpackage; is a program that... - - - - OPTIONS - - These programs follow the usual &gnu; command line syntax, - with long options starting with two dashes (`-'). A summary of - options is included below. For a complete description, see the - Info files. - - - - - - - - Show summary of options. - - - - - - - - Show version of program. - - - - - - SEE ALSO - - bar (1), baz (1). - - The programs are documented fully by The Rise and - Fall of a Fooish Bar available via the - Info system. - - - AUTHOR - - This manual page was written by &dhusername; &dhemail; for - the &debian; system (but may be used by others). Permission is - granted to copy, distribute and/or modify this document under - the terms of the &gnu; General Public License, Version 2 any - later version published by the Free Software Foundation. - - - On Debian systems, the complete text of the GNU General Public - License can be found in /usr/share/common-licenses/GPL. - - - -
- diff --git a/debian/menu.ex b/debian/menu.ex deleted file mode 100644 index aab1a2c..0000000 --- a/debian/menu.ex +++ /dev/null @@ -1,2 +0,0 @@ -?package(cuteexplorer):needs="X11|text|vc|wm" section="Apps/see-menu-manual"\ - title="cuteexplorer" command="/usr/bin/cuteexplorer" diff --git a/debian/postinst.ex b/debian/postinst.ex deleted file mode 100644 index 1453621..0000000 --- a/debian/postinst.ex +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# postinst script for cuteexplorer -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - configure) - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian/postrm.ex b/debian/postrm.ex deleted file mode 100644 index b042d76..0000000 --- a/debian/postrm.ex +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# postrm script for cuteexplorer -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `purge' -# * `upgrade' -# * `failed-upgrade' -# * `abort-install' -# * `abort-install' -# * `abort-upgrade' -# * `disappear' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian/preinst.ex b/debian/preinst.ex deleted file mode 100644 index 98c07e9..0000000 --- a/debian/preinst.ex +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# preinst script for cuteexplorer -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `install' -# * `install' -# * `upgrade' -# * `abort-upgrade' -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - install|upgrade) - ;; - - abort-upgrade) - ;; - - *) - echo "preinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian/prerm.ex b/debian/prerm.ex deleted file mode 100644 index ee5ea81..0000000 --- a/debian/prerm.ex +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# prerm script for cuteexplorer -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `upgrade' -# * `failed-upgrade' -# * `remove' `in-favour' -# * `deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - remove|upgrade|deconfigure) - ;; - - failed-upgrade) - ;; - - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian/rules b/debian/rules deleted file mode 100755 index 67631fc..0000000 --- a/debian/rules +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/make -f -APPNAME := cuteexplorer -builddir: - mkdir -p builddir - -builddir/Makefile: builddir - cd builddir && qmake PREFIX=/usr ../$(APPNAME).pro - -build: build-stamp - -build-stamp: builddir/Makefile - dh_testdir - # Add here commands to compile the package. - cd builddir && $(MAKE) - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - # Add here commands to clean up after the build process. - rm -rf builddir - dh_clean -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/your_appname - cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install - # Build architecture-independent files here. -binary-indep: build install - # We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installdocs - dh_installexamples - dh_installman - dh_link - #dh_strip --dbg-package=$(APPNAME)-dbg - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/watch.ex b/debian/watch.ex deleted file mode 100644 index c995601..0000000 --- a/debian/watch.ex +++ /dev/null @@ -1,22 +0,0 @@ -# Example watch control file for uscan -# Rename this file to "watch" and then you can run the "uscan" command -# to check for upstream updates and more. -# See uscan(1) for format - -# Compulsory line, this is a version 3 file -version=3 - -# Uncomment to examine a Webpage -# -#http://www.example.com/downloads.php cuteexplorer-(.*)\.tar\.gz - -# Uncomment to examine a Webserver directory -#http://www.example.com/pub/cuteexplorer-(.*)\.tar\.gz - -# Uncommment to examine a FTP server -#ftp://ftp.example.com/pub/cuteexplorer-(.*)\.tar\.gz debian uupdate - -# Uncomment to find new files on sourceforge, for debscripts >= 2.9 -# http://sf.net/cuteexplorer/cuteexplorer-(.*)\.tar\.gz - - diff --git a/src/cuteexplorer.desktop b/src/cuteexplorer.desktop deleted file mode 100644 index cf35967..0000000 --- a/src/cuteexplorer.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Version=1.2 -Type=Application -Name=CuteExplorer -Comment=Explore your maemo -Exec=/usr/bin/cuteexplorer -Icon=cuteexplorer_icon64 diff --git a/src/cuteexplorer_icon.svg b/src/cuteexplorer_icon.svg deleted file mode 100644 index 9286d9e..0000000 --- a/src/cuteexplorer_icon.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/cuteexplorer_icon48.base64 b/src/cuteexplorer_icon48.base64 deleted file mode 100644 index aaff62f..0000000 --- a/src/cuteexplorer_icon48.base64 +++ /dev/null @@ -1,24 +0,0 @@ -begin-base64 644 maemoexplorer_icon48.png -iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWX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C/40QouvlA/Ux8Jfa -KRQKzM/Ps7i4ODGXkqZp9sTi4G+1IaifhSfA63Zwgs4AQMuX1CfAm1IFG78J -4Fe8v0H1K89ofNhQRSgjQgg/8DawSv3MTBISOAF+kFI23aDE7EO3x8wMeM3M -gNdMvYF/Acd52O0Tf+jGAAAAAElFTkSuQmCC -==== diff --git a/src/cuteexplorer_icon48.png b/src/cuteexplorer_icon48.png deleted file mode 100644 index bd653e7fc937f3650ee683b528af7e8168682f7f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 972 zcmV;-12g=IP)_>$<+bzyHt~6GH3)p8`cGW!Tq<7g{S@mR0)a!S1_qE=2UVT>xUS80+in zO?hW$XBdXT{rB$^ei-KYC(o(AsE)*dWm(^M2rI1t0AGg$8-MN>mGu-io}hMB8(i@KbTtqR1~d1vkH3Kb28n5!oSd9=%r~E!m`}}-iu3#ZJv$hB z7|?b7&x3=5uScrLC3|~&AN9+z4G19uz&pSLKx}VszafN(j8R`-S~O&U$E`Waz$?Hr z;5BvN;^G3}y)kR-Ne2yo0N*%slz|U{1c0X1pDu(D_O>FKOtQJTITo=;M@L*F6DaL-0^xg5n}v1iVpSXS@*UpH-irzt1NWRk6|EjLx}%;Di7=jZ3H>$x(JN~K7p zQmz{rC$0=^Y-~*T88|*ZCY?^ZZsaZ$3T=;Lcfyr{SS-f!^723pDKeQ%+jKb$t_(yX z5tf#ghH5aI%??$+6;}of!@w|%kqQ`=seh@T8St8>F<_b|K3_dlsZ@x^v`KWI<7aa zVd$l4D((Y9h_1)l4CuPvv%>$45Tfhl1NAZRm)a>53e3;Xv$(i8F_)62Y4*h8;BU1d zsGo%=!0UE!g3bUy%a_zAz?)J98@~zQSG>PL^()V4eArM$C?i4$KkzoNO8v}C5)wE8 uevnc&-JrzmL$}Aw40z4VfY(gDfqwzVdD!g}f9S>l0000~iBWANEs24bR+?b7r z1^pjLG{$%#T!6^Ig9nmb4iN90h@xhVC)o=(f@=gdnh=y9!6l_7W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zwSH>KPEedqc~45bli-ug#B0V`QrUi$XlnwsdG*EvYCcSCrMed$RQV3lLW1$ z^|+2>Rm4{de&Y7mmFGJ%BUPhbcVg3^W|%L@MA(;%ZSZ^+B0~|0G+D5E#h7Ia)0(WOa;5SmTM;91XXU;JlFEVD=swA|*AsJifk1cwtFD6o zl2OWpyAM-}hJYa>#KG`O^jO8g83arC!s+1$)5DXCpBFgZxnG)DR+`mqnQ<*!mkt1R zh2s^AmhINB(RDSLglZ2owO2JU1vvGPo~GT1I9n+|C`>Ty8CRx;CkNLm2{G-=PECyx zbOfQTo@bI0G=USgI?X7s?|z&N#J_BmeVVNx^I-i&2}l{~pI)X{(NFHm$irHQ;P$DYi)Zm}&oZ?~%=V||0HU#s27pus+2#N}ev$zmtpi$S+$m}q#Y6Ms7N_m- zsnT|XGZAjAHHzj~*2-IKJ(sWbfZH$a0AxB0QUwqQZh|K@a6D5zTlL8JyBXpZy4LW!l;C22P+;xG<-F1<>EM2(aP_~ai$c)SdR|p!HxLuxVm8o z&&+}yvvNWjRBX+3qKe=!h@9=*Eakj&Ff>K$=^bUpz9Vn zfuzO*p?SOpdF)4$W67BBRR)D~|Iz~vPdj_vy37xh;wm}j7ei#EP8}QvkQOq4V{58t zGMU{{*;PV?m6bgil^vX4Q)sIXq?CtF=kr@kfrI$DOVs{Jkgag^vt-zKW`aXff`r+wL1}(;M-uN z0r!~dc!1(DX?Es}!ZaQUs-s#0W^Tudce87qSf|kVF?0l`_F|l}B@dWl)XO;n9UkdB k0h6WX@+@V`=RE1SPC^XlHFMnQOeKpo - - - - FileListWidget - - - Rename - Uudelleen nimeä - - - - New filename: - Uusi tiedoston nimi: - - - - - - - Error! - Virhe! - - - - Renaming file %1 failed - Tiedoston %1 uudelleen nimeäminen epäonnistui - - - - Copying file %1 failed - Tiedoston %1 kopiointi epäonnistui - - - - Moving file %1 failed - Tiedoston %1 siirto epäonnistui - - - - Deleting file - Tiedoston poisto - - - - You are about to delete %1 file(s). -Are you sure you want to continue? - Olet poistamassa %1 tiedostoa.\nOletko varma että tahdot jatkaa? - - - - Deleting file %1 failed - Tiedoston %1 poistaminen epäonnistui - - - - - Sending files - Tiedostojen lähetys - - - - Sending directories not supported - Hakemistojen lähetys ei tuettu - - - To send files, select files you want to send and copy them. - Lähettääksesi tiedostoja; valitse tiedostot, kopioi ja lähetä tiedostot. - - - - Only in maemo5 for now - Vain maemo5:ssä tällähetkellä - - - - MainWindow - - - CuteExplorer - Maemo Explorer - CuteExplorer - - - - Up - Ylös - - - - Backspace - Backspace - - - - File - Tiedosto - - - Edit - Muokkaa - - - - View - Näkymä - - - - - - - Help - Apua - - - - Exit - Lopeta - - - - Cut - Leikkaa - - - - Copy - Kopioi - - - - Paste - Liitä - - - - Delete - Poista - - - - Icon view - Kuvake näkymä - - - - Send files - Lähetä tiedostoja - - - - About - - - - Switch Mode - Vaihda näkymä - - - - Rename - Uudelleen nimeä - - - - Show hidden - Näytä piilotetut - - - - Cut, copy, delete, rename, paste and send files - Leikkaa, kopioi, poista, uudelleen nimeä ja lähetä tiedostoja - - - - commands can be found from context menu (click and hold on maemo). - komennot löytyvät context valikosta (pitkä painallus maemossa). - - - - To select files, use ctrl and shift - Valitaksesi tiedostoja paina ctrl tai shift pohjassa - - - - <p>Version %1<br/> - <p>Versio %1<br/> - - - - Using Qt %1<br/> - Using Qt %1 -<br/> - Käyttää Qt %1<br/> - - - - Copyright - - - - - <p>CuteExplorer is file manager mainly for maemo5.<br/> - <p>CuteExplorer on tiedosto manageri pääasiassa maemo5:lle.<br/> - - - - This is still under development so please visit<br/> - Tämä on vielä kehityksen alla, joten käy<br/> - - - - <a href=http://cuteexplorer.garage.maemo.org>http://cuteexplorer.garage.maemo.org</a><br/> - - - - - to report bugs or leave feature requests. Thanks!</p> - ilmoittaaksesi bugeista. Kiitos! </p> - - - - About CuteExplorer - - - - diff --git a/src/filelistwidget.cpp b/src/filelistwidget.cpp deleted file mode 100644 index f578e7c..0000000 --- a/src/filelistwidget.cpp +++ /dev/null @@ -1,282 +0,0 @@ -#include "filelistwidget.h" -#include -#include -#include -#include -#include -#include -#include -#ifdef Q_WS_MAEMO_5 -# include -# include -#endif -/*! -Widget that shows filesystemmodel and handles navigation -in directory tree and opening files with assosiated programs - -@todo in symbian and windows filesystems navigating to "root" wont show drives - */ -FileListWidget::FileListWidget(QWidget *parent) : - QListView(parent), - fileSystemModel( new QFileSystemModel(this)), - currentDir(QDir::homePath()), - mode_cut(false), - mode_copy(false), - select(false) -{ - this->setModel(fileSystemModel); - this->setRootIndex(fileSystemModel->index(currentDir.absolutePath())); - fileSystemModel->setRootPath(currentDir.absolutePath()); - fileSystemModel->setFilter(fileSystemModel->filter() | QDir::System); - connect(this, SIGNAL(activated(QModelIndex)), this, SLOT(handleItemActivation(QModelIndex))); - -} - -/** - Switches view mode - @param iconmode true shows iconview, false shows listview - */ -void FileListWidget::actionSwitchMode(bool iconmode) -{ - if(iconmode) { - this->setViewMode(QListView::IconMode); - this->setWordWrap(true); - this->setGridSize(QSize(80,80)); - } else { - this->setViewMode(QListView::ListMode); - this->setWordWrap(false); - this->setGridSize(QSize()); - } -} - -/** - Switches show hidden - @param show true shows hidden files - */ -void FileListWidget::actionShowHidden(bool show) -{ - if(show) - fileSystemModel->setFilter(fileSystemModel->filter() | QDir::Hidden); - else - fileSystemModel->setFilter(fileSystemModel->filter() &~ QDir::Hidden); - - this->clearSelection(); -} - -/** - Rename selected file - */ -void FileListWidget::actionRename() -{ - QFileInfo file = fileSystemModel->fileInfo(this->selectedIndexes().first()); - QString newName = QInputDialog::getText(this, tr("Rename"), tr("New filename: "), QLineEdit::Normal, file.fileName()); - if(newName != file.fileName() && !newName.isEmpty()) - { - if(QFile::rename(file.absoluteFilePath(), file.absolutePath()+"/"+newName)) - return; - else - QMessageBox::critical(this,tr("Error!") - ,tr("Renaming file %1 failed") - .arg(file.fileName()) - ,QMessageBox::Ok); - } -} -/** - Selected files will be moved when actionPaste is called - */ -void FileListWidget::actionCut() -{ - mode_cut = true; - mode_copy = false; - selectedFiles = this->selectedIndexes(); -} -/** - Selected files will be copied when actionPaste is called - */ -void FileListWidget::actionCopy() -{ - mode_cut = false; - mode_copy = true; - selectedFiles = this->selectedIndexes(); -} - -/** - Moves or copies files that were selected when actionCut or actionCopy called - */ -void FileListWidget::actionPaste() -{ - fileSystemModel->setReadOnly(false); - if(mode_copy) { - //Copy files until filelist is empty or error occured - while(!selectedFiles.isEmpty()) { - if(QFile::copy(fileSystemModel->fileInfo(selectedFiles.first()).absoluteFilePath() - , fileSystemModel->rootPath()+"/"+fileSystemModel->fileName(selectedFiles.first()))) { - selectedFiles.removeFirst(); - } - else if(QFile::copy(fileSystemModel->fileInfo(selectedFiles.first()).absoluteFilePath() - , fileSystemModel->rootPath()+"/copy_"+fileSystemModel->fileName(selectedFiles.first()))) { - selectedFiles.removeFirst(); - } else { - QMessageBox::critical(this,tr("Error!") - ,tr("Copying file %1 failed") - .arg(fileSystemModel->fileName(selectedFiles.first())) - ,QMessageBox::Ok); - break; - } - } - if(selectedFiles.isEmpty()) - mode_copy = false; - } else if(mode_cut) { - //Move files until filelist is empty or error occured - while(!selectedFiles.isEmpty()) { - if(QFile::rename(fileSystemModel->fileInfo(selectedFiles.first()).absoluteFilePath() - , fileSystemModel->rootPath()+"/"+fileSystemModel->fileName(selectedFiles.first()))) { - selectedFiles.removeFirst(); - } else { - QMessageBox::critical(this,tr("Error!") - ,tr("Moving file %1 failed") - .arg(fileSystemModel->fileName(selectedFiles.first())) - ,QMessageBox::Ok); - break; - } - } - if(selectedFiles.isEmpty()) - mode_cut = false; - } - fileSystemModel->setReadOnly(true); - this->clearSelection(); -} - -/** - Deletes selected files - */ -void FileListWidget::actionDelete() -{ - mode_cut = false; - mode_copy = false; - if(QMessageBox::Yes == QMessageBox::warning(this, tr("Deleting file") - ,tr("You are about to delete %1 file(s).\nAre you sure you want to continue?") - .arg(this->selectedIndexes().count()) - , QMessageBox::Yes, QMessageBox::No)) { - fileSystemModel->setReadOnly(false); - selectedFiles = this->selectedIndexes(); - //delete files until filelist empty or error occured - while(!selectedFiles.isEmpty()) { - if(fileSystemModel->remove(selectedFiles.first())) { - selectedFiles.removeFirst(); - } else { - QMessageBox::critical(this,tr("Error!") - ,tr("Deleting file %1 failed") - .arg(fileSystemModel->fileName(selectedFiles.first())) - ,QMessageBox::Ok); - break; - } - } - fileSystemModel->setReadOnly(true); - this->clearSelection(); - } -} - -/** - @return Current directory shown - */ -QString FileListWidget::getPath() -{ - return currentDir.absolutePath(); -} - -/** - Changes current directory - @param path directory to change to - */ -void FileListWidget::changePath(QString path) -{ - currentDir.cd(path); - QString newPath = currentDir.absolutePath(); - fileSystemModel->setRootPath(newPath); - this->clearSelection(); - this->setRootIndex(fileSystemModel->index(newPath)); - emit pathChanged(newPath); -} - -/** - Equivalent to changePath("..") - */ -void FileListWidget::changePathUp() -{ - changePath(".."); -} - -void FileListWidget::handleItemActivation(QModelIndex index) -{ - if(!select) { - QFileInfo file = fileSystemModel->fileInfo(index); - if(file.isDir()) { - changePath(file.absoluteFilePath()); - } else if(file.isExecutable()) { - // Make process - QProcess::startDetached(file.absoluteFilePath()); - } else { -#ifdef Q_WS_MAEMO_5 // Uses native file opening method - //TODO: find better solution for this, maybe get fixed in Qt - DBusConnection* conn; - conn = dbus_bus_get(DBUS_BUS_SESSION, 0); - hildon_mime_open_file(conn, QUrl::fromLocalFile(file.absoluteFilePath()).toEncoded().constData()); -#else - /* - Not working with maemo5. - Uses hildon_uri_open function from - libhildonmime which should work, - but all files opened in browser. - */ - QDesktopServices::openUrl(QUrl::fromLocalFile(file.absoluteFilePath())); -#endif - } - } -} -/** - @param mode true activates file selection - */ -void FileListWidget::setSelectMode(bool mode) -{ - if(mode) - this->setSelectionMode(QAbstractItemView::ExtendedSelection); - else - this->setSelectionMode(QAbstractItemView::SingleSelection); - select = mode; -} - -/** - Opens native bluetooth dialog to choose receiving device and sends selected files there. - */ -void FileListWidget::actionSendFiles() -{ -#ifdef Q_WS_MAEMO_5 - // Create list of file urls - QStringList files; - QFileInfo file; - foreach(QModelIndex index, this->selectedIndexes()) { - file = fileSystemModel->fileInfo(index); - if(file.isDir()) { - QMessageBox::warning(this, - tr("Sending files"), - tr("Sending directories not supported"), - QMessageBox::Cancel); - return; - } - files.append(QUrl::fromLocalFile(file.absoluteFilePath()).toString()); - } - - // Make dbuscall to send files - QDBusInterface interface("com.nokia.bt_ui", "/com/nokia/bt_ui", "com.nokia.bt_ui",QDBusConnection::systemBus()); - interface.call(QDBus::Block, "show_send_file_dlg", files); - -#else - QMessageBox::information(this, - tr("Sending files"), - tr("Only in maemo5 for now"), - QMessageBox::Cancel); -#endif - -} - diff --git a/src/filelistwidget.h b/src/filelistwidget.h deleted file mode 100644 index 48304cf..0000000 --- a/src/filelistwidget.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef FILELISTWIDGET_H -#define FILELISTWIDGET_H - -#include -#include -#include -#include -#include - -class FileListWidget : public QListView -{ -Q_OBJECT -public: - explicit FileListWidget(QWidget *parent = 0); - - QString getPath(); - -signals: - void pathChanged(QString newPath); - -public slots: - void changePath(QString path); - void changePathUp(); - - void actionDelete(); - void actionCut(); - void actionCopy(); - void actionPaste(); - void actionSwitchMode(bool iconmode=true); - void actionRename(); - void actionShowHidden(bool show=true); - void actionSendFiles(); - - void setSelectMode(bool mode=true); -private slots: - void handleItemActivation(QModelIndex index); - -private: - QFileSystemModel *fileSystemModel; - QDir currentDir; - QModelIndexList selectedFiles; - bool mode_cut; - bool mode_copy; - bool select; -}; - -#endif // FILELISTWIDGET_H diff --git a/src/i18n.qrc b/src/i18n.qrc deleted file mode 100644 index 9962489..0000000 --- a/src/i18n.qrc +++ /dev/null @@ -1,5 +0,0 @@ - - - cuteexplorertranslation_fi_FI.qm - - diff --git a/src/main.cpp b/src/main.cpp deleted file mode 100644 index 9da8be5..0000000 --- a/src/main.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include -#include -#include -#include "mainwindow.h" -#include -#include -int main(int argc, char *argv[]) -{ - QApplication a(argc, argv); - QTranslator translator; - - /* For some reason QLocale::system() returns - locale by LC_NUMERIC environment variable in linux which is - meant for numerics like thousand separator etc. - - In this solution we get locale from LANG environment variable - and use QLocale::system() as fallback. - */ - if(QProcessEnvironment::systemEnvironment().contains("LANG")) - translator.load(":/cuteexplorertranslation_"+QLocale(QProcessEnvironment::systemEnvironment().value("LANG")).name()); - else - translator.load(":/cuteexplorertranslation_"+QLocale::system().name()); - - a.installTranslator(&translator); - - MainWindow w; - w.show(); - return a.exec(); -} diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp deleted file mode 100644 index 5673d64..0000000 --- a/src/mainwindow.cpp +++ /dev/null @@ -1,106 +0,0 @@ -#include "mainwindow.h" -#include "ui_mainwindow.h" - -MainWindow::MainWindow(QWidget *parent) : - QMainWindow(parent), - ui(new Ui::MainWindow) -{ - ui->setupUi(this); - connect(ui->actionExit, SIGNAL(triggered()), this, SLOT(close())); - connect(ui->upButton, SIGNAL(clicked()), ui->fileListWidget, SLOT(changePathUp())); - connect(ui->locationLine, SIGNAL(returnPressed()), this, SLOT(locationLineEnterKeyHandler())); - connect(ui->fileListWidget, SIGNAL(pathChanged(QString)), ui->locationLine, SLOT(setText(QString))); - connect(ui->actionDelete, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionDelete())); - connect(ui->actionMode, SIGNAL(toggled(bool)), ui->fileListWidget, SLOT(actionSwitchMode(bool))); - connect(ui->actionCopy, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionCopy())); - connect(ui->actionCut, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionCut())); - connect(ui->actionPaste, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionPaste())); - connect(ui->actionShow_hidden, SIGNAL(toggled(bool)), ui->fileListWidget, SLOT(actionShowHidden(bool))); - connect(ui->actionRename, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionRename())); - connect(ui->actionSend, SIGNAL(triggered()), ui->fileListWidget, SLOT(actionSendFiles())); - - connect(ui->actionHelp, SIGNAL(triggered()), this, SLOT(showHelp())); - connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAbout())); - - ui->locationLine->setText(ui->fileListWidget->getPath()); - - ui->actionExit->setShortcut(QKeySequence::Quit); - - ui->actionCopy->setShortcut(QKeySequence::Copy); - ui->actionCut->setShortcut(QKeySequence::Cut); - ui->actionPaste->setShortcut(QKeySequence::Paste); - ui->actionDelete->setShortcut(QKeySequence("Ctrl+D")); - ui->actionRename->setShortcut(QKeySequence("Ctrl+R")); - ui->actionSend->setShortcut(QKeySequence::Save); - ui->fileListWidget->addAction(ui->actionCopy); - ui->fileListWidget->addAction(ui->actionCut); - ui->fileListWidget->addAction(ui->actionPaste); - ui->fileListWidget->addAction(ui->actionDelete); - ui->fileListWidget->addAction(ui->actionRename); - ui->fileListWidget->addAction(ui->actionSend); -} - -MainWindow::~MainWindow() -{ - delete ui; -} - -void MainWindow::locationLineEnterKeyHandler() -{ - ui->fileListWidget->changePath(ui->locationLine->text()); -} -void MainWindow::keyPressEvent(QKeyEvent *e) -{ - if(e->key() == Qt::Key_Control || e->key() == Qt::Key_Shift) - ui->fileListWidget->setSelectMode(true); - else - QMainWindow::keyPressEvent(e); -} -void MainWindow::keyReleaseEvent(QKeyEvent *e) -{ - if(e->key() == Qt::Key_Control || e->key() == Qt::Key_Shift) - ui->fileListWidget->setSelectMode(false); - else - QMainWindow::keyPressEvent(e); -} - -void MainWindow::changeEvent(QEvent *e) -{ - QMainWindow::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - ui->retranslateUi(this); - break; - default: - break; - } -} - -void MainWindow::showHelp() -{ - QString helpText; - - helpText.append("

CuteExplorer "+tr("Help") +"

"); - helpText.append("

"+ tr("Cut, copy, delete, rename, paste and send files")+"
"); - helpText.append(tr("commands can be found from context menu (click and hold on maemo).")+"
"); - helpText.append(tr("To select files, use ctrl and shift")+"
"); - QMessageBox::about(this, tr("Help"), - helpText); -} -void MainWindow::showAbout() -{ - QString about; - about.append("

CuteExplorer

"); - about.append(tr("

Version %1
").arg(QString(CUTE_VERSION))); - about.append(tr("Using Qt %1
").arg(QString(QT_VERSION_STR))); - about.append(tr("Copyright") + " 2010 Tommi \"tomma\" Asp <tomma.asp@gmail.com>
"); - - about.append(tr("

CuteExplorer is file manager mainly for maemo5.
")); - about.append(tr("This is still under development so please visit
")); - about.append(tr("http://cuteexplorer.garage.maemo.org
")); - about.append(tr("to report bugs or leave feature requests. Thanks!

")); - - QMessageBox::about(this, tr("About CuteExplorer"), - about); -} - diff --git a/src/mainwindow.h b/src/mainwindow.h deleted file mode 100644 index b2fa0f9..0000000 --- a/src/mainwindow.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include - -namespace Ui { - class MainWindow; -} - -class MainWindow : public QMainWindow { - Q_OBJECT -public: - MainWindow(QWidget *parent = 0); - ~MainWindow(); - -public slots: - void showHelp(); - void showAbout(); -protected: - void changeEvent(QEvent *e); - void keyPressEvent(QKeyEvent *e); - void keyReleaseEvent(QKeyEvent *e); -private slots: - void locationLineEnterKeyHandler(); - -private: - Ui::MainWindow *ui; - -}; - -#endif // MAINWINDOW_H diff --git a/src/mainwindow.ui b/src/mainwindow.ui deleted file mode 100644 index b79de1c..0000000 --- a/src/mainwindow.ui +++ /dev/null @@ -1,168 +0,0 @@ - - - MainWindow - - - - 0 - 0 - 600 - 400 - - - - CuteExplorer - - - - - - - - - - - - Up - - - Backspace - - - - - - - - - - - - - - Qt::ActionsContextMenu - - - QAbstractItemView::NoEditTriggers - - - false - - - QAbstractItemView::SingleSelection - - - Qt::ElideRight - - - - - - - - - - - 0 - 0 - 600 - 21 - - - - - View - - - - - - - File - - - - - - Help - - - - - - - - - - - Exit - - - - - Cut - - - - - Copy - - - - - Paste - - - - - Delete - - - - - true - - - Icon view - - - - - Rename - - - - - true - - - Show hidden - - - - - Send files - - - - - Help - - - - - About - - - - - - - FileListWidget - QListView -
filelistwidget.h
-
-
- - -
diff --git a/src/searchdialog.cpp b/src/searchdialog.cpp deleted file mode 100644 index 5f99421..0000000 --- a/src/searchdialog.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "searchdialog.h" -#include "ui_searchdialog.h" - -SearchDialog::SearchDialog(QWidget *parent) : - QDialog(parent), - ui(new Ui::SearchDialog) -{ - ui->setupUi(this); -} - -SearchDialog::~SearchDialog() -{ - delete ui; -} - -void SearchDialog::changeEvent(QEvent *e) -{ - QDialog::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - ui->retranslateUi(this); - break; - default: - break; - } -} diff --git a/src/searchdialog.h b/src/searchdialog.h deleted file mode 100644 index 49dbd25..0000000 --- a/src/searchdialog.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef SEARCHDIALOG_H -#define SEARCHDIALOG_H - -#include - -namespace Ui { - class SearchDialog; -} - -class SearchDialog : public QDialog { - Q_OBJECT -public: - SearchDialog(QWidget *parent = 0); - ~SearchDialog(); - -protected: - void changeEvent(QEvent *e); - -private: - Ui::SearchDialog *ui; -}; - -#endif // SEARCHDIALOG_H diff --git a/src/searchdialog.ui b/src/searchdialog.ui deleted file mode 100644 index b78659c..0000000 --- a/src/searchdialog.ui +++ /dev/null @@ -1,71 +0,0 @@ - - - - - SearchDialog - - - - 0 - 0 - 400 - 300 - - - - Dialog - - - - - 30 - 240 - 341 - 32 - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - buttonBox - accepted() - SearchDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - SearchDialog - reject() - - - 316 - 260 - - - 286 - 274 - - - - - diff --git a/src/src.pro b/src/src.pro deleted file mode 100644 index aa4e790..0000000 --- a/src/src.pro +++ /dev/null @@ -1,44 +0,0 @@ -# ------------------------------------------------- -# Project created by QtCreator 2010-01-13T19:38:20 -# ------------------------------------------------- -TARGET = cuteexplorer -TEMPLATE = app -QT += dbus -SOURCES += main.cpp \ - mainwindow.cpp \ - filelistwidget.cpp \ - searchdialog.cpp -HEADERS += mainwindow.h \ - filelistwidget.h \ - searchdialog.h -FORMS += mainwindow.ui \ - searchdialog.ui -TRANSLATIONS += cuteexplorertranslation_fi_FI.ts -RESOURCES += i18n.qrc -DEFINES += CUTE_VERSION=\\\"1.2\\\" -maemo5 { - # VARIABLES - CONFIG += link_pkgconfig - PKGCONFIG += dbus-1 \ - gnome-vfs-2.0 - LIBS += -lhildonmime \ - -ldbus-1 - isEmpty(PREFIX):PREFIX = /usr - BINDIR = $$PREFIX/bin - DATADIR = $$PREFIX/share - DEFINES += DATADIR=\\\"$$DATADIR\\\" \ - PKGDATADIR=\\\"$$PKGDATADIR\\\" - - # MAKE INSTALL - INSTALLS += target \ - desktop \ - icon \ - icon64 - target.path = $$BINDIR - desktop.path = $$DATADIR/applications/hildon - desktop.files += $${TARGET}.desktop - icon64.path = $$DATADIR/icons/hicolor/64x64/apps - icon64.files += $${TARGET}_icon64.png - icon.path = $$DATADIR/icons/hicolor/scalable/apps - icon.files += $${TARGET}_icon.svg -} diff --git a/www/index.html b/www/index.html new file mode 100644 index 0000000..9bbb65c --- /dev/null +++ b/www/index.html @@ -0,0 +1,30 @@ + + + +CuteExplorer + + + + + +

CuteExplorer

+

+Idea was to create filemanager for maemo that shows filesystem as it is, +because filemanager that was on Nokia N900 used GnomeVFS to hide the real +filesystem from user. +

+

+Project page +

+ + + + + + -- 1.7.9.5