acetoneiso2.4/ 0000775 0001750 0001750 00000000000 12242021342 013633 5 ustar andrikos andrikos acetoneiso2.4/CHANGELOG 0000664 0001750 0001750 00000045267 12242021123 015060 0 ustar andrikos andrikos
Version 2.4 25/10/2013
- converted genisoimage to xorriso for "Folder to ISO" feature
- default kde file manager now set to dolphin, removed kmfclient usage
- fixed youtube-dl "-b" option not working anymore
- fixed issue when mounting in an a generic folder (reported from JackBauer)
- ensure gpg2 is installed, bug ticket about gpg2 https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/659509
- removed phonon dependency
- updated Russian translation, thanks to Oleg Koptev
- added spanish translation thanks to Otniel Watanabe
- ui changes, disabled all uncomplete features (burning,torrent) and disabled updates tab
Version 2.3 15/11/2010
- added utility to burn ISO/TOC/CUE images to CD-R/RW optical discs
- added utility to burn ISO images to DVD-+R/RW optical discs (including DL)
- AcetoneISO can now burn the raw images it generates when creating an image from CD-Audio (toc support)
- fixed segmentation fault in erase cd/dvd function when no cd/dvd device is found
- notice user if mounting an UDF ISO image providing him correct linux command to mount the image as root user (tested with M$ Windows7 isos)
- small gui changes, most important is that the gui window size is not locked anymore to a minimum value
- updated some i18n translations
Version 2.2.2 19/06/2010
- added support for Lxde(PCManFM) file manager. Patch provided from Andrea Florio.
- splitting an image in multiple parts no longer uses compression algorithm (Dominik Dera)
- fixed a bug that prevented database from listing images when the path had accented characters in it
- fixed bug that ignored saved path destination when downloading a video from Youtube (Guido Cordaro)
- fixed utube.h warnings that occured when compiling sources
- fixed some filters in qdialogs
- removed useless qmessagebox warning when mounting an image and file manager was set to none
- updated AcetoneISO.desktop file according to the freedesktop.org desktop-entry-spec-1.1 Thanks to Anatoly Lyutin
Version 2.2.1 04/11/2009
- fixed segmentation fault that occured if ~/.acetoneiso folder didn't exist
Version 2.2 01/11/2009
- added utility to format a CD-RW fast/complete with full support to dbus, automatic media detection and usage of phonon technology
- added utility to format a DVD-RW and DVD+RW fast/complete with full support to dbus, automatic media detection and usage of phonon technology
- added utility to calculate shasums of images in 128,256 and 384 bits
- when downloading a video from Youtube, AcetoneISO will now download video in High Quality if available
- when downloading a video from Youtube, AcetoneISO will automatically retrieve the videos name and set the saved filename with it
- acetoneiso will now delete ~/virtual-drives folder when not needed
- fixed a bug preventing database from showing images that had a suffix in upper case
- fixed a bug in context menu of mount display that cut the image's name if it had spaces in its file name
- fixed some extension filters in qdialogs
- unmount button now specifies the current selected image if one is selected and enables it, otherwise is disabled
Version 2.1.1 16/09/2009
- all processes that have output have now a real time display instead of a fake redundant progress bar
- when converting a dvd to xvid avi, it is now possible to decide if audio should be encoded in mp3 or left to the original one
- fixed a bug that caused AcetoneISO to go in segmentation fault after a process ends and it was placed in tray icon
- when starting a process all buttons that can call another process get disabled to avoid mixing processes at the same time
- removed obsolete eltorito features
- it is now possible to convert or extract from cue sheet files
- fixed a segmentation fault that occured if acetoneiso.conf file for some reasons didn't have "DB =" string (Jochen Fähnlein patch)
Version 2.1 08/09/2009
- added a new History display that will automatically list all images you mount in time and be quickly mountable
- added option to scan subdirectories for database
- added tray icon support
- added advanced option for tray icon and history settings
- added context menu in mount display
- added label in main window that shows current database root folder and its recursive flag
- clicking on option button from database will now open option ui directly in database toolbox section
- fixed a severe bug that caused mounting an image not working under some circumstances
- explicitly warn user when doing an action on an image from database that doesn't exist anymore
- warn the user after mounting or opening an already mounted image if he set file manager to none
- some gui fixes and enhancements
- a lot of repetitive functions in the source code have been reduced to single generic ones
- updated italian translation
- updated czech translation
Version 2.0.4 30/08/2009
- added feature to quickly convert any video for Sony PSP Playstation Portable
- added support for Thunar as file manager and option to set file manager to None
- enhancements in the gui
- updated and added new icons
- updated Italian language
- ask confirmation when unmounting an image
Version 2.0.3.2 20/07/2009
- fixed severe UI issue that prevented user to see mount and unmount buttons
- updated dependencies: instead of pinentry-qt, it's pinentry-qt4 now
- added updated German local files
- updated and fixed czech local files
- added quick unmount button at top menu
Version 2.0.3.1 10/06/2009
- fixed Youtube bug, it didn't update anymore due to a server change of the author
- fixed a mount bug that occured when mounting an image of this type: "abc.xyz.iso"
- small GUI restyle with a better News browser
- the default size of the manual widget has been resized to standard 640*480 avoiding nasty things on netbooks and similar
- added Simplified Chinese locale files
- added czech local files
Version 2.0.3 09/04/2009
- at first launch ($HOME/.acetoneiso/acetoneiso.conf doesn't exist), AcetoneISO will open option window before actually loading the program
- added option button in main GUI
- removed paypal button in main GUI
- updated manual
- removed pornotube feature
Version 2.0.3 Release Candidate 1 04/12/2008
- updated poweriso link to 1.3 release
- enhanced database with search field and context menu
- enhanced general GUI look
- added support for input through command line (beta feature). You can now click on an *iso and "Open With AcetoneISO"
- added Exract Audio from video file feature
- added login download from youtube
- added pornotube and metacafe download
- added saving log $HOME/.acetoneiso/acetoneiso.log where it is supported from process
- added a news section in main window GUI which will show any message we want through http
- split feature now uses 7z method of division
- added feature to extract a *.rar that has a password
- generating iso from cd/dvd now supports multiple devices
- setting of database is now done through option menu
- removed mount UDF feature
- a lot of small bugfixes and better output messages
- the executable has been renamed to "acetoneiso"
Version 2.0.2 01/05/2008
- added utility to quickly rip a DVD movie 2 Xvid AVI
- added utility to quickly convert a generic video (mpeg,mov,asf,wmv,avi) to Xvid AVI
- added utility to quickly convert a FLV video to AVI
- added utility to quickly download videos from YouTube
- added 2 Methods to view a DVD-Movie. If one fails, the other should work
- added support for UDF ISO images
- added d3lhpin service menu support (tested only on Ubuntu system path)
- added translations for: french, russian, hungarian and romanian (thanks to contributors)
- updated installer file, fuse is now activated automatically. this affects *.run and *.deb package
- complete detailed rewrite of manual, current revision: 0.0.2.1
- changed splash screen to the software's default logo
- fixed a lot of output messages for warnings and error issues
- fixed a bug in the umount code that occurred very rarely
- some minor fixes
Version 2.0.1 08/02/2008
- complete redesign of GUI. smaller, more intuitive and powerful
- restyling of the option window
- restyling of the about window
- manual is an inside browser now
- removed obsolete eltorito DOS support
- some internal changes of how the code and files are structured
- the progress bar is now an external window
- some bugfixes
- added option to save the dvd-film cover
Version 2.0.0 24/01/2008
- all code ported to C++/QT4
- introduced realtime progress bar for all feature
- print exit error status on all features
- the mount display is now realtime. you can click directly on it to browse the mounted image
- the mount display reports the file size of the image
- add button to directly delete an image set on database display
- manual mount now uses fuseiso like automount
- default icons changed, added paypal button
- crypting an image is now very simple gets in input a qtdialog instead of konsole
- added support for localitazion languages: english,italian,polish(jarek),spanish(david palacio)
- added Backup CD-Audio function
- removed burning functions | will be back in future?
- code has been cleaned and splitted into headers
- service menu support for konqueror
- kde is no longer a dependencie
- added a new "options" tab
- added option to let the user set an ID when creating an ISO from folder
- added option to set nautilus file manager as default
- when setting kde in "options" tab,acetoneiso2 will use kde's default file manager
- updated poweriso URL download to the official website @ version 1.2
- full convert/extract support for *.dmg MacOS images
- added smplayer support for play dvd-image film
- gui is not locked anymore and will take desktop default style
- mount has been drastically improved and code reduced at least two times with a better algorithm
- creation of an indipendent distribution installer
- tons of bugfixes too many to list here
- there are some things changed that we can't remember :)
Version 1.0.2 21/08/2007
- change: AcetoneISO2 is now released under the GPL3 License. Enjoy!
- change: GUI totally changed due to "instability" of qt4 designer (they like changing every version)
- bugfix: installing in ubuntu Gutsy now works.
- bugfix: play dvd movie had problems. there are now 2 methods to correctly view the movie.
we had to quit mplayer,kmplayer,smplayer support due to their bad support for
viewing a dvd folder.
- bugfix: creating iso of a folder now makes correct Joliet format
- change: database display now has the option to do recursive scanning
- added: tool to extract the boot image from a CD/DVD and ISO
Version 1.0.1 10/08/2007
-bugfix: solved a problem when using AcetoneISO2 with QT4.3.0. No more messed displays
and working "+" button for more options in the menubar.
Version 1.0 07/06/2007
- added support to mount ISO NRG BIN IMG MDF
- automatic mount, no destination required, no password
- added database
- added cover downloader for play movie dvd
- added support for Mac OS *.dmg images
- added support to retrieve information of images
- added support for eltorito
- automatic DOS bootable iso creation
- burn iso/cue, format cd/dvd, now without k3b
- a LOT of bugfix, so much impossible to list here
- gui ported to QT4
- added display for mount/database
- a lot of other things impossible to list here
- AcetoneISO2 is now distributed under new license: Creative Commons Licence
- and still many other changes
####################################### OLD VERSION ################################################
Version 6.7 Advance 05/03/2007
- NEW FEATURE: ability to extract and browse ISO,MDF,BIN,IMG,DAA,NRG without mounting them
- NEW FEATURE: added support for mounting NRG images(if iso9660 standard)
- NEW FEATURE: added support for viewing an MDF/NRG dvd movie image (if iso9660 standard)
- NEW FEATURE: it is now possible to convert DAA/BIN/IMG files larger than 4gb
- CHANGE: added more images in filters of all gui features
- CHANGE: Removed bchunk,ccd2iso and replaced with poweriso
- CHANGE: creating an iso will now result in a more standard LEVEL 3
- FIX: creating an ISO from a cdrom is now more clear, added fake progbar from konsole
Version 6.6 Advance 28/11/2006
- NEW FEATURE: ability to directly extract an iso to a folder without mounting it
- NEW FEATURE: ability to browse and view files of an iso
- NEW FEATURE: ability to convert *.daa image files
- NEW FEATURE: ability to generate a cue file from a BIN/IMG image
- NEW FEATURE: ability to rip a PSX cd to a bin file
- NEW FEATURE: the 8 convert buttons have been reduced to a one OMNI button
- CHANGE: default directory in kdialogs is now /home/youruser/
- CHANGE: all converters will now install in /opt/acetoneiso/bin/ avoiding conlict with the other packages
- bug fix: almost all the code has been rewritten, correct and simply works better
- bug fix: the savefile filters have been corrected
- bug fix: making an iso of a folder that had files with space in it's name were cut
- bug fix: service menu have been updated to the new code
- last note: the gui has a fresh and new look :)
Version 6.5.1 Nano 06/11/2006
- bugfix all files are executable now :)
- bugfix create iso from cd-rom works again.
Version 6.5 Nano 30/10/2006
- Total rewrite of AcetoneISO
- GUI has been totally changed, now it's faster and better
- All convertion tools have now their own progress bar accurate 100%, removed annoying messages
- When creating an ISO from folder, the user will now see it's progress bar, both in the GUI and Service Menu
- In the Play ISO tab, to add more security there has been inserted a real-time msg that lets the user know
if there is an ISO mounted
- when compressing with 7zip, the user will now be able to choose in Ultra High Mode and Normal Compression.
- Finally the Mount ISO and Turbo Mount buttons won't get stucked anymore!
- ADDED new option: you can now Encrypt and Decrypt an ISO
- mdf2iso should now correctly convert your mdf files to ISO
Version 6.1 Nano 06/10/2006
-New GUI
-sounds have been inserted in turbo mount and in standard mount
-mdf2iso patched with Yuri van Oers patch
-some changes in umount code
Version 6.0 Moonlight Shadow
-This version is a major BUGFix release.All users are encoureged to update to the 6.0
-Added Service Menu Turbo Button
-Changed GUI
-Added option to Compress an ISO to 7z in ULTRA High Mode
and button to Extract it
-Mount has been improved.It will now avoid mounting 2 times in the same folder
asking the user if he wants to unmount if first
-Unmount has been improved, more error controls plus error controls improved
-turbo mount has been improved as well
-web button will now open it with firefox,if not present in konqueror
-play dvd iso and unmount dvd have been drastically improved,there isnt no more
the risk of mounting more than one iso.That would have created serious problems
-services menu have been improved and updated to the gui code
-other small but not less important bug-fixes
Version 5.5 Space Trooper 14/09/2006
- Finally Fixed the Path and ISO name Space problem. It is now possible to mount an ISO that has spaces in it's file name and it's path. This affect 100% the GUI in all the features of the program
- Service Menu has been improved for the "Space" bug. As of now it affect 70% of cases.When it isnt' possible
to mount with spaces there will be a notice on top of the kdialog message.
- Drastically Improved the Turbo Mount/Umount. The code has been rewritten and just works ok.
Version 5.1 Ultimate 13/09/2006
- Finally corrected all scripts fixing the "cancel" button.If now selected the program will
stop immediately. This was very annoying...:)
- Added New button: Quick Mount/Umount! This cool utility,recycled from the old AcetoneISO 0.2 script, once clicked will
Quickly Mount the first ISO found on Desktop and mount it allways n your desktop in a folder called Acetone
Version 5.0 Ultimate 12/09/2006
- New GUI. It is now good looking,more functional.
- Split ISO totally rewritten. It is now possible to choose exactly in MegaByte the dimension
of the splitted files. You can also choose the KiloByte measure
- fixed bug in Burn Image with K3b. Now it correctly writes the image and lets the user choose to write
to a CD or DVD media
- added button to Blank a CD/DVD directly in K3b
- added button to Generate a Md5sum File of an ISO
- Added two new Conversions: PDI and B5I/BWI are now supported and can be converted to ISO
- The code of Create ISO from Folder has been improved.Now it lets the user first select
the folder to be converted and then choose the *.iso file name
- Play DVD-Movie ISO now supports another player: Kmplayer
- added button in GUI to connect directly to AcetoneISO Official HomePage
Version 4.1 Movie Lover 10/09/2006
- in this version you can choose the player in "Play DVD-Movie ISO" (supported players: Kaffeine,Mplayer and VLC)
- some changes in gui
Version 4.0 Movie Lover 09/09/2006
- added possibility to play an ISO of a DVD-Movie direcly with kaffeine by simply pressing a button or from servicemenu
- program is now able to split an iso in smaller files of 649Mb or 125Mb and merge them again into an ISO
- added ability to force the mount/eject of a cd/dvd in media device
- some changes in GUI
Version 3.0 Plus 02/09/2006
- service menu added to mount, umount and create iso from folder or CD/DVD
- more CD/DVD formats supported to convert to iso
- created installer and uninstaller scripts to easily install service menu and program
version 2.0 Unlimited 31/08/2006
- GUI has been totally changed, now it looks better ;)
- totally rewrite of the scripts.
- removed the force acetone folder on desktop.(now you can give the folder's name)
- it is now possible to mount unlimited ISOs.
- now you can give the name to the ISO when converting them
- removed OPEN MOUNTED FOLDER. It will automatically open after Mount
version 1.6 31/08/2006
- added `Open Mounted Folder` button
version 1.5.2 30/08/2006
- corrected ALL files with the "Superstoned" bug
version 1.5.1 30/08/2006
- bugfix(reported by Superstoned )
version 1.5 30/08/2006
- added ability to verify md5sum of image files
- ability to create ISO from Folder and CD/DVD
- GUI has been updated
version 1.0 30/08/2006
- totally rewrite of the scripts.
- introduction of a nice GUI
- now it is possible to mount an ISO from any location (thanks to xTitus)
- ability to mount and unmount ISO and MDF(if iso-9660 standard), Convert BIN, MDF, DAT, NRG to ISO, Burn Your ISO, CUE, TOC images directly in K3b
version 0.2 29/08/2006
- the 2 scripts were reduced to only one. it mounts and unmounts.
if the iso is mounted it will unmount it else mount.
version 0.1 29/08/2006
- created scripts to mount & unmount iso (no bugs known)
acetoneiso2.4/LICENSE 0000664 0001750 0001750 00000104513 11723415034 014654 0 ustar andrikos andrikos GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
acetoneiso2.4/FEATURES 0000664 0001750 0001750 00000003666 12242021327 015012 0 ustar andrikos andrikos These are AcetoneISO's Features:
- Mount automatically ISO, MDF, NRG, BIN, NRG without the need to insert admin password! Only single-track images are supported for the moment.
- burn ISO/TOC/CUE to CD-R/RW optical discs
- burn ISO images to DVD-+R/RW (including DL)
- a native utility to blank your CD-RW, DVD-RW and DVD-RW discs
- A nice display which shows current images mounted and possibility to click on it to quickly reopen mounted image
- Convert 2 ISO all image types:
*.bin *.mdf *.nrg *.img *.daa *.dmg *.cdi *.b5i *.bwi *.pdi and much more
- Extract images content to a folder:
*.bin *.mdf *.nrg *.img *.daa *.dmg *.cdi *.b5i *.bwi *.pdi and much more
- Play a DVD Movie Image with Kaffeine / VLC / SMplayer with auto-cover download from Amazon
- Generate an ISO from a Folder or CD/DVD
- Check MD5 file of an image and/or generate it to a text file
- Calculate ShaSums of images in 128, 256 and 384 bit
- Encrypt / Decrypt an image
- Split / Merge image in X megabyte
- Compress with High Ratio an image in 7z format
- Rip a PSX cd to *.bin to make it work with epsxe/psx emulators
- Restore a lost CUE file of *.bin *.img
- Convert Mac OS *.dmg to a mountable image
- Mount an image in a specified folder from the user
- Create a database of images to manage big collections
- Extract the Boot Image file of a CD/DVD or ISO
- Backup a CD-Audio to a *.bin image (can also be burnt once made)
- Complete localization for English, Italian, French, Spanish, Polish and much more!
- Quick and simple utility to Rip a DVD to Xvid AVI
- Quick and simple utility to convert a generic video (avi, mpeg, mov, wmv, asf) to Xvid AVI
- Quick and simple utility to convert a FLV video to AVI
- Utility to download videos from Youtube and Metacafe!
- Extract Audio from a video file
- Extract a *.rar archive that has a password
- Quick and simple utility to convert any video for Sony PSP Playstation Portable
- Display History that shows all images you mount in time
acetoneiso2.4/AUTHORS 0000664 0001750 0001750 00000000645 12232236072 014717 0 ustar andrikos andrikos
########################### AUTHORS 2010 - CURRENT ###############################
- marco di antonio (acetoneiso@gmail.com)
########################### AUTHORS 2006-2007-2008-2009 ###############################
- fabrizio di marco
- marco di antonio
acetoneiso@gmail.com
The AcetoneISO Team RULEZ!!
############################################################################################
acetoneiso2.4/README 0000664 0001750 0001750 00000004171 12232236165 014530 0 ustar andrikos andrikos
######################## GENERAL INFORMATION ######################################
AcetoneISO is a CD/DVD image manipulator for GNU/Linux.
Released under the GNU GPL3 License,
This software is brought to you from | read AUTHORS file |
########################### DEPENDENCIES ##########################################
SYSTEM REQUIREMENTS:
- fuseiso
- fuse-utils
- libqt4-gui 4.5 and libqtwebkit 4.5 or later
- genisoimage (may be part of cdrkit package)
- cdrdao
- p7zip-full
- gnupg-agent
- gnupg2
- pinentry-qt4
- ffmpeg
- mencoder
- cdparanoia
Note for 64bit users: the package "ia32-libs" is also required(read QUICK NOTES below for more info).
############################# INSTALL #############################################
a) You must have libqt4-dev 4.5 and libphonon-dev or later and the standard gcc compiler (gcc,g++,make) installed.
b) open a terminal inside acetoneiso folder and type:
qmake-qt4 (if it gives errors simply type "qmake" instead)
make
make install (must be run as root user)
c) it is now time to add your user to fuse group. this step is not needed on all systems, for example from Ubuntu Hardy and up this
step is not required.
open a terminal, login as root user and type:
modprobe fuse
chmod 4755 /usr/bin/fusermount (may be /bin/fusermount on ubuntu systems and others)
chmod o+rw /dev/fuse
addgroup fuse (example: "addgroup johndoe fuse")
That's it! You Succesfully installed AcetoneISO!
x) if you want to uninstall AcetoneISO,
simply type from acetoneiso2/src/ folder:
make uninstall (must be root user)
############################# QUICK NOTES ###########################################
- AcetoneISO uses poweriso binary file to convert and extract images.
It is not shipped with our software and will be downloaded when needed from www.poweriso.com .
Poweriso is a Freeware software so sources are not available.
Please note that it will only work on x86 32-bit Operating Systems.
It is however possible to make it run on x64 64-bit OS, for example you must
install at least "ia32-libs" package. Other packages may be required.
acetoneiso2.4/TODO 0000775 0001750 0001750 00000001211 12242021327 014324 0 ustar andrikos andrikos
CONVERT:
- converting images must use iat,daa2iso,uif2iso and bchunk instead of poweriso.
use poweriso only if the previous couldn't be found
BURN:
- crash occurs when cd/dvd inserted in device and OS still has to read/identify it and you open the burn ui in the mean time
TORRENT:
- display threading qprocess FATTO
- chiudere qprocess hash alla chiusura con X FATTO
- prendere nome corretto vero del torrent via api call FATTO
- al riavvio riprendere i download FATTO
- gestire download URL torrent
- aggiungere supporto pausa/cancella
- opzione proxy
- Native File Manager
- burn cd/dvd dati
- create/burn cd audio from wav/ogg/mp3 etc.
acetoneiso2.4/acetoneiso/ 0000775 0001750 0001750 00000000000 12242020427 015767 5 ustar andrikos andrikos acetoneiso2.4/acetoneiso/acetoneiso.pro 0000664 0001750 0001750 00000004444 11513606137 020660 0 ustar andrikos andrikos CONFIG += qt
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += sources/acetoneiso.h \
sources/connections.h \
sources/options.h \
sources/about.h \
sources/manual.h \
sources/backup_audio.h \
sources/compress.h \
sources/converter.h \
sources/database.h \
sources/donate.h \
sources/dvd_cover.h \
sources/eltorito.h \
sources/encrypt.h \
sources/foldertoiso.h \
sources/gencue.h \
sources/gmount.h \
sources/isocd.h \
sources/md5check.h \
sources/messages.h \
sources/mount.h \
sources/a_options.h \
sources/play.h \
sources/psxrip.h \
sources/split.h \
sources/status_mounted.h \
sources/udf.h \
sources/progress.h \
sources/vidgen.h \
sources/utube.h \
sources/formatcd.h \
sources/umount_check.h \
sources/audiotools.h \
sources/psp.h \
sources/iso_from_pcgame.h \
sources/history.h \
sources/global_functions.h \
sources/erase_cd.h \
sources/erase_dvd.h \
sources/burn_iso_2_cd.h \
sources/burn_iso_2_dvd.h \
sources/torrent.h \
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
FORMS += ui/acetoneiso.ui ui/options.ui ui/about.ui ui/progress.ui ui/manual.ui ui/erasecd.ui ui/erasedvd.ui ui/burn_iso_2_cd.ui ui/burn_iso_2_dvd.ui
SOURCES += sources/acetoneiso.cpp sources/main.cpp sources/options.cpp sources/about.cpp sources/progress.cpp sources/manual.cpp sources/erase_cd.cpp sources/erase_dvd.cpp sources/burn_iso_2_cd.cpp sources/burn_iso_2_dvd.cpp
RESOURCES = acetoneiso.qrc
#QT += phonon
QT += dbus
#QT += svg
QT += webkit
#install#
target.path = /usr/bin
menuico.files = images/Acetino2.png/
menuico.path = /usr/share/pixmaps
menu.files = menu/*
menu.path = /usr/share/applications
INSTALLS += target menuico menu
TRANSLATIONS = locale/acetoneiso_it.ts \
locale/acetoneiso_fr.ts \
locale/acetoneiso_de.ts \
locale/acetoneiso_es.ts \
locale/acetoneiso_pl.ts \
locale/acetoneiso_hu.ts \
locale/acetoneiso_ru.ts \
locale/acetoneiso_ro.ts \
locale/acetoneiso_zh.ts \
locale/acetoneiso_da.ts \
locale/acetoneiso_cs.ts \
locale/acetoneiso_ta.ts
acetoneiso2.4/acetoneiso/sources/ 0000775 0001750 0001750 00000000000 12232235610 017453 5 ustar andrikos andrikos acetoneiso2.4/acetoneiso/sources/leggirigo.h 0000664 0001750 0001750 00000002311 11304540571 021575 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
//Questa libreria permette di leggere un rigo n da un file.
//per richiamare questa funzione per un qfile nomefile e leggere
//il rigo n basta fare: leggiRigo( n, &nomefile) e ci verrà
//restituita una qstring contenente il rigo n-esimo di nomefile.
QByteArray acetoneiso::leggiRigo( int numeroRigo, QFile *filee )
{
QByteArray line = "";
for(int i = 0; i < numeroRigo; i++)
line = filee->readLine();
return line ;
}
acetoneiso2.4/acetoneiso/sources/erase_dvd.cpp 0000664 0001750 0001750 00000031075 11513606137 022130 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "erase_dvd.h"
/*
cancellare cd completo: wodim -verbose dev=/dev/sr0 blank=all
cancellare cd rapido: wodim -verbose dev=/dev/sr0 blank=fast
dice il tipo di media inserito: hal-get-property "--key volume.disc.type --udi $udi
*/
//
erasedvd::erasedvd( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)
{
setupUi(this);
is_erasing = false;
loaded_success = false;
QCoreApplication::setApplicationName("AcetoneISO");
connect( start, SIGNAL( clicked() ), this, SLOT( start_erase() ) );
textBrowser->clear();
device_scan();
}
void erasedvd::device_scan() {
/*creo la connessione dbus a hal*/
QDBusConnection conn = QDBusConnection::systemBus();
QDBusInterface hal("org.freedesktop.Hal", "/org/freedesktop/Hal/Manager", "org.freedesktop.Hal.Manager", conn);
/*cerco tutti i dispositivi storage.cdrom con hal via dbus*/
QDBusMessage msg = hal.call( "FindDeviceByCapability", "storage.cdrom");
QList devices = msg.arguments();
/*per ogni udi (dispositivo cdrom) che trovo, ricavo vendor, model, velocità e path*/
//disabilita tutto se non viene trovato almeno 1 periferica
int count = devices.count();
if (count < 1) {
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found.\nIf you think this is a bug please report it."));
disable_buttons();
devices_combo->addItem( tr("No CD/DVD device found") );
return;
}
QIcon icon_optical_drive( ":/images/drive-optical.png" );
//scannerizzo tutte le periferiche e le aggiungo nella combobox. questa funzione viene chiamato una sola volta.
QVariant name(devices);
int cc = 0;
int success = -1;
while (cc < count) {
QString cdrom = name.toStringList()[0];
if (cdrom.isEmpty()) {
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found.\nIf you think this is a bug please report it."));
disable_buttons();
devices_combo->addItem( tr("No CD/DVD device found") );
return;
}
// qDebug() << "Found device: " << cdrom;
QDBusInterface device("org.freedesktop.Hal", cdrom, "org.freedesktop.Hal.Device", conn);
//vedo se effittivamente il device puo scrivere su dischi dvd-rw
//controllo in seguito se puo scrivere su dvd+rw dal momento che se puo scrivere su dvd+rw puo anche farlo su dvd-rw ma questo ragionamento non funziona al contrario
msg = device.call("GetProperty", "storage.cdrom.dvdrw");
QVariant vcan_write_cdrw = msg.arguments()[0];
bool can_write_cdrw = vcan_write_cdrw.toBool();
if (!can_write_cdrw) {
cc = cc + 1;
continue;
}
//success si ricorda sempre la posizione in cui aggiungere all'array indipendentemente dal cc del ciclo while
success = success + 1;
//aggiungo id nell'array
id_device.insert(success, cdrom);
/*ottengo il nome del vendor del cdrom*/
msg = device.call("GetProperty", "storage.vendor");
QVariant var = msg.arguments()[0];
QString vendor = var.toStringList()[0];
//qDebug() << "VENDOR" << vendor;
/*ottengo il nome del modello del cdrom*/
msg = device.call("GetProperty", "storage.model");
QVariant var2 = msg.arguments()[0];
QString model = var2.toStringList()[0];
// qDebug() << "MODEL" << model;
/*ottengo il path del dispositivo cdrom*/
msg = device.call("GetProperty", "block.device");
QVariant var3 = msg.arguments()[0];
device_path.insert(success, var3.toStringList()[0]);
// qDebug() << "PATH" << device_path;
msg = device.call("GetProperty", "storage.firmware_version");
QVariant firmwarev = msg.arguments()[0];
QString firmware = firmwarev.toString();
/*aggiungo il nome del device nella combobox*/
QString final_device = vendor.append( "\t" + model + " " + firmware );
devices_combo->insertItem(success,icon_optical_drive, " " + final_device );
cc = cc + 1;
}
media_available();
//if < 1 significa che sebbene ci sono 1 o piu periferiche cdrom, nessuna e' capace di scrivere su cd-rw
if (devices_combo->count() < 1) {
disable_buttons();
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found capable of writing to DVD-RW discs.\nIf you think this is a bug please report it."));
return;
}
else { //c'e' almeno 1 periferica cdrom in grado di scrivere su dischi cd-rw
loaded_success = true;
//crea un timer cosi aggiorna automaticamente la label_info
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(media_available()));
timer->start(2000);
connect( devices_combo, SIGNAL(currentIndexChanged(int) ), this , SLOT( combo_changed(int) ) );
}
}
void erasedvd::media_available() {
//qDebug() << "media_available()";
//se sto masterizzando deve uscire da qui
if (is_erasing) {
start->setEnabled(false);
label_info->setText(tr("The")+ " " + discotipo + " " + tr("is getting blanked..."));
return;
}
//if < 1 it means there are no devices capaci di scrivere su dischi cd-rw
if (devices_combo->count() < 1) {
return;
}
//se non e' visibile deve disconnettere le connessioni
if (loaded_success) {
if (!devices_combo->isVisible()) {
disconnect(devices_combo, 0, 0, 0);
disconnect(timer, 0, 0, 0);
loaded_success = false;
}
}
//scopro se ho un cd dentro il device
/*creo la connessione dbus a hal*/
QDBusConnection conn = QDBusConnection::systemBus();
QDBusMessage msg;
//prendo indice corrente della combobox cosi so chi l'id della periferica selezionata
int current_index = devices_combo->currentIndex();
QString id = id_device[current_index];
//mi connetto alla periferica corrente selezionata in combobox
QDBusInterface device("org.freedesktop.Hal", id, "org.freedesktop.Hal.Device", conn);
//vedo se e' inserito un cd
msg = device.call("GetProperty", "storage.removable.media_available");
QVariant var5 = msg.arguments()[0];
bool opticDev = var5.toBool();
QString plusminus = QString::fromUtf8("\xC2\xB1"); //0xC2 0xB1
if (!opticDev) {
label_info->setText(tr("Insert a DVD") + plusminus + "RW " + tr("disc.") );
start->setEnabled(false);
//devices_combo->setItemText(cc,tr("No Media Inserted, insert a media and click on refresh button."));
return;
}
//vedo il tipo di cd inserito
QDBusMessage fbp;
QDBusInterface newh("org.freedesktop.Hal", "/org/freedesktop/Hal/Manager", "org.freedesktop.Hal.Manager", conn);
fbp = newh.call("FindDeviceStringMatch", "info.parent", id);
QList var6 = fbp.arguments();
QString disc_type = var6.at(0).toString();
QDBusInterface device_type("org.freedesktop.Hal", disc_type, "org.freedesktop.Hal.Device", conn);
msg = device_type.call("GetProperty", "volume.disc.type");
QString var7 = msg.arguments()[0].toString();
QString disc_is = var7;
//ferma in caso che il disco inserito non sia un disco DVD±RW
if ( (disc_is != "dvd_rw") and (disc_is != "dvd_plus_rw") ) {
label_info->setText(tr("The disc isn't a DVD") + plusminus + "RW. " +tr("Please insert a DVD") + plusminus + "RW " + tr("disc."));
start->setEnabled(false);
return;
}
if (disc_is == "dvd_rw") {
discotipo = "DVD-RW";
}
else {
discotipo = "DVD+RW";
msg = device.call("GetProperty", "storage.cdrom.dvdplusrw");
QVariant vcan_write_cdrw = msg.arguments()[0];
bool discobool = vcan_write_cdrw.toBool();
if (!discobool) {
label_info->setText( tr("You inserted a DVD+RW disc, however your CD/DVD device is uncapable of writing to DVD+RW discs.") );
start->setEnabled(false);
return;
}
}
label_info->setText(discotipo + " " + tr("succesfully found in device."));
start->setEnabled(true);
}
//gestisce quando l'utente cambia periferica nella combobox
void erasedvd::combo_changed(int n) {
int a;
a = n;
media_available();
}
void erasedvd::start_erase() {
QString type = discotipo;
QMessageBox msgBox;
msgBox.setText(tr("You decided to blank the") + " " + discotipo + tr("\nAre you sure?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
switch (msgBox.exec()) {
case QMessageBox::Yes:
{
//continue below
}
break;
case QMessageBox::No:
{
return; //exit
}
break;
default:
// should never be reached
break;
}
QString erase_type;
if (radioButton->isChecked()) {
erase_type = "complete";
}
else {
erase_type = "fast";
}
disable_buttons();
QString dev = device_path.at(devices_combo->currentIndex());
//dev = dev.prepend("dev=");
textBrowser->clear();
erase = new QProcess();
erase->setReadChannel(QProcess::StandardOutput);
erase->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(erase, SIGNAL(readyReadStandardOutput()), SLOT(updateEraseDisplay() ));
connect(erase, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutErase(int, QProcess::ExitStatus)));
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
is_erasing = true;
if (erase_type == "fast") {
erase->start("dvd+rw-format",QStringList() << dev );
}
else {
erase->start("dvd+rw-format",QStringList() << "-force" << dev );
}
}
//fa loutput nel display del processo wodim
void erasedvd::updateEraseDisplay() {
erase_output = erase->readAllStandardOutput();
//questo evita che prende un output vuoto
if (erase_output.size() > 2 ) {
eraseoutput_real = erase_output; //questo si ricorda sempre dell'ultimo output NON vuoto
textBrowser->setPlainText(erase_output);
}
else {
textBrowser->setPlainText(eraseoutput_real);
}
}
//gestisce quando il processo dvd+rw-format finisce
void erasedvd::printOutErase(int, QProcess::ExitStatus) {
enable_buttons();
is_erasing = false;
//controllo se il dvd e' gia formattato o se cmq non necessita di una formattazione secondo il sofware dvd+r-format
QByteArray str = "already";
bool contains = eraseoutput_real.contains(str); //prendo l'ultimo output non vuoto
eraseoutput_real = "";
if (contains) {
QMessageBox::information(this, "AcetoneISO",tr("The") + " " + discotipo + " " + tr("is already formatted.\nThere is no need to format it because you can simply overwrite the media.\nIf you really want to blank it, choose Blank the Entire disc in the below window but we highly discourage you from doing so.\nOverwriting the") + " " + discotipo + " " + tr("is the simplest and safest thing to do."));
return;
}
if (eject->isChecked()) {
QString dev = device_path.at(devices_combo->currentIndex());
EJect.start("eject",QStringList() << dev );
}
int valore_uscita = erase->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
textBrowser->clear();
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
}
//abilita i bottoni
void erasedvd::enable_buttons() {
start->setEnabled(true);
devices_combo->setEnabled(true);
eject->setEnabled(true);
radioButton->setEnabled(true);
radioButton_2->setEnabled(true);
}
//disabilita i bottoni
void erasedvd::disable_buttons() {
start->setEnabled(false);
devices_combo->setEnabled(false);
eject->setEnabled(false);
radioButton->setEnabled(false);
radioButton_2->setEnabled(false);
}
void erasedvd::play_success() {
/*
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::Path path;
mediaObject = new Phonon::MediaObject();
audioOutput = new Phonon::AudioOutput(Phonon::NoCategory);
path = Phonon::createPath(mediaObject, audioOutput);
QString file(":/audio/success.ogg");
mediaObject->setCurrentSource(Phonon::MediaSource(file));
mediaObject->play();
*/
}
void erasedvd::play_error() {
/*
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::Path path;
mediaObject = new Phonon::MediaObject();
audioOutput = new Phonon::AudioOutput(Phonon::NoCategory);
path = Phonon::createPath(mediaObject, audioOutput);
QString file(":/audio/error.ogg");
mediaObject->setCurrentSource(Phonon::MediaSource(file));
mediaObject->play();
*/
}
acetoneiso2.4/acetoneiso/sources/eltorito.h 0000664 0001750 0001750 00000013435 11253524566 021510 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO2 is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO2 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO2. If not, see .
/*
void acetoneiso::eltorito() {
QMessageBox::warning(this, "AcetoneISO",tr("This feature is untested, we can't guarantee it will work.\nSorry."));
QFile stage2_eltorito( "/usr/lib/grub/i386-pc/stage2_eltorito" );
QFile mkisofs_file( "/usr/bin/genisoimage");
if(!mkisofs_file.exists()) {
QMessageBox::warning(this, "AcetoneISO2::Warning!",tr("Please be sure to have genisoimage installed in /usr/bin "));
return;
}
QString folder = QFileDialog::getExistingDirectory( this, tr("AcetoneISO2::Select Folder to transform in a bootable ISO"), QDir::home().path() );
if(!folder.isNull() )
{
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO2::Save ISO file"),
QDir::home().path() + "/acetone_bootable" ,
tr("Images (*.iso)"));
if (fileName.isNull() )
{
return;
}
fileName.append( ".iso" );
//funzione caso manual
QString bootfile = QFileDialog::getOpenFileName(this,tr("Select Boot File"), QDir::home().path() );
if ( bootfile.isNull() ) {
return;
}
QFile boot_file( bootfile );
QFileInfo boot_file_info( boot_file );
QDir directoryToConvert( folder );
directoryToConvert.mkdir("boot");
directoryToConvert.cd( "boot" );
directoryToConvert.mkdir( "acetoneiso" );
directoryToConvert.cd( "acetoneiso" );
boot_file.copy( folder + "boot/acetoneiso/" + boot_file_info.fileName() );
showProgressDisplay();
MKisofs = new QProcess();
MKisofs->setReadChannel(QProcess::StandardOutput);
MKisofs->setProcessChannelMode(QProcess::MergedChannels);
connect(MKisofs, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_MKisofs() ));
connect(MKisofs, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOut(int, QProcess::ExitStatus)));
MKisofs->start("genisoimage", QStringList() << "-R" << "-b" << ( "boot/acetoneiso/" + boot_file_info.fileName() ) << "-no-emul-boot" << "-boot-load-size 4" << "-boot-info-table" << "-o" << fileName << folder );
}
}
void acetoneiso::elfloppy()
{
QMessageBox::warning(this, "AcetoneISO",tr("This feature is untested, we can't guarantee it will work.\nSorry."));
QFile mkisofs_file( "/usr/bin/genisoimage");
if(!mkisofs_file.exists())
QMessageBox::warning(this, "AcetoneISO2::Warning!",tr("Please be sure to have genisoimage installed in /usr/bin "));
else
{
QString folder = QFileDialog::getExistingDirectory( this, tr("AcetoneISO2::Select Folder to transform in a bootable ISO"), QDir::home().path() );
if(!folder.isEmpty() )
{
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO2::Save ISO file"),
QDir::home().path() + "/acetone_bootable" ,
tr("Images (*.iso)"));
if (!fileName.isNull() )
{
fileName.append( ".iso" );
QString bootfile = QFileDialog::getOpenFileName(this,tr("Select Boot File"), QDir::home().path() );
if ( bootfile.isNull() )
{
}
else
{
QFile boot_file( bootfile );
QFileInfo boot_file_info( boot_file );
QDir directoryToConvert( folder );
directoryToConvert.mkdir("boot");
directoryToConvert.cd( "boot" );
boot_file.copy( folder + "boot/" + boot_file_info.fileName() );
showProgressDisplay();
MKisofs = new QProcess();
MKisofs->setReadChannel(QProcess::StandardOutput);
MKisofs->setProcessChannelMode(QProcess::MergedChannels);
connect(MKisofs, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_MKisofs() ));
connect(MKisofs, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOut(int, QProcess::ExitStatus)));
MKisofs->start("genisoimage", QStringList() << "-r" << "-b" << ( "boot/" + boot_file_info.fileName() ) << "-c" << "boot/boot.catalog" << "-o" << fileName << folder );
}
}
}
}
}
*/
void acetoneiso::getboot()
{
QDir Home = QDir::home();
QMessageBox msgBox;
msgBox.setText(tr("Select from where to extract Boot Image:"));
QPushButton *connectButton = msgBox.addButton(tr("ISO File"), QMessageBox::ActionRole);
QPushButton *connectButton2 = msgBox.addButton(tr("CD/DVD"), QMessageBox::ActionRole);
//msgBox.setStandardButtons(QMessageBox::("ISO File") | QMessageBox::("CD/DVD"));
msgBox.exec();
if (msgBox.clickedButton() == connectButton) {
QString iso = QFileDialog::getOpenFileName(this,tr("Open Image"), Home.path() , tr("Image Files (*.iso)"));
if ( iso.isNull() ){
}
else{
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO2::Save boot image"),Home.path() + "/A-iso_extractedBoot" );
if (!fileName.isNull() ){
fileName.append(".boot");
ELtorito.start("geteltorito", QStringList() << "-o" << fileName << iso );
progBarra();
}
}
}
else if (msgBox.clickedButton() == connectButton2) {
QDir iso("/dev/cdrom");
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO2::Save boot image"),Home.path() + "/A-iso_extractedBoot" );
if (!fileName.isNull() ){
fileName.append(".boot");
ELtorito.start("geteltorito", QStringList() << "-o" << fileName << iso.path() );
progBarra();
}
}
}
acetoneiso2.4/acetoneiso/sources/udf.h 0000664 0001750 0001750 00000004237 11216475307 020422 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO2 is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO2 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO2. If not, see .
void acetoneiso::udf()
{
/* il modo di gestire il dialogo qt4 con il kdesu/gksu è sì una mia idea, ma il codice qui
sotto l'ho scritto grazie ad un lavoro precedente di Fabrizio Di Marco il quale
lo ringrazio con tanto affetto!! LLOL!
*/
QMessageBox::information(this, "AcetoneISO2",tr("to be done"));
/*
OPENFILE=`cat $HOME/.acetoneiso/acetoneiso.udf` > /dev/null 2>&1
rm -rf $HOME/virtual-drives/UDF/test > /dev/null 2>&1
home2="$HOME/virtual-drives/UDF"
#echo $home2
mkdir $HOME/virtual-drives/UDF > /dev/null 2>&1
if test -e /usr/bin/kdesu
then
kdesu "modprobe udf"
kdesu "mount -t udf -o loop,utf8 $OPENFILE $home2" > /dev/null 2>&1
mkdir $HOME/virtual-drives/UDF/test > /dev/null 2>&1
if test -e $HOME/virtual-drives/UDF/test
then
rm -rf $HOME/virtual-drives/UDF/test
kdialog --msgbox "Could not mount UDF ISO filesystem"
exit
else
kfmclient openURL $HOME/virtual-drives/UDF > /dev/null 2>&1
exit
fi
else
gksu "modprobe udf"
gksu "mount -t udf -o loop,utf8 $OPENFILE $home2" > /dev/null 2>&1
mkdir $HOME/virtual-drives/UDF/test > /dev/null 2>&1
if test -e $HOME/virtual-drives/UDF/test
then
rm -rf $HOME/virtual-drives/UDF/test
zenity --info --text="Could not mount UDF ISO filesystem"
exit
else
nautilus $HOME/virtual-drives/UDF > /dev/null 2>&1
exit
fi
exit
fi
#mount -t udf -o loop,utf8 /home/bullet/shrek.iso /home/bullet/virtual-drives/UDF/
*/
}
acetoneiso2.4/acetoneiso/sources/burn_iso_2_cd.h 0000664 0001750 0001750 00000003550 11513606137 022345 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#ifndef BURN_ISO2CD_H
#define BURN_ISO2CD_H
#include
#include
#include
#include
#include
#include "../build/ui_burn_iso_2_cd.h"
//
class burniso2cd : public QDialog, public Ui::burniso2cd
{
Q_OBJECT
public:
burniso2cd( QWidget * parent = 0, Qt::WFlags f = 0 );
QStringList device_path;
QStringList id_device;
QByteArray erase_output;
bool is_erasing;
bool loaded_success;
QTimer *timer;
QString disc_real_type;
QString imageToBurn;
QHash hash_speed;
QStringList arraySpeed;
int itemRemovedSpeed;
QString imageType;
QString realSuffix;
private slots:
void start_erase();
void device_scan();
void media_available();
void combo_changed(int n);
void clean_combobox_speed();
void select_image();
void estimated_time() ;
void updateEraseDisplay();
void printOutErase(int, QProcess::ExitStatus);
void disable_buttons();
void enable_buttons();
void play_success();
void play_error();
private:
QProcess *erase;
QProcess *cue2tocP;
};
#endif
acetoneiso2.4/acetoneiso/sources/burn_iso_2_dvd.cpp 0000664 0001750 0001750 00000045377 11513606137 023104 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "burn_iso_2_dvd.h"
//
burniso2dvd::burniso2dvd( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)
{
setupUi(this);
is_erasing = false;
loaded_success = false;
QCoreApplication::setApplicationName("AcetoneISO");
connect( start, SIGNAL( clicked() ), this, SLOT( start_erase() ) );
connect( push_select_image, SIGNAL( clicked() ), this, SLOT( select_image() ) );
textBrowser->clear();
//database speed for dvd
hash_speed[0] = "2";
hash_speed[1] = "2";
hash_speed[2] = "2";
hash_speed[3] = "2";
hash_speed[4] = "4";
hash_speed[5] = "4";
hash_speed[6] = "4";
hash_speed[7] = "6";
hash_speed[8] = "6";
hash_speed[9] = "6";
hash_speed[10] = "8";
hash_speed[11] = "8";
hash_speed[12] = "8";
hash_speed[13] = "10";
hash_speed[14] = "10";
hash_speed[15] = "12";
hash_speed[16] = "12";
hash_speed[17] = "16";
itemRemovedSpeed = 0;
device_scan();
}
void burniso2dvd::device_scan() {
/*creo la connessione dbus a hal*/
QDBusConnection conn = QDBusConnection::systemBus();
QDBusInterface hal("org.freedesktop.Hal", "/org/freedesktop/Hal/Manager", "org.freedesktop.Hal.Manager", conn);
/*cerco tutti i dispositivi storage.cdrom con hal via dbus*/
QDBusMessage msg = hal.call( "FindDeviceByCapability", "storage.cdrom");
QList devices = msg.arguments();
/*per ogni udi (dispositivo cdrom) che trovo, ricavo vendor, model, velocità e path*/
//disabilita tutto se non viene trovato almeno 1 periferica
int count = devices.count();
if (count < 1) {
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found.\nIf you think this is a bug please report it."));
disable_buttons();
devices_combo->addItem( tr("No CD/DVD device found") );
return;
}
QIcon icon_optical_drive( ":/images/drive-optical.png" );
//scannerizzo tutte le periferiche e le aggiungo nella combobox. questa funzione viene chiamato una sola volta.
QVariant name(devices);
int cc = 0;
int success = -1;
while (cc < count) {
QString cdrom = name.toStringList()[0];
if (cdrom.isEmpty()) {
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found.\nIf you think this is a bug please report it."));
disable_buttons();
devices_combo->addItem( tr("No CD/DVD device found") );
return;
}
// qDebug() << "Found device: " << cdrom;
QDBusInterface device("org.freedesktop.Hal", cdrom, "org.freedesktop.Hal.Device", conn);
//vedo se effittivamente il device puo scrivere su dischi dvd-rw
//controllo in seguito se puo scrivere su dvd+rw dal momento che se puo scrivere su dvd+rw puo anche farlo su dvd-rw ma questo ragionamento non funziona al contrario
msg = device.call("GetProperty", "storage.cdrom.dvdrw");
QVariant vcan_write_cdrw = msg.arguments()[0];
bool can_write_cdrw = vcan_write_cdrw.toBool();
if (!can_write_cdrw) {
cc = cc + 1;
continue;
}
//success si ricorda sempre la posizione in cui aggiungere all'array indipendentemente dal cc del ciclo while
success = success + 1;
//aggiungo id nell'array
id_device.insert(success, cdrom);
/*ottengo il nome del vendor del cdrom*/
msg = device.call("GetProperty", "storage.vendor");
QVariant var = msg.arguments()[0];
QString vendor = var.toStringList()[0];
//qDebug() << "VENDOR" << vendor;
/*ottengo il nome del modello del cdrom*/
msg = device.call("GetProperty", "storage.model");
QVariant var2 = msg.arguments()[0];
QString model = var2.toStringList()[0];
// qDebug() << "MODEL" << model;
/*ottengo il path del dispositivo cdrom*/
msg = device.call("GetProperty", "block.device");
QVariant var3 = msg.arguments()[0];
device_path.insert(success, var3.toStringList()[0]);
// qDebug() << "PATH" << device_path;
msg = device.call("GetProperty", "storage.firmware_version");
QVariant firmwarev = msg.arguments()[0];
QString firmware = firmwarev.toString();
/*aggiungo il nome del device nella combobox*/
QString final_device = vendor.append( "\t" + model + " " + firmware );
devices_combo->insertItem(success,icon_optical_drive, " " + final_device );
cc = cc + 1;
}
media_available();
//if < 1 significa che sebbene ci sono 1 o piu periferiche cdrom, nessuna e' capace di scrivere su cd-rw
if (devices_combo->count() < 1) {
disable_buttons();
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found capable of writing to DVD-RW discs.\nIf you think this is a bug please report it."));
return;
}
else { //c'e' almeno 1 periferica cdrom in grado di scrivere su dischi cd-rw
loaded_success = true;
//crea un timer cosi aggiorna automaticamente la label_info
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(media_available()));
timer->start(2000);
connect( devices_combo, SIGNAL(currentIndexChanged(int) ), this , SLOT( combo_changed(int) ) );
}
}
void burniso2dvd::media_available() {
//qDebug() << "media_available()";
//se sto masterizzando deve uscire da qui
if (is_erasing) {
start->setEnabled(false);
label_info->setText(tr("AcetoneISO is burning your image to the") + " " + discotipo + "..." );
return;
}
//if < 1 it means there are no devices capaci di scrivere su dischi cd-rw
if (devices_combo->count() < 1) {
clean_combobox_speed();
return;
}
//se non e' visibile deve disconnettere le connessioni
if (loaded_success) {
if (!devices_combo->isVisible()) {
disconnect(devices_combo, 0, 0, 0);
disconnect(timer, 0, 0, 0);
loaded_success = false;
}
}
estimated_time() ;
//scopro se ho un cd dentro il device
/*creo la connessione dbus a hal*/
QDBusConnection conn = QDBusConnection::systemBus();
QDBusMessage msg;
//prendo indice corrente della combobox cosi so chi l'id della periferica selezionata
int current_index = devices_combo->currentIndex();
QString id = id_device[current_index];
//mi connetto alla periferica corrente selezionata in combobox
QDBusInterface device("org.freedesktop.Hal", id, "org.freedesktop.Hal.Device", conn);
//vedo se e' inserito un cd
msg = device.call("GetProperty", "storage.removable.media_available");
QVariant var5 = msg.arguments()[0];
bool opticDev = var5.toBool();
QString plusminus = QString::fromUtf8("\xC2\xB1"); //0xC2 0xB1
if (!opticDev) {
label_info->setText(tr("Insert a DVD") + plusminus + "R/RW " + tr("disc.") );
start->setEnabled(false);
clean_combobox_speed();
//devices_combo->setItemText(cc,tr("No Media Inserted, insert a media and click on refresh button."));
return;
}
//vedo il tipo di cd inserito
QDBusMessage fbp;
QDBusInterface newh("org.freedesktop.Hal", "/org/freedesktop/Hal/Manager", "org.freedesktop.Hal.Manager", conn);
fbp = newh.call("FindDeviceStringMatch", "info.parent", id);
QList var6 = fbp.arguments();
QString disc_type = var6.at(0).toString();
QDBusInterface device_type("org.freedesktop.Hal", disc_type, "org.freedesktop.Hal.Device", conn);
msg = device_type.call("GetProperty", "volume.disc.type");
QString var7 = msg.arguments()[0].toString();
QString disc_is = var7;
//ferma in caso che il disco inserito non sia un disco DVD±R/RW
QStringList dvd_type;
dvd_type << "dvd_rw" << "dvd_plus_rw" << "dvd_r" << "dvd_plus_r" << "dvd_r_dl" << "dvd_plus_r_dl" << "dvd_plus_rw_dl";
if (!dvd_type.contains(disc_is) ) {
label_info->setText(tr("The disc isn't a DVD") + plusminus + "R/RW. " +tr("Please insert a DVD") + plusminus + "R/RW " + tr("disc."));
clean_combobox_speed();
return;
}
dvdHash["dvd_rw"] = "DVD-RW";
dvdHash["dvd_plus_rw"] = "DVD+RW";
dvdHash["dvd_r"] = "DVD-R";
dvdHash["dvd_plus_r"] = "DVD+R";
dvdHash["dvd_r_dl"] = "DVD-R DL";
dvdHash["dvd_plus_r_dl"] = "DVD+R DL";
dvdHash["dvd_plus_rw_dl"] = "DVD+RW DL";
dvdHashStoragetype["dvd_rw"] = "dvdrw";
dvdHashStoragetype["dvd_plus_rw"] = "dvdplusrw";
dvdHashStoragetype["dvd_r"] = "dvdr";
dvdHashStoragetype["dvd_plus_r"] = "dvdplusr";
dvdHashStoragetype["dvd_r_dl"] = "dvdrdl";
dvdHashStoragetype["dvd_plus_r_dl"] = "dvdplusrdl";
dvdHashStoragetype["dvd_plus_rw_dl"] = "dvdplusrwdl";
discotipo = dvdHash[disc_is];
msg = device_type.call("GetProperty", "volume.disc.is_blank");
bool disc_blank = msg.arguments()[0].toBool();
//if disc is not empty and is NOT a rw disc
if (!disc_blank and !disc_is.contains("rw", Qt::CaseInsensitive) ) {
label_info->setText( tr("You inserted a ") + dvdHash[disc_is] + tr(" that is not Empty. Please put an empty DVD") + plusminus + "R/RW " + tr("disc.") );
start->setEnabled(false);
clean_combobox_speed();
return;
}
msg = device.call("GetProperty", "storage.cdrom." + dvdHashStoragetype[disc_is] );
QVariant vcan_write_cdrw = msg.arguments()[0];
bool discobool = vcan_write_cdrw.toBool();
if (!discobool) {
label_info->setText( tr("You inserted a ") + discotipo + tr(" disc, however your CD/DVD device is uncapable of writing to such discs.") );
start->setEnabled(false);
clean_combobox_speed();
return;
}
//check and set combobox speed
msg = device.call("GetProperty", "storage.cdrom.write_speeds");
QVariant vspeed = msg.arguments()[0];
QStringList slist = vspeed.toStringList();
int count_speed = slist.count();
int count_combobox = (combo_speed->count() ) + itemRemovedSpeed;
//fill speed array only one 1 time, occurs again when media changes
if ( count_speed != count_combobox ) {
clean_combobox_speed();
int count_cycle = 0;
while (count_cycle < count_speed) {
QString string_speed = slist[count_cycle];
qreal q_speed = string_speed.toFloat() / 1024 ;
int int_speed = qRound(q_speed);
if (int_speed > 17) {
int_speed = 16; //any speed above 17 force to speed 16x
}
string_speed = hash_speed[int_speed] + "x";
//qDebug() << string_speed;
arraySpeed << string_speed; //put speed in array
count_cycle++;
}
//remove duplicate speeds from array and fill combobox speed
itemRemovedSpeed = arraySpeed.removeDuplicates();
int countArraySpeed = arraySpeed.count();
int abc = 0;
while (abc < countArraySpeed) {
combo_speed->insertItem(abc, arraySpeed[abc] );
abc = abc + 1;
}
}
push_select_image->setEnabled(true);
label_4->setEnabled(true);
iso_to_burn_label->setEnabled(true);
discIsNotEmptyAndRWType = "false";
//if disc is not empty and IS a rw disc
if (!disc_blank and disc_is.contains("rw", Qt::CaseInsensitive) ) {
label_info->setText( tr("You inserted a ") + dvdHash[disc_is] + tr(" that is not Empty. If you continue, AcetoneISO will overwrite your disc!") );
discIsNotEmptyAndRWType = "true";
}
else {
label_info->setText(discotipo + " " + tr("succesfully found in device."));
}
}
//cleans combobox speed when something changed, example: user put new cd, changes drive, removes cd
void burniso2dvd::clean_combobox_speed() {
combo_speed->setEnabled(false);
int count_combobox = combo_speed->count();
int count_cycle = 0;
while (count_cycle < count_combobox) {
combo_speed->removeItem(count_cycle);
count_cycle++;
}
combo_speed->setEnabled(true);
//reset array speed
arraySpeed.clear();
//reset number items removed if duplicates speeds found
itemRemovedSpeed= 0;
}
//gestisce quando l'utente cambia periferica nella combobox
void burniso2dvd::combo_changed(int n) {
int a;
a = n;
clean_combobox_speed();
media_available();
}
//user wants to choose which image to burn
void burniso2dvd::select_image() {
QDir Home = QDir::home();// entro nella home dell'utente
QString isoToBurnDialog;
isoToBurnDialog = QFileDialog::getOpenFileName(this,tr("Select ISO Image to Burn"), Home.path() , tr("ISO Image Files (*.iso)"));
if ( isoToBurnDialog.isNull() ) {
return;
}
QFileInfo isoInfo(isoToBurnDialog);
isoToBurnDialog = isoInfo.absoluteFilePath();
imageToBurn = isoToBurnDialog;
//image type?
QStringList checkSupported;
checkSupported << "iso";
QString imageType = (isoInfo.suffix()).toLower();
if (!checkSupported.contains(imageType) ) {
QMessageBox::warning(this, "AcetoneISO::File Unsupported",tr("The Image you selected is unsupported from AcetoneISO."));
start->setEnabled(false);
return;
}
QFile fileExists(imageToBurn);
if (!fileExists.exists()) {
QMessageBox::warning(this, "AcetoneISO::File Not Found",tr("The Image you selected does not exist."));
start->setEnabled(false);
return;
}
iso_to_burn_label->setText(imageToBurn);
}
//estimates time to burn image based on speed
void burniso2dvd::estimated_time() {
int count_combobox = combo_speed->count();
if (count_combobox < 1) {
estimated_label->setText("");
push_select_image->setEnabled(false);
label_4->setEnabled(false);
iso_to_burn_label->setEnabled(false);
start->setEnabled(false);
return;
}
imageToBurn = iso_to_burn_label->text();
QFile fileExists(imageToBurn);
if (!fileExists.exists()) {
start->setEnabled(false);
return;
}
start->setEnabled(true);
QFileInfo isoInfo(imageToBurn);
QString fileName = isoInfo.fileName();
//estimated time: size / writing speed
qint64 imageSize = (isoInfo.size() / 1024) / 1024;
QString current_speed = combo_speed->currentText();
current_speed = ( current_speed.split("x"))[0] ;
int key_hash = hash_speed.key(current_speed);
if (key_hash < 1) {
key_hash = 1;
}
current_speed = QString::number(key_hash);
float f_final_time = imageSize / current_speed.toFloat() + 16;
int final_time = qRound(f_final_time);
QString seconds_or_minutes;
if ( f_final_time < 60) {
seconds_or_minutes = QString::number(final_time) + tr(" seconds");
}
else {
f_final_time = f_final_time / 60;
final_time = qRound(f_final_time);
seconds_or_minutes = QString::number(final_time) + tr(" minutes");
}
estimated_label->setText( tr("Estimated time to burn ") + fileName + ": " + seconds_or_minutes );
}
void burniso2dvd::start_erase() {
QString type = discotipo;
QMessageBox msgBox;
QString question = "";
if (discIsNotEmptyAndRWType == "true") {
question = tr("You decided to burn the image on the") + " " + discotipo + tr(".\nThe disc is NOT empty so if you continue,\nAcetoneISO will overwrite all your data.\nAre you sure?");
}
else {
question = tr("You decided to burn the image on the") + " " + discotipo + tr("\nAre you sure?");
}
discIsNotEmptyAndRWType = "false";
msgBox.setText( question );
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
switch (msgBox.exec()) {
case QMessageBox::Yes:
{
//continue below
}
break;
case QMessageBox::No:
{
return; //exit
}
break;
default:
// should never be reached
break;
}
disable_buttons();
QString dev = device_path.at(devices_combo->currentIndex());
//dev = dev.prepend("dev=");
textBrowser->clear();
erase = new QProcess();
erase->setReadChannel(QProcess::StandardOutput);
erase->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(erase, SIGNAL(readyReadStandardOutput()), SLOT(updateEraseDisplay() ));
connect(erase, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutErase(int, QProcess::ExitStatus)));
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
is_erasing = true;
//growisofs -dvd-compat -speed=N -Z /dev/dvd=image.iso
QString current_speed = combo_speed->currentText();
current_speed = ( current_speed.split("x"))[0];
dev = dev.append("=\"" + imageToBurn + "\"");
QString grow = "growisofs -dvd-compat -speed=" + current_speed + " -Z " + dev;
//qDebug() << grow;
erase->start(grow );
}
//fa loutput nel display del processo wodim
void burniso2dvd::updateEraseDisplay() {
erase_output = erase->readAllStandardOutput();
//questo evita che prende un output vuoto
if (erase_output.size() > 2 ) {
eraseoutput_real = erase_output; //questo si ricorda sempre dell'ultimo output NON vuoto
textBrowser->setPlainText(erase_output);
}
else {
textBrowser->setPlainText(eraseoutput_real);
}
}
//gestisce quando il processo dvd+rw-format finisce
void burniso2dvd::printOutErase(int, QProcess::ExitStatus) {
iso_to_burn_label->setText("");
enable_buttons();
is_erasing = false;
int valore_uscita = erase->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
textBrowser->clear();
QWidget::close ();
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
}
//abilita i bottoni
void burniso2dvd::enable_buttons() {
start->setEnabled(true);
devices_combo->setEnabled(true);
combo_speed->setEnabled(true);
push_select_image->setEnabled(true);
}
//disabilita i bottoni
void burniso2dvd::disable_buttons() {
start->setEnabled(false);
devices_combo->setEnabled(false);
combo_speed->setEnabled(false);
push_select_image->setEnabled(false);
}
void burniso2dvd::play_success() {
/*
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::Path path;
mediaObject = new Phonon::MediaObject();
audioOutput = new Phonon::AudioOutput(Phonon::NoCategory);
path = Phonon::createPath(mediaObject, audioOutput);
QString file(":/audio/success.ogg");
mediaObject->setCurrentSource(Phonon::MediaSource(file));
mediaObject->play();
*/
}
void burniso2dvd::play_error() {
/*
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::Path path;
mediaObject = new Phonon::MediaObject();
audioOutput = new Phonon::AudioOutput(Phonon::NoCategory);
path = Phonon::createPath(mediaObject, audioOutput);
QString file(":/audio/error.ogg");
mediaObject->setCurrentSource(Phonon::MediaSource(file));
mediaObject->play();
*/
}
acetoneiso2.4/acetoneiso/sources/mount.h 0000664 0001750 0001750 00000014340 11503365416 021000 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::mount()
{
if (QMainWindow::isMinimized()) {
QMainWindow::showNormal();
}
if (QMainWindow::isHidden()) {
QMainWindow::showNormal();
}
QDir Home = QDir::home();// entro nella home dell'utente
QString isodamontare;
isodamontare = QFileDialog::getOpenFileName(this,tr("Open Image"), Home.path() , tr("Image Files (*.iso *.bin *.mdf *.nrg *.img)"));
if ( isodamontare.isNull() ) {
return;
}
immagine_con_percorso = isodamontare;
global_functions_mount(immagine_con_percorso);
}
//funzione che effitivamente monta l'immagine con processo fuse
void acetoneiso::Monta( QString &image, QString &destination )
{
QString alog( QDir::home().path() + "/.acetoneiso/acetoneiso.log" );
//file di log
QFile log( alog );
FUse.setReadChannel(QProcess::StandardOutput);//imposto il canale di lettura del processo
FUse.setStandardOutputFile( alog, QIODevice::Truncate );//l'output di va nel file alog
FUse.start("fuseiso",QStringList() << image << destination << "-o" << "nonempty" );
}
//questa funzione si occupa di mettere l'immagine nei display e poi chiamare il file manager
void acetoneiso::openBrowser( QString &destination, QString onlyfile, float divide, QString &temporary, QString image_with_path )
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString strc = (leggiRigo( 3, &file ));
QDir destDir( destination );
if( destDir.count() > 2 ) { //se il contenuto della cartella montata non è nullo
QIcon icona( ":/images/Aiso2.png");
QDir Dest( destination );
QString name = Dest.dirName(); // voglio il nome della periferica virtuale per sapere quale item inserire
listWidget_2->insertItem(name.toInt(), " VD-" + name + " " + onlyfile + " " + QString::number(divide) + "MB");
//cronologia
QFile history_conf(Home.path() + "/.acetoneiso/history.conf");
history_conf.open(QIODevice::ReadWrite);
QTextStream history_out(&history_conf);
QString history_line = history_out.readAll();
//evita occorrenze nel display cronologia
if(!history_line.contains(image_with_path, Qt::CaseSensitive)) {
history_out << (image_with_path + "\n");
history_conf.close();
history->insertItem(name.toInt(), image_with_path );
}
history_conf.close();
QFile f1(temporary + "/" + name);
f1.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&f1);
out << (" VD-" + name + " " + onlyfile + " " + QString::number(divide) + "MB");
status_mounted_no_boot();
immagine_con_percorso = name;
openFileManager(immagine_con_percorso);
f1.close();
}
file.close();
}
void acetoneiso::cmlMount()
{
int argNumber = qApp->arguments().size();
if( argNumber > 1 ) { //se gli argomenti presenti sono maggiori di 2 incluso il nome del programma che è argv[0]!
//tabWidget->setCurrentIndex(1);
QString isodamontare = qApp->arguments().at(1) ; //prendo l'argomento 1 da linea di comando
//qDebug() << "STO ESEGUENDO IL MOUNT DA COMMAND LINE";
immagine_con_percorso = isodamontare;
global_functions_mount(immagine_con_percorso);
}
}
//gestisce context menu del display mount
void acetoneiso::mountdisplaycontextmenu(const QPoint & posm) {
QIcon mount_icon( ":/images/file_manager.png" );
QIcon delete_icon( ":/images/document-revert.png" );
QMenu *userListMenum;
userListMenum = new QMenu();
QAction *mountActionm = userListMenum->addAction( mount_icon, tr("open image in file manager") );
QAction *deleteActionm = userListMenum->addAction( delete_icon, tr("unmount") );
QPoint globalPos = listWidget_2->mapToGlobal(posm); // Map the global position to the userlist
QModelIndex t = listWidget_2->indexAt(posm);
//immagine_con_percorso variabile globale che contiene percorso immagine
connect( mountActionm, SIGNAL( triggered() ), this, SLOT( openfilemanager_contextmenu() ) );
connect( deleteActionm, SIGNAL( triggered() ), this, SLOT( unmount_contextmenu() ) );
if( t.row() >= 0 ) { //previene un segfault se clicco col destro sullo spazio vuoto
listWidget_2->item(t.row())->setSelected(true); // even a right click will select the item
immagine_con_percorso.clear();
int row = listWidget_2->currentRow() + 1;
immagine_con_percorso = QString::number( row ) ;
QStringList smonta = listWidget_2->item(t.row())->text().split(QRegExp("\\s+"));
//gestisce lo spazio nel nome altrimenti lo taglia
int strl = smonta.size();
smonta.removeAt(strl - 1);
smonta.removeAt(0);
smonta.removeAt(0);
strl = smonta.size();
QString h = "";
int ss = 0;
while (ss < strl) {
h = h.append(smonta[ss]);
ss = ss + 1;
}
//qDebug() << h;
mountActionm->setText(tr("open ") + h + tr(" in file manager"));
deleteActionm->setText(tr("unmount ") + h);
userListMenum->exec(globalPos);
}
}
//apri il file manager dal context menu del display monta
void acetoneiso::openfilemanager_contextmenu() {
openFileManager(immagine_con_percorso);
}
//chiamo funzione smontaggio per display del montaggio
void acetoneiso::unmount_contextmenu() {
umount();
}
//gestisce doppio click nel display monta
void acetoneiso::open_mounted(QListWidgetItem *item)
{
QString vd_number(item->text());
int row = listWidget_2->currentRow() + 1;
immagine_con_percorso = QString::number( row ) ;
openFileManager(immagine_con_percorso);
}
acetoneiso2.4/acetoneiso/sources/backup_audio.h 0000664 0001750 0001750 00000005243 11470107072 022261 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::backupaudio()
{
QDir bin("/usr/bin");
QFile cdrdao;
QDir::setCurrent( bin.path() );
cdrdao.setFileName("cdrdao");
if (cdrdao.exists())
{
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("Please note this utility will generate a TOC/BIN image which could not be mounted or read in any way.\nHowever You can burn it later with AcetoneISO burning tools!"));
bool ok;
QString text = QInputDialog::getText(this, tr("AcetoneISO::Insert cd/dvd device"),
tr("Please specify your CD/DVD device. If you aren't sure just leave default.\nTypical devices are:\n/dev/cdrom or /dev/cdrom0 or /dev/cdrom1 or /dev/dvd and follow this symbolism."), QLineEdit::Normal,
"/dev/cdrom", &ok);
if (ok && !text.isEmpty())
{
QDir Home = QDir::home();
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save BIN Audio file"),
Home.path() + "/AcetoneISO_cdAudio",
tr("Images (*.bin)"));
if ( fileName.isNull() )
{
return;
}
QString filebin = fileName.append(".bin");
QString filetoc = fileName.append(".toc");
UMountcdrom.start("umount",QStringList() << text);
showProgressDisplay();
BAckaudio = new QProcess();
BAckaudio->setReadChannel(QProcess::StandardOutput);
BAckaudio->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(BAckaudio, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_BAckaudio() ));
connect(BAckaudio, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutbackaudio(int, QProcess::ExitStatus)));
BAckaudio->start("cdrdao",QStringList() << "read-cd" << "--datafile" << filebin << "--device" << text << "--buffers" << "64" << "--driver" << "generic-mmc-raw" << filetoc);
}
}
else
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no cdrdao found in /usr/bin"));
}
acetoneiso2.4/acetoneiso/sources/md5check.h 0000664 0001750 0001750 00000010155 11273112126 021311 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::md5check()
{
QDir Home = QDir::home();
QString immagine = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Image"), Home.path(), tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d)"));
if (!immagine.isEmpty() ){
MD5.setReadChannel(QProcess::StandardOutput);
MD5.start("md5sum", QStringList() << immagine );
//progBarra();
if (!MD5.waitForFinished()){
qDebug() << "Make failed:" << MD5.errorString();
}
else{
QByteArray ba = MD5.readAll();
QString s( ba );
QMessageBox::information(this, "AcetoneISO::Md5 Check", s );
}
}
}
void acetoneiso::md5generate()
{
QDir Home = QDir::home();
QString immagine = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Image"), Home.path(), tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d)"));
if (!immagine.isNull() ){
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save Md5 text file"),Home.path() + "/md5.txt",
tr("Md5 (*.md5)"));
if (!fileName.isNull()){
MD5.setReadChannel(QProcess::StandardOutput);
MD5.start("md5sum", QStringList() << immagine );
//progBarra();
if (!MD5.waitForFinished()){
qDebug() << "Make failed:" << MD5.errorString();
}
else{
QByteArray ba = MD5.readAll();
QString s( ba );
//QMessageBox::question(this, "AcetoneISO::Warning!", s );
QFile f1(fileName);
f1.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&f1);
out << (ba);
}
}
}
}
void acetoneiso::sha1() {
QDir Home = QDir::home();
QString immagine = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Image"), Home.path(), tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d)"));
if (immagine.isNull() ){
return;
}
SHA.setReadChannel(QProcess::StandardOutput);
SHA.start("sha1sum", QStringList() << immagine );
SHA.waitForFinished();
QByteArray ba = SHA.readAll();
QString s( ba );
QMessageBox::information(this, "AcetoneISO::Sha1 Check", s );
}
void acetoneiso::sha256() {
QDir Home = QDir::home();
QString immagine = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Image"), Home.path(), tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d)"));
if (immagine.isNull() ){
return;
}
SHA.setReadChannel(QProcess::StandardOutput);
SHA.start("sha256sum", QStringList() << immagine );
SHA.waitForFinished();
QByteArray ba = SHA.readAll();
QString s( ba );
QMessageBox::information(this, "AcetoneISO::Sha256 Check", s );
}
void acetoneiso::sha384() {
QDir Home = QDir::home();
QString immagine = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Image"), Home.path(), tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d)"));
if (immagine.isNull() ){
return;
}
SHA.setReadChannel(QProcess::StandardOutput);
SHA.start("sha384sum", QStringList() << immagine );
SHA.waitForFinished();
QByteArray ba = SHA.readAll();
QString s( ba );
QMessageBox::information(this, "AcetoneISO::Sha384 Check", s );
}
acetoneiso2.4/acetoneiso/sources/formatcd.h 0000664 0001750 0001750 00000010354 11216475307 021440 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::formatcd()
{
umountcheck();
QDir Home = QDir::home();
QString device = deviceID();
QString devid = "dev=";
QString devicefinal = devid.append(device);
QMessageBox msgBox;
msgBox.setText(tr("Select a format type:\nFast method is recommended."));
QPushButton *connectButton = msgBox.addButton(tr("Fast"), QMessageBox::ActionRole);
QPushButton *connectButton2 = msgBox.addButton(tr("Complete"), QMessageBox::ActionRole);
QString alog( QDir::home().path() + "/.acetoneiso/acetoneiso.log" );
//file di log
QFile log( alog );
BIso.setReadChannel(QProcess::StandardOutput);//imposto il canale di lettura del processo
BIso.setStandardOutputFile( alog, QIODevice::Truncate );//l'output di va nel file alog
//msgBox.setStandardButtons(QMessageBox::("ISO File") | QMessageBox::("CD/DVD"));
msgBox.exec();
if (msgBox.clickedButton() == connectButton) {
//sono nel caso FAST
//in attesa che l'utente possa settare il proprio masterizzatore
BIso.start("wodim",QStringList() << devicefinal << "blank=fast" );
progBarra();
}
else if (msgBox.clickedButton() == connectButton2) {
//in attesa che l'utente possa settare il proprio masterizzatore
QString number;
//number = QString::number(i);
QString fspeed = "speed=";
QString speed;
//speed = fspeed.append( number );
//QMessageBox::information(this, "AcetoneISO", speed);
BIso.start("wodim",QStringList() << devicefinal << "blank=all" );
progBarra();
}
}
//for fast format= wodim dev=/dev/cdrw blank=fast
//for complete format= wodim dev=/dev/cdrw blank=all
void acetoneiso::formatdvd()
{
QDir Home = QDir::home();
QMessageBox msgBox;
msgBox.setText(tr("We highly recommend to NOT erase a DVD.\nAcetoneISO can simply overwrite existing data so there is no need to erase it.\nAlso remember that erasing a lot of times a dvd will damage the media.\nDo You want to continue anyways?"));
QPushButton *connectButton = msgBox.addButton(tr("Yes"), QMessageBox::ActionRole);
QPushButton *connectButton2 = msgBox.addButton(tr("No"), QMessageBox::ActionRole);
//msgBox.setStandardButtons(QMessageBox::("ISO File") | QMessageBox::("CD/DVD"));
msgBox.exec();
if (msgBox.clickedButton() == connectButton) {
umountcheck();
bool ok;
int i = QInputDialog::getInteger(this, tr("AcetoneISO::Erase Speed"),tr("Please insert the erasing speed:"), 4, 2, 16, 2, &ok);
if (!ok) {
}
else {
//in attesa che l'utente possa settare il proprio masterizzatore
QString number;
number = QString::number(i);
QString fspeed = "speed=";
QString speed;
speed = fspeed.append( number );
//QMessageBox::information(this, "AcetoneISO", speed);
QString alog( QDir::home().path() + "/.acetoneiso/acetoneiso.log" );
//file di log
QFile log( alog );
BIso.setReadChannel(QProcess::StandardOutput);//imposto il canale di lettura del processo
BIso.setStandardOutputFile( alog, QIODevice::Truncate );//l'output di va nel file alog
BIso.start("wodim",QStringList() << "dev=/dev/dvdrw" << speed << "-format" );
progBarra();
}
}
else if (msgBox.clickedButton() == connectButton2) {
}
}
//messaggi
void acetoneiso::printOutburniso(int, QProcess::ExitStatus)
{
int valore_uscita = BIso.exitCode();
if(valore_uscita == 0)
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) + tr("\nPlease see the log file in ") + QDir::home().path() + ("/.acetoneiso/acetoneiso.log") );
}
acetoneiso2.4/acetoneiso/sources/foldertoiso.h 0000664 0001750 0001750 00000005540 11661006120 022156 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009,2010 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::foldertoiso() {
QFile mkisofs;
mkisofs.setFileName("/usr/bin/xorrisofs");
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString str1 = (leggiRigo( 1, &file ));
file.close();
if (!mkisofs.exists()) {
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no xorrisofs found in /usr/bin"));
return;
}
QString folder = QFileDialog::getExistingDirectory(this, tr("AcetoneISO::Select Folder to be Converted"), Home.path());
if (folder.isEmpty() ) {
return;
}
QDir fol (folder);
QString iso;
iso = fol.dirName();
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save ISO"), Home.path() , tr("Images(*.iso)"));
if ( fileName.isNull() ) {
return;
}
if (str1.contains("standard", Qt::CaseInsensitive)) {
showProgressDisplay();
MKisofs = new QProcess();
MKisofs->setReadChannel(QProcess::StandardOutput);
MKisofs->setProcessChannelMode(QProcess::MergedChannels);
connect(MKisofs, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_MKisofs() ));
connect(MKisofs, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOut(int, QProcess::ExitStatus)));
MKisofs->start("xorrisofs",QStringList() << "-R" << "-J" << "-o" << fileName << folder );
}
else {
bool ok;
QString text = QInputDialog::getText(this, tr("ISO ID"), tr("Please insert an ID for the ISO"), QLineEdit::Normal, tr(""), &ok);
if (!ok){
return;
}
showProgressDisplay();
MKisofs = new QProcess();
MKisofs->setReadChannel(QProcess::StandardOutput);
MKisofs->setProcessChannelMode(QProcess::MergedChannels);
connect(MKisofs, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_MKisofs() ));
connect(MKisofs, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOut(int, QProcess::ExitStatus)));
MKisofs->start("xorrisofs",QStringList() << "-R" << "-J" << "-V" << text << "-o" << fileName << folder );
}
file.close();
}
acetoneiso2.4/acetoneiso/sources/iso_from_pcgame.h 0000664 0001750 0001750 00000005065 11253524566 023000 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::isopcgame()
{
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("This utility will not do a 1:1 copy of your game! It will simply skip copyprotection errors.\nYou will need a no-cd fix cd/dvd to make the game work also known as crack.\nNote: if the game is very old and uses a mixed data/audio file system, this utility won't work. Sorry :("));
QFile mkisofs;
mkisofs.setFileName("/usr/bin/genisoimage");
QDir Home = QDir::home();
if (mkisofs.exists()) {
bool ok;
QString text = QInputDialog::getText(this, tr("AcetoneISO::Insert cd/dvd mount point"),
tr("Please specify your CD/DVD mount point. If you aren't sure just leave default.\nTypical mount points are:\n/media/cdrom or /media/cdrom0 or /media/cdrom1 and follow this symbolism."), QLineEdit::Normal,
"/media/cdrom0", &ok);
if (ok && !text.isEmpty()) {
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save ISO"),
Home.path() + "/AcetoneISO_PcGame",
tr("Images (*.iso)"));
if ( fileName.isNull() ) {
return;
}
fileName.append(".iso");
showProgressDisplay();
MKisofs = new QProcess();
MKisofs->setReadChannel(QProcess::StandardOutput);
MKisofs->setProcessChannelMode(QProcess::MergedChannels);
connect(MKisofs, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_MKisofs() ));
connect(MKisofs, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOut(int, QProcess::ExitStatus)));
MKisofs->start("genisoimage",QStringList() << "-R" << "-J" << "-o" << fileName << text );
}
}
else
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no genisoimage found in /usr/bin"));
}
acetoneiso2.4/acetoneiso/sources/about.cpp 0000664 0001750 0001750 00000001633 11216475307 021306 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco & Marco Di Antonio (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include "about.h"
//
aboutDiag::aboutDiag( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)
{
setupUi(this);
}
//
acetoneiso2.4/acetoneiso/sources/global_functions.h 0000775 0001750 0001750 00000033062 11661006120 023160 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
//donazione
void acetoneiso::paypal() {
QUrl url("http://www.acetoneteam.org/viewpage.php?page_id=3");
QDesktopServices::openUrl(url);
}
//funzione che si occupa di vedere se c'e' una virtual drive libera, se c'e' chiama il mount passandogli il percorso dell immagine e del virtual drive libero
void acetoneiso::global_functions_mount(QString immagine_con_percorso) {
QFile fus;
fus.setFileName("/usr/bin/fuseiso");
if (!fus.exists()) {
QMessageBox::critical(this, "AcetoneISO::Warning", "Error: /usr/bin/fuseiso not found.\nPlease install fuseiso package.");
return;
}
create_virtual_drives();
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString strd = (leggiRigo( 4, &file ));
strd.remove(0,5);
strd.chop(1);
//controllo che se strd finisce con / allora si deve togliere.
if( strd.endsWith( "/" ) ) {
strd.chop(1);
}
QString isodamontare = immagine_con_percorso;
QDir Temp = QDir::temp();
Temp.cd("acetoneiso");
QString percorsoTemp = Temp.path();
QFile Mtab("/etc/mtab");//dichiaro un file Mtab che sarebbe /etc/mtab
Mtab.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString str1 = (Mtab.readAll());//leggo il contenuto del file mtab
QFileInfo fi(isodamontare);
QString onlyfile = fi.fileName();
QString image_with_path = isodamontare;
QFile getfile;
getfile.setFileName(isodamontare);
float bignum = getfile.size();
float divide;
divide = (bignum / 1000) / 1000 ;
QString percorsovirtuale;
int x = 1;
while( x < 8 ) {
if( !str1.contains( Home.path() + "/virtual-drives/" + QString::number( x ) ) ) {
percorsovirtuale = ( Home.path() + "/virtual-drives/" + QString::number( x ) );
Monta( isodamontare, percorsovirtuale );
while( FUse.waitForFinished() ) { //aspetto che finisca il processo fuse per controllare se è stata montata
}
//check if udf filesystem
QFile checkUDF(percorsovirtuale + "/readme.txt");
checkUDF.open(QIODevice::ReadOnly);
QByteArray bcheckUDF = checkUDF.readAll();
QString readUDF = bcheckUDF;
if (readUDF.contains("This disc contains a \"UDF\" ", Qt::CaseInsensitive) ) {
QMessageBox::warning(this, "AcetoneISO::Warning",tr("This Image appears to have an UDF filesystem.\nTo correctly mount this image, open a terminal as root user and type:") + "\nmount -t auto -o loop \"" + image_with_path + "\" /$path_to_somwhere/ " );
}
openBrowser( percorsovirtuale, onlyfile, divide, percorsoTemp, image_with_path );
break;
}
else {
x++;
}
}
if( x == 8 ) {
QMessageBox::warning(this, "AcetoneISO::Warning",tr("All Virtual Drives are busy,\n"
"Unmount some Virtual Drive first!"));
}
Mtab.close();
file.close();
}
//gestisce l'apertura del file manager in base alle opzioni
void acetoneiso::openFileManager(QString immagine_con_percorso) {
QDir Home = QDir::home();//entro nella home utente
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString strc = (leggiRigo( 3, &file ));
QString vd = Home.path() + "/virtual-drives/" + immagine_con_percorso;
if(strc.contains("kde", Qt::CaseInsensitive)) { // se nelle impostazioni ho come browser kde
BRowser.startDetached("dolphin",QStringList() << vd );
}
if(strc.contains("gnome", Qt::CaseInsensitive)) {
BRowser.startDetached("nautilus",QStringList() << vd );
}
if(strc.contains("thunar", Qt::CaseInsensitive)) {
BRowser.startDetached("thunar",QStringList() << vd );
}
if(strc.contains("lxde", Qt::CaseInsensitive)) {
BRowser.startDetached("pcmanfm",QStringList() << vd );
}
/*
if(strc.contains("nofilemanager", Qt::CaseInsensitive)) {
QMessageBox::warning(this, "AcetoneISO::Warning",tr("Even though the image is mounted, in the options you specified to not open a file manager.\nIf you want to change this behaviour, please open Options and set file manager there."));
}
*/
file.close();
}
//funzione che smonta limmagine dal display del montaggio
void acetoneiso::umount() {
if (!listWidget_2->currentItem() == 0)
{
QString oggetto(listWidget_2->currentItem()->text());
QChar periferica(oggetto[4]);
QString f1_string(periferica);//
QDir percorso = ( (QDir::home()).path() + "/virtual-drives/" + periferica );
QDir Temp = QDir::temp();
QFile f1;
f1.setFileName( Temp.path() + "/acetoneiso/" + f1_string );
QMessageBox msgBox;
msgBox.setText(tr("You decided to unmount:\n") + oggetto + tr("\nAre you sure?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
switch (msgBox.exec()) {
case QMessageBox::Yes:
{
//continue below
}
break;
case QMessageBox::No:
{
return; //exit
}
break;
default:
// should never be reached
break;
}
FUsermount.start("fusermount",QStringList() << "-u" << "-z" << percorso.path() );
int riga = listWidget_2->currentRow() ;
listWidget_2->takeItem( riga );
f1.remove();
FUsermount.waitForFinished();
remove_virtual_drives();
}
else {
QMessageBox::warning(this, "AcetoneISO::Warning",tr( "select an image to unmount from the virtual-drives display" ));
}
}
//creo virtual drives
void acetoneiso::create_virtual_drives() {
QDir Home = QDir::home();
Home.mkdir("virtual-drives");
Home.cd("virtual-drives");
Home.mkdir("1");
Home.mkdir("2");
Home.mkdir("3");
Home.mkdir("4");
Home.mkdir("5");
Home.mkdir("6");
Home.mkdir("7");
Home.mkdir("dvd");
}
//cancello cartella virtual-drives
void acetoneiso::remove_virtual_drives() {
QDir Home = QDir::home();
Home.rmdir("virtual-drives/1");
Home.rmdir("virtual-drives/2");
Home.rmdir("virtual-drives/3");
Home.rmdir("virtual-drives/4");
Home.rmdir("virtual-drives/5");
Home.rmdir("virtual-drives/6");
Home.rmdir("virtual-drives/7");
Home.rmdir("virtual-drives/dvd");
Home.rmdir("virtual-drives");
}
//carico tray icon
void acetoneiso::load_trayicon() {
AboutAction = new QAction(tr("About AcetoneISO"), this);
connect(AboutAction, SIGNAL(triggered()), this, SLOT(on_actionAbout_activated() ));
OptionsAction = new QAction(tr("Options"), this);
connect(OptionsAction, SIGNAL(triggered()), this, SLOT(on_options_nda_activated() ));
MountAction = new QAction(tr("Mount Image"), this);
connect(MountAction, SIGNAL(triggered()), this, SLOT(mount()));
restoreAction = new QAction(tr("&Restore"), this);
connect(restoreAction, SIGNAL(triggered()), this, SLOT(showNormal()));
quitAction = new QAction(tr("&Quit"), this);
connect(quitAction, SIGNAL(triggered()), this, SLOT(quitto()));
QIcon about_icon( ":/images/Acetino2.png" );
QIcon options_icon( ":/images/aoptions.png" );
QIcon mount_icon( ":/images/cdwriter_mount.png" );
QIcon restore_icon( ":/images/file_manager.png" );
QIcon exit_icon( ":/images/application-exit.png" );
quitAction->setIcon(exit_icon);
restoreAction->setIcon(restore_icon);
MountAction->setIcon(mount_icon);
AboutAction->setIcon(about_icon);
OptionsAction->setIcon(options_icon);
tray_has_loaded = false;
//load tray icon
QDir HomeT = QDir::home();
QFile fileT(HomeT.path() + "/.acetoneiso/acetoneiso_advanced.conf");
fileT.open(QIODevice::ReadOnly | QIODevice::Text);
QString tray = fileT.readAll();
if(tray.contains("enabletrayicon", Qt::CaseInsensitive)) {
trayIcon = new QSystemTrayIcon();
QIcon icon = QIcon(":/images/Acetino2.png");
trayIcon->setIcon(icon);
trayIcon->show();
trayIcon->setToolTip(tr("AcetoneISO I love You!"));
trayIconMenu = new QMenu(this);
trayIconMenu->addAction(AboutAction);
trayIconMenu->addAction(OptionsAction);
trayIconMenu->addSeparator();
trayIconMenu->addAction(MountAction);
trayIconMenu->addSeparator();
trayIconMenu->addAction(restoreAction);
trayIconMenu->addAction(quitAction);
trayIcon->setContextMenu(trayIconMenu);
tray_has_loaded = true;
connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason)));
}
}
//gestisco cosa fare quando lutente clicca su esci della tray icon
void acetoneiso::quitto() {
remove_virtual_drives();
closeAllTorrents();
QCoreApplication::quit();
}
//gestisco quando cambia la selezione nel display del montaggio, cosi avverto il bottone smonta che cambia nome con il nome
//dell'immagine
void acetoneiso::mountdisplayClicked() {
int size = listWidget_2->selectedItems().size();
if (size < 1) {
unmountLabel->setText("");
actionUnmount_Image->setText(tr("Unmount Image"));
pushButton_2->setEnabled(false);
actionUnmount_Image->setEnabled(false);
return;
}
pushButton_2->setEnabled(true);
actionUnmount_Image->setEnabled(true);
QString testo(listWidget_2->selectedItems()[0]->text()) ;
QStringList smonta = testo.split(QRegExp("\\s+"));
//gestisce lo spazio nel nome altrimenti lo taglia
int strl = smonta.size();
smonta.removeAt(strl - 1);
smonta.removeAt(0);
smonta.removeAt(0);
strl = smonta.size();
QString h = "";
int ss = 0;
while (ss < strl) {
h = h.append(smonta[ss]);
ss = ss + 1;
}
h = tr("Click Unmount button to unmount:") + " " + h;
unmountLabel->setText(h);
actionUnmount_Image->setText(h);
}
//nasconde display del processo
void acetoneiso::hide_process_display() {
textBrowser->clear();
textBrowser->hide();
pushButton_6->setEnabled(false);
pushButton_6->hide();
label_6->hide();
verticalSpacer->changeSize( 0,0,QSizePolicy::Ignored );
}
//mostra il display del processo in esecuzione e i relativi bottoni, label ecc
void acetoneiso::showProgressDisplay() {
label_6->show();
pushButton_6->show();
pushButton_6->setEnabled(false);
verticalSpacer->changeSize( 20,18,QSizePolicy::Fixed );
textBrowser->clear();
textBrowser->show();
disable_all_button_processes();
}
//disable all buttons per evitare di fare doppi processi in contemporanea
void acetoneiso::disable_all_button_processes() {
menuConversion->setEnabled(false);
menuUtilities->setEnabled(false);
menuArchive_Manager->setEnabled(false);
menuXvid_Videos->setEnabled(false);
menuAudio->setEnabled(false);
}
//riabilita tutti i bottoni disabilitati (che evitavano piu di un processo in contemporanea
void acetoneiso::restore_all_button_processes() {
menuConversion->setEnabled(true);
menuUtilities->setEnabled(true);
menuArchive_Manager->setEnabled(true);
menuXvid_Videos->setEnabled(true);
menuAudio->setEnabled(true);
}
//fa il display del processo vidgen
void acetoneiso::updateProgressDisplay_vidgen() {
process_output = VIdgen->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//fa il display del processo flv
void acetoneiso::updateProgressDisplay_flv() {
process_output = FLv->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//fa il display del processo extractaudiofromvideo
void acetoneiso::updateProgressDisplay_extractaudiofromvideo() {
process_output = extractaudiofromvideo->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//fa il display del processo utube
void acetoneiso::updateProgressDisplay_UTube() {
process_output = UTube->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//fa il display di mkisofs
void acetoneiso::updateProgressDisplay_MKisofs() {
process_output = MKisofs->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//fa il display di convert to iso e extract (poweriso)
void acetoneiso::updateProgressDisplay_POweriso() {
process_output = POweriso->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//fa il display del convertitore mac dmg ad iso(macimg)
void acetoneiso::updateProgressDisplay_MAcimg() {
process_output = MAcimg->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//fa il display del backup cd audio
void acetoneiso::updateProgressDisplay_BAckaudio() {
process_output = BAckaudio->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//fa il display del rip cd psx
void acetoneiso::updateProgressDisplay_PSxrip() {
process_output = PSxrip->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//display del rip dvd a xvid pass 1
void acetoneiso::updateProgressDisplay_RIp() {
process_output = RIp->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//display del rip dvd a xvid pass 2
void acetoneiso::updateProgressDisplay_RIp2() {
process_output = RIp2->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
//fa display del rar password
void acetoneiso::updateProgressDisplay_RAR() {
process_output = RAR->readAllStandardOutput();
textBrowser->setPlainText(process_output);
}
acetoneiso2.4/acetoneiso/sources/torrent.h 0000664 0001750 0001750 00000031524 11617560302 021333 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
//read torrent list file in case there are torrents to download
void acetoneiso::readTorrentList() {
QString saveTorrentToConfig = QDir::homePath() + "/.acetoneiso/torrentList.cfg";
QFile fileSave(saveTorrentToConfig);
if (!fileSave.exists() ) {
return;
}
fileSave.open(QIODevice::ReadOnly | QIODevice::Text);
fileSave.seek(0);
while (!fileSave.atEnd()) {
QString realread = fileSave.readLine() ;
realread = realread.remove("\n") ;
if (realread.isEmpty() ) {
continue;
}
QStringList list = realread.split("?;?");
if (list.count() < 2) {
continue;
}
QString filepath = list[0];
QString name = list[1];
QFile check(filepath);
if (!check.exists()) {
continue;
}
runTorrent(name,filepath);
// qDebug() << "File is: "<< filepath;
// qDebug() << "Name is: " << name << "\n";
}
fileSave.close();
}
//item selection changed in qtreewidget
void acetoneiso:: itemTorrentChanged() {
QList listaItems = torrentWidget->selectedItems();
if (listaItems.count() < 1) {
pauseTorrentButton->setEnabled(false);
removeTorrentButton->setEnabled(false);
indexTorrentIs = -1;
return;
}
indexTorrentIs = torrentWidget->indexOfTopLevelItem(listaItems[0]);
pauseTorrentButton->setEnabled(true);
removeTorrentButton->setEnabled(true);
}
//main tab index changed
void acetoneiso::mainTabChanged(int index) {
if (index != 2) {
dockWidget1->show();
return;
}
if (!dockWidget1->isFloating() ) {
dockWidget1->hide(); //hide if in torrent tab and its not floating
}
}
//opens torrent from http
void acetoneiso::openUrlTorrent() {
QFile checkAriaExist("/usr/bin/aria2c");
if (!checkAriaExist.exists() ) {
QMessageBox::critical(this, "AcetoneISO::Aria2c not found!",tr("Unable to find /usr/bin/aria2c file.\nPlease install aria2 package."));
return;
}
bool ok;
QString text = QInputDialog::getText(this, tr("AcetoneISO::Insert Torrent URL"),
tr("Insert Torrent URL:"), QLineEdit::Normal,
"", &ok);
if (!ok && text.isEmpty()) {
return;
}
qDebug() << text;
}
//opens torrent from local file
void acetoneiso::openTorrent() {
QFile checkAriaExist("/usr/bin/aria2c");
if (!checkAriaExist.exists() ) {
QMessageBox::critical(this, "AcetoneISO::Aria2c not found!",tr("Unable to find /usr/bin/aria2c file.\nPlease install aria2 package."));
return;
}
QDir Home = QDir::home();// entro nella home dell'utente
QString torrentOpenF;
torrentOpenF = QFileDialog::getOpenFileName(this,tr("Open Torrent"), Home.path() , tr("Torrent (*.torrent)"));
if ( torrentOpenF.isNull() ) {
return;
}
handleTorrentName(torrentOpenF);
}
//gets torrent real name to put in widget
void acetoneiso::handleTorrentName(QString torrent) {
global_torrent_file = torrent;
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
aria2cTorrentName = new QProcess();
aria2cTorrentName->setReadChannel(QProcess::StandardOutput);
aria2cTorrentName->setProcessChannelMode(QProcess::MergedChannels);
connect(aria2cTorrentName, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(ariaGotName(int, QProcess::ExitStatus)));
//connection to update the display
connect(aria2cTorrentName, SIGNAL(readyReadStandardOutput()), SLOT(AriaName() ));
aria2cTorrentName->start("aria2c --show-files \"" + torrent + "\"" );
}
//realtime reads process that gets torrent name
void acetoneiso::AriaName() {
aria2RealNameOutput_temp = aria2cTorrentName->readAllStandardOutput();
//questo evita che prende un output vuoto
if (aria2RealNameOutput_temp.size() < 2 ) {
return;
}
aria2RealNameOutput = aria2RealNameOutput_temp;
}
//aria finished getting the real torrent name
void acetoneiso::ariaGotName(int, QProcess::ExitStatus) {
int valore_uscita = aria2cTorrentName->exitCode();
if(valore_uscita == 1) {
QMessageBox::critical(this, "AcetoneISO::Error!",tr("Error retrieving torrent file name."));
return;
}
QByteArray string = aria2RealNameOutput ;
QTextStream read(string);
read.seek(0);
RealTorrentName = "";
while (true) {
if (read.atEnd() ) {
QMessageBox::critical(this, "AcetoneISO::Error!",tr("Error retrieving torrent file name."));
return;
}
QString name = read.readLine();
if (!name.contains("name: ", Qt::CaseInsensitive) ) {
continue;
}
RealTorrentName = (name.split(": ") )[1];
break;
}
//save torrent to save cfg file
saveTorrentListCFG();
//qDebug() << RealTorrentName;
runTorrent(RealTorrentName,global_torrent_file);
}
//saves added torrent to save list, used when reopening acetoneiso
void acetoneiso::saveTorrentListCFG() {
//append torrent in save file, needed when restarting acetoneiso
QString saveTorrentToConfig = QDir::homePath() + "/.acetoneiso/torrentList.cfg";
QFile fileSave(saveTorrentToConfig);
fileSave.open(QIODevice::Append | QIODevice::Text);
QTextStream out(&fileSave);
//append torrent file full path + realtorrent name + the directory where to download it
out << ("\n" + global_torrent_file + "?;?" + RealTorrentName);
fileSave.close();
}
//starts the final aria2c process
void acetoneiso::runTorrent(QString torrent, QString file) {
//fill first item in widget
item_file = new QTreeWidgetItem(torrentWidget);
item_file->setText(0, torrent);
item_file->setTextAlignment(0, 0x0001);
QString infinite = QString::fromUtf8("\xe2\x88\x9e");
item_file->setText(4,infinite);
icon_downloading = new QIcon(":/images/downloading.png");
icon_completed = new QIcon(":/images/dialog-ok.png");
item_file->setIcon( 0,*icon_downloading );
//store item object in array
item_list.append(item_file);
//connect(erase, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutErase(int, QProcess::ExitStatus)));
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
aria2c = new QProcess();
aria2c->setReadChannel(QProcess::StandardOutput);
aria2c->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(aria2c, SIGNAL(readyReadStandardOutput()), SLOT(AriaDisplay() ));
aria2c->start("aria2c --allow-overwrite=true --log-level=info --check-certificate=false --summary-interval=0 -d /home/bulletxt \"" + file + "\"");
//store process object in array
process_list.append(aria2c);
//global hash table QProcess key, value contains torrent file full path followed by its real internal torrent name
processId_torrentName[aria2c] = file + "?;?" + torrent;
//qDebug() << "QHash:" << processId_torrentName[aria2c];
}
//gets called each time aria2c process has an output
void acetoneiso::AriaDisplay() {
//prento l'ID oggetto che ha chiamato questa funzione, in questo caso un QProcess
QProcess* processID = qobject_cast(sender());
int countLista = process_list.count();
int conta = 0;
while (conta < countLista) {
if (process_list[conta] != processID) {
conta = conta + 1;
continue;
}
break;
}
aria2_output = process_list[conta]->readAllStandardOutput();
qDebug() << aria2_output;
//questo evita che prende un output vuoto
if (aria2_output.size() < 2 ) {
return;
}
QString notifica = aria2_output;
if (notifica.contains("notice",Qt::CaseInsensitive) ) {
return;
}
//divide complete string separating parts based on a space filter
QString remove_spaces_from_complete_string;
remove_spaces_from_complete_string = aria2_output;
QStringList list;
list = remove_spaces_from_complete_string.split(QRegExp("\\s+"));
//check for bad url and immediate aria2c error->quit
QString string_error_url = aria2_output;
//check if seeding
QString seedingIS = aria2_output;
if (seedingIS.contains("seeding", Qt::CaseInsensitive) ) {
item_list[conta]->setText(1, tr("Completed"));
item_list[conta]->setText(4, "");
item_list[conta]->setText(3, "");
item_list[conta]->setText(5, "");
item_list[conta]->setText(7, "");
item_list[conta]->setText(6, "");
item_list[conta]->setIcon( 0,* icon_completed );
process_list[conta]->disconnect(SIGNAL(readyReadStandardOutput()));
process_list[conta]->terminate();
process_list[conta]->kill();
//remove torrent from config list
QFile cleanFile(QDir::homePath() + "/.acetoneiso/torrentList.cfg");
cleanFile.open(QIODevice::ReadOnly | QIODevice::Text);
QByteArray read_for_removal = cleanFile.readAll();
cleanFile.close();
cleanFile.remove();
QString lineToRemove = processId_torrentName.value(processID) ;
QString cleanedTorrent = read_for_removal;
cleanedTorrent = cleanedTorrent.remove( "\n" + lineToRemove);
//qDebug() << "CLEANED FILE: " << cleanedTorrent;
cleanFile.open(QIODevice::ReadWrite);
QTextStream outClean(&cleanFile);
outClean << cleanedTorrent;
outClean.flush();
cleanFile.close();
QString torrent_process_getName = (processId_torrentName.value(processID) ).split("?;?")[1] ;
torrent_process_getName.prepend("Torrent finished downloading!\n");
QMessageBox::information(this, "AcetoneISO::Torrent", torrent_process_getName );
return;
}
bool error_url;
error_url = string_error_url.contains("ERROR", Qt::CaseInsensitive);
//if true error on url
if (error_url) {
QString remove_aria_specific_stuff = "If there are any errors, then see the log file. See '-l' option in help/man page for details.";
string_error_url = string_error_url.remove( remove_aria_specific_stuff, Qt::CaseInsensitive);
remove_aria_specific_stuff = "aria2 will resume download if the transfer is restarted.";
string_error_url = string_error_url.remove( remove_aria_specific_stuff, Qt::CaseInsensitive);
//QMessageBox::critical(this, tr("AcetoneISO::Error"),string_error_url);
item_list[conta]->setText(7, string_error_url);
// process_list[conta]->disconnect(SIGNAL(finished(int, QProcess::ExitStatus)));
// process_list[conta]->disconnect(SIGNAL(readyReadStandardOutput()));
return;
}
//check if is doing file alloc
if (list.count() > 4) {
if (list[5].contains("filealloc", Qt::CaseInsensitive) ) {
item_list[conta]->setText(1, "0%");
item_list[conta]->setText(2, tr("Calculating..."));
item_list[conta]->setText(3, "0KiBs");
QString infinite = QString::fromUtf8("\xe2\x88\x9e");
infinite = infinite.append(tr(" (File Alloc, Please Wait...)"));
item_list[conta]->setText(4,infinite);
return;
}
}
//speed
QString speed;
speed = list[4];
QStringList speed_list;
speed_list = speed.split(QRegExp(":"));
speed = speed_list[1].remove("]");
item_list[conta]->setText(3, speed);
//progress
QString progress;
progress = list[1];
QStringList progress_list;
progress_list = progress.split("(");
progress = progress_list[1].remove(QChar(')'), Qt::CaseInsensitive);
item_list[conta]->setText(1, progress);
//size
QString size;
size = list[1];
QString no_percentage;
no_percentage = progress_list[0]; //contiene tutto size: senza (n%)
QStringList size_list;
size_list = no_percentage.split(QRegExp(":"));
item_list[conta]->setText(2, size_list[1]);
//ETA
QString containsETA = aria2_output;
if (containsETA.contains("ETA",Qt::CaseInsensitive ) ) {
QStringList splitEta = containsETA.split("ETA",QString::SkipEmptyParts) ;
containsETA = (splitEta[splitEta.count() - 1]).split(":")[1].split("]")[0] ;
item_list[conta]->setText(4, containsETA );
}
else {
item_list[conta]->setText(4, "" );
}
//SEED list[3]
QString seed;
seed = ( (list[3]).split(":") )[1] ;
item_list[conta]->setText(5, seed);
//CN list[2]
QString leech;
leech = ( (list[2]).split(":") )[1] ;
item_list[conta]->setText(6,leech );
}
//quanto lutente chiude acetone, chiudere tutti i process torrent
void acetoneiso:: closeAllTorrents() {
int countLista = process_list.count();
int conta = 0;
while (conta < countLista) {
process_list[conta]->terminate();
process_list[conta]->kill();
conta = conta + 1;
}
}
acetoneiso2.4/acetoneiso/sources/audiotools.h 0000664 0001750 0001750 00000014222 11257546346 022030 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include
void acetoneiso::wma2wav()
{
QDir Home = QDir::home();
QString dacomprimere = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select WMA Audio File"), Home.path(), tr("Audio WMA (*.wma)"));
if (!dacomprimere.isEmpty() ) {
QFileInfo fi(dacomprimere);
QString filenopath = fi.fileName();
filenopath.chop(4);
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save MP3"),
filenopath,tr("Audio MP3 (*.mp3)"));
if ( fileName.isNull() ) {
}
else {
QString wav;
wav = fileName.append(".wav");
QString alog( QDir::home().path() + "/.acetoneiso/acetoneiso.log" );
//file di log
QFile log( alog );
AUdio.setReadChannel(QProcess::StandardOutput);//imposto il canale di lettura del processo
AUdio.setStandardOutputFile( alog, QIODevice::Truncate );//l'output di va nel file alog
AUdio.start("ffmpeg",QStringList() << "-i" << dacomprimere << wav );
progBarra();
//qDebug() << "FINISCO WMA2WAV E ASPETTO IL SEGNALE";
while( !AUdio.waitForFinished() ){
return;
} //fine while
wavmp3( fileName, wav );
} //fine else
} //fine primo if
} //fine funzione
void acetoneiso::wavmp3( QString str1, QString str2 )
{
QString mp3;
mp3 = str1.append(".mp3");
AUdio.start("lame",QStringList() << str2 << mp3 );
progBarra();
QFile wavfile (str2);
wavfile.remove();
}
//rippa cd audio
//TODO: ricorsivamente deve convertirli in MP3
void acetoneiso::ripcdaudio()
{
QDir Home = QDir::home();
QString folder = QFileDialog::getExistingDirectory(this, tr("AcetoneISO::Select where to Save ripped CD-Audio"),Home.path());
if (folder.isNull() ) {
return;
}
else {
RIpaudio.setWorkingDirectory( folder );
RIpaudio.start("cdparanoia",QStringList() << "-B" );
progBarra();
/* QDirIterator it(folder, QDirIterator::Subdirectories);
while (it.filePath()) {
qDebug() << it.next();
}
*/
}
}
//extract audio file from any video, pure 100% copy of audio including audio codec
void acetoneiso::extractaudio()
{
QDir bin("/usr/bin");
QFile rar;
QDir::setCurrent( bin.path() );
rar.setFileName("ffmpeg");
if (!rar.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("Unable to find") + " ffmpeg " + tr("in /usr/bin.\nPlease install it and be sure it's linked to /usr/bin folder.") );
return;
}
QDir Home = QDir::home();
QString dacomprimere = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Video File"), Home.path(), tr("Video (*.avi *.mpg *.mpeg *.wmv *.flv *.mov *.asf *.rm *.mp4)"));
if (!dacomprimere.isEmpty() ) {
QFileInfo fi(dacomprimere);
QString filenopath = fi.fileName();
filenopath.chop(4);
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save WAV"),
filenopath,tr("Audio WAV (*.wav)"));
if ( fileName.isNull() ) {
}
else {
QString wav;
wav = fileName.append(".wav");
showProgressDisplay();
extractaudiofromvideo = new QProcess();
extractaudiofromvideo->setReadChannel(QProcess::StandardOutput);
extractaudiofromvideo->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(extractaudiofromvideo, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_extractaudiofromvideo() ));
connect( extractaudiofromvideo, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutextractaudiofromvideo(int, QProcess::ExitStatus)));
//ffmpeg -i mandelbrot.flv -vn -acodec pcm_s16le -ar 44100 -ac 2 mandelbrot.wav
extractaudiofromvideo->start("ffmpeg",QStringList() << "-i" << dacomprimere << "-vn" << "-acodec" << "pcm_s16le" << "-ar" << "44100" << "-ac" << "2" << wav );
}
}
}
//extract audio file from any video, pure 100% copy of audio including audio codec
void acetoneiso::wav2mp3()
{
QDir Home = QDir::home();
QString dacomprimere = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Wav File"), Home.path(), tr("WAV (*.wav)"));
if (!dacomprimere.isEmpty() ) {
QFileInfo fi(dacomprimere);
QString filenopath = fi.fileName();
filenopath.chop(4);
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save MP3"),
filenopath,tr("Audio MP3 (*.mp3)"));
if ( fileName.isNull() ) {
}
else {
QString wav;
wav = fileName.append(".mp3");
QString alog( QDir::home().path() + "/.acetoneiso/acetoneiso.log" );
//file di log
QFile log( alog );
AUdio.setReadChannel(QProcess::StandardOutput);//imposto il canale di lettura del processo
AUdio.setStandardOutputFile( alog, QIODevice::Truncate );//l'output di va nel file alog
AUdio.start("lame",QStringList() << dacomprimere << wav );
progBarra();
}
}
}
//messaggi output
void acetoneiso::printOutaudiotools(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
int valore_uscita = AUdio.exitCode();
if( valore_uscita == 0 )
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) + tr("\nPlease see the log file in ") + QDir::home().path() + ("/.acetoneiso/acetoneiso.log"));
}
void acetoneiso::printOutripaudio(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
int valore_uscita = RIpaudio.exitCode();
if( valore_uscita == 0 )
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
acetoneiso2.4/acetoneiso/sources/dvd_cover.h 0000664 0001750 0001750 00000005403 11216475307 021613 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO2 is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO2 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO2. If not, see .
void acetoneiso::get_cover()
{
QDir Temp = QDir::temp();
Temp.cd("acetoneiso");
QFile f1(Temp.path() + "/dvd");
f1.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString strg = (f1.readAll());//leggo il contenuto di f1 ossia di /tmp/acetoneiso/dvd e va in una stringa strg.
QString url = ("http://xml.amazon.com/onca/xml3?t=webservices-20&dev-t=D1URM11J3F2CEH&KeywordSearch=" + strg + "&mode=dvd-uk&type=lite&locale=uk&page=1&f=xml");
progBarra();
WGet1.start("wget", QStringList() << url << "-O" << (Temp.path() + "/xml.xml") );
connect(&WGet1, SIGNAL(finished(int, QProcess::ExitStatus)), this,SLOT( readXML() ) );
}
void acetoneiso::readXML()
{
QDir Temp = QDir::temp();
Temp.cd("acetoneiso");
QFile file;
file.setFileName(Temp.path() + "/xml.xml");
QDomDocument doc;
doc.setContent( &file );
const QDomNode details = doc.documentElement().namedItem( "Details" );
QDomNode node = doc.documentElement().namedItem( "Details" );
QString coverUrl = node.namedItem( "ImageUrlLarge" ).firstChild().toText().nodeValue(); //link alla copertina
if(!coverUrl.isNull()){
WGet2.start("wget", QStringList() << coverUrl << "-O" << (Temp.path() + "/cov.jpg") );
connect(&WGet2, SIGNAL(finished(int, QProcess::ExitStatus)), this,SLOT( display_cover() ) );
}
else {
closeProg();
}
}
void acetoneiso::display_cover()
{
QDir Temp = QDir::temp();
Temp.cd("acetoneiso");
QFile file( Temp.path() + "/cov.jpg" ); //dichiaro file di tipo QFile per poter gestire l'esistenza
QPixmap cover( Temp.path() + "/cov.jpg" ); //stabilisco la pixmap e la chiamo cover per poterla ridimensionare dopo
if (file.exists()) //se file esiste, significa che la foderina è stata trovata
{
label_cover->setPixmap( cover.scaled( 160, 193 ) );//scalo la pixmap per farla entrare nella label
button_saveCover->setVisible(true);
}
else
{
label_cover->setPixmap(QPixmap(":/images/default.png"));//caso che la foderina non è stata trovata, inserisce immagine di default
}
}
acetoneiso2.4/acetoneiso/sources/encrypt.h 0000664 0001750 0001750 00000004023 11503365416 021317 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::encrypt()
{
QFile gpg2("/usr/bin/gpg2");
if (!gpg2.exists() ) {
QMessageBox::critical(this, "AcetoneISO::warning", "Unable to find /usr/bin/gpg2 program. Please install gpg2 software.");
return;
}
QDir Home = QDir::home();
QString immagine = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Image to encrypt"), Home.path(), tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d *.dmg)"));
if (immagine.isNull()) {
return;
}
disable_all_button_processes();
GPg.start("gpg2", QStringList() << "-c" << immagine );
progBarra();
}
void acetoneiso::decrypt() {
QFile gpg2("/usr/bin/gpg2");
if (!gpg2.exists() ) {
QMessageBox::critical(this, "AcetoneISO::warning", "Unable to find /usr/bin/gpg2 program. Please install gpg2 software.");
return;
}
QDir Home = QDir::home();
QString immagine = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Image to decrypt"), Home.path(), tr("Encrypted Image ( *.gpg)"));
if (immagine.isNull()) {
return;
}
disable_all_button_processes();
GPg.start("gpg2", QStringList() << immagine );
progBarra();
}
acetoneiso2.4/acetoneiso/sources/gmount.h 0000664 0001750 0001750 00000011065 11555367161 021156 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::gmount() {
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("NOTE: If you want to mount an image in a root folder like /media/cdrom, please launch AcetoneISO as root user. "));
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QTextStream in(&file);
QString stra = in.readLine();
QString strb = in.readLine();
QString strc = in.readLine();
QFile Mtab("/etc/mtab");//dichiaro un file Mtab che sarebbe /etc/mtab
Mtab.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString str1 = (Mtab.readAll());//leggo il contenuto del file mtab
QString isodamontare;
isodamontare = QFileDialog::getOpenFileName(this,tr("Open Image"), Home.path() , tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d)"));
if ( !isodamontare.isNull() ) {
//mi ricavo l'estensione dell'immagine
QFileInfo getinfo(isodamontare);
QString ext = getinfo.suffix(); // ext = "iso?mdf?xyz?"
if (((ext != "iso") && (ext != "nrg")) && ((ext != "bin") && (ext != "img")) && (ext != "mdf")) {
QMessageBox msgBox;
msgBox.setText(tr("The image ") + isodamontare + tr(" can't be mounted. You must convert it to ISO or extract content to a folder.\nPlease choose what to do:") );
QPushButton *connectButton = msgBox.addButton(tr(" Convert to ISO "), QMessageBox::ActionRole);
QPushButton *connectButton2 = msgBox.addButton(tr(" Extract image to a folder "), QMessageBox::ActionRole);
//msgBox.setStandardButtons(QMessageBox::("ISO File") | QMessageBox::("CD/DVD"));
msgBox.exec();
if (msgBox.clickedButton() == connectButton) {
converter();
}
else if (msgBox.clickedButton() == connectButton2) {
extract();
}
}
else {
QString folder = QFileDialog::getExistingDirectory( this, tr("AcetoneISO::Select where to mount image"), Home.path() );
if (folder.isNull()) {
return;
}
//folder.chop(1);//casini del qt...il chop serve per togliere l'ultimo slash (/) dal percorso altrimenti in mtab non troverà mai il percorso con lo slash finale..
if(!str1.contains( folder ) ) {
FUse.start("fuseiso",QStringList() << isodamontare << folder << "-o" << "nonempty" );
QString vd = folder;
if(strc.contains("kde", Qt::CaseInsensitive)) { // se nelle impostazioni ho come browser kde
BRowser.startDetached("dolphin",QStringList() << vd );
}
if(strc.contains("gnome", Qt::CaseInsensitive)) {
BRowser.startDetached("nautilus",QStringList() << vd );
}
if(strc.contains("thunar", Qt::CaseInsensitive)) {
BRowser.startDetached("thunar",QStringList() << vd );
}
if(strc.contains("lxde", Qt::CaseInsensitive)) {
BRowser.startDetached("pcmanfm",QStringList() << vd );
}
}
else {
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("The folder ") + folder + tr(" can't be mounted"));
}
}
}
file.close();
Mtab.close();
}
void acetoneiso::gumount() {
QDir Home = QDir::home();
QFile Mtab("/etc/mtab");//dichiaro un file Mtab che sarebbe /etc/mtab
Mtab.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString str1 = (Mtab.readAll());//leggo il contenuto del file mtab
QString folder = QFileDialog::getExistingDirectory( this, tr("AcetoneISO::Select folder to unmount"), Home.path() );
//folder.chop(1);
if(str1.contains( folder ) ) {
FUsermount.start("fusermount",QStringList() << "-u" << "-z" << folder );
}
else {
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("The folder ") + folder + tr(" is not mounted!"));
}
Mtab.close();
}
acetoneiso2.4/acetoneiso/sources/acetoneiso.cpp 0000664 0001750 0001750 00000023473 11472576336 022343 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include
#include
#include
#include
#include "acetoneiso.h"
#include "connections.h"
#include
#include
#include
#include
#include
#include
#include
#include"status_mounted_no_boot.h"
#include"md5check.h"
#include"mount.h"
#include"encrypt.h"
#include"foldertoiso.h"
#include"donate.h"
#include"psxrip.h"
#include"compress.h"
#include"converter.h"
#include"isocd.h"
#include"split.h"
#include"play.h"
#include"gencue.h"
#include"database.h"
#include"gmount.h"
#include"eltorito.h"
#include"backup_audio.h"
#include"messages.h"
#include"status_mounted.h"
#include"options.h"
#include"about.h"
#include"progress.h"
#include"manual.h"
#include"udf.h"
#include"vidgen.h"
#include"utube.h"
#include"audiotools.h"
#include"umount_check.h"
#include"iso_from_pcgame.h"
#include"leggirigo.h"
#include"psp.h"
#include"history.h"
#include"erase_cd.h"
#include"erase_dvd.h"
#include"burn_iso_2_cd.h"
#include"burn_iso_2_dvd.h"
#include"torrent.h"
#include"global_functions.h"
acetoneiso::acetoneiso()
{
QPixmap splashpng(":/images/splash.png");
QSplashScreen *splash = new QSplashScreen(splashpng);
splash->show();
splash->showMessage(tr("Loading GUI..."));
QDir Temp = QDir::temp();
Temp.mkdir("acetoneiso");
//Temp.mkdir("acetoneiso_burn");
QDir Home = QDir::home();
create_virtual_drives();
Home.mkdir(".acetoneiso");
Home.cd(".acetoneiso");
setupUi(this); // this sets up GUI
setDockInit();
status_mounted(); //questa funzione va prima del montaggio da cml altrimenti ho una doppia entry nel montaggio da terminale
cmlMount();
//connessioni
connections();
listWidget_2->setAcceptDrops(true);
//progress1Bar->setVisible( false );
splash->showMessage(tr("Loading Options..."));
createOption();
initial_get_database();
history_autoclean();
load_history();
//carico tray icon
load_trayicon();
//database label
database_label();
//hide process display and its contents
hide_process_display();
splash->finish(this);
//set torrent widge coloum spaces
QHeaderView *header = torrentWidget->header();
QFontMetrics fm = fontMetrics();
header->resizeSection(0, fm.width("typical-name-for-a-torrent.torrent_helloWorld_"));
header->resizeSection(1, fm.width("Progress_100"));
header->resizeSection(2, fm.width("999.9MiB/999.9Mib_999.9"));//size
header->resizeSection(3, fm.width("999.9KiBs_999.9"));//speed
//load torrents
readTorrentList() ;
}
//cattura segnale di chiusura per mandarlo in tray
void acetoneiso::closeEvent(QCloseEvent *event)
{
QDir HomeT = QDir::home();
QFile fileT(HomeT.path() + "/.acetoneiso/acetoneiso_advanced.conf");
fileT.open(QIODevice::ReadOnly | QIODevice::Text);
QString tray = fileT.readAll();
//se false significa che lutente non ha la tray icon abilitato
if(!tray.contains("enabletrayicon", Qt::CaseInsensitive)) {
closeAllTorrents();
remove_virtual_drives();
return;
}
//evita segfault se l'utente abilita la tray icon con close in tray icon abilitato senza ancora aver riavviato per attivare la tray
if (tray_has_loaded == false) {
closeAllTorrents();
remove_virtual_drives();
return;
}
//se true significa che lutente ha la tray icon abilitato e in piu vuole che si chiude in tray icon
if(tray.contains("noclosetrayt", Qt::CaseInsensitive)) {
if (trayIcon->isVisible()) {
hide();
event->ignore();
}
}
else {
closeAllTorrents();
remove_virtual_drives(); //se qui significa che l'utente ha la tray icon abilitato ma che non deve chiudersi in trayicon
}
fileT.close();
}
//gestisce l'oscuramento nel context menu della tray icon
void acetoneiso::setVisible(bool visible)
{
QDir HomeT = QDir::home();
QFile fileT(HomeT.path() + "/.acetoneiso/acetoneiso_advanced.conf");
fileT.open(QIODevice::ReadOnly | QIODevice::Text);
QString tray = fileT.readAll();
if(tray.contains("enabletrayicon", Qt::CaseInsensitive)) {
// minimizeAction->setEnabled(visible);
restoreAction->setEnabled(true);
QMainWindow::setVisible(visible);
}
else {
QMainWindow::setVisible(visible);
}
fileT.close();
}
//gestisce cosa fare quando l'utente clicca con il sinistro sulla tray icon
void acetoneiso::iconActivated(QSystemTrayIcon::ActivationReason reason)
{
switch (reason) {
case QSystemTrayIcon::Trigger:
case QSystemTrayIcon::DoubleClick:
if (QMainWindow::isMinimized()) {
QMainWindow::showNormal();
return;
}
if (QMainWindow::isHidden()) {
QMainWindow::setVisible(true);
QMainWindow::showNormal();
return;
}
else {
QMainWindow::hide();
return;
}
break;
case QSystemTrayIcon::MiddleClick:
if (QMainWindow::isMinimized()) {
QMainWindow::showNormal();
return;
}
if (QMainWindow::isHidden()) {
QMainWindow::setVisible(true);
QMainWindow::showNormal();
return;
}
else {
QMainWindow::hide();
return;
}
break;
default:
;
}
}
void acetoneiso::progBarra()
{
prog.show();
}
void acetoneiso::closeProg()
{
prog.close();
}
void acetoneiso::on_options_nda_activated()
{
QMainWindow::showNormal();
optionsDiag *opt=new optionsDiag;
opt->exec();
}
//gestire che lutente vuole aprire lopzioni direttamente in database
void acetoneiso::call_database_options() {
QDir Home = QDir::home();
QFile advanced(Home.path() + "/.acetoneiso/optiondb.conf");
advanced.remove();
advanced.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out_adv(&advanced);
out_adv << ( "must call option directly in database settings\n" );
advanced.close();
on_options_nda_activated();
}
void acetoneiso::createOption()
{
QDir Home = QDir::home();
QFile advanced(Home.path() + "/.acetoneiso/acetoneiso_advanced.conf");
if (!advanced.exists()) {
advanced.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out_adv(&advanced);
out_adv << ( "TRAYICON = enabletrayicon\n" );
out_adv << ( "TRAYICON_CLOSE = closetrayicon\n" );
out_adv << ( "HISTORY_CLEAN = cleanhistory\n" );
out_adv << ( "HISTORY_REMOVE_FAKE = removefakehistory\n" );
advanced.close();
}
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
if( !file.exists() ) {
file.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&file);
out << ( "ISO_FROM_FOLDER = standard\n" );
out << ( "PLAYER = kaffeine\n" );
out << ( "FILE_BROWSER = kde\n" );
out << ( "DB = " + Home.path() + "\n" );
out << ( "recursive = norecursive" "\n" );
file.close();
advanced.remove();
QMessageBox::warning(this, "AcetoneISO::First Launch",tr("This is the first time you launch AcetoneISO software.\nIn the next dialog you can set your default file manager, set database and some other things.\nHappy AcetoneISO usage from the team:)"));
on_options_nda_activated();
}
}
void acetoneiso::on_actionAbout_activated()
{
QMainWindow::showNormal();
aboutDiag *abt=new aboutDiag;
abt->exec();
}
void acetoneiso::on_actionManual_activated()
{
manualDiag *man=new manualDiag;
man->exec();
}
void acetoneiso::setDockPos()
{
QDir Home = QDir::home();
QFile windowStateFile(Home.path() + "/.acetoneiso/gui.state");
QByteArray state = saveState();
if(windowStateFile.open(QIODevice::WriteOnly))
{
windowStateFile.write(state);
windowStateFile.close();
}
}
void acetoneiso::setDockInit()
{
QDir Home = QDir::home();
QFile windowStateFile(Home.path() + "/.acetoneiso/gui.state");
if(windowStateFile.open(QIODevice::ReadOnly))
{
QByteArray bytes = windowStateFile.readAll();
restoreState(bytes);
windowStateFile.close();
}
}
// funzioni burnamento
void acetoneiso::erase_media() {
int c;
c = erase_combobox->currentIndex();
if (c == 0) {
QFile wodim("/usr/bin/wodim");
if (!wodim.exists()) {
QMessageBox::critical(this, "AcetoneISO::Critical", tr("Unable to find wodim in /usr/bin.\nPlease install wodim package."));
return;
}
erasecd *ecd=new erasecd;
ecd->exec();
}
else {
QFile dvd_tools("/usr/bin/dvd+rw-format");
if (!dvd_tools.exists()) {
QMessageBox::critical(this, "AcetoneISO::Critical", tr("Unable to find dvd+rw-format in /usr/bin.\nPlease install dvd+rw-tools package."));
//return;
}
//QMessageBox::critical(this, "AcetoneISO::Critical", "da fare");
erasedvd *edvd=new erasedvd;
edvd->exec();
}
}
void acetoneiso::burniso2_cd() {
int c;
c = comboBox_2->currentIndex();
if (c == 0) {
QFile wodim("/usr/bin/wodim");
if (!wodim.exists()) {
QMessageBox::critical(this, "AcetoneISO::Critical", tr("Unable to find wodim in /usr/bin.\nPlease install wodim package."));
return;
}
burniso2cd *ecd=new burniso2cd;
ecd->exec();
}
else {
QFile dvd_tools("/usr/bin/growisofs");
if (!dvd_tools.exists()) {
QMessageBox::critical(this, "AcetoneISO::Critical", tr("Unable to find growisofs in /usr/bin.\nPlease install growisofs package."));
return;
}
burniso2dvd *bdvd=new burniso2dvd;
bdvd->exec();
}
}
acetoneiso2.4/acetoneiso/sources/erase_cd.cpp 0000664 0001750 0001750 00000027105 11661326207 021741 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include
#include
#include
#include
#include
#include
#include
#include
#include "erase_cd.h"
/*
cancellare cd completo: wodim -verbose dev=/dev/sr0 blank=all
cancellare cd rapido: wodim -verbose dev=/dev/sr0 blank=fast
dice il tipo di media inserito: hal-get-property "--key volume.disc.type --udi $udi
*/
//
erasecd::erasecd( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)
{
setupUi(this);
is_erasing = false;
loaded_success = false;
QCoreApplication::setApplicationName("AcetoneISO");
connect( start, SIGNAL( clicked() ), this, SLOT( start_erase() ) );
start->setEnabled(false);
textBrowser->clear();
device_scan();
}
//scannerizza periferiche e ritorna array stringa di tutte le periferiche trovate
void erasecd::scan_devices_burn() {
scan_devices_process = new QProcess();
scan_devices_process->setReadChannel(QProcess::StandardOutput);
scan_devices_process->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(scan_devices_process, SIGNAL(readyReadStandardOutput()), SLOT(updateScanDevices() ));
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
Devices_Burn = "";
scan_devices_process->start("xorriso -devices" );
scan_devices_process->waitForFinished();
QString stream_Devices_Burn = Devices_Burn;
Devices_Burn.clear();
QTextStream stream(&stream_Devices_Burn);
QString line;
while (!stream.atEnd()) {
line = stream.readLine();
if (line.contains("---------------") ) {
line = stream.readLine();
if (!line.contains("---------------") && (line != "") ) {
Devices_Burn = Devices_Burn.prepend("~" + line) ;
}
}
}
}
void erasecd::updateScanDevices() {
QByteArray process_output = scan_devices_process->readAllStandardOutput();
QString temp = process_output;
Devices_Burn.append(" " + temp);
}
void erasecd::updateScanDevicesProperties() {
QByteArray process_output = scan_device_properties_process->readAllStandardOutput();
Properties_Device = Properties_Device.append(process_output);
}
void erasecd::device_scan() {
scan_devices_burn();
//qDebug() << Devices_Burn;
//disabilita tutto se non viene trovato almeno 1 periferica
if (Devices_Burn == "") {
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found.\nIf you think this is a bug please report it."));
disable_buttons();
devices_combo->addItem( tr("No CD/DVD device found") );
return;
}
QIcon icon_optical_drive( ":/images/drive-optical.png" );
//Devices_Burn = "~ 0 -dev '/dev/sr0' rwrw-- : 'TSSTcorp' 'CDDVDW SE-S084F' ~ 1 -dev '/dev/sr1' rwrw-- : 'ASUS' 'CDDVDW' ";
QStringList split_devices = Devices_Burn.split("~",QString::SkipEmptyParts);
int count = split_devices.count();
//qDebug() << count;
int cc = 0;
int success = -1;
while (cc < count) {
Properties_Device = "";
//controllare se device supporta masterizzare su cd-r cd-rw, in caso contrario ripartire ciclo: xorriso -outdev /dev/sr0 -list_profiles
QString device_current = split_devices[cc].split("'", QString::SkipEmptyParts)[1];
scan_device_properties_process = new QProcess();
scan_device_properties_process->setReadChannel(QProcess::StandardOutput);
scan_device_properties_process->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(scan_device_properties_process, SIGNAL(readyReadStandardOutput()), SLOT(updateScanDevicesProperties() ));
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
scan_device_properties_process->start("xorriso -outdev " + device_current + " -list_profiles" );
scan_device_properties_process->waitForFinished();
if (!Properties_Device.contains("cd-rw", Qt::CaseInsensitive) ) {
qDebug() << "Removed:" << Properties_Device;
cc = cc + 1;
continue;
}
//success si ricorda sempre la posizione in cui aggiungere all'array indipendentemente dal cc del ciclo while
success = success + 1;
//aggiungo id nell'array
id_device.insert(success, split_devices[cc]);
devices_combo->insertItem(success,icon_optical_drive, " " + split_devices[cc] );
cc = cc + 1;
}
//media_available();
//if < 1 significa che sebbene ci sono 1 o piu periferiche cdrom, nessuna e' capace di scrivere su cd-rw
if (devices_combo->count() < 1) {
disable_buttons();
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found capable of writing to CD-RW discs.\nIf you think this is a bug please report it."));
return;
}
else { //c'e' almeno 1 periferica cdrom in grado di scrivere su dischi cd-rw
loaded_success = true;
//crea un timer cosi aggiorna automaticamente la label_info
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(media_available()));
timer->start(6500);
connect( devices_combo, SIGNAL(currentIndexChanged(int) ), this , SLOT( combo_changed(int) ) );
}
}
void erasecd::media_available() {
//qDebug() << "media_available()";
//se sto masterizzando deve uscire da qui
if (is_erasing) {
start->setEnabled(false);
label_info->setText(tr("The CD-RW is getting blanked..."));
return;
}
//if < 1 it means there are no devices capaci di scrivere su dischi cd-rw
if (devices_combo->count() < 1) {
return;
}
//se non e' visibile deve disconnettere le connessioni
if (loaded_success) {
if (!devices_combo->isVisible()) {
disconnect(devices_combo, 0, 0, 0);
disconnect(timer, 0, 0, 0);
loaded_success = false;
}
}
//prendo indice corrente della combobox cosi so chi l'id della periferica selezionata
int current_index = devices_combo->currentIndex();
QString id = id_device[current_index];
//qDebug() << id;
Properties_Device = "";
//controllo se ce un cd inserito ed è di tipo CD-RW : xorriso -outdev /dev/sr0 -list_profiles
QString device_current = id.split("'", QString::SkipEmptyParts)[1];
//qDebug() << device_current;
scan_device_properties_process = new QProcess();
scan_device_properties_process->setReadChannel(QProcess::StandardOutput);
scan_device_properties_process->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(scan_device_properties_process, SIGNAL(readyReadStandardOutput()), SLOT(updateScanDevicesProperties() ));
connect( scan_device_properties_process, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(scan_device_properties_process_Finished(int, QProcess::ExitStatus)));
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
scan_device_properties_process->start("xorriso -outdev " + device_current + " -list_profiles" );
//qDebug() << Properties_Device;
}
//gestisce quando l'utente cambia periferica nella combobox
void erasecd::combo_changed(int n) {
int a;
a = n;
media_available();
}
void erasecd::start_erase() {
QMessageBox msgBox;
msgBox.setText(tr("You decided to blank the CD-RW.\nAre you sure?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
switch (msgBox.exec()) {
case QMessageBox::Yes:
{
//continue below
}
break;
case QMessageBox::No:
{
return; //exit
}
break;
default:
// should never be reached
break;
}
QString erase_type;
if (radioButton->isChecked()) {
erase_type = "blank=all";
}
else {
erase_type = "blank=fast";
}
disable_buttons();
QString dev = device_path.at(devices_combo->currentIndex());
dev = dev.prepend("dev=");
textBrowser->clear();
erase = new QProcess();
erase->setReadChannel(QProcess::StandardOutput);
erase->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(erase, SIGNAL(readyReadStandardOutput()), SLOT(updateEraseDisplay() ));
connect(erase, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutErase(int, QProcess::ExitStatus)));
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
is_erasing = true;
if (eject->isChecked()) {
erase->start("wodim",QStringList() << "-verbose" << dev << erase_type << "-eject" );
}
else {
erase->start("wodim",QStringList() << "-verbose" << dev << erase_type );
}
}
//fa loutput nel display del processo wodim
void erasecd::updateEraseDisplay() {
erase_output = erase->readAllStandardOutput();
textBrowser->setPlainText(erase_output);
}
//gestisce quando il processo wodim finisce
void erasecd::scan_device_properties_process_Finished(int, QProcess::ExitStatus) {
if (Properties_Device.contains("Media current: is not recognizable", Qt::CaseInsensitive) ) {
label_info->setText(tr("Insert a CD-RW disc."));
start->setEnabled(false);
//devices_combo->setItemText(cc,tr("No Media Inserted, insert a media and click on refresh button."));
return;
}
//ferma in caso che il disco inserito non sia un disco CD-RW
if (!Properties_Device.contains("Media current: CD-RW", Qt::CaseInsensitive) ) {
label_info->setText(tr("The disc isn't a CD-RW. Please insert a CD-RW disc."));
start->setEnabled(false);
return;
}
label_info->setText(tr("CD-RW succesfully found in device."));
start->setEnabled(true);
}
//gestisce quando il processo wodim finisce
void erasecd::printOutErase(int, QProcess::ExitStatus) {
enable_buttons();
is_erasing = false;
int valore_uscita = erase->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
}
//abilita i bottoni
void erasecd::enable_buttons() {
start->setEnabled(true);
devices_combo->setEnabled(true);
eject->setEnabled(true);
radioButton->setEnabled(true);
radioButton_2->setEnabled(true);
}
//disabilita i bottoni
void erasecd::disable_buttons() {
start->setEnabled(false);
devices_combo->setEnabled(false);
eject->setEnabled(false);
radioButton->setEnabled(false);
radioButton_2->setEnabled(false);
}
void erasecd::play_success() {
/*
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::Path path;
mediaObject = new Phonon::MediaObject();
audioOutput = new Phonon::AudioOutput(Phonon::NoCategory);
path = Phonon::createPath(mediaObject, audioOutput);
QString file(":/audio/success.ogg");
mediaObject->setCurrentSource(Phonon::MediaSource(file));
mediaObject->play();
*/
}
void erasecd::play_error() {
/*
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::Path path;
mediaObject = new Phonon::MediaObject();
audioOutput = new Phonon::AudioOutput(Phonon::NoCategory);
path = Phonon::createPath(mediaObject, audioOutput);
QString file(":/audio/error.ogg");
mediaObject->setCurrentSource(Phonon::MediaSource(file));
mediaObject->play();
*/
}
acetoneiso2.4/acetoneiso/sources/progress.cpp 0000664 0001750 0001750 00000001645 11216475307 022043 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include "progress.h"
//
progressDiag::progressDiag( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)
{
setupUi(this);
}
//
acetoneiso2.4/acetoneiso/sources/split.h 0000664 0001750 0001750 00000007001 11407202515 020756 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009, 2010 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::split()
{
//7z a -v100m test tales_radiant_mythology.cso
QDir bin("/usr/bin");
QFile split;
QDir::setCurrent( bin.path() );
split.setFileName("7z");
QDir Home = QDir::home();
QString fileName = QFileDialog::getOpenFileName(this,tr("Open Image to be splitted"),Home.path() , tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d *.dmg *.gpg)"));
if ( fileName.isNull() ) {
return;
}
QString split_folder = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Insert volume name"), Home.path() + "/AcetoneISO_Volumes");
if ( split_folder.isNull() ) {
return;
}
bool ok;
int i = QInputDialog::getInteger(this, tr("AcetoneISO::Split number"),tr("Please insert the volume number in MegaByte:"), 99, 1, 100000, 1, &ok);
if (!ok) {
return;
}
QString file;
file = QString::number(i).append("m");
file.prepend("-v");
bin = split_folder;
QDir::setCurrent( bin.path() );
disable_all_button_processes();
SPlit.start("7z",QStringList() << "a" << "-y" << "-t7z" << "-m0=lzma" << "-mx=0" << "-mfb=8" << "-md=2m" << "-ms=on" << file << split_folder << fileName);
progBarra();
}
void acetoneiso::merge()
{
/* QFileDialog dialog(this, tr("AcetoneISO::Select Parts keeping CTRL key pressed"), Home.path());
dialog.setFileMode(QFileDialog::ExistingFiles);
dialog.setViewMode(QFileDialog::Detail);
QStringList fileNames;
if (dialog.exec()) {
fileNames = dialog.selectedFiles();
if (!fileNames.isEmpty()) {
QString merged = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save merged image"),Home.path() + "/Acetone_merged");
if (merged.isNull() ) {
return;
}
else{
CAt.setReadChannel(QProcess::StandardOutput);//imposto il canale di lettura del processo
CAt.setStandardOutputFile( merged, QIODevice::Truncate );//l'output di cat va nel file merged.
CAt.start("cat", QStringList() << fileNames );//faccio partire il processo cat.
progBarra();
}
}
}*/
QDir bin("/usr/bin");
QFile split;
QDir::setCurrent( bin.path() );
split.setFileName("7z");
QDir Home = QDir::home();
QString fileName = QFileDialog::getOpenFileName(this,tr("Select first volume part"),Home.path() , tr("7Z 001 (*.001)"));
if ( fileName.isNull() ) {
return;
}
QString folder = QFileDialog::getExistingDirectory(this, tr("AcetoneISO::Select where to extract image"),Home.path());
if (folder.isNull() ) {
return;
}
QString file;
folder.prepend("-o");
disable_all_button_processes();
SPlit.start("7z",QStringList() << "x" << "-y" << folder << fileName);
progBarra();
//7z x -y -oDesktop/ iso_acetoneiso2.iso.7z
}
acetoneiso2.4/acetoneiso/sources/options.h 0000664 0001750 0001750 00000002545 11250750341 021327 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#ifndef OPTIONS_H
#define OPTIONS_H
#include
#include
#include "../build/ui_options.h"
//
class optionsDiag : public QDialog, public Ui::options
{
Q_OBJECT
public:
optionsDiag( QWidget * parent = 0, Qt::WFlags f = 0 );
private slots:
void optionss();
void update_options();
void setDefaults();
void getDbDir();
void whatisdatabase();
void setDefaultsadvanced();
void advanceoptions();
void update_options_advance();
void clickedtrayenable(int stato);
void recursivedb (int statodb);
void cleanhistory(int cleanh);
};
#endif
acetoneiso2.4/acetoneiso/sources/erase_dvd.h 0000664 0001750 0001750 00000003120 11273212154 021556 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#ifndef ERASE_DVD_H
#define ERASE_DVD_H
#include
#include
#include
#include
#include "../build/ui_erasedvd.h"
//
class erasedvd : public QDialog, public Ui::erasedvd
{
Q_OBJECT
public:
erasedvd( QWidget * parent = 0, Qt::WFlags f = 0 );
QStringList device_path;
QStringList id_device;
QByteArray erase_output;
bool is_erasing;
bool loaded_success;
QTimer *timer;
QString discotipo;
QByteArray eraseoutput_real;
private slots:
void start_erase();
void device_scan();
void media_available();
void combo_changed(int n);
void updateEraseDisplay();
void printOutErase(int, QProcess::ExitStatus);
void disable_buttons();
void enable_buttons();
void play_success();
void play_error();
private:
QProcess *erase;
QProcess EJect;
};
#endif
acetoneiso2.4/acetoneiso/sources/play.h 0000664 0001750 0001750 00000011206 11250502333 020567 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::play()
{
QFile Mtab("/etc/mtab");//dichiaro un file Mtab che sarebbe /etc/mtab
Mtab.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString str1 = (Mtab.readAll());//leggo il contenuto del file mtab
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString strb = (leggiRigo( 2, &file ));
QDir Temp = QDir::temp();
Temp.cd("acetoneiso");
//QDir Home = QDir::home();
QDir virtual_dvd_drive( Home.path() + "/virtual-drives" + "/dvd" );
if(str1.contains( virtual_dvd_drive.path() ) )//Caso che il dvd è già montato.
{
QMessageBox::information(this, "AcetoneISO",tr("Please Unmount the movie first"));
}
else{ //Caso che il dvd non è montato.
QString isodamontare = QFileDialog::getOpenFileName(this,tr("Select DVD-Movie to Play"), Home.path() , tr("DVD-Movie Image (*.iso *.bin *.img *.mdf *.nrg)"));
if ( !isodamontare.isNull() )
{
QFileInfo fi( isodamontare );
QString onlyfile = fi.fileName();
onlyfile.chop(4);
QString percorsovirtuale = virtual_dvd_drive.path();
Monta( isodamontare, percorsovirtuale ); //function defined in a_mount.h
// chiamo subito lo scaricamento della copertina, speriamo bene!
//dvdGui( label_dvd2, onlyfile);
// decidi se usare metodo 1 o 2
QMessageBox msgBox;
msgBox.setText(tr("Choose a method to play the movie.\nMethod 1 generally works, if it doesn't try Method 2."));
QPushButton *connectButton = msgBox.addButton(tr("Method 1"), QMessageBox::ActionRole);
QPushButton *connectButton2 = msgBox.addButton(tr("Method 2"), QMessageBox::ActionRole);
msgBox.exec();
if (msgBox.clickedButton() == connectButton) {
if(strb.contains("kaffeine", Qt::CaseInsensitive)) { //Se nel radio button è selezionato kaffeine.
QString kaf_input(virtual_dvd_drive.path());
kaf_input.prepend("dvd:/");
KAffeine.start("kaffeine", QStringList() << kaf_input );
}
else{
if(strb.contains("vlc", Qt::CaseInsensitive)) { //Se nel radio button è selezionato vlc.
VLc.start("vlc", QStringList() << virtual_dvd_drive.path() );
}
else {
SMplayer.start("smplayer", QStringList() << virtual_dvd_drive.path() );
}
}
}
else if (msgBox.clickedButton() == connectButton2)
{
isodamontare.prepend("dvd:/");
if(strb.contains("kaffeine", Qt::CaseInsensitive)) { //Se nel radio button è selezionato kaffeine.
KAffeine.start("kaffeine", QStringList() << isodamontare );
}
else{
if(strb.contains("vlc", Qt::CaseInsensitive)) { //Se nel radio button è selezionato vlc.
VLc.start("vlc", QStringList() << isodamontare );
}
else {
SMplayer.start("smplayer", QStringList() << isodamontare );
}
}
}
}
}
file.close();
Mtab.close();
}
/*void acetoneiso::dvdGui( QLabel *label, QString &string ) //questa funzione pulisce la label e ci riscrive il titolo del dvd.Infine richiama get_cover
{
QDir Temp = QDir::temp();
Temp.cd("acetoneiso");
label->clear();
label->setText("DVD-Movie " + string + + " " + tr(" mounted"));
QFile f1(Temp.path() + "/dvd");
f1.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&f1);
out << ( string );
QTimer::singleShot(2000, this, SLOT(get_cover())); //QUI DEVO ASPETTARE CHE CREA IL FILE /TMP/ACETONEISO/DVD E POI FA COVER
}*/
void acetoneiso::unplay()
{
QDir Home = QDir::home();
QDir Temp = QDir::temp();
Temp.cd("acetoneiso");
QFile dvd_temp( Temp.path() + "/dvd" );
QFile cover( Temp.path() + "/cov.jpg" );
QDir virtual_dvd_drive( Home.path() + "/virtual-drives" + "/dvd" );
FUsermount.start("fusermount", QStringList() << "-u" << "-z" << virtual_dvd_drive.path() );
//label_dvd2->clear();
dvd_temp.remove();
cover.remove();
//label_cover->setPixmap(QPixmap(":/images/default.png"));
//button_saveCover->setVisible(false);
QFile file_xml( Temp.path() + "/xml.xml" );
file_xml.remove();
}
acetoneiso2.4/acetoneiso/sources/a_options.h 0000664 0001750 0001750 00000020207 11403564635 021633 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
/*Here is the function to read the options in ~/.acetoneiso/acetoneiso.conf file*/
#include"options.h"
#include"acetoneiso.h"
//#include"../acetoneiso.h"
#include
void optionsDiag::optionss()
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
if( file.exists() ) {
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QTextStream in(&file);
QString str1 = in.readLine();
QString str2 = in.readLine();
QString str3 = in.readLine();
QString str4 = in.readLine();
QString str5 = in.readLine();
// qDebug() << str1 << str2 << str3 << str4 << str5;
if(str1.contains("standard", Qt::CaseInsensitive)) {
radioButton_5->setChecked(true);
}
else {
radioButton_6->setChecked(true);
}
if(str2.contains("kaffeine", Qt::CaseInsensitive)) {
radioButton_7->setChecked(true);
}
else {
if(str2.contains("vlc", Qt::CaseInsensitive)) {
radioButton_8->setChecked(true); //Caso vlc
}
else {
radioButton->setChecked(true); //caso SMPlayer
}
}
if(str3.contains("kde", Qt::CaseInsensitive)) {
radioButton_9->setChecked(true);
}
if(str3.contains("gnome", Qt::CaseInsensitive)) {
radioButton_10->setChecked(true);
}
if(str3.contains("thunar", Qt::CaseInsensitive)) {
radioButton_2->setChecked(true);
}
if(str3.contains("lxde", Qt::CaseInsensitive)) {
radioButton_4->setChecked(true);
}
if(str3.contains("nofilemanager", Qt::CaseInsensitive)) {
radioButton_3->setChecked(true);
}
if(str5.contains("norecursive", Qt::CaseInsensitive)) {
checkBox->setChecked(false);
}
if(str5.contains("yesrecursive", Qt::CaseInsensitive)) {
checkBox->setChecked(true);
}
lineEdit->setText( str4.remove(0,5) );
file.close();
advanceoptions();
}
else {
setDefaults();
//optionss();//funzione ricorsiva lol lol lol lol lol lol lol .....lol così le impostazioni vengono applicate appena create!!!
}
}
void optionsDiag::advanceoptions() {
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso_advanced.conf");
if( file.exists() ) {
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QTextStream in(&file);
QString string = in.readAll();
if(string.contains("enabletrayicon", Qt::CaseInsensitive)) {
checkBox_2->setChecked(true);
}
else {
checkBox_2->setChecked(false);
}
if(string.contains("closetrayicon", Qt::CaseInsensitive)) {
checkBox_4->setChecked(false);
}
else {
checkBox_4->setChecked(true);
}
if(string.contains("cleanhistory", Qt::CaseInsensitive)) {
checkBox_5->setChecked(false);
}
else {
checkBox_5->setChecked(true);
}
if(string.contains("removefakehistory", Qt::CaseInsensitive)) {
checkBox_6->setChecked(true);
}
else {
checkBox_6->setChecked(false);
}
file.close();
//controlli per disabilitare checkBox e altro
//controllo checkbox enable tray icon
if (checkBox_2->isChecked()) {
checkBox_4->setEnabled(true);
}
else {
checkBox_4->setEnabled(false);
}
//controllo checkbox database ricorsivo
if (checkBox->isChecked()) {
textBrowser->setEnabled(true);
}
else {
textBrowser->setEnabled(false);
}
//controllo checkbox clean history
if (checkBox_5->isChecked()) {
checkBox_6->setEnabled(false);
}
else {
checkBox_6->setEnabled(true);
}
}
else {
setDefaultsadvanced();
}
}
void optionsDiag::update_options()
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.remove();
file.open(QIODevice::ReadWrite );
if( radioButton_5->isChecked() ) {
QTextStream out(&file);
out << ( "ISO_FROM_FOLDER = standard\n" );
}
else {
QTextStream out(&file);
out << ( "ISO_FROM_FOLDER = user \n" );
}
if( radioButton_7->isChecked() ) {
QTextStream out(&file);
out << ( "PLAYER = kaffeine\n" );
}
else {
if( radioButton_8->isChecked() ) {
QTextStream out(&file);
out << ( "PLAYER = vlc \n" );
}
else {
QTextStream out(&file);
out << ( "PLAYER = smplayer \n" );
}
}
if( radioButton_9->isChecked() ) {
QTextStream out(&file);
out << ( "FILE_BROWSER = kde \n" );
}
if( radioButton_10->isChecked() ) {
QTextStream out(&file);
out << ( "FILE_BROWSER = gnome \n" );
}
if( radioButton_2->isChecked() ) {
QTextStream out(&file);
out << ( "FILE_BROWSER = thunar \n" );
}
if( radioButton_4->isChecked() ) {
QTextStream out(&file);
out << ( "FILE_BROWSER = lxde \n" );
}
if( radioButton_3->isChecked() ) {
QTextStream out(&file);
out << ( "FILE_BROWSER = nofilemanager \n" );
}
if( checkBox->isChecked() ) {
QTextStream out(&file);
out << "DB = " <<( lineEdit->text() ) << "\n";
out << ( "recursive = yesrecursive" "\n" );
}
else {
QTextStream out(&file);
out << "DB = " <<( lineEdit->text() ) << "\n";
out << ( "recursive = norecursive" "\n" );
}
file.close();
update_options_advance();
}
void optionsDiag::update_options_advance() {
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso_advanced.conf");
file.remove();
file.open(QIODevice::ReadWrite );
QTextStream out(&file);
/*
out << ( "TRAYICON = enabletrayicon\n" );
out << ( "TRAYICON_MINIMIZE = minimizetrayicon\n" );
out << ( "TRAYICON_CLOSE = closetrayicon\n" );
out << ( "HISTORY_CLEAN = cleanhistory\n" );
out << ( "HISTORY_REMOVE_FAKE = removefakehistory\n" );
*/
if(checkBox_2->isChecked() ) {
out << ( "TRAYICON = enabletrayicon\n" );
}
else {
out << ( "TRAYICON = notrayicon\n" );
}
if(checkBox_4->isChecked() ) {
out << ( "TRAYICON_CLOSE = noclosetrayt\n" );
}
else {
out << ( "TRAYICON_CLOSE = closetrayicon\n" );
}
if(checkBox_5->isChecked() ) {
out << ( "HISTORY_CLEAN = noclnhistory\n" );
}
else {
out << ( "HISTORY_CLEAN = cleanhistory\n" );
}
if(checkBox_6->isChecked() ) {
out << ( "HISTORY_REMOVE_FAKE = removefakehistory\n" );
}
else {
out << ( "HISTORY_REMOVE_FAKE = noremfakehistory\n" );
}
file.close();
}
void optionsDiag::setDefaults()
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&file);
out << ( "ISO_FROM_FOLDER = standard\n" );
out << ( "PLAYER = kaffeine\n" );
out << ( "FILE_BROWSER = kde\n" );
out << ( "DB = " + Home.path() + "\n" );
out << ( "recursive = norecursive" "\n" );
file.close();
setDefaultsadvanced();
optionss();
}
void optionsDiag::setDefaultsadvanced() {
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso_advanced.conf");
file.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&file);
out << ( "TRAYICON = enabletrayicon\n" );
out << ( "TRAYICON_CLOSE = closetrayicon\n" );
out << ( "HISTORY_CLEAN = cleanhistory\n" );
out << ( "HISTORY_REMOVE_FAKE = removefakehistory\n" );
file.close();
optionss();
}
void optionsDiag::getDbDir()
{
QDir Home = QDir::home();
QString folder = QFileDialog::getExistingDirectory(this, tr("AcetoneISO::Select Database Folder"),
Home.path());
if (folder.isNull() ) {
return;
}
else
{
lineEdit->setText( folder );
}
}
acetoneiso2.4/acetoneiso/sources/converter.h 0000664 0001750 0001750 00000022463 11503365416 021652 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::converter()
{
QMessageBox::warning(this, "AcetoneISO",tr("Note:\nISO-9660 filesystem does not support multisector images, this means you will loose all sectors above first sector. Generally speaking, the first sector holds data file.\nIf it's a video game image in MDF/IMG/CCD format, you will probably loose sectors that hold copyprotection files."));
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QFile poweriso_file( acetone_bin.path() + "/poweriso");
if(!poweriso_file.exists()) {
get_poweriso();
return;
}
//estrazione qui
QDir Home = QDir::home();
QString isodaconvertire;
isodaconvertire = QFileDialog::getOpenFileName(this,tr("Open Image"), Home.path() , tr("Image Files (*.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d *.cue)"));
if ( isodaconvertire.isNull() ){
return;
}
QFileInfo fi(isodaconvertire);
QString filenopath = fi.fileName();
filenopath.chop(4);
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save ISO file"),
filenopath ,
tr("Images (*.iso)"));
if (fileName.isNull() ) {
return;
}
fileName = fileName.append(".iso");
showProgressDisplay();
POweriso = new QProcess();
POweriso->setReadChannel(QProcess::StandardOutput);
POweriso->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(POweriso, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_POweriso() ));
connect(POweriso, SIGNAL(finished(int, QProcess::ExitStatus)), this,SLOT( message_extract_finish() ) );
POweriso->start( poweriso_file.fileName(), QStringList() << "convert" << isodaconvertire << "-o" << fileName );
}
//mac converter
void acetoneiso::macimg()
{
QMessageBox msgBox;
msgBox.setText(tr("It is highly recommended to use \"Extract to folder\" feature.\nThis is because the converted ISO image is not a true ISO-9660 filesystem and requires to be mounted from terminal. A loaded hfsplus module is also needed.\nExtracting the image contents to a folder is way easier and faster, and if you need you can always convert the folder to ISO in a second moment with AcetoneISO!\nChoose what to do: "));
QPushButton *connectButton = msgBox.addButton(tr(" Extract to folder (best solution) "), QMessageBox::ActionRole);
QPushButton *connectButton2 = msgBox.addButton(tr(" Convert to ISO (worst solution) "), QMessageBox::ActionRole);
msgBox.exec();
if (msgBox.clickedButton() == connectButton) {
extract();
}
else if (msgBox.clickedButton() == connectButton2) {
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QFile poweriso_file( acetone_bin.path() + "/poweriso");
if(!poweriso_file.exists())
get_poweriso();
else{
//estrazione qui
QDir Home = QDir::home();
QString isodaconvertire;
isodaconvertire = QFileDialog::getOpenFileName(this,tr("Open Image"), Home.path() , tr("Image Files (*.dmg)"));
if (isodaconvertire.isNull() ){
return;
}
QFileInfo fi(isodaconvertire);
QString filenopath = fi.fileName();
filenopath.chop(4);
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save ISO file"),filenopath ,tr("Images (*.iso)"));
if (fileName.isNull() ) {
return;
}
fileName = fileName.append(".iso");
showProgressDisplay();
MAcimg = new QProcess();
MAcimg->setReadChannel(QProcess::StandardOutput);
MAcimg->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(MAcimg, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_MAcimg() ));
connect(MAcimg, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( printOutMACIMG(int, QProcess::ExitStatus) ) );
MAcimg->start( poweriso_file.fileName(), QStringList() << "convert" << isodaconvertire << "-o" << fileName );
}
}
}
void acetoneiso::extract()
{
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QFile poweriso_file( acetone_bin.path() + "/poweriso");
if(!poweriso_file.exists())
get_poweriso();
else {
//estrazione qui
QDir Home = QDir::home();
QString isodaestrarre;
isodaestrarre = QFileDialog::getOpenFileName(this,tr("Open Image"), Home.path() , tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d *.dmg *.cue)"));
if ( isodaestrarre.isNull() ) {
}
else {
QString folder = QFileDialog::getExistingDirectory(this, tr("AcetoneISO::Select where to extract image"),Home.path());
if (folder.isNull() ) {
}
else {
showProgressDisplay();
POweriso = new QProcess();
POweriso->setReadChannel(QProcess::StandardOutput);
POweriso->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(POweriso, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_POweriso() ));
connect(POweriso, SIGNAL(finished(int, QProcess::ExitStatus)), this,SLOT( message_extract_finish() ) );
POweriso->start( poweriso_file.fileName(), QStringList() << "extract" << isodaestrarre << "/" << "-od" << folder );
}
}
}
}
void acetoneiso::get_poweriso()
{
QMessageBox msgBox;
msgBox.setText(tr("Do you want to download Poweriso?\nIf you click yes you accept PowerISO's Freeware(proprietary but gratis) License.\nRemember: if you are running a 64-bit OS, you need ia32-libs package installed and maybe others."));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
switch (msgBox.exec()) {
case QMessageBox::Yes:
{
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QDir::setCurrent( acetone_bin.path() );
WGet.start("wget", QStringList() << "http://www.poweriso.com/poweriso-1.3.tar.gz" );
connect(&WGet, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( extract_poweriso() ));
progBarra();
}
break;
case QMessageBox::No:
QMessageBox::warning(this, "AcetoneISO",tr("Without Poweriso you won't be able to convert and extract images to ISO or folders!"));
break;
default:
// should never be reached
break;
}
}
void acetoneiso::extract_poweriso()
{
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QDir::setCurrent( acetone_bin.path() );
TAr.start("tar", QStringList() << "-xf" << "poweriso-1.3.tar.gz");
}
void acetoneiso::messaggio_poweriso()
{
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QDir::setCurrent( acetone_bin.path() );
QFile poweriso_tar("poweriso-1.3.tar.gz");
poweriso_tar.remove();
QMessageBox::information(this, "AcetoneISO",tr("Poweriso downloaded and extracted!"));
}
void acetoneiso::contextExtract()
{
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QFile poweriso_file( acetone_bin.path() + "/poweriso");
if(!poweriso_file.exists())
get_poweriso();
else {
//estrazione qui
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray utf = (leggiRigo( 4, &file ));
QString strd = QString::fromUtf8(utf);
file.close();
strd.remove(0,5);
strd.chop(1);
//controllo che se strd finisce con / allora si deve togliere.
if( strd.endsWith( "/" ) ) {
strd.chop(1);
}
QString isodaestrarre = ( strd + "/" + fileDaMontare ); //file da estrarre comprensivo di percorso
QFile image_exists(isodaestrarre);
if (!image_exists.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("The image ") + isodaestrarre + tr(" doesn't exist.\nI'll remove it from database display."));
int riga = listWidget->currentRow() ;
listWidget->takeItem( riga );
file.close();
return;
}
QString folder = QFileDialog::getExistingDirectory(this, tr("AcetoneISO::Select where to extract image"),Home.path());
if (folder.isNull() ) {
return;
}
showProgressDisplay();
POweriso = new QProcess();
POweriso->setReadChannel(QProcess::StandardOutput);
POweriso->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(POweriso, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_POweriso() ));
connect(POweriso, SIGNAL(finished(int, QProcess::ExitStatus)), this,SLOT( message_extract_finish() ) );
POweriso->start( poweriso_file.fileName(), QStringList() << "extract" << isodaestrarre << "/" << "-od" << folder );
file.close();
}
}
acetoneiso2.4/acetoneiso/sources/history.h 0000775 0001750 0001750 00000023007 11503365416 021342 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::clear_history() {
QDir Home = QDir::home();
QFile history_conf(Home.path() + "/.acetoneiso/history.conf");
int items = history->count();
// qDebug() << items;
if (items < 1) {
history_conf.close();
QMessageBox::information(this, "AcetoneISO",tr("The History display is already empty!"));
return;
}
QMessageBox msgBox;
msgBox.setText(tr("You are about to clear the History display.\nThis won't delete the images from hard disk.\nClear History?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
switch (msgBox.exec()) {
case QMessageBox::Yes:
{
//continue below
}
break;
case QMessageBox::No:
{
history_conf.close();
return; //exit
}
break;
default:
// should never be reached
break;
}
history->clear();
history_conf.remove();
}
void acetoneiso::removeHistory() {
int boot = 1;
remove_non_images_history(boot);
}
void acetoneiso::remove_non_images_history(int boot) {
//QMessageBox::warning(this, "AcetoneISO::First Launch","lol");
bool image_exists = false;
QDir Home = QDir::home();
QFile history_conf(Home.path() + "/.acetoneiso/history.conf");
history_conf.open(QIODevice::ReadWrite);
QTextStream history_out(&history_conf);
QString history_line = history_out.readAll();
QStringList list = history_line.split("\n",QString::SkipEmptyParts);
int size = list.size();
int read_i = 0;
while (read_i < size) {
// qDebug() << list[read_i];
QFile image(list[read_i]);
if (!image.exists()) {
//qDebug() << "Io non esisto " << list[read_i];
image_exists = true;
list.removeAt(read_i);
size = size - 1;
}
read_i++;
}
history_conf.close();
history_conf.remove();
QFile history_new(Home.path() + "/.acetoneiso/history.conf");
history_new.open(QIODevice::ReadWrite);
QTextStream history_out_new(&history_new);
int i_new = 0;
int size_new = list.size();
while (i_new < size_new) {
//qDebug() << list[i_new];
history_out_new << ( list[i_new] + "\n");
i_new++;
}
history_new.close();
history->clear();
load_history();
if (image_exists) {
if (boot != 2) {
//sara' uguale a 2 quando un utente decide di eliminare un file dal context menu
//in caso di 2, non voglio che mi da questo messaggio
QMessageBox::information(this, "AcetoneISO",tr("All images that don't exist have been removed from History"));
}
}
else {
//sara' uguale a 1 solo quando manualmente lutente decide di fare quest'azione. all'avvio boot = 0
if (boot == 1) {
int items = history->count();
// qDebug() << items;
if (items < 1) {
history_conf.close();
QMessageBox::information(this, "AcetoneISO",tr("The History display is already empty!"));
return;
}
else {
QMessageBox::information(this, "AcetoneISO",tr("All images in History fisically exist!"));
}
}
}
image_exists = false;
}
//gestisce doppio click in cronologia
void acetoneiso::historydoubleclickmount(QListWidgetItem *itemh) {
immagine_con_percorso = ( (itemh->text()));//da ora ho in isodamontare il file con tutto il suo percorso.
//controllo che esiste il file
QFile image_exists(immagine_con_percorso);
if (!image_exists.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("The image ") + immagine_con_percorso + tr(" doesn't exist.\nI'll remove it from history display."));
int boot = 2;
remove_non_images_history(boot);
return;
}
global_functions_mount(immagine_con_percorso);
}
//gestisce context menu della cronologia
void acetoneiso::historycontextmenu(const QPoint & posh)
{
QIcon mount_icon( ":/images/cdwriter_mount.png" );
QIcon delete_icon( ":/images/edit-delete.png" );
QMenu *userListMenuh;
userListMenuh = new QMenu();
QAction *mountActionh = userListMenuh->addAction( mount_icon, tr("mount") );
QAction *deleteActionh = userListMenuh->addAction( delete_icon, tr("delete") );
QPoint globalPos = history->mapToGlobal(posh); // Map the global position to the userlist
QModelIndex t = history->indexAt(posh);
//immagine_con_percorso variabile globale che contiene percorso immagine
connect( mountActionh, SIGNAL( triggered() ), this, SLOT( historycontextmenuMount() ) );
connect( deleteActionh, SIGNAL( triggered() ), this, SLOT( historycontextmenuDelete() ) );
if( t.row() >= 0 ) { //previene un segfault se clicco col destro sullo spazio vuoto
history->item(t.row())->setSelected(true); // even a right click will select the item
immagine_con_percorso.clear();
immagine_con_percorso = history->item(t.row())->text();
QFileInfo image(immagine_con_percorso);
QString image_no_path = image.fileName();
mountActionh->setText(tr("mount") + " " + image_no_path);
deleteActionh->setText(tr("delete") + " " + image_no_path);
userListMenuh->exec(globalPos);
}
}
//gestisco montaggio da context menu della cronologia
void acetoneiso::historycontextmenuMount() {
//controllo che esiste il file
QFile image_exists(immagine_con_percorso);
if (!image_exists.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("The image ") + immagine_con_percorso + tr(" doesn't exist.\nI'll remove it from history display."));
int boot = 2;
remove_non_images_history(boot);
return;
}
global_functions_mount(immagine_con_percorso);
}
//gestisco cancella da context menu della cronologia
void acetoneiso::historycontextmenuDelete() {
QString oggetto(history->currentItem()->text() );//immagine selezionata
QFile immagine_corrente( oggetto );
if (!immagine_corrente.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("The image ") + oggetto + tr(" doesn't exist.\nI'll remove it from history display."));
int boot = 2;
remove_non_images_history(boot);
return;
}
QMessageBox msgBox;
msgBox.setText(tr("You are about to delete ") + oggetto + (" ") + tr("\nThis will remove it from history and fisically delete it.") + tr("\nAre You sure?"));
QPushButton *connectButton = msgBox.addButton(tr("Yes"), QMessageBox::ActionRole);
QPushButton *connectButton2 = msgBox.addButton(tr("No way!"), QMessageBox::ActionRole);
msgBox.exec();
if (msgBox.clickedButton() == connectButton) {
immagine_corrente.remove();
int boot = 2;
remove_non_images_history(boot);
}
else if (msgBox.clickedButton() == connectButton2) {
}
}
//carico la cronologia
void acetoneiso::load_history() {
history->clear();
QDir Home = QDir::home();
QFile history_conf(Home.path() + "/.acetoneiso/history.conf");
history_conf.open(QIODevice::ReadOnly | QIODevice::Text);
QTextStream history_out(&history_conf);
int read_i = 0;
while (true) {
QString history_line = history_out.readLine();
if (history_line == "") {
break;
}
history->insertItem(read_i, history_line);
//qDebug() << history_line;
read_i++;
}
history_conf.close();
}
//gestisco l'autoclean della cronologia e rimozione automatica dei file inesistenti
void acetoneiso::history_autoclean() {
QDir HomeT = QDir::home();
QFile fileT(HomeT.path() + "/.acetoneiso/acetoneiso_advanced.conf");
fileT.open(QIODevice::ReadOnly | QIODevice::Text);
QString tray = fileT.readAll();
if(!tray.contains("cleanhistory", Qt::CaseInsensitive)) {
QFile history_file(HomeT.path() + "/.acetoneiso/history.conf");
history_file.remove();
history->clear();
}
else {
history_remove_nonexistant_images();
}
fileT.close();
}
//gestisce rimozione file inesistenti dalla cronologia. viene chiamato dalla funzione history_autoclean()
void acetoneiso::history_remove_nonexistant_images() {
QDir HomeT = QDir::home();
QFile fileT(HomeT.path() + "/.acetoneiso/acetoneiso_advanced.conf");
fileT.open(QIODevice::ReadOnly | QIODevice::Text);
QString tray = fileT.readAll();
if(tray.contains("removefakehistory", Qt::CaseInsensitive)) {
int boot = 0;
remove_non_images_history(boot);
}
fileT.close();
}
//gestisce search della cronologia
void acetoneiso::search_history()
{
if( !search_history_lineedit->text().isEmpty() ) { //se la lineEdit non è vuota
int elements = history->count(); //numero totale di elementi nella lista
int position = 0;
//Nel ciclo while pongo come nascosti tutti gli elementi della lista
while( position < elements ) {
history->item( position )->setHidden(true);
position = position +1;
}
QList found(history->findItems( search_history_lineedit->text(), Qt::MatchContains )); //cerca gli elementi che contengono la stringa nel lineEdit
QListWidgetItem* item;
//in questo ciclo pongo come visibili solo gli elementi che contengono nel proprio nome la stringa che cerco.
foreach (item, found ) {
item->setHidden(false);
}
}
else {
load_history();
}
}
acetoneiso2.4/acetoneiso/sources/manual.cpp 0000664 0001750 0001750 00000001734 11216475307 021453 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include "manual.h"
//
manualDiag::manualDiag( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)
{
setupUi(this);
textBrowser->setSource( QUrl("qrc:/manual/manual.html") );
}
//
acetoneiso2.4/acetoneiso/sources/messages.h 0000664 0001750 0001750 00000023555 11254250064 021450 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::printOut(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = MKisofs->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
pushButton_6->setEnabled(true);
}
void acetoneiso::printOutisofromcd(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = DD.exitCode();
if(valore_uscita == 0)
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
void acetoneiso::printOutflv(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = FLv->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
}
else {
QMessageBox::critical(this, "AcetoneISO",tr("An error has occured.\nPlease try converting the FLV video with Convert generic video to Xvid AVI feature") );
}
pushButton_6->setEnabled(true);
}
void acetoneiso::printOutvidgen(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = VIdgen->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
pushButton_6->setEnabled(true);
}
void acetoneiso::printOutcompress(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
pushButton_6->setEnabled(true);
int valore_uscita = PZip.exitCode();
if( valore_uscita == 0 )
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
void acetoneiso::printOutuncompress(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
pushButton_6->setEnabled(true);
int valore_uscita = PZipuncompress.exitCode();
if( valore_uscita == 0 )
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
void acetoneiso::printOutcue(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = CUe.exitCode();
if( valore_uscita == 0 )
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
void acetoneiso::printOutsplit(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
pushButton_6->setEnabled(true);
int valore_uscita = SPlit.exitCode();
if( valore_uscita == 0 )
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
void acetoneiso::printOutgpg(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = GPg.exitCode();
if(valore_uscita == 0)
QMessageBox::information(this, "AcetoneISO",tr("Operation succesfully finished!\nFind the file in ") + QDir::home().path());
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
void acetoneiso::mergeMSG(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = CAt.exitCode();
if(valore_uscita == 0)
QMessageBox::information(this, "AcetoneISO",tr("Image succesfully merged"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
void acetoneiso::printOutumount(int, QProcess::ExitStatus)
{
status_mounted_no_boot();
int valore_uscita = FUsermount.exitCode();
if(valore_uscita == 1) {
status_mounted_no_boot();
QMessageBox::critical(this, "AcetoneISO",tr("An error occurred while unmounting.\nThe image has been unmounted but it is highly recommended to close and reopen AcetoneISO to mount a new image.") );
}
else{
status_mounted_no_boot();
}
}
//messaggi
void acetoneiso::printOutfuseiso(int, QProcess::ExitStatus)
{
status_mounted_no_boot();
int valore_uscita = FUse.exitCode();
if(!valore_uscita == 0){
status_mounted_no_boot();
QMessageBox::critical (this, "AcetoneISO",tr("Error, could not mount image.\n\nSolution:\nTry converting the image to ISO or extract the content to a folder from the upper menu \"Image Conversion.\"\nNOTE: it is NOT possible to mount multi-sector images.\nFor more information, please visit official website: http://www.acetoneteam.org" ));
}
else{
status_mounted_no_boot();
pushButton_2->setEnabled(true);
actionUnmount_Image->setEnabled(true);
}
}
void acetoneiso::printOutextractaudiofromvideo(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = extractaudiofromvideo->exitCode();
if( valore_uscita == 0 ) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
pushButton_6->setEnabled(true);
}
//messaggi
void acetoneiso::printOututube(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = UTube->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
pushButton_6->setEnabled(true);
}
void acetoneiso::message_extract_finish()
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = POweriso->exitCode();
if( valore_uscita == 0 ) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
pushButton_6->setEnabled(true);
}
void acetoneiso::printOutMACIMG(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = MAcimg->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Operation succesfully finished!\n"
"To mount the converted file, open a terminal and run as root:\n"
"modprobe hfsplus\n"
"mount -t hfsplus -o loop /folder_you_want"));
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
pushButton_6->setEnabled(true);
}
void acetoneiso::printOutbackaudio(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = BAckaudio->exitCode();
if( valore_uscita == 0 ) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) + tr("\nDid you insert correct CD/DVD device?") );
}
pushButton_6->setEnabled(true);
}
void acetoneiso::printOutpsx(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
int valore_uscita = PSxrip->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) + tr("\nDid you insert correct CD/DVD device?") );
}
pushButton_6->setEnabled(true);
}
void acetoneiso::printOutRAR(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
pushButton_6->setEnabled(true);
int valore_uscita = RAR->exitCode();
if(valore_uscita == 0)
QMessageBox::information(this, "AcetoneISO",tr("Operation succesfully finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
acetoneiso2.4/acetoneiso/sources/status_mounted_no_boot.h 0000775 0001750 0001750 00000005200 11273350461 024427 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::status_mounted_no_boot()
{
QDir Temp = QDir::temp();
Temp.cd("acetoneiso");
QFile f1(Temp.path() + "/1");
QFile f2(Temp.path() + "/2");
QFile f3(Temp.path() + "/3");
QFile f4(Temp.path() + "/4");
QFile f5(Temp.path() + "/5");
QFile f6(Temp.path() + "/6");
QFile f7(Temp.path() + "/7");
QFile dvd_temp(Temp.path() + "/dvd");
bool isomounted = false;
int countdrives = 0;
if (f1.exists())
{
//qDebug() << "ci sto";
countdrives = countdrives + 1;
isomounted = true;
}
if (f2.exists())
{
countdrives = countdrives + 1;
isomounted = true;
}
if (f3.exists())
{
countdrives = countdrives + 1;
isomounted = true;
}
if (f4.exists())
{
countdrives = countdrives + 1;
isomounted = true;
}
if (f5.exists())
{
countdrives = countdrives + 1;
isomounted = true;
}
if (f6.exists())
{
countdrives = countdrives + 1;
isomounted = true;
}
if (f7.exists())
{
countdrives = countdrives + 1;
isomounted = true;
}
if (dvd_temp.exists())
{
}
//qDebug() << countdrives;
if (countdrives >= 7){
pushButton->setEnabled(false);
actionMount_Image->setEnabled(false);
pushButton->setText(tr("Reached maximum allowed drives to mount."));
}
else{
pushButton->setEnabled(true);
actionMount_Image->setEnabled(true);
pushButton->setText(tr("Mount"));
}
if (isomounted) {
int size = listWidget_2->selectedItems().size();
if (size < 1) {
pushButton_2->setText(tr("Unmount"));
actionUnmount_Image->setText(tr("Unmount Image"));
actionUnmount_Image->setEnabled(false);
pushButton_2->setEnabled(false);
return;
}
actionUnmount_Image->setEnabled(true);
pushButton_2->setEnabled(true);
}
else{
actionUnmount_Image->setEnabled(false);
pushButton_2->setEnabled(false);
pushButton_2->setText(tr("Unmount"));
actionUnmount_Image->setText(tr("Unmount Image"));
}
f1.close();
f2.close();
f3.close();
f4.close();
f5.close();
f6.close();
f7.close();
dvd_temp.close();
}
acetoneiso2.4/acetoneiso/sources/compress.h 0000664 0001750 0001750 00000015166 11254250064 021473 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::compress()
{
QDir bin("/usr/bin");
QFile pzip;
QDir::setCurrent( bin.path() );
pzip.setFileName("7z");
if (pzip.exists())
{
QDir Home = QDir::home();
QString dacomprimere = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select Image to compress"), Home.path(), tr("Image Files (*.iso *.daa *.bin *.mdf *.ashdisc *.bwi *.b5i *.lcd *.img *.cdi *.cif *.p01 *.pdi *.nrg *.ncd *.pxi *.gi *.fcd *.vcd *.c2d *.gpg)"));
if (!dacomprimere.isEmpty() )
{
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save Compressed Image"),
Home.path() + "/AcetoneISO_Compressed",
tr("Images (*.7z)"));
if ( fileName.isNull() ) {
return;
}
fileName.append(".7z");
disable_all_button_processes();
QMessageBox msgBox;
msgBox.setText(tr("Do You want to compress in Ultra High mode? (very slow)"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
switch (msgBox.exec()) {
case QMessageBox::Yes:
{
PZip.start("7z",QStringList() << "a" << "-y" << "-t7z" << "-m0=lzma" << "-mx=9" << "-mfb=64" << "-md=32m" << "-ms=on" << fileName << dacomprimere );
progBarra();
}
break;
case QMessageBox::No:
{
PZip.start("7z",QStringList() << "a" << "-y" << "-t7z" << "-m0=lzma" << "-mx=4" << "-mfb=32" << "-md=4m" << "-ms=on" << fileName << dacomprimere );
progBarra();
}
break;
default:
// should never be reached
break;
}
}
}
else
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no 7z found in /usr/bin"));
}
void acetoneiso::uncompress()
{
QDir bin("/usr/bin");
QFile pzip;
QDir::setCurrent( bin.path() );
pzip.setFileName("7z");
if (pzip.exists()){
QDir Home = QDir::home();
QString fileName = QFileDialog::getOpenFileName(this,tr("Open Compressed Image"), Home.path() , tr("Image Files (*.7z)"));
if ( fileName.isNull() ){
}
else{
QDir Home = QDir::home();
QString uncompress_folder = QFileDialog::getExistingDirectory(this, tr("AcetoneISO::Select Folder where the uncompressed Image will be saved"),Home.path() );
if ( uncompress_folder.isNull() ){
}
else{
uncompress_folder = uncompress_folder.prepend("-o");
disable_all_button_processes();
PZipuncompress.start("7z",QStringList() << "e" << "-y" << fileName << uncompress_folder);
progBarra();
}
}
}
else
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no 7z found in /usr/bin, please install p7zip-full package"));
}
//extract rar password protected feature
void acetoneiso::rar()
{
//unrar x -p123xxx321 -y ok.rar /home/doe/dove_ti_pare
QDir bin("/usr/bin");
QFile rar;
QDir::setCurrent( bin.path() );
rar.setFileName("unrar-nonfree");
if (rar.exists())
{
QDir Home = QDir::home();
QString fileName = QFileDialog::getOpenFileName(this,tr("Open RAR password protected"),Home.path() , tr("RAR File (*.rar *.rev *.r00)"));
if ( fileName.isNull() ) {
return;
}
bool okkk;
QString text3 = QInputDialog::getText(this, tr("AcetoneISO::Insert password"),
tr("Please insert the password of the RAR archive"), QLineEdit::Password, "", &okkk);
if (okkk && !text3.isEmpty()) {
QDir Home = QDir::home();
QString uncompress_folder = QFileDialog::getExistingDirectory(this, tr("AcetoneISO::Select Folder where the uncompressed RAR will be extracted"),Home.path() );
if ( uncompress_folder.isNull() ){
return;
}
QString file;
file = text3.prepend("-p");
showProgressDisplay();
RAR = new QProcess();
RAR->setReadChannel(QProcess::StandardOutput);
RAR->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(RAR, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_RAR() ));
connect(RAR, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutRAR(int, QProcess::ExitStatus)));
RAR->start("unrar-nonfree",QStringList() << "x" << file << "-y" << fileName << uncompress_folder);
}
}
else
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no unrar-nonfree found in /usr/bin. Please install unrar-nonfree package."));
}
/*
QUESTO CODICE FUNZIONA, PECCATO CHE IL FILE GENERATO NON FUNZIONA CON LA PSP!
//iso 2 cso for Sony PSP (what? custom firmware?! :DDDDDDD go go Dark Alex!)
void acetoneiso::cso()
{
//ciso 9 infile.iso outfile.cso
QDir bin("/usr/bin");
QFile cso;
QDir::setCurrent( bin.path() );
cso.setFileName("ciso");
if (cso.exists())
{
QDir Home = QDir::home();
QString fileName = QFileDialog::getOpenFileName(this,tr("ISO PSP game"),Home.path() , tr("ISO File (*.iso)"));
if ( fileName.isNull() ) {
return;
}
else{
QString filesave = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save Compressed PSP Game"),
Home.path() + "/AcetoneISO_PSP_Game_Compressed",
tr("CSO (*.cso)"));
if ( filesave.isNull() )
{
}
else
{
filesave.append(".cso");
PZipuncompress.start("ciso",QStringList() << "9" << fileName << filesave);
progBarra();
}
}
}
else
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no ciso found in /usr/bin. Please install ciso package."));
}
//da cso a iso
void acetoneiso::cso2iso()
{
//ciso 0 infile.iso outfile.cso
QDir bin("/usr/bin");
QFile cso;
QDir::setCurrent( bin.path() );
cso.setFileName("ciso");
if (cso.exists())
{
QDir Home = QDir::home();
QString fileName = QFileDialog::getOpenFileName(this,tr("CSO PSP game"),Home.path() , tr("CSO File (*.cso)"));
if ( fileName.isNull() ) {
return;
}
else{
QString filesave = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save extracted ISO PSP Game"),
Home.path() + "/AcetoneISO_PSP_ISO",
tr("ISO (*.iso)"));
if ( filesave.isNull() )
{
}
else
{
filesave.append(".iso");
PZipuncompress.start("ciso",QStringList() << "0" << fileName << filesave);
progBarra();
}
}
}
else
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no ciso found in /usr/bin. Please install ciso package."));
}
*/
acetoneiso2.4/acetoneiso/sources/umount_check.h 0000664 0001750 0001750 00000003025 11216475307 022322 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO2 is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO2 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO2. If not, see .
void acetoneiso::umountcheck()
{
/*//mi prendo i tre numeri tipo 0,1,0 che ci dice la periferica
QString device = deviceID();
if( device.isEmpty( ) ) {
QMessageBox::critical(this, "AcetoneISO2",tr("Unable to unmount the CD/DVD device.\nPlease insert an empty CD/DVD media in device.") );
}
else
{
//QMessageBox::warning(this, "AcetoneISO2::Warning!", device);
UCheck.start("umount",QStringList() << device );
}*/
}
void acetoneiso::printOutucheck(int, QProcess::ExitStatus)
{
int valore_uscita = UCheck.exitCode();
if(valore_uscita == 1)
QMessageBox::critical(this, "AcetoneISO2",tr("Unable to unmount the CD/DVD device.\nBe sure there is no process that is locking the device.\nPlease click on Cancel button in the next dialog.") );
}
acetoneiso2.4/acetoneiso/sources/utube.h 0000664 0001750 0001750 00000016700 11552661720 020765 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
int acetoneiso::utubedownload() {
QDir Homeutube = QDir::home();
QFile yutubbodl(Homeutube.path() + "/.acetoneiso/youtube-dl");
yutubbodl.remove();
//system ("rm $HOME/.acetoneiso/youtube-dl > /dev/null 2>&1");
if (system ("cd $HOME/.acetoneiso/;wget http://digilander.libero.it/bulletxt/youtube-dl > /dev/null 2>&1" ) ) {
}
//system ("chmod 755 $HOME/.acetoneiso/youtube-dl > /dev/null 2>&1");
yutubbodl.setPermissions(QFile::ReadOwner | QFile::WriteOwner | QFile::ExeOwner | QFile::ExeGroup | QFile::ReadGroup | QFile::ReadOther | QFile::ExeOther);
if (yutubbodl.exists()) {
return 0;
}
else {
return 1;
}
}
void acetoneiso::utube()
{
utubedownload();
if (utubedownload() == 1) {
QMessageBox::warning(this, "AcetoneISO",tr("Unable to download youtube-dl.\nPlease try again and be sure your internet connection is alive.\nIf the problem persists please contact us at acetoneiso@gmail.com ."));
return;
}
QDir Homeutube = QDir::home();
bool ok;
QString text = QInputDialog::getText(this, tr("AcetoneISO::YouTube"),
tr("Insert YouTube's URL:\nNote: YouTube's server is often very slow, big files can require a lot of time to download!"), QLineEdit::Normal,
"www.youtube.com/", &ok);
if (ok && !text.isEmpty()) {
QDir Home = QDir::home();
QString folder = QFileDialog::getExistingDirectory(this, tr("Select where to Save the Youtube Video"),Home.path());
if (folder.isNull() ) {
return;
}
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QFile utube_file( acetone_bin.path() + "/youtube-dl");
showProgressDisplay();
UTube = new QProcess();
UTube->setReadChannel(QProcess::StandardOutput);
UTube->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(UTube, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_UTube() ));
connect( UTube, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOututube(int, QProcess::ExitStatus)));
QDir upath(folder);
QString youtube_path = upath.filePath(folder);
//qDebug() << youtube_path;
UTube->setWorkingDirectory(youtube_path);
UTube->start( utube_file.fileName(), QStringList() << "-t" << text );
}
}
//youtube-dl -o $HOME/vid.flv $URL
void acetoneiso::utubeuser()
{
utubedownload();
if (utubedownload() == 1) {
QMessageBox::warning(this, "AcetoneISO",tr("Unable to download youtube-dl.\nPlease try again and be sure your internet connection is alive.\nIf the problem persists please contact us at acetoneiso@gmail.com ."));
return;
}
QDir Homeutube = QDir::home();
bool ok;
QString text = QInputDialog::getText(this, tr("AcetoneISO::YouTube"),
tr("Insert YouTube's URL:\nNote: YouTube's server is often very slow, big files can require a lot of time to download!"), QLineEdit::Normal,
"www.youtube.com/", &ok);
if (ok && !text.isEmpty()) {
QDir Home = QDir::home();
QString folder = QFileDialog::getExistingDirectory(this, tr("Select where to Save the Youtube Video"),Home.path());
if (folder.isNull() ) {
return;
}
bool okk;
QString text2 = QInputDialog::getText(this, tr("AcetoneISO::YouTube"),
tr("Please insert your YouTube's username"), QLineEdit::Normal,
tr("your username"), &okk);
if (okk && !text2.isEmpty()) {
bool okkk;
QString text3 = QInputDialog::getText(this, tr("AcetoneISO::YouTube"),
tr("Please insert your YouTube's password"), QLineEdit::Password, "", &okkk);
if (okkk && !text3.isEmpty()) {
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QFile utube_file( acetone_bin.path() + "/youtube-dl");
showProgressDisplay();
UTube = new QProcess();
UTube->setReadChannel(QProcess::StandardOutput);
UTube->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(UTube, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_UTube() ));
connect( UTube, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOututube(int, QProcess::ExitStatus)));
QDir upath(folder);
QString youtube_path = upath.filePath(folder);
//qDebug() << youtube_path;
UTube->setWorkingDirectory(youtube_path);
UTube->start( utube_file.fileName(), QStringList() << "-u" << text2 << "-p" << text3 << "-t" << text );
}
}
}
}
void acetoneiso::metacafe()
{
// faccio scaricare youtube-dl ogni volta perche' si aggiorna sempre. tanto il file occupa appena 10kb e fa subito a scaricarlo
// con questa tecnica un utente che non aggiorna spesso acetoneiso è cmq abilitato a poter scaricare da youtube nel tempo.
//youtube ha l'abitudine di cambiare metodo di download piu di una volta al mese quindi questa è la soluzione piu efficiente
QDir Homeutube = QDir::home();
QFile yutubbodl(Homeutube.path() + "/.acetoneiso/metacafe-dl");
yutubbodl.remove();
//system ("rm $HOME/.acetoneiso/metacafe-dl > /dev/null 2>&1");
if (system ("cd $HOME/.acetoneiso/;wget http://www.arrakis.es/~rggi3/metacafe-dl/metacafe-dl > /dev/null 2>&1")) {
}
//system ("chmod 755 $HOME/.acetoneiso/metacafe-dl > /dev/null 2>&1");
yutubbodl.setPermissions(QFile::ReadOwner | QFile::WriteOwner | QFile::ExeOwner | QFile::ExeGroup | QFile::ReadGroup | QFile::ReadOther | QFile::ExeOther);
bool ok;
QString text = QInputDialog::getText(this, tr("AcetoneISO::MetaCafe"),
tr("Insert MetaCafe's URL:\n"), QLineEdit::Normal,
"http://www.metacafe.com/", &ok);
if (ok && !text.isEmpty()) {
QDir Home = QDir::home();
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save Video file"),
Home.path() + "/AcetoneISO_MetaCafe",
tr("Video (*.flv)"));
if ( !fileName.isNull() ) {
QDir acetone_bin = QDir::home();
acetone_bin.cd(".acetoneiso");
QFile utube_file( acetone_bin.path() + "/metacafe-dl");
QString file;
file = fileName.append(".flv" );
showProgressDisplay();
UTube = new QProcess();
UTube->setReadChannel(QProcess::StandardOutput);
UTube->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(UTube, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_UTube() ));
connect( UTube, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOututube(int, QProcess::ExitStatus)));
UTube->start( utube_file.fileName(), QStringList() << "-o" << file << text );
}
}
}
acetoneiso2.4/acetoneiso/sources/acetoneiso.h 0000664 0001750 0001750 00000022053 11661006120 021754 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#ifndef MYQTAPP_H
#define MYQTAPP_H
#include
#include "../build/ui_acetoneiso.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include"progress.h"
#include"QFileSystemModel"
#include"QFileSystemWatcher"
#include
class acetoneiso : public QMainWindow, private Ui::acetoneiso
{
Q_OBJECT
public:
acetoneiso();
QString folder_mounted;
progressDiag prog;
float burn_dim;
QString fileDaMontare;
QFile pathToListWidgetFile;
QString deviceID() const;
QByteArray leggiRigo( int numeroRigo, QFile *filee );
void dimToBurnProg( float n );
//tray
void setVisible(bool visible);
QSystemTrayIcon *trayIcon;
QAction *OptionsAction;
QAction *AboutAction;
QAction *MountAction;
QAction *minimizeAction;
QAction *restoreAction;
QAction *quitAction;
QMenu *trayIconMenu;
bool tray_has_loaded;
QString immagine_con_percorso;
QByteArray process_output;
QString ripdvd_audiotype;
//torrent
int indexTorrentIs; //globally know current item torrent selected
QString global_torrent_file; //global current torrent file full path
QString RealTorrentName; // global current torrent real name
QByteArray aria2RealNameOutput;
QByteArray aria2RealNameOutput_temp;
QByteArray aria2_output;
QByteArray aria2_output_real;
QList process_list;
QList item_list;
QHash processId_torrentName;
protected:
void closeEvent(QCloseEvent *event);
private slots:
void connections();
void load_trayicon();
void mount();
void umount();
void extract();
void converter();
void foldertoiso();
void psxrip();
void compress();
void decrypt();
void encrypt();
void isocd();
void md5check();
void md5generate();
void merge();
void split();
void uncompress();
void play();
void unplay();
void gencue();
//void database();
void a_donate();
void macimg();
void udf();
void rip();
void vidgeneric();
void flvavi();
void gmount();
void gumount();
void isopcgame();
void backupaudio();
void mdatabase(QListWidgetItem *item);
void getboot();
void printOut(int, QProcess::ExitStatus);
void progBarra();
void closeProg();
void status_mounted_no_boot();
void printOutcompress(int, QProcess::ExitStatus);
void printOutuncompress(int, QProcess::ExitStatus);
void printOutpsx(int, QProcess::ExitStatus);
void printOutsplit(int, QProcess::ExitStatus);
void printOutisofromcd(int, QProcess::ExitStatus);
void printOutMACIMG(int, QProcess::ExitStatus);
void printOutbackaudio(int, QProcess::ExitStatus);
void printOutfuseiso(int, QProcess::ExitStatus);
void printOutgpg(int, QProcess::ExitStatus);
void printOutcue(int, QProcess::ExitStatus);
void printOutrip(int, QProcess::ExitStatus);
void printOutrip2(int, QProcess::ExitStatus);
void open_mounted(QListWidgetItem *item);
void status_mounted();
void get_poweriso();
void extract_poweriso();
void messaggio_poweriso();
void message_extract_finish();
void initial_get_database();
void remove_fromDatabase();
void mergeMSG(int, QProcess::ExitStatus);
void Monta( QString &image, QString &destination );
void openBrowser( QString &destination, QString onlyfile, float divide, QString &temporary, QString image_with_path );
void on_options_nda_activated();
void createOption();
void on_actionAbout_activated();
void on_actionManual_activated();
void printOutvidgen(int, QProcess::ExitStatus);
void printOutflv(int, QProcess::ExitStatus);
void printOututube(int, QProcess::ExitStatus);
void printOutumount(int, QProcess::ExitStatus);
//void printOutburniso(int, QProcess::ExitStatus);
void printOutucheck(int, QProcess::ExitStatus);
void printOutaudiotools(int, QProcess::ExitStatus);
void utube();
void utubeuser();
void metacafe();
//void pornotube();
//void formatcd();
//void formatdvd();
void umountcheck();
//void treeView_change( );
//void setTreeView();
//void setRootIndex(const QModelIndex& index);
//void initFileSystemWatcher();
void cmlMount();
void wma2wav();
void wavmp3( QString str1, QString str2 );
void ripcdaudio();
void printOutripaudio(int, QProcess::ExitStatus);
void rar();
void extractaudio();
void wav2mp3();
void printOutextractaudiofromvideo(int, QProcess::ExitStatus);
void search();
void setDockPos();
void setDockInit();
void userListMenuRequested(const QPoint & pos);
void menuMount();
void contextExtract();
void convertpsp();
void load_history();
void clear_history();
void remove_non_images_history(int);
void iconActivated(QSystemTrayIcon::ActivationReason reason);
void database_label();
void call_database_options();
void history_autoclean();
void history_remove_nonexistant_images();
void historydoubleclickmount(QListWidgetItem *);
void historycontextmenu(const QPoint & posh);
void mountdisplaycontextmenu(const QPoint & posm);
void historycontextmenuMount();
void global_functions_mount(QString immagine_con_percorso);
void historycontextmenuDelete();
void search_history();
void openfilemanager_contextmenu();
void openFileManager(QString immagine_con_percorso);
void unmount_contextmenu();
void showProgressDisplay();
void updateProgressDisplay_vidgen();
void hide_process_display();
void updateProgressDisplay_flv();
void updateProgressDisplay_extractaudiofromvideo();
void updateProgressDisplay_UTube();
void restore_all_button_processes();
void disable_all_button_processes();
void paypal();
void updateProgressDisplay_MKisofs();
void updateProgressDisplay_POweriso();
void updateProgressDisplay_MAcimg();
void updateProgressDisplay_BAckaudio();
void updateProgressDisplay_PSxrip();
void updateProgressDisplay_RIp();
void updateProgressDisplay_RIp2();
void updateProgressDisplay_RAR();
void printOutRAR(int, QProcess::ExitStatus);
void erase_media();
void sha1();
void sha256();
void sha384();
void create_virtual_drives();
void remove_virtual_drives();
void quitto();
void mountdisplayClicked();
void burniso2_cd();
int utubedownload();
void removeHistory();
//torrent
void mainTabChanged(int);
void itemTorrentChanged();
void readTorrentList();
void openTorrent();
void openUrlTorrent() ;
void handleTorrentName(QString);
void AriaName();
void ariaGotName(int, QProcess::ExitStatus);
void saveTorrentListCFG();
void AriaDisplay() ;
void runTorrent(QString, QString);
void closeAllTorrents();
private:
QProcess *MKisofs;
QProcess FUse;
QProcess BRowser;
QProgressBar *progressBar;
QProcess PZip;
QProcess DD;
QProcess FUsermount;
QProcess *PSxrip;
QProcess PZipuncompress;
QProcess UMountcdrom;
QProcess SPlit;
QProcess WGet;
QProcess TAr;
QProcess *POweriso;
QProcess CUe;
QProcess KAffeine;
QProcess VLc;
QProcess SMplayer;
QProcess WGet1;
QProcess WGet2;
QProcess CAt;
QProcess *BAckaudio;
QProcess MOunt;
QProcess UMount;
QProcess MD5;
QProcess MD5Check;
QProcess *MAcimg;
QProcess ELtorito;
QProcess GPg;
QProcess TOc;
QProcess *RIp;
QProcess *RIp2;
QProcess *VIdgen;
QProcess *FLv;
QProcess *UTube;
QProcess AUdio;
QProcess AUdiowav;
QProcess Uudf;
QProcess BIso;
QProcess UCheck;
QProcess HalCap;
QProcess HalProp;
QProcess HalPropV;
QProcess HalPropM;
QProcess RIpaudio;
QProcess findmedia;
QProcess mediaType;
QProcess isMediaEmpty;
QProcess isAppendable;
QProcess capacity;
QProcess *extractaudiofromvideo;
QProcess GEnisoimage;
QProcess *RAR;
QProcess SHA;
//torrent
QProcess *aria2cTorrentName;
QProcess *aria2c;
QTreeWidgetItem *item_file;
QIcon *icon_downloading;
QIcon *icon_completed;
};
#endif
acetoneiso2.4/acetoneiso/sources/database.h 0000664 0001750 0001750 00000021367 11304540571 021405 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
// funzione iniziale che automaticamente aggiorna il display al primo avvio
void acetoneiso::initial_get_database()
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray utf = (leggiRigo( 4, &file ));
QString strd = QString::fromUtf8(utf);
strd.remove(0,5);
strd.chop(1);
listWidget->clear();
//a questo punto mi ritrovo a linea 5 che corrisponde al settaggio database ricorsione
QTextStream in(&file);
QString str1 = in.readLine();
QDirIterator *it;
if (str1.contains("yesrecursive", Qt::CaseInsensitive)) {
it = new QDirIterator(strd, QDir::Files, QDirIterator::Subdirectories);
}
else {
it = new QDirIterator(strd, QDir::Files, QDirIterator::NoIteratorFlags);
}
int position = 1;
while (it->hasNext() ) {
QString scan_file = it->next();
QFileInfo getinfo(scan_file);
QString ext = getinfo.suffix();
if ( (ext.compare("iso",Qt::CaseInsensitive) == 0) | (ext.compare("nrg",Qt::CaseInsensitive) == 0) | (ext.compare("bin",Qt::CaseInsensitive) == 0) | (ext.compare("img",Qt::CaseInsensitive) == 0) | (ext.compare("mdf",Qt::CaseInsensitive) == 0) )
{
//qDebug() << strd;
scan_file = scan_file.replace(strd + "/", "");
//qDebug() << scan_file;
listWidget->insertItem(position, scan_file );
position = position + 1 ;
}
}
file.close();
database_label();
}
// funzione che monta l'immagine dal database con doppio click
void acetoneiso::mdatabase(QListWidgetItem *item)
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray utf = (leggiRigo( 4, &file ));
QString strd = QString::fromUtf8(utf);
strd.remove(0,5);
strd.chop(1);
//controllo che se strd finisce con / allora si deve togliere.
if( strd.endsWith( "/" ) ) {
strd.chop(1);
}
QString isodamontare = (strd + "/"+ (item->text()));//da ora ho in isodamontare il file con tutto il suo percorso.
//controllo che esiste il file
QFile image_exists(isodamontare);
if (!image_exists.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("The image ") + isodamontare + tr(" doesn't exist.\nI'll remove it from database display."));
int riga = listWidget->currentRow() ;
listWidget->takeItem( riga );
file.close();
return;
}
immagine_con_percorso = isodamontare;
global_functions_mount(immagine_con_percorso);
file.close();
}
//funzione che cancella le immagini dal database. la rimozione non è visiva ma fisica.
void acetoneiso::remove_fromDatabase()
{
if ( !listWidget->currentItem() == 0 )
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray utf = (leggiRigo( 4, &file ));
QString strd = QString::fromUtf8(utf);
strd.remove(0,5);
strd.chop(1);
//controllo che se strd finisce con / allora si deve togliere.
if( strd.endsWith( "/" ) ) {
strd.chop(1);
}
QDir datfolder( strd );//dichiaro la directory del database
QString oggetto(strd + "/" + listWidget->currentItem()->text() );//immagine selezionata
QFile immagine_corrente( oggetto );
QMessageBox msgBox;
msgBox.setText(tr("You are about to delete ") + oggetto + (" ") + tr("\nAre You sure?"));
QPushButton *connectButton = msgBox.addButton(tr("Yes"), QMessageBox::ActionRole);
QPushButton *connectButton2 = msgBox.addButton(tr("No way!"), QMessageBox::ActionRole);
//msgBox.setStandardButtons(QMessageBox::("ISO File") | QMessageBox::("CD/DVD"));
msgBox.exec();
if (msgBox.clickedButton() == connectButton) {
int riga = listWidget->currentRow() ;
listWidget->takeItem( riga );
immagine_corrente.remove();
}
else if (msgBox.clickedButton() == connectButton2) {
}
}
else
QMessageBox::warning(this, "AcetoneISO::Warning",tr( "select an image to delete" ));
}
//monta dal context menu
void acetoneiso::menuMount()
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray utf = (leggiRigo( 4, &file ));
QString strd = QString::fromUtf8(utf);
strd.remove(0,5);
strd.chop(1);
//controllo che se strd finisce con / allora si deve togliere.
if( strd.endsWith( "/" ) ) {
strd.chop(1);
}
QString isodamontare = (strd + "/" + fileDaMontare );
QFile image_exists(isodamontare);
if (!image_exists.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("The image ") + isodamontare + tr(" doesn't exist.\nI'll remove it from database display."));
int riga = listWidget->currentRow() ;
listWidget->takeItem( riga );
file.close();
return;
}
immagine_con_percorso = isodamontare;
global_functions_mount(immagine_con_percorso);
file.close();
}
//gestisce context menu del database
void acetoneiso::userListMenuRequested(const QPoint & pos)
{
QIcon mount_icon( ":/images/cdwriter_mount.png" );
QIcon delete_icon( ":/images/edit-delete.png" );
QIcon extract_icon( ":/images/extract.png" );
QMenu *userListMenu;
userListMenu = new QMenu();
QAction *mountAction = userListMenu->addAction( mount_icon, tr("mount") );
QAction *deleteAction = userListMenu->addAction( delete_icon, tr("delete") );
QAction *extractAction = userListMenu->addAction( extract_icon, tr("extract") );
QPoint globalPos = listWidget->mapToGlobal(pos); // Map the global position to the userlist
QModelIndex t = listWidget->indexAt(pos);
connect( mountAction, SIGNAL( triggered() ), this, SLOT( menuMount() ) );
connect( deleteAction, SIGNAL( triggered() ), this, SLOT( remove_fromDatabase() ) );
connect( extractAction, SIGNAL( triggered() ), this, SLOT( contextExtract() ) );
if( t.row() >= 0 ) { //previene un segfault se clicco col destro sullo spazio vuoto
listWidget->item(t.row())->setSelected(true); // even a right click will select the item
fileDaMontare.clear();
fileDaMontare = listWidget->item(t.row())->text(); //nome del file attuale
mountAction->setText(tr("mount ") + fileDaMontare );
deleteAction->setText(tr("delete ") + fileDaMontare );
extractAction->setText(tr("extract ") + fileDaMontare );
userListMenu->exec(globalPos);
}
}
//gestisce search del database
void acetoneiso::search()
{
if( !lineEdit->text().isEmpty() ) { //se la lineEdit non è vuota
int elements = listWidget->count(); //numero totale di elementi nella lista
int position = 0;
//Nel ciclo while pongo come nascosti tutti gli elementi della lista
while( position < elements ) {
listWidget->item( position )->setHidden(true);
position = position +1;
}
QList found(listWidget->findItems( lineEdit->text(), Qt::MatchContains )); //cerca gli elementi che contengono la stringa nel lineEdit
QListWidgetItem* item;
//in questo ciclo pongo come visibili solo gli elementi che contengono nel proprio nome la stringa che cerco.
foreach (item, found ) {
item->setHidden(false);
}
}
else {
initial_get_database();
}
}
//crea la label nella ui per il database
void acetoneiso::database_label() {
QDir Homed = QDir::home();
QFile filed(Homed.path() + "/.acetoneiso/acetoneiso.conf");
filed.open(QIODevice::ReadOnly | QIODevice::Text);
QByteArray listb = filed.readAll();
QString list = QString::fromUtf8(listb);
//qDebug() << list ;
QStringList database_list = list.split("\n");
database_list = database_list[3].split("=",QString::SkipEmptyParts);
//qDebug() << database_list[1];
//label_database->setText(database_list[1]); may cause segfault if conf file doesn't have at least "DB =" string
//patch Jochen Fähnlein jochen.faehnlein@rk-bad-windsheim.de
QString text;
if(database_list.count() > 0) {
text = database_list[1];
label_database->setText(text);
}
if(list.contains("yesrecursive", Qt::CaseInsensitive)) {
label_4->setText(tr("Database set to: (flag recursive:ON)"));
}
else {
label_4->setText(tr("Database set to: (flag recursive:OFF)"));
}
filed.close();
}
acetoneiso2.4/acetoneiso/sources/psxrip.h 0000664 0001750 0001750 00000004707 11503365416 021171 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::psxrip()
{
QDir bin("/usr/bin");
QFile cdrdao;
QDir::setCurrent( bin.path() );
cdrdao.setFileName("cdrdao");
if (cdrdao.exists())
{
bool ok;
QString text = QInputDialog::getText(this, tr("AcetoneISO::Insert cd/dvd device"),
tr("Please specify your CD/DVD device. If you aren't sure just leave default.\nTypical devices are:\n/dev/cdrom or /dev/cdrom0 or /dev/cdrom1 or /dev/dvd and follow this symbolism."), QLineEdit::Normal,
"/dev/cdrom", &ok);
if (ok && !text.isEmpty())
{
QDir Home = QDir::home();
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save BIN file"),
Home.path() + "/AcetoneISO_PSX",
tr("Images (*.bin)"));
if ( fileName.isNull() )
{
return;
}
QString filebin = fileName.append(".bin");
QString filetoc = fileName.append(".toc");
UMountcdrom.start("umount",QStringList() << text);
showProgressDisplay();
PSxrip = new QProcess();
PSxrip->setReadChannel(QProcess::StandardOutput);
PSxrip->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(PSxrip, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_PSxrip() ));
connect(PSxrip, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutpsx(int, QProcess::ExitStatus)));
PSxrip->start("cdrdao",QStringList() << "read-cd" << "--read-raw" << "--datafile" << filebin << "--device" << text << "--driver" << "generic-mmc-raw" << filetoc);
}
}
else
QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no cdrdao found in /usr/bin"));
}
acetoneiso2.4/acetoneiso/sources/isocd.h 0000664 0001750 0001750 00000004115 11253775774 020754 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::isocd()
{
bool ok;
QString text = QInputDialog::getText(this, tr("AcetoneISO::Inser cd/dvd device"),
tr("Please specify your CD/DVD device. If you aren't sure just leave default.\nTypical devices are:\n/dev/cdrom or /dev/cdrom0 or /dev/cdrom1 or /dev/dvd and follow this symbolism."), QLineEdit::Normal,
"/dev/cdrom", &ok);
if (ok && !text.isEmpty()) {
bool ok2;
int i = QInputDialog::getInteger(this, tr("AcetoneISO::Byte Size"),tr("Please insert the Byte Size.\nLeaving default is the best solution!"), 1024, 0, 100000, 2, &ok2);
if (!ok2) {
return;
}
QDir Home = QDir::home();
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save ISO"),
Home.path() + "/AcetoneISO_data",
tr("Images (*.iso)"));
if ( fileName.isNull() ) {
return;
}
fileName.append(".iso");
fileName.prepend("of=");
QString bsize = "bs=";
QString block;
block = QString::number(i).prepend(bsize);
text.prepend("if=" );
disable_all_button_processes();
DD.start("dd", QStringList() << text << fileName << block );
progBarra();
}//chiusura primo if
}
acetoneiso2.4/acetoneiso/sources/manual.h 0000664 0001750 0001750 00000002013 11216475307 021107 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#ifndef MANUAL_H
#define MANUAL_H
//
#include
#include "../build/ui_manual.h"
//
class manualDiag : public QDialog, public Ui::manual
{
Q_OBJECT
public:
manualDiag( QWidget * parent = 0, Qt::WFlags f = 0 );
};
#endif
acetoneiso2.4/acetoneiso/sources/vidgen.h 0000664 0001750 0001750 00000020340 11255246106 021105 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::vidgeneric() {
QDir bin("/usr/bin");
QFile rar;
QDir::setCurrent( bin.path() );
rar.setFileName("mencoder");
if (!rar.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("Unable to find") + " mencoder " + tr("in /usr/bin.\nPlease install it and be sure it's linked to /usr/bin folder.") );
return;
}
QDir Home = QDir::home();
QString open;
open = QFileDialog::getOpenFileName(this,tr("Select Video"), Home.path() , tr("Video Files (*.avi *.mpg *.mpeg *.mov *.wmv *.flv *.asf *.rm )"));
if ( !open.isNull() ) {
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save Video file"),
Home.path() + "/AcetoneISO_Video",
tr("Video (*.avi)"));
if ( !fileName.isNull() ) {
bool ok;
int i = QInputDialog::getInteger(this, tr("AcetoneISO::Fixed Quant"),tr("Please insert the Fixed Quant number.\nLowering the number will result in a higher quality video."), 7, 2, 13, 1, &ok);
if (!ok) {
return;
}
else {
QString quant;
quant = QString::number(i).prepend("fixed_quant=" );
QString file;
file = fileName.append(".avi" );
showProgressDisplay();
VIdgen = new QProcess();
VIdgen->setReadChannel(QProcess::StandardOutput);
VIdgen->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(VIdgen, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_vidgen() ));
connect( VIdgen, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutvidgen(int, QProcess::ExitStatus)));
VIdgen->start("mencoder",QStringList() << open << "-ovc" << "xvid" << "-oac" << "mp3lame" << "-xvidencopts" << quant << "-o" << file );
}
}
}
}
//konsole --noclose -e mencoder "$OPENFILE" -ovc xvid -oac mp3lame -xvidencopts fixed_quant=7 -o "$OUT"
void acetoneiso::flvavi() {
QDir bin("/usr/bin");
QFile rar;
QDir::setCurrent( bin.path() );
rar.setFileName("mencoder");
if (!rar.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("Unable to find") + " mencoder " + tr("in /usr/bin.\nPlease install it and be sure it's linked to /usr/bin folder.") );
return;
}
QDir Home = QDir::home();
QString open;
open = QFileDialog::getOpenFileName(this,tr("Select FLV Video"), Home.path() , tr("Video Files (*.flv )"));
if ( !open.isNull() ) {
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save Video file"),
Home.path() + "/AcetoneISO_flv_2_avi",
tr("Video (*.avi)"));
if ( !fileName.isNull() ) {
QString file;
file = fileName.append(".avi" );
showProgressDisplay();
FLv = new QProcess();
FLv->setReadChannel(QProcess::StandardOutput);
FLv->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(FLv, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_flv() ));
connect(FLv, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutflv(int, QProcess::ExitStatus)));
FLv->start("mencoder",QStringList() << "-ovc" << "lavc" << "-lavcopts" << "vcodec=mpeg4:vbitrate=1000:mbd=2:v4mv:autoaspect" << "-vf" << "pp=lb" << "-oac" << "mp3lame" << "-lameopts" << "cbr:preset=128" << open << "-o" << file );
}
}
}
// mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000:mbd=2:v4mv:autoaspect -vf pp=lb -oac mp3lame -lameopts cbr:preset=128 /home/bullet/Desktop/a.flv -o "/home/bullet/Desktop/testing.avi"
void acetoneiso::rip() {
QDir bins("/usr/bin");
QFile rar;
QDir::setCurrent( bins.path() );
rar.setFileName("mencoder");
if (!rar.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("Unable to find") + " mencoder " + tr("in /usr/bin.\nPlease install it and be sure it's linked to /usr/bin folder.") );
return;
}
QMessageBox::information(this, "AcetoneISO",tr("Please be sure the DVD disc is inserted in device and then press OK."));
QMessageBox msgBox;
msgBox.setText(tr("Choose if you want the audio to be in mp3 format or if\nit should be the same of the dvd (for example dolby 5.1)"));
QPushButton *connectButton = msgBox.addButton(tr("Mp3"), QMessageBox::ActionRole);
QPushButton *connectButton2 = msgBox.addButton(tr("Original Audio"), QMessageBox::ActionRole);
//msgBox.setStandardButtons(QMessageBox::("ISO File") | QMessageBox::("CD/DVD"));
msgBox.exec();
if (msgBox.clickedButton() == connectButton) {
ripdvd_audiotype = "mp3lame";
}
if (msgBox.clickedButton() == connectButton2) {
ripdvd_audiotype = "copy";
}
QDir bin("/usr/bin");
QDir::setCurrent( bin.path() );
showProgressDisplay();
RIp = new QProcess();
RIp->setReadChannel(QProcess::StandardOutput);
RIp->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(RIp, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_RIp() ));
connect(RIp, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutrip(int, QProcess::ExitStatus)));
RIp->start("mencoder",QStringList() << "dvd://" << "-oac" << ripdvd_audiotype << "-ovc" << "xvid" << "-xvidencopts" << "pass=1" << "-o" << "/dev/null" );
}
void acetoneiso::printOutrip(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
pushButton_6->setEnabled(true);
int valore_uscita = RIp->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Encoding Pass 1 has succesfully finished.\nPass 2 will be done now. Please choose the bitrate in the next dialog and then choose where to save the video."));
bool ok;
int i = QInputDialog::getInteger(this, tr("AcetoneISO::Bitrate"),tr("Please insert Bitrate. Higher bitrate means more quality but will generate a bigger file."), 896, 384, 4096, 128, &ok);
if (!ok) {
return;
}
QString file;
file = QString::number(i).prepend("pass=2:bitrate=" );
QDir Home = QDir::home();
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save Video file"),
Home.path() + "/AcetoneISO_Rip_DVD_Video",
tr("Video (*.avi)"));
if ( fileName.isNull() ) {
return;
}
showProgressDisplay();
RIp2 = new QProcess();
RIp2->setReadChannel(QProcess::StandardOutput);
RIp2->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(RIp2, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_RIp2() ));
connect(RIp2, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutrip2(int, QProcess::ExitStatus)));
RIp2->start("mencoder",QStringList() << "dvd://" << "-oac" << ripdvd_audiotype << "-ovc" << "xvid" << "-xvidencopts" << file << "-o" << fileName );
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
}
void acetoneiso::printOutrip2(int, QProcess::ExitStatus)
{
QMainWindow::showNormal();
restore_all_button_processes(); //riabilita tutti i bottoni disattivati
pushButton_6->setEnabled(true);
int valore_uscita = RIp2->exitCode();
if(valore_uscita == 0)
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
else
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
/*
konsole -e mencoder dvd:// -oac mp3lame -ovc xvid -xvidencopts pass=1 -o /dev/null
konsole --noclose -e mencoder dvd:// -oac mp3lame -ovc xvid -xvidencopts pass=2:bitrate=800 -o "$OUT"
*/
acetoneiso2.4/acetoneiso/sources/psp.h 0000775 0001750 0001750 00000004723 11252271514 020443 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::convertpsp() {
QDir bin("/usr/bin");
QFile rar;
QDir::setCurrent( bin.path() );
rar.setFileName("ffmpeg");
if (!rar.exists()) {
QMessageBox::critical(this, "AcetoneISO",tr("Unable to find") + " ffmpeg " + tr("in /usr/bin.\nPlease install it and be sure it's linked to /usr/bin folder.") );
return;
}
QDir Home = QDir::home();
QString open;
open = QFileDialog::getOpenFileName(this,tr("Select Video"), Home.path() , tr("Video Files (*.avi *.mpg *.mpeg *.mov *.wmv *.flv *.asf *.rm *.mp4)"));
if (open.isNull() ) {
return;
}
QString fileName = QFileDialog::getSaveFileName(this, tr("AcetoneISO::Save Video file"),
Home.path() + "/AcetoneISO_PSP",
tr("Video (*.mp4)"));
if (fileName.isNull() ) {
return ;
}
//ffmpeg -y -i cnn.mpg -vcodec libxvid -s 320x240 -r 29.97 -b 200k -acodec libfaac -ac 2 -ar 24000 -ab 65535 -f psp -aspect 4:3 test.mp4
QString file;
file = fileName.append(".mp4" );
showProgressDisplay();
VIdgen = new QProcess();
VIdgen->setReadChannel(QProcess::StandardOutput);
VIdgen->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(VIdgen, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_vidgen() ));
connect( VIdgen, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutvidgen(int, QProcess::ExitStatus)));
VIdgen->start("ffmpeg",QStringList() << "-y" << "-i" << open << "-vcodec" << "libxvid" << "-s" << "320x240" << "-r" << "29.97" << "-b" << "200k" << "-acodec" << "libfaac" << "-ac" << "2" << "-ar" << "24000" << "-ab" << "65535" << "-f" << "psp" << "-aspect" << "4:3" << file );
// progBarra();
}
acetoneiso2.4/acetoneiso/sources/burn_iso_2_dvd.h 0000664 0001750 0001750 00000003660 11470051662 022535 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#ifndef BURN_ISO2DVD_H
#define BURN_ISO2DVD_H
#include
#include
#include
#include
#include "../build/ui_burn_iso_2_dvd.h"
//
class burniso2dvd : public QDialog, public Ui::burniso2dvd
{
Q_OBJECT
public:
burniso2dvd( QWidget * parent = 0, Qt::WFlags f = 0 );
QStringList device_path;
QStringList id_device;
QByteArray erase_output;
bool is_erasing;
bool loaded_success;
QTimer *timer;
QString discotipo;
QByteArray eraseoutput_real;
QHash dvdHash;
QHash dvdHashStoragetype;
QHash hash_speed;
QString imageToBurn;
QStringList arraySpeed;
int itemRemovedSpeed;
QString discIsNotEmptyAndRWType;
private slots:
void start_erase();
void device_scan();
void media_available();
void clean_combobox_speed();
void select_image();
void estimated_time() ;
void combo_changed(int n);
void updateEraseDisplay();
void printOutErase(int, QProcess::ExitStatus);
void disable_buttons();
void enable_buttons();
void play_success();
void play_error();
private:
QProcess *erase;
QProcess EJect;
};
#endif
acetoneiso2.4/acetoneiso/sources/devices.h 0000664 0001750 0001750 00000026160 11503365416 021263 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::setdevices()
{
/*creo un file per inserirci le info riguardo l'udi. il path e le velocità le calcolerò da quest'ultimo*/
QString devicesInfo( QDir::temp().path() + "/acetoneiso/devicesInfo" );
QFile devicesInfo_file( devicesInfo );
/*apro il file in scrittura e in modalità testo*/
if (!devicesInfo_file.open(QIODevice::WriteOnly | QIODevice::Text))
return;
QTextStream out( &devicesInfo_file );
/*creo la connessione dbus a hal*/
QDBusConnection conn = QDBusConnection::systemBus();
QDBusInterface hal("org.freedesktop.Hal",
"/org/freedesktop/Hal/Manager",
"org.freedesktop.Hal.Manager",
conn);
/*cerco tutti i dispositivi storage.cdrom con hal via dbus*/
QDBusMessage msg = hal.call( "FindDeviceByCapability", "storage.cdrom");
QList devices = msg.arguments();
/*per ogni udi (dispositivo cdrom) che trovo, ricavo vendor, model, velocità e path*/
foreach (QVariant name, devices)
{
QString cdrom = name.toStringList()[0];
qDebug() << "Found device: " << cdrom;
QString s; // udi del supporto ottico che andrò a calcolare più sotto.
QString media_type; //tipo di supporto, cd, dvd-r, dvd ecc...
QString is_media_empty;
QString is_appendable; //multisessione
QString capacity_string; //capacità del disco.
QDBusInterface device("org.freedesktop.Hal", cdrom, "org.freedesktop.Hal.Device", conn);
/*ottengo il nome del vendor del cdrom*/
msg = device.call("GetProperty", "storage.vendor");
QVariant var = msg.arguments()[0];
QString vendor = var.toStringList()[0];
qDebug() << "VENDOR" << vendor;
/*ottengo il nome del modello del cdrom*/
msg = device.call("GetProperty", "storage.model");
QVariant var2 = msg.arguments()[0];
QString model = var2.toStringList()[0];
qDebug() << "MODEL" << model;
/*aggiungo il nome del device nella combobox*/
comboBox_devices->addItem( vendor.append( "\t" + model ) );
/*ottengo il path del dispositivo cdrom*/
msg = device.call("GetProperty", "block.device");
QVariant var3 = msg.arguments()[0];
QString path = var3.toStringList()[0];
qDebug() << "PATH" << path;
/*scopro se ho un cd o dvd dentro il device*/
msg = device.call("GetProperty", "storage.removable.media_available");
QVariant var5 = msg.arguments()[0];
bool opticDev = var5.toBool();
if( opticDev ) {
qDebug() << "MEDIA PRESENT" << "true";
/*cerco l'udi del supporto ottico*/
findmedia.setReadChannel(QProcess::StandardOutput);
findmedia.start("hal-find-by-property", QStringList() << "--key" << "info.parent" << "--string" << cdrom );
if (!findmedia.waitForFinished()){
qDebug() << "FINDMEDIA ERROR:" << findmedia.errorString();
}
else{
QByteArray ba = findmedia.readAll();
ba.chop(1); // tolgo l'ultimo carattere che nel qbytearray di default è la new line...
s = ( ba );
}
qDebug() << "UDI SUPPORTO OTTICO: " << s;
/*cerco il tipo di supporto*/
mediaType.setReadChannel(QProcess::StandardOutput);
mediaType.start("hal-get-property", QStringList() << "--key" << "volume.disc.type" << "--udi" << s );
if (!mediaType.waitForFinished()){
qDebug() << "FINDMEDIA ERROR:" << mediaType.errorString();
}
else{
QByteArray ba = mediaType.readAll();
ba.chop(1); // tolgo l'ultimo carattere che nel qbytearray di default è la new line...
media_type = ( ba );
}
qDebug() << "TIPO DI SUPPORTO: " << media_type;
/*scopriamo se il supporto ottico è pieno o vuoto*/
isMediaEmpty.setReadChannel(QProcess::StandardOutput);
isMediaEmpty.start("hal-get-property", QStringList() << "--key" << "volume.disc.is_blank" << "--udi" << s );
if (!isMediaEmpty.waitForFinished()){
qDebug() << "isMediaEmpty ERROR:" << isMediaEmpty.errorString();
}
else{
QByteArray ba = isMediaEmpty.readAll();
ba.chop(1); // tolgo l'ultimo carattere che nel qbytearray di default è la new line...
is_media_empty = ( ba );
}
qDebug() << "STATO SUPPORTO: " << is_media_empty;
/*è multisessione?*/
isAppendable.setReadChannel(QProcess::StandardOutput);
isAppendable.start("hal-get-property", QStringList() << "--key" << "volume.disc.is_appendable" << "--udi" << s );
if (!isAppendable.waitForFinished()) {
qDebug() << "isAppendable ERROR:" << isAppendable.errorString();
}
else {
QByteArray ba = isAppendable.readAll();
ba.chop(1); // tolgo l'ultimo carattere che nel qbytearray di default è la new line...
is_appendable = ( ba );
}
qDebug() << "MULTISESSIONE?: " << is_appendable;
/*capacità del disco*/
capacity.setReadChannel(QProcess::StandardOutput);
capacity.start("hal-get-property", QStringList() << "--key" << "volume.disc.capacity" << "--udi" << s );
if (!capacity.waitForFinished()) {
qDebug() << "Capacity ERROR:" << capacity.errorString();
}
else {
QByteArray ba = capacity.readAll();
ba.chop(1); // tolgo l'ultimo carattere che nel qbytearray di default è la new line...
capacity_string = ( ba );
}
qDebug() << "CAPACITA': " << capacity_string;
/*DA QUI INIZIANO I VARI CASI*/
if( is_media_empty == "true" ) { //caso che il media è vuoto
//TODO:caso che il supporto è vuoto.
label->setText( media_type + tr(" Capacity: ") + capacity_string ) ;
/*ottengo le velocità supportate dal dispositivo cdrom*/
msg = device.call("GetProperty", "storage.cdrom.write_speeds");
QVariant var4 = msg.arguments()[0];
QStringList speeds = var4.toStringList();
QStringList speedsXlist;
foreach( QString str, speeds )
{
int velocita = str.toInt();
int velocitaX = velocita / 1385; //per il dvd 1385=1x
QString speedX( QString::number( velocitaX ) );
//qDebug() << "VELOCITÀ X" << speedX ;
speedsXlist.append( speedX + "x" );
}
speedsFile( speedsXlist );
/*inserisco nel file devicesInfo le informazioni che mi servono*/
out << path << "\n";
//comboBox->addItems( speeds );
setSpeedsCombo();
}//FINE OTTENGO VELOCITÀ.
else {
//TODO:caso che il supporto non è vuoto.
//VEDIAMO SE E' MULTISESSIONE
if(is_appendable == "true" ) {
label->setText( media_type + tr(" Capacity: ") + capacity_string + tr(" used")) ;
/*ottengo le velocità supportate dal dispositivo cdrom*/
msg = device.call("GetProperty", "storage.cdrom.write_speeds");
QVariant var4 = msg.arguments()[0];
QStringList speeds = var4.toStringList();
QStringList speedsXlist;
foreach( QString str, speeds )
{
int velocita = str.toInt();
int velocitaX = velocita / 1385; //per il dvd 1385=1x
QString speedX( QString::number( velocitaX ) );
//qDebug() << "VELOCITÀ X" << speedX ;
speedsXlist.append( speedX + "x" );
}
speedsFile( speedsXlist );
/*inserisco nel file devicesInfo le informazioni che mi servono*/
out << path << "\n";
//comboBox->addItems( speeds );
setSpeedsCombo();
}//FINE OTTENGO VELOCITÀ.
else {
//il cd/dvd non e' multisessione
//Ora voglio sapere se e' un dvd riscribile
if( media_type == "dvd_plus_rw" ) {
label->setText( media_type + tr(" Capacity: ") + capacity_string ) ;
/*ottengo le velocità supportate dal dispositivo cdrom*/
msg = device.call("GetProperty", "storage.cdrom.write_speeds");
QVariant var4 = msg.arguments()[0];
QStringList speeds = var4.toStringList();
QStringList speedsXlist;
foreach( QString str, speeds )
{
int velocita = str.toInt();
int velocitaX = velocita / 1385; //per il dvd 1385=1x
QString speedX( QString::number( velocitaX ) );
//qDebug() << "VELOCITÀ X" << speedX ;
speedsXlist.append( speedX + "x" );
}
speedsFile( speedsXlist );
/*inserisco nel file devicesInfo le informazioni che mi servono*/
out << path << "\n";
//comboBox->addItems( speeds );
setSpeedsCombo();
}//FINE OTTENGO VELOCITÀ.
else {
//essendo un cd/dvd NON vuoto, non multisessione e NON dvd_plus_rw, interrompo combobox e bottone burn now
comboBox->clear();
comboBox->addItem("---");
comboBox->setDisabled( true );
pushButton_burn->setDisabled( true );
}
}
}
/*QUI FINISCONO I CASI*/
}
else { //non trovo nessun supporto ottico.
label->setText( tr("Insert an empty media") );
qDebug() << "MEDIA PRESENT" << "falso";
comboBox->clear();
comboBox->addItem("---");
comboBox->setDisabled( true );
pushButton_burn->setDisabled( true );
}
}
}
void acetoneiso::setSpeedsCombo()
{
comboBox->clear();
QString speedsInfo( QDir::temp().path() + "/acetoneiso/speedsInfo" );
QFile speedsInfo_file( speedsInfo );
/*ottengo l'indice dell'item corrente nel comboBox_devices*/
int currentDevice = comboBox_devices->currentIndex() + 1;
qDebug() << "CURRENT INDEX" << currentDevice;
//ricaviamo le velocita dal file speedsInfo
speedsInfo_file.open( QIODevice::ReadOnly ); //apro il file in sola lettura
/*legge la riga n corrispondente al current item del file devicesInfo_file*/
QString speedstring = ( leggiRigo( currentDevice, &speedsInfo_file ) );
//QByteArray line = "";
//for(int i = 0; i < currentDevice; i++)
//line = speedsInfo_file.readLine();
//QString speedstring( line );
//adesso trasformiamo la stringa speedstring in una qstringlist per popolare il combobox delle velocita
QStringList speedlist;
speedstring.chop(1); //con questo comando rimuovo il carattere "\n" che sembra essere alla fine della stringa e che mi crea uno spazio bianco nel combobox.
speedlist = speedstring.split(" ");
comboBox->addItems(speedlist);
qDebug() << "SPEEDLIST" << speedlist;
/*ora dall'udi posso ricavarmi tutte le info che voglio!*/
//comboBox->addItems( line );
}
void acetoneiso::speedsFile( QStringList strl )
{
QString speedsInfo( QDir::temp().path() + "/acetoneiso/speedsInfo" );
QFile speedsInfo_file( speedsInfo );
if (!speedsInfo_file.open(QIODevice::WriteOnly | QIODevice::Text))
return;
QTextStream out( &speedsInfo_file );
QString speedstring;
speedstring = strl.join (" ");
out << speedstring << "\n";
}
acetoneiso2.4/acetoneiso/sources/about.h 0000664 0001750 0001750 00000002001 11216475307 020741 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco & Marco Di Antonio (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#ifndef ABOUT_H
#define ABOUT_H
//
#include
#include "../build/ui_about.h"
//
class aboutDiag : public QDialog, public Ui::about
{
Q_OBJECT
public:
aboutDiag( QWidget * parent = 0, Qt::WFlags f = 0 );
};
#endif
acetoneiso2.4/acetoneiso/sources/main.cpp 0000664 0001750 0001750 00000003547 11467034321 021121 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include
#include "acetoneiso.h"
#include
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
//const char *h = "--help";
QString clImage = argv[1];
if ( clImage.contains("--help") or clImage.contains("-h")) {
printf ( "\nAcetoneISO Distribuited under GPL v.3.0 \nAuthors:\nMarco Di Antonio 2010\nFabrizio Di Marco and Marco Di Antonio 2006-2007-2008-2009 \nContact: acetoneiso@gmail.com\nWebsite:www.acetoneteam.org\nusage: \nacetoneiso [$path_to_imagefile_to_mount] --> mounts given image and opens it in default filemanager \nacetoneiso --> opens AcetoneISO GUI\nacetoneiso --help --> shows this help\n\n" );
}
else {
//printf ( "Mounting %s\n", argv[1] );
//cmMount( argv[1] );
QString locale = QLocale::system().name();
QTranslator translator;
translator.load(QString(":/locale/acetoneiso_") + locale);
app.installTranslator(&translator);
acetoneiso *dialog = new acetoneiso();
dialog->show();
return app.exec();
}
}
acetoneiso2.4/acetoneiso/sources/status_mounted.h 0000664 0001750 0001750 00000007767 11304543346 022732 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::status_mounted()
{
QDir Temp = QDir::temp();
Temp.cd("acetoneiso");
QFile f1(Temp.path() + "/1");
QFile f2(Temp.path() + "/2");
QFile f3(Temp.path() + "/3");
QFile f4(Temp.path() + "/4");
QFile f5(Temp.path() + "/5");
QFile f6(Temp.path() + "/6");
QFile f7(Temp.path() + "/7");
QFile dvd_temp(Temp.path() + "/dvd");
bool isomounted = false;
int countdrives = 0;
if (f1.exists())
{
f1.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray s1 = (f1.readAll());
QString str1 = QString::fromUtf8(s1);
f1.close();
listWidget_2->insertItem(1, str1);
isomounted = true;
countdrives = countdrives + 1;
}
if (f2.exists())
{
f2.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray s2 = (f2.readAll());
QString str2 = QString::fromUtf8(s2);
f2.close();
listWidget_2->insertItem(2, str2);
isomounted = true;
countdrives = countdrives + 1;
}
if (f3.exists())
{
f3.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray s3 = (f3.readAll());
QString str3 = QString::fromUtf8(s3);
f3.close();
listWidget_2->insertItem(3, str3);
isomounted = true;
countdrives = countdrives + 1;
}
if (f4.exists())
{
f4.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray s4 = (f4.readAll());
QString str4 = QString::fromUtf8(s4);
f4.close();
listWidget_2->insertItem(4, str4);
isomounted = true;
countdrives = countdrives + 1;
}
if (f5.exists())
{
f5.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray s5 = (f5.readAll());
QString str5 = QString::fromUtf8(s5);
f5.close();
listWidget_2->insertItem(5, str5);
isomounted = true;
countdrives = countdrives + 1;
}
if (f6.exists())
{
f6.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray s6 = (f6.readAll());
QString str6 = QString::fromUtf8(s6);
f6.close();
listWidget_2->insertItem(6, str6);
isomounted = true;
countdrives = countdrives + 1;
}
if (f7.exists())
{
f7.open(QIODevice::ReadOnly);//lo apro in sola lettura
QByteArray s7 = (f7.readAll());
QString str7 = QString::fromUtf8(s7);
f7.close();
listWidget_2->insertItem(7, str7);
isomounted = true;
countdrives = countdrives + 1;
}
if (dvd_temp.exists())
{
dvd_temp.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString str_dvd = (dvd_temp.readAll());
//label_dvd2->setText(tr("DVD-Movie ") + str_dvd + tr(" mounted"));
//display_cover();
//button_saveCover->setVisible(true);
}
//qDebug() << countdrives;
if (countdrives >= 7){
pushButton->setEnabled(false);
actionMount_Image->setEnabled(false);
pushButton->setText(tr("Reached maximum allowed drives to mount."));
}
else{
pushButton->setEnabled(true);
actionMount_Image->setEnabled(true);
pushButton->setText(tr("Mount"));
}
if (isomounted) {
int size = listWidget_2->selectedItems().size();
if (size < 1) {
pushButton_2->setText(tr("Unmount"));
actionUnmount_Image->setText(tr("Unmount Image"));
actionUnmount_Image->setEnabled(false);
pushButton_2->setEnabled(false);
return;
}
actionUnmount_Image->setEnabled(true);
pushButton_2->setEnabled(true);
}
else{
actionUnmount_Image->setEnabled(false);
pushButton_2->setEnabled(false);
pushButton_2->setText(tr("Unmount"));
actionUnmount_Image->setText(tr("Unmount Image"));
}
f1.close();
f2.close();
f3.close();
f4.close();
f5.close();
f6.close();
f7.close();
dvd_temp.close();
}
acetoneiso2.4/acetoneiso/sources/options.cpp 0000664 0001750 0001750 00000005653 11250750341 021665 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include "options.h"
#include"a_options.h"
//
optionsDiag::optionsDiag( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)
{
setupUi(this);
connect( pushButton_apply, SIGNAL( clicked() ), this, SLOT( update_options() ));
connect( exit_button, SIGNAL( clicked() ), this, SLOT( update_options() ) );
connect( exit_button, SIGNAL( clicked() ), this, SLOT( close() ) );
connect( pushButton_defaults, SIGNAL( clicked() ), this, SLOT( setDefaults() ) );
connect( database_button, SIGNAL( clicked() ), this, SLOT( getDbDir() ) );
connect( pushButton_database, SIGNAL( clicked() ), this, SLOT( whatisdatabase() ) );
connect(checkBox_2, SIGNAL(stateChanged(int) ), this, SLOT ( clickedtrayenable(int) ) );
connect(checkBox, SIGNAL(stateChanged(int) ), this, SLOT ( recursivedb(int) ) );
connect(checkBox_5, SIGNAL(stateChanged(int) ), this, SLOT ( cleanhistory(int) ) );
//se esiste il file significa che l'utente ha cliccato in opzioni da database
QDir Home = QDir::home();
QFile advanced(Home.path() + "/.acetoneiso/optiondb.conf");
if (advanced.exists()) {
advanced.remove();
toolBox->setCurrentIndex(3);
}
optionss();
}
void optionsDiag::whatisdatabase() {
QMessageBox::information(this, "AcetoneISO",tr("Database is a quick and easy feature for managing your images.\nPlace them all in a folder and set the Database path to it, you will see all the images in the database display.\nYou can quickly mount them by simply clicking on them or right click for more options."));
}
void optionsDiag::clickedtrayenable(int stato) {
//checkbox is unchecked
if (stato == 0) {
checkBox_4->setEnabled(false);
}
else {
checkBox_4->setEnabled(true);
}
}
void optionsDiag::recursivedb(int statodb) {
//checkbox recursive is unchecked
if (statodb == 0) {
textBrowser->setEnabled(false);
}
else {
textBrowser->setEnabled(true);
}
}
void optionsDiag::cleanhistory(int cleanh) {
//checkbox clean history automatically is unchecked
if (cleanh == 0) {
checkBox_6->setEnabled(true);
}
else {
checkBox_6->setEnabled(false);
}
}
acetoneiso2.4/acetoneiso/sources/gencue.h 0000664 0001750 0001750 00000003600 11216475307 021103 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::gencue()
{
QMessageBox::warning(this, "AcetoneISO",tr("This tool doesn't do anything special.\nIt will only create a file with the following lines referred to the BIN/IMG you select:\nFILE + $image_file + BINARY\nTRACK 01 MODE1/2352\nINDEX 01 00:00:00\nnote: it doesn't make sense to use this feature with multisector images."));
QDir Home = QDir::home();
QString image = QFileDialog::getOpenFileName(this,tr("AcetoneISO::Select *bin or *img"), Home.path() , tr("Image Files (*.bin *.img)"));
if ( image.isNull() ) {
}
else {
QFileInfo image_file( image );
QString pathtoimage = ( image_file.absolutePath() );//percorso assoluto al file senza nome del file.
QString image_name( image_file.baseName() );//nome del file senza percorso nè estensione.
QFile f_cue( pathtoimage + "/" + image_name + ".cue" );
//qDebug() << f_cue.fileName();
QString contenutocue( "FILE " + image_file.fileName() + " BINARY\n"
"TRACK 01 MODE1/2352\n"
"INDEX 01 00:00:00\n");
//qDebug() << contenutocue;
f_cue.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&f_cue);
out << contenutocue;
}
}
acetoneiso2.4/acetoneiso/sources/progress.h 0000664 0001750 0001750 00000002027 11216475307 021503 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#ifndef PROGRESS_H
#define PROGRESS_H
//
#include
#include "../build/ui_progress.h"
//
class progressDiag : public QDialog, public Ui::progress
{
Q_OBJECT
public:
progressDiag( QWidget * parent = 0, Qt::WFlags f = 0 );
};
#endif
acetoneiso2.4/acetoneiso/sources/burn_iso_2_cd.cpp 0000664 0001750 0001750 00000047405 11513606137 022707 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//Copyright 2010/2011 Marco Di Antonio
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "burn_iso_2_cd.h"
#include "acetoneiso.h"
/*
cancellare cd completo: wodim -verbose dev=/dev/sr0 blank=all
cancellare cd rapido: wodim -verbose dev=/dev/sr0 blank=fast
dice il tipo di media inserito: hal-get-property "--key volume.disc.type --udi $udi
*/
//
burniso2cd::burniso2cd( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)
{
setupUi(this);
is_erasing = false;
loaded_success = false;
QCoreApplication::setApplicationName("AcetoneISO");
connect( start, SIGNAL( clicked() ), this, SLOT( start_erase() ) );
connect( push_select_image, SIGNAL( clicked() ), this, SLOT( select_image() ) );
textBrowser->clear();
//database speed for cd-r/rw
hash_speed[0] = "1";
hash_speed[1] = "4";
hash_speed[2] = "10";
hash_speed[3] = "16";
hash_speed[4] = "24";
hash_speed[5] = "28";
hash_speed[6] = "32";
hash_speed[7] = "40";
hash_speed[8] = "48";
itemRemovedSpeed = 0;
device_scan();
}
void burniso2cd::device_scan() {
/*creo la connessione dbus a hal*/
QDBusConnection conn = QDBusConnection::systemBus();
QDBusInterface hal("org.freedesktop.Hal", "/org/freedesktop/Hal/Manager", "org.freedesktop.Hal.Manager", conn);
/*cerco tutti i dispositivi storage.cdrom con hal via dbus*/
QDBusMessage msg = hal.call( "FindDeviceByCapability", "storage.cdrom");
QList devices = msg.arguments();
/*per ogni udi (dispositivo cdrom) che trovo, ricavo vendor, model, velocità e path*/
//disabilita tutto se non viene trovato almeno 1 periferica
int count = devices.count();
if (count < 1) {
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found.\nIf you think this is a bug please report it."));
disable_buttons();
devices_combo->addItem( tr("No CD/DVD device found") );
return;
}
QIcon icon_optical_drive( ":/images/drive-optical.png" );
//scannerizzo tutte le periferiche e le aggiungo nella combobox. questa funzione viene chiamato una sola volta.
QVariant name(devices);
int cc = 0;
int success = -1;
while (cc < count) {
QString cdrom = name.toStringList()[0];
if (cdrom.isEmpty()) {
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found.\nIf you think this is a bug please report it."));
disable_buttons();
devices_combo->addItem( tr("No CD/DVD device found") );
return;
}
// qDebug() << "Found device: " << cdrom;
QDBusInterface device("org.freedesktop.Hal", cdrom, "org.freedesktop.Hal.Device", conn);
//vedo se effittivamente il device puo scrivere su dischi cd-rw
msg = device.call("GetProperty", "storage.cdrom.cdr");
QVariant vcan_write_cdrw = msg.arguments()[0];
bool can_write_cdrw = vcan_write_cdrw.toBool();
if (!can_write_cdrw) {
cc = cc + 1;
continue;
}
//success si ricorda sempre la posizione in cui aggiungere all'array indipendentemente dal cc del ciclo while
success = success + 1;
//aggiungo id nell'array
id_device.insert(success, cdrom);
/*ottengo il nome del vendor del cdrom*/
msg = device.call("GetProperty", "storage.vendor");
QVariant var = msg.arguments()[0];
QString vendor = var.toStringList()[0];
//qDebug() << "VENDOR" << vendor;
/*ottengo il nome del modello del cdrom*/
msg = device.call("GetProperty", "storage.model");
QVariant var2 = msg.arguments()[0];
QString model = var2.toStringList()[0];
//qDebug() << "MODEL" << model;
/*ottengo il path del dispositivo cdrom*/
msg = device.call("GetProperty", "block.device");
QVariant var3 = msg.arguments()[0];
device_path.insert(success, var3.toStringList()[0]);
//qDebug() << "PATH" << device_path;
msg = device.call("GetProperty", "storage.firmware_version");
QVariant firmwarev = msg.arguments()[0];
QString firmware = firmwarev.toString();
/*aggiungo il nome del device nella combobox*/
QString final_device = vendor.append( "\t" + model + " " + firmware );
devices_combo->insertItem(success,icon_optical_drive, " " + final_device );
cc = cc + 1;
}
media_available();
//if < 1 significa che sebbene ci sono 1 o piu periferiche cdrom, nessuna e' capace di scrivere su cd-rw
if (devices_combo->count() < 1) {
disable_buttons();
QMessageBox::warning(this, "AcetoneISO::warning", tr("No CD/DVD device found capable of writing to CD-R/RW discs.\nIf you think this is a bug please report it."));
return;
}
else { //c'e' almeno 1 periferica cdrom in grado di scrivere su dischi cd-rw
loaded_success = true;
//crea un timer cosi aggiorna automaticamente la label_info
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(media_available()));
timer->start(1500);
connect( devices_combo, SIGNAL(currentIndexChanged(int) ), this , SLOT( combo_changed(int) ) );
}
}
void burniso2cd::media_available() {
//qDebug() << "media_available()";
//se sto masterizzando deve uscire da qui
if (is_erasing) {
start->setEnabled(false);
label_info->setText(tr("AcetoneISO is burning your image to the") + " " + disc_real_type + "..." );
return;
}
//if < 1 it means there are no devices capaci di scrivere su dischi cd-rw
if (devices_combo->count() < 1) {
clean_combobox_speed();
return;
}
//se non e' visibile deve disconnettere le connessioni
if (loaded_success) {
if (!devices_combo->isVisible()) {
disconnect(devices_combo, 0, 0, 0);
disconnect(timer, 0, 0, 0);
loaded_success = false;
}
}
estimated_time() ;
//scopro se ho un cd dentro il device
/*creo la connessione dbus a hal*/
QDBusConnection conn = QDBusConnection::systemBus();
QDBusMessage msg;
//prendo indice corrente della combobox cosi so chi l'id della periferica selezionata
int current_index = devices_combo->currentIndex();
QString id = id_device[current_index];
//mi connetto alla periferica corrente selezionata in combobox
QDBusInterface device("org.freedesktop.Hal", id, "org.freedesktop.Hal.Device", conn);
//vedo se e' inserito un cd
msg = device.call("GetProperty", "storage.removable.media_available");
QVariant var5 = msg.arguments()[0];
bool opticDev = var5.toBool();
if (!opticDev) {
label_info->setText(tr("Insert a CD-R/RW disc."));
start->setEnabled(false);
clean_combobox_speed();
//devices_combo->setItemText(cc,tr("No Media Inserted, insert a media and click on refresh button."));
return;
}
//vedo il tipo di cd inserito
QDBusMessage fbp;
QDBusInterface newh("org.freedesktop.Hal", "/org/freedesktop/Hal/Manager", "org.freedesktop.Hal.Manager", conn);
fbp = newh.call("FindDeviceStringMatch", "info.parent", id);
QList var6 = fbp.arguments();
QString disc_type = var6.at(0).toString();
QDBusInterface device_type("org.freedesktop.Hal", disc_type, "org.freedesktop.Hal.Device", conn);
//ferma in caso che il disco inserito non sia un disco CD-R/RW
msg = device_type.call("GetProperty", "volume.disc.type");
QString var7 = msg.arguments()[0].toString();
QString disc_is = var7;
if ( (disc_is != "cd_rw") and (disc_is != "cd_r" ) ) {
label_info->setText(tr("The disc isn't a CD-R/RW. Please insert a CD-R/RW disc."));
start->setEnabled(false);
clean_combobox_speed();
return;
}
if ( disc_is == "cd_r") {
disc_real_type = "CD-R";
}
else {
disc_real_type = "CD-RW";
msg = device.call("GetProperty", "storage.cdrom.cdrw");
QVariant vcan_write_cdrw = msg.arguments()[0];
bool discobool = vcan_write_cdrw.toBool();
if (!discobool) {
label_info->setText( tr("You inserted a CD-RW disc, however your CD/DVD device is uncapable of writing to CD-RW discs.") );
start->setEnabled(false);
clean_combobox_speed();
return;
}
}
//vedo se il disco e' vuoto
msg = device_type.call("GetProperty", "volume.disc.is_blank");
bool disc_blank = msg.arguments()[0].toBool();
if (!disc_blank) {
if ( disc_is == "cd_r") {
disc_real_type = "CD-R";
label_info->setText(tr("The CD-R isn't empty. Please insert an empty CD-R/RW disc."));
start->setEnabled(false);
clean_combobox_speed();
return;
}
else {
label_info->setText(tr("The CD-RW isn't empty.\nPlease insert an empty CD-R/RW disc or blank the CD-RW with the appropriate AcetoneISO's blanking tool."));
start->setEnabled(false);
clean_combobox_speed();
return;
}
}
//check and set combobox speed
msg = device.call("GetProperty", "storage.cdrom.write_speeds");
QVariant vspeed = msg.arguments()[0];
QStringList slist = vspeed.toStringList();
int count_speed = slist.count();
int count_combobox = (combo_speed->count() ) + itemRemovedSpeed;
//put in combobox only if first time
if ( count_speed != count_combobox ) {
clean_combobox_speed();
int count_cycle = 0;
while (count_cycle < count_speed) {
QString string_speed = slist[count_cycle];
qreal q_speed = string_speed.toFloat() / 1024 ;
int int_speed = qRound(q_speed);
if (int_speed > 8) {
int_speed = 8;
}
string_speed = hash_speed[int_speed] + "x";
//qDebug() << string_speed;
arraySpeed << string_speed; //put speed in array
count_cycle++;
}
//remove duplicate speeds from array and fill combobox speed
itemRemovedSpeed = arraySpeed.removeDuplicates();
int countArraySpeed = arraySpeed.count();
int abc = 0;
while (abc < countArraySpeed) {
combo_speed->insertItem(abc, arraySpeed[abc] );
abc = abc + 1;
}
}
label_info->setText(disc_real_type + " " + tr("succesfully found in device."));
push_select_image->setEnabled(true);
label_4->setEnabled(true);
iso_to_burn_label->setEnabled(true);
}
//cleans combobox speed when something changed, example: user put new cd, changes drive, removes cd
void burniso2cd::clean_combobox_speed() {
combo_speed->setEnabled(false);
int count_combobox = combo_speed->count();
int count_cycle = 0;
while (count_cycle < count_combobox) {
combo_speed->removeItem(count_cycle);
count_cycle++;
}
combo_speed->setEnabled(true);
//reset array speed
arraySpeed.clear();
//reset number items removed if duplicates speeds found
itemRemovedSpeed= 0;
}
//gestisce quando l'utente cambia periferica nella combobox
void burniso2cd::combo_changed(int n) {
int a;
a = n;
clean_combobox_speed();
media_available();
}
//user wants to choose which image to burn
void burniso2cd::select_image() {
QDir Home = QDir::home();// entro nella home dell'utente
QString isoToBurnDialog;
isoToBurnDialog = QFileDialog::getOpenFileName(this,tr("Select Image to Burn"), Home.path() , tr("Image Files ISO/CUE/TOC (*.iso *.cue *.toc)"));
if ( isoToBurnDialog.isNull() ) {
return;
}
QFileInfo isoInfo(isoToBurnDialog);
isoToBurnDialog = isoInfo.absoluteFilePath();
imageToBurn = isoToBurnDialog;
//image type?
QStringList checkSupported;
checkSupported << "iso" << "cue" << "toc";
realSuffix = isoInfo.suffix();
imageType = (isoInfo.suffix()).toLower();
if (!checkSupported.contains(imageType) ) {
QMessageBox::warning(this, "AcetoneISO::File Unsupported",tr("The Image you selected is unsupported from AcetoneISO."));
start->setEnabled(false);
return;
}
if (imageType == "toc") {
imageToBurn = isoInfo.absolutePath() + "/" + isoInfo.completeBaseName ();
}
if (imageType == "cue") {
imageToBurn = isoInfo.absolutePath() + "/" + isoInfo.completeBaseName ();
}
QFile fileExists(imageToBurn);
if (!fileExists.exists()) {
QMessageBox::warning(this, "AcetoneISO::File Not Found",tr("The Image you selected does not exist.\nIf trying to burn a CUE/TOC image, be sure the image file is in the exact folder where the CUE/TOC file is.\nBe also sure they have same name except the CUE/TOC file ending with .toc extension."));
start->setEnabled(false);
return;
}
float size = (isoInfo.size() / 1024) / 1024;
if (size > 700) {
QMessageBox::warning(this, "AcetoneISO::File Too Big",tr("The Image you selected is too big to fit into a CD-R/RW."));
start->setEnabled(false);
return;
}
//se CUE, convertire con cue2toc
//cue2toc file.cue > file.toc or direct output without >
if (imageType == "cue") {
QFile cueFile("/usr/bin/cue2toc");
if (!cueFile.exists()) {
QMessageBox::warning(this, "AcetoneISO::cue2toc not found",tr("Program cue2toc not found in /usr/bin\nPlease install cue2toc package."));
start->setEnabled(false);
return;
}
cue2tocP = new QProcess();
cue2tocP->setReadChannel(QProcess::StandardOutput);
cue2tocP->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
QString cuecommand = "cue2toc \"" + imageToBurn + "." + realSuffix + "\" -o \"" + imageToBurn + ".toc\"";
cue2tocP->start(cuecommand );
cue2tocP->waitForFinished();
QFile newTocFile(imageToBurn + ".toc");
if (!newTocFile.exists()) {
QMessageBox::critical(this, "AcetoneISO::toc file not found",tr("Unable to generate toc file from the cue file you selected."));
start->setEnabled(false);
return;
}
imageType = "toc";
realSuffix = "toc";
}
iso_to_burn_label->setText(imageToBurn);
}
//estimates time to burn image based on speed
void burniso2cd::estimated_time() {
int count_combobox = combo_speed->count();
if (count_combobox < 1) {
estimated_label->setText("");
push_select_image->setEnabled(false);
label_4->setEnabled(false);
iso_to_burn_label->setEnabled(false);
start->setEnabled(false);
return;
}
imageToBurn = iso_to_burn_label->text();
QFile fileExists(imageToBurn);
if (!fileExists.exists()) {
start->setEnabled(false);
return;
}
start->setEnabled(true);
QFileInfo isoInfo(imageToBurn);
QString fileName = isoInfo.fileName();
//estimated time: size / writing speed
qint64 imageSize = (isoInfo.size() / 1024) / 1024;
QString current_speed = combo_speed->currentText();
current_speed = ( current_speed.split("x"))[0] ;
int key_hash = hash_speed.key(current_speed);
if (key_hash < 1) {
key_hash = 1;
}
current_speed = QString::number(key_hash);
float f_final_time = imageSize / current_speed.toFloat() + 16;
int final_time = qRound(f_final_time);
QString seconds_or_minutes;
if ( f_final_time < 60) {
seconds_or_minutes = QString::number(final_time) + tr(" seconds");
}
else {
f_final_time = f_final_time / 60;
final_time = qRound(f_final_time);
seconds_or_minutes = QString::number(final_time) + tr(" minutes");
}
estimated_label->setText( tr("Estimated time to burn ") + fileName + ": " + seconds_or_minutes );
}
void burniso2cd::start_erase() {
QMessageBox msgBox;
msgBox.setText(tr("You decided to burn the image on the") + " " + disc_real_type + "." + tr("\nAre you sure?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
switch (msgBox.exec()) {
case QMessageBox::Yes:
{
//continue below
}
break;
case QMessageBox::No:
{
return; //exit
}
break;
default:
// should never be reached
break;
}
//wodim -v -dao -dummy -dev=/dev/sr0 -speed=6 gparted.iso
//cue/toc: cdrdao simulate --eject --speed 16 --device /dev/sr0 --driver generic-mmc my_game_rip.toc SIMULATE
// cdrdao write --eject --speed 16 --device /dev/sr0 --driver generic-mmc my_game_rip.toc REAL WRITE
disable_buttons();
QString dev = device_path.at(devices_combo->currentIndex());
dev = dev.prepend("dev=");
textBrowser->clear();
QString current_speed = combo_speed->currentText();
current_speed = ( current_speed.split("x"))[0] ;
QString wodim = "";
//realize if it must burn an ISO or TOC
if (imageType == "toc") {
//image is TOC
if (simulation_checkbox->isChecked()) {
wodim = "cdrdao simulate ";
}
else {
wodim = "cdrdao write ";
}
if (eject->isChecked()) {
wodim = wodim.append(" --eject ");
}
wodim = wodim.append(" --speed " + current_speed + " --device " + (dev.split("="))[1] + " --driver generic-mmc " + " \"" + imageToBurn + "." + realSuffix + "\"" );
}
else {
//image is ISO
wodim = "wodim -v -dao " + dev + " -speed=" + current_speed ;
if (simulation_checkbox->isChecked()) {
wodim = wodim.append(" -dummy");
}
if (eject->isChecked()) {
wodim = wodim.append(" -eject");
}
wodim = wodim.append(" \"" + imageToBurn + "\"" );
}
// qDebug() << wodim;
erase = new QProcess();
erase->setReadChannel(QProcess::StandardOutput);
erase->setProcessChannelMode(QProcess::MergedChannels);
//connection to update the display
connect(erase, SIGNAL(readyReadStandardOutput()), SLOT(updateEraseDisplay() ));
connect(erase, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutErase(int, QProcess::ExitStatus)));
QDir bin("/usr/bin");
QDir::setCurrent( bin.absolutePath() );
is_erasing = true;
erase->start(wodim );
}
//fa loutput nel display del processo wodim
void burniso2cd::updateEraseDisplay() {
erase_output = erase->readAllStandardOutput();
textBrowser->setPlainText(erase_output);
}
//gestisce quando il processo wodim finisce
void burniso2cd::printOutErase(int, QProcess::ExitStatus) {
iso_to_burn_label->setText("");
enable_buttons();
is_erasing = false;
int valore_uscita = erase->exitCode();
if(valore_uscita == 0) {
QMessageBox::information(this, "AcetoneISO",tr("Process Succesfully Finished!"));
QWidget::close ();
}
else {
QMessageBox::critical(this, "AcetoneISO","Process Error Code: " + QString::number(valore_uscita) );
}
}
//abilita i bottoni
void burniso2cd::enable_buttons() {
start->setEnabled(true);
devices_combo->setEnabled(true);
eject->setEnabled(true);
simulation_checkbox->setEnabled(true);
combo_speed->setEnabled(true);
push_select_image->setEnabled(true);
}
//disabilita i bottoni
void burniso2cd::disable_buttons() {
start->setEnabled(false);
devices_combo->setEnabled(false);
eject->setEnabled(false);
simulation_checkbox->setEnabled(false);
combo_speed->setEnabled(false);
push_select_image->setEnabled(false);
}
void burniso2cd::play_success() {
/*
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::Path path;
mediaObject = new Phonon::MediaObject();
audioOutput = new Phonon::AudioOutput(Phonon::NoCategory);
path = Phonon::createPath(mediaObject, audioOutput);
QString file(":/audio/success.ogg");
mediaObject->setCurrentSource(Phonon::MediaSource(file));
mediaObject->play();
*/
}
void burniso2cd::play_error() {
/*
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::Path path;
mediaObject = new Phonon::MediaObject();
audioOutput = new Phonon::AudioOutput(Phonon::NoCategory);
path = Phonon::createPath(mediaObject, audioOutput);
QString file(":/audio/error.ogg");
mediaObject->setCurrentSource(Phonon::MediaSource(file));
mediaObject->play();
*/
}
acetoneiso2.4/acetoneiso/sources/erase_cd.h 0000664 0001750 0001750 00000003523 11661326207 021404 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
#ifndef ERASE_CD_H
#define ERASE_CD_H
#include
#include
#include
#include
#include "../build/ui_erasecd.h"
//
class erasecd : public QDialog, public Ui::erasecd
{
Q_OBJECT
public:
erasecd( QWidget * parent = 0, Qt::WFlags f = 0 );
QStringList device_path;
QStringList id_device;
QByteArray erase_output;
bool is_erasing;
bool loaded_success;
QTimer *timer;
QString Devices_Burn;
QString Properties_Device;
private slots:
void start_erase();
void device_scan();
void media_available();
void combo_changed(int n);
void updateEraseDisplay();
void printOutErase(int, QProcess::ExitStatus);
void disable_buttons();
void enable_buttons();
void play_success();
void play_error();
//burn
void updateScanDevices();
void scan_devices_burn();
void updateScanDevicesProperties();
void scan_device_properties_process_Finished(int, QProcess::ExitStatus);
private:
QProcess *erase;
QProcess *scan_devices_process;
QProcess *scan_device_properties_process;
};
#endif
acetoneiso2.4/acetoneiso/sources/connections.h 0000664 0001750 0001750 00000024321 11472576336 022172 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Fabrizio Di Marco and Marco Di Antonio (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::connections() {
connect( actionConvert_MacOs_Image_2, SIGNAL ( triggered() ), this, SLOT ( macimg() ) );
connect( pushButton, SIGNAL( clicked() ), this, SLOT( mount() ) );
connect( pushButton_2, SIGNAL( clicked() ), this, SLOT( umount() ) );
connect( pushButton_6, SIGNAL( clicked() ), this, SLOT( hide_process_display() ) );
connect(actionMake_a_small_donation, SIGNAL( triggered() ), this, SLOT( paypal() ) );
connect( pushButton_4, SIGNAL( triggered() ), this, SLOT( extract() ) );
connect( actionSha1_check, SIGNAL( triggered() ), this, SLOT( sha1() ) );
connect( actionSha256_check, SIGNAL( triggered() ), this, SLOT( sha256() ) );
connect( actionSha512_check, SIGNAL( triggered() ), this, SLOT( sha384() ) );
connect( actionMount_Image, SIGNAL( triggered() ), this, SLOT( mount() ) );
connect( actionDonate, SIGNAL( triggered() ), this, SLOT( a_donate() ) );
connect( actionExit, SIGNAL( triggered() ), qApp, SLOT( quit() ) );
connect( pushButton_Omni_3, SIGNAL( triggered() ), this, SLOT( converter() ) );
connect( pushButton_IsoFromFolder_2, SIGNAL( triggered() ), this, SLOT( foldertoiso() ) );
connect( actionA_protected_CD_DVD, SIGNAL( triggered() ), this, SLOT( isopcgame() ) );
connect( pushButton_PSX_Rip, SIGNAL( triggered() ), this, SLOT( psxrip() ) );
connect( button_backup_audio_2, SIGNAL( triggered() ), this, SLOT( backupaudio() ) );
connect( actionCompress, SIGNAL( triggered() ), this, SLOT( compress() ) );
connect( actionDecrypt, SIGNAL( triggered() ), this, SLOT( decrypt() ) );
connect( actionEncrypt, SIGNAL( triggered() ), this, SLOT( encrypt() ) );
connect( pushButton_IsoFromFolder_3, SIGNAL( triggered() ), this, SLOT( isocd() ) );
connect( actionMerge_Splitted_Image, SIGNAL( triggered() ), this, SLOT( merge() ) );
connect( actionSplit, SIGNAL( triggered() ), this, SLOT( split() ) );
connect( actionExtract, SIGNAL( triggered() ), this, SLOT( uncompress() ) );
connect( actionPlay, SIGNAL( triggered() ), this, SLOT( play() ) );
connect( actionUmount_2, SIGNAL( triggered() ), this, SLOT( unplay() ) );
connect( pushButton_GenCUE, SIGNAL( triggered() ), this, SLOT( gencue() ) );
connect( actionMount_UDF_ISO_2, SIGNAL( triggered() ), this, SLOT( udf() ) );
connect( actionConvert_video_for_PSP, SIGNAL( triggered() ), this, SLOT( convertpsp() ) );
connect( pushButton_5, SIGNAL( clicked() ), this, SLOT( call_database_options() ) );
connect( actionRip_DVD_2_Xvid, SIGNAL( triggered() ), this, SLOT( rip() ) );
connect( actionConvert_generic_video, SIGNAL( triggered() ), this, SLOT( vidgeneric() ) );
connect( actionWithout_Account, SIGNAL( triggered() ), this, SLOT( utube() ) );
connect( actionUser_Account_Login, SIGNAL( triggered() ), this, SLOT( utubeuser() ) );
connect(actionUnmount_Image,SIGNAL( triggered() ), this, SLOT( umount() ) );
//connect( actionPornTube_Download_Video, SIGNAL( triggered() ), this, SLOT( pornotube() ) );
connect( actionMetaCafe_Download_Video, SIGNAL( triggered() ), this, SLOT( metacafe() ) );
connect( actionConvert_FLV_2_AVI, SIGNAL( triggered() ), this, SLOT( flvavi() ) );
connect( actionConvert_WMA_2_MP3, SIGNAL( triggered() ), this, SLOT( wma2wav() ) );
connect( actionExtract_a_RAR_password_protectd, SIGNAL( triggered() ), this, SLOT( rar() ) );
connect( actionGenerate_Md5, SIGNAL( triggered() ), this, SLOT( md5generate() ) );
connect( actionCheck_Md5, SIGNAL( triggered() ), this, SLOT( md5check() ) );
connect( actionGeneric_Mount_2, SIGNAL( triggered() ), this, SLOT( gmount() ) );
connect( actionGeneric_Umount_2, SIGNAL( triggered() ), this, SLOT( gumount() ) );
connect( actionExtract_Boot_Image_2, SIGNAL( triggered() ), this, SLOT( getboot() ) );
connect( &GPg, SIGNAL(finished(int, QProcess::ExitStatus)), this,SLOT( closeProg() ) );
connect( &GPg, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutgpg(int, QProcess::ExitStatus)));
connect( &PZip, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &PZip, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutcompress(int, QProcess::ExitStatus)));
connect( &SPlit, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &SPlit, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutsplit(int, QProcess::ExitStatus)));
connect( &PZipuncompress, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &PZipuncompress, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutuncompress(int, QProcess::ExitStatus)));
connect( listWidget, SIGNAL( itemDoubleClicked (QListWidgetItem *) ), this, SLOT(mdatabase(QListWidgetItem *) ) );
connect( &DD, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &DD, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutisofromcd(int, QProcess::ExitStatus)));
connect( &DD, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( initial_get_database() ));
connect( listWidget_2, SIGNAL( itemDoubleClicked (QListWidgetItem *) ), this, SLOT(open_mounted(QListWidgetItem *) ) );
connect( &TAr, SIGNAL(finished(int, QProcess::ExitStatus)), this,SLOT( closeProg() ) );
connect( &TAr, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(messaggio_poweriso()));
connect( &CUe, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &CUe, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutcue(int, QProcess::ExitStatus)));
connect( pushButton_delImage, SIGNAL( clicked() ), this, SLOT( remove_fromDatabase() ) );
connect( pushButton_updateDB, SIGNAL( clicked() ), this, SLOT( initial_get_database() ) );
connect( &WGet2, SIGNAL( finished(int, QProcess::ExitStatus)), this,SLOT( closeProg() ) );
connect( &CAt, SIGNAL( finished(int, QProcess::ExitStatus)), this,SLOT( closeProg() ) );
connect( &CAt, SIGNAL( finished(int, QProcess::ExitStatus)), this,SLOT( mergeMSG(int, QProcess::ExitStatus) ) );
connect( &FUse, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutfuseiso(int, QProcess::ExitStatus)));
connect( &ELtorito, SIGNAL( finished(int, QProcess::ExitStatus)), this,SLOT( closeProg() ) );
connect( &TOc, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &AUdio, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &AUdio, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutaudiotools(int, QProcess::ExitStatus)));
connect( &FUsermount, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &FUsermount, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutumount(int, QProcess::ExitStatus)));
connect( &BIso, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &UCheck, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutucheck(int, QProcess::ExitStatus)));
connect( actionRip_CD_Audio_to_WAV, SIGNAL( triggered() ), this, SLOT( ripcdaudio() ) );
connect( &RIpaudio, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT( closeProg() ));
connect( &RIpaudio, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutripaudio(int, QProcess::ExitStatus)));
connect( &AUdio, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOutripaudio(int, QProcess::ExitStatus)));
connect( actionExtract_Audio_from_any_Video_file, SIGNAL( triggered() ), this, SLOT( extractaudio() ) );
connect( lineEdit, SIGNAL( editingFinished() ), this, SLOT( search() ) );
connect( lineEdit, SIGNAL( cursorPositionChanged ( int , int ) ), this, SLOT( search() ) );
connect(dockWidget1, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)),this, SLOT(setDockPos()));
connect(listWidget, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(userListMenuRequested(const QPoint &)));
connect(history, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(historycontextmenu(const QPoint &)));
connect( history, SIGNAL( itemDoubleClicked (QListWidgetItem *) ), this, SLOT(historydoubleclickmount(QListWidgetItem *) ) );
connect( search_history_lineedit, SIGNAL( editingFinished() ), this, SLOT( search_history() ) );
connect( search_history_lineedit, SIGNAL( cursorPositionChanged ( int , int ) ), this, SLOT( search_history() ) );
connect(listWidget_2, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(mountdisplaycontextmenu(const QPoint &)));
//burn connections
connect(erase_combobox_action, SIGNAL( clicked() ), this, SLOT( erase_media() ) );
connect(pushButton_7, SIGNAL( clicked() ), this, SLOT( burniso2_cd() ) );
connect(listWidget_2, SIGNAL( itemSelectionChanged() ), this, SLOT( mountdisplayClicked() ) );
//first tab buttons
connect(clearHistoryButton, SIGNAL( clicked() ), this, SLOT(clear_history() ) );
connect( removeHistoryButton, SIGNAL( clicked() ), this, SLOT(removeHistory() ) );
//torrent
connect( torrentWidget , SIGNAL( itemSelectionChanged () ), this, SLOT( itemTorrentChanged() ) );
connect( tabWidget , SIGNAL( currentChanged ( int ) ), this, SLOT( mainTabChanged(int) ) );
connect( openTorrentButton, SIGNAL( clicked() ), this, SLOT( openTorrent() ) );
connect(openUrlTorrentButton, SIGNAL( clicked() ), this, SLOT( openUrlTorrent() ) );
}
acetoneiso2.4/acetoneiso/sources/donate.h 0000664 0001750 0001750 00000002406 11216475307 021112 0 ustar andrikos andrikos //This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
// AcetoneISO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AcetoneISO is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AcetoneISO. If not, see .
void acetoneiso::a_donate()
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
file.open(QIODevice::ReadOnly);//lo apro in sola lettura
QString str3 = (leggiRigo( 3, &file ));
if(str3.contains("kde", Qt::CaseInsensitive)) {
BRowser.startDetached( "kfmclient", QStringList() << "openURL" << "http://www.acetoneteam.org/" );
}
else {
QMessageBox::information(this, "AcetoneISO", tr("to donate go here: http://www.acetoneteam.org/") );
}
}
acetoneiso2.4/acetoneiso/acetoneiso.qrc 0000664 0001750 0001750 00000007170 11555370006 020643 0 ustar andrikos andrikos
images/lxde.png
images/Acetino2.png
images/Startup Wizard.png
images/buttTG.png
images/configure.png
images/dvd_unmount.png
images/cdwriter_mount.png
images/cdrom_unmount.png
images/db_comit.png
images/default.png
images/aburner.png
images/aburnercue.png
images/aburnermdf.png
images/eraser.png
images/cdaudio.png
images/gdm.png
images/manual.png
images/gtk-cancel.png
images/kgpg.png
images/x-click-but04.gif
images/mac.gif
images/zoom2.png
images/splash.png
images/afolder.png
images/apsx.png
images/a7z.png
images/aoptions.png
images/amd5.png
images/afloppy.png
images/ataco.png
images/password.png
images/amerge.png
images/udf.png
images/xvid.png
images/aflv.png
images/utube.png
images/aplay.png
images/boot.png
images/anonimo.png
images/account.png
images/homefolder.png
images/pcfolder.png
images/metacafe.png
images/pornotube.png
images/psp.png
images/wma.png
images/wav.png
images/reload.png
images/extract.png
images/audio.png
images/file_manager.png
images/xvid2.png
images/gnome.png
images/kaffeine.png
images/kde.png
images/smplayer.png
images/vlc.png
images/thunar.png
images/winrar.png
images/autori.png
images/contatti.png
images/licenza.png
images/history.png
images/cpu.png
images/erase_media.png
images/burn_media.png
images/burn_media_cd.png
images/burn_media_dvd.png
images/format_media.png
images/drive-optical.png
locale/acetoneiso_de.qm
locale/acetoneiso_es.qm
locale/acetoneiso_fr.qm
locale/acetoneiso_it.qm
locale/acetoneiso_pl.qm
locale/acetoneiso_hu.qm
locale/acetoneiso_ru.qm
locale/acetoneiso_ro.qm
locale/acetoneiso_zh.qm
locale/acetoneiso_cs.qm
locale/acetoneiso_ta.qm
manual/acetino2.png
manual/manual.html
manual/page2.html
manual/page3.html
manual/page4.html
manual/page5.html
images/dialog-ok-apply.png
images/dialog-ok.png
images/dialog-cancel.png
images/document-revert.png
images/edit-delete.png
images/application-exit.png
images/downloading.png
images/document-open.png
images/document-open-remote.png
images/pause.png
images/go-down.png
acetoneiso2.4/acetoneiso/menu/ 0000775 0001750 0001750 00000000000 12232235610 016734 5 ustar andrikos andrikos acetoneiso2.4/acetoneiso/menu/AcetoneISO.desktop 0000775 0001750 0001750 00000000611 11304513737 022271 0 ustar andrikos andrikos [Desktop Entry]
Categories=Qt;KDE;AudioVideo;DiscBurning;
Exec=acetoneiso %f
Icon=Acetino2
MimeType=application/x-iso;
Name=AcetoneISO
GenericName=CD/DVD image manipulator
GenericName[it]=Strumenti per immagini CD/DVD
GenericName[de]=CD/DVD-Abbildmanager
GenericName[ru]=Манипулятор CD/DVD образов
StartupNotify=true
Terminal=false
Type=Application
X-KDE-SubstituteUID=false
acetoneiso2.4/acetoneiso/ui/ 0000775 0001750 0001750 00000000000 12232235607 016413 5 ustar andrikos andrikos acetoneiso2.4/acetoneiso/ui/progress.ui 0000664 0001750 0001750 00000005477 11066215520 020627 0 ustar andrikos andrikos
progress
Qt::NonModal
0
0
460
105
AcetoneISO::Progress
:/images/Acetino2.png:/images/Acetino2.png
-
0
0
:/images/Acetino2.png
-
0
0
Please wait... work in progress
-
true
0
0
281
21
false
0
0
false
-
Qt::Vertical
QSizePolicy::Fixed
20
21
acetoneiso2.4/acetoneiso/ui/about.ui 0000664 0001750 0001750 00000253505 12232234503 020070 0 ustar andrikos andrikos
about
0
0
446
278
About AcetoneISO
:/images/Acetino2.png:/images/Acetino2.png
-
-
Qt::Horizontal
QSizePolicy::Fixed
311
20
-
OK
:/images/dialog-ok.png:/images/dialog-ok.png
-
0
:/images/autori.png:/images/autori.png
Authors
-
:/images/Acetino2.png
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:9pt; font-weight:400; font-style:normal;">
<p align="justify" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'DejaVu Sans'; font-size:8pt;"><br /></p>
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">AcetoneISO</span></p>
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">2.4 30/10/2013</span></p></body></html>
Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
-
Qt::Vertical
20
25
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">The cd/dvd image manipulator for linux<br />is created by:<br /></span></p>
<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Current: </span><span style=" font-size:10pt; font-style:italic;">Marco Di Antonio</span></p>
<p align="justify" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt; font-style:italic;"></p>
<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Previous 2006-2009:</span><span style=" font-size:10pt; font-style:italic;"><br />Fabrizio Di Marco</span></p>
<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt; font-style:italic;">Marco Di Antonio</span><span style=" font-size:10pt;"> </span></p></body></html>
Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
-
Qt::Vertical
20
24
:/images/contatti.png:/images/contatti.png
Contacts
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:9pt; font-weight:400; font-style:normal;">
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif';">You can contact me by email at:</span></p>
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="mailto:acetoneiso@gmail.com"><span style=" font-family:'Sans Serif'; text-decoration: underline; color:#0000ff;">acetoneiso@gmail.com</span></a><span style=" font-family:'Sans Serif';"><br /></span></p></body></html>
true
:/images/Acetino2.png:/images/Acetino2.png
Honor && Glory
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:9pt; font-weight:400; font-style:normal;">
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt; font-weight:600;">Translators:</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Italian: Original Authors</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Czech: Hanz</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Russian: Oleg Koptev, Arseniy Muravyev</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Polish: Jarek</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Romanian: Aparaschivei Florin</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Hungarian: Sandor Lisovszki</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">German: Johannes Obermayr</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Spanish: Otniel Watanabe</span></p>
<p align="center" style="-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'DejaVu Sans'; font-size:8pt;"><br /></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt; font-weight:600;">Special Thanks goes to:</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">All the people that made a donation!</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">All package mantainers.</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">All people that submitted bug-reports, patches and suggestions.</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Irc #qt channel on irc.freenode.net for all their help on C++ and Qt4</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Trolltech for releasing such a wonderful framework, Qt4!</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">All the open source tools AcetoneISO uses, this includes: fuseiso, mencoder, mplayer, mencoder, dd, cdrdao, wodim, growisofs, youtube-dl, 7z, ffmpeg, gnupg, dvd+r-format and more!</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">And finally... a big thanks goes to You for using our software!</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt;">Thanks to all of You,</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans'; font-size:8pt; font-weight:600;">The AcetoneISO Team</span></p></body></html>
:/images/licenza.png:/images/licenza.png
License
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:14px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">GNU GENERAL PUBLIC LICENSE</span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Version 3, 29 June 2007 </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/></span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="preamble"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">P</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">reamble </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The GNU General Public License is a free, copyleft license for software and other kinds of works. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The precise terms and conditions for copying, distribution and modification follow. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="terms"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">T</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">ERMS AND CONDITIONS </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section0"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">0</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Definitions. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">“This License” refers to version 3 of the GNU General Public License. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">A “covered work” means either the unmodified Program or a work based on the Program. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section1"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Source Code. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The Corresponding Source for a work in source code form is that same work. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section2"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">2</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Basic Permissions. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section3"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">3</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Protecting Users' Legal Rights From Anti-Circumvention Law. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section4"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">4</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Conveying Verbatim Copies. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section5"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">5</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Conveying Modified Source Versions. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: </span></p>
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">a) The work must carry prominent notices stating that you modified it, and giving a relevant date. </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. </li></ul>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section6"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">6</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Conveying Non-Source Forms. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: </span></p>
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. </li></ul>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section7"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">7</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Additional Terms. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: </span></p>
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">d) Limiting the use for publicity purposes of names of licensors or authors of the material; or </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or </li>
<li style=" font-family:'Sans Serif'; font-size:10pt;" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. </li></ul>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section8"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">8</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Termination. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section9"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">9</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">. Acceptance Not Required for Having Copies. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section10"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">0. Automatic Licensing of Downstream Recipients. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section11"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1. Patents. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section12"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">2. No Surrender of Others' Freedom. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section13"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">3. Use with the GNU Affero General Public License. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section14"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">4. Revised Versions of this License. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section15"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">5. Disclaimer of Warranty. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section16"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">6. Limitation of Liability. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="section17"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">1</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">7. Interpretation of Sections 15 and 16. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">END OF TERMS AND CONDITIONS </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="howto"></a><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">H</span><span style=" font-family:'Sans Serif'; font-size:10pt; font-weight:600;">ow to Apply These Terms to Your New Programs </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. </span></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> <one line to give the program's name and a brief idea of what it does.></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> Copyright (C) <year> <name of author></span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Courier New,courier'; font-size:10pt;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> This program is free software: you can redistribute it and/or modify</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> it under the terms of the GNU General Public License as published by</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> the Free Software Foundation, either version 3 of the License, or</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> (at your option) any later version.</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Courier New,courier'; font-size:10pt;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> This program is distributed in the hope that it will be useful,</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> GNU General Public License for more details.</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Courier New,courier'; font-size:10pt;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> You should have received a copy of the GNU General Public License</span></p>
<p style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> along with this program. If not, see <http://www.gnu.org/licenses/>. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Also add information on how to contact you by electronic and paper mail. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: </span></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> <program> Copyright (C) <year> <name of author></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> This is free software, and you are welcome to redistribute it</span></p>
<p style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;"> under certain conditions; type `show c' for details. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>. </span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.htm</span></p></body></html>
pushButton
clicked()
about
close()
365
273
207
146
acetoneiso2.4/acetoneiso/ui/burn_iso_2_cd.ui 0000664 0001750 0001750 00000020261 11513606137 021463 0 ustar andrikos andrikos
burniso2cd
Qt::NonModal
0
0
567
435
0
0
400
0
16777215
16777215
Burn Image to CD-R/RW
-
-
0
0
Device:
-
0
0
This combobox shows all the cdrom CD-RW capable devices found in your system
-
0
0
Speed:
-
true
0
0
90
0
Choose writing speed. When putting high values, be sure to have a good optical medium quality.
-
Qt::Vertical
QSizePolicy::Fixed
20
18
-
-
false
Select ISO/CUE/TOC image to burn to CD-R/RW :
-
-
false
true
-
false
Click here to browse and choose what image to burn to your optical medium
:/images/afolder.png:/images/afolder.png
20
20
-
-
true
-
-
0
0
100
0
PointingHandCursor
Start burning your image.
Start
:/images/burn_media_cd.png:/images/burn_media_cd.png
-
Does a burning simulation. This means it will not do a real burn and write data on your CD-R/RW disc.
Simulation
-
0
0
This will eject your disc when the blank process ends
Eject the disk after doing the work
-
Qt::Vertical
QSizePolicy::Fixed
90
18
-
Progress:
-
true
0
0
This display shows the progress of the burning process.
acetoneiso2.4/acetoneiso/ui/acetoneiso.ui 0000664 0001750 0001750 00000205436 12232234523 021111 0 ustar andrikos andrikos
Fabrizio Di Marco
acetoneiso
0
0
862
580
0
0
16777215
16777215
AcetoneISO
:/images/Acetino2.png:/images/Acetino2.png
0
0
-
true
0
0
16777215
16777215
QTabWidget::North
QTabWidget::Rounded
0
Qt::ElideNone
false
false
:/images/cdwriter_mount.png:/images/cdwriter_mount.png
Mount Images
-
QLayout::SetFixedSize
-
Qt::Vertical
QSizePolicy::Fixed
20
18
-
0
0
ArrowCursor
Click to mount an image
Mount
:/images/cdwriter_mount.png:/images/cdwriter_mount.png
true
-
0
0
ArrowCursor
Click a mounted image on the display to unmount it
Unmount
:/images/document-revert.png:/images/document-revert.png
true
-
Qt::Vertical
QSizePolicy::Expanding
20
40
-
14
0
PointingHandCursor
Qt::CustomContextMenu
Double click an image to open in file manager.
Right click for Context Menu.
background-color: rgb(250, 248, 255);
selection-background-color: rgb(248, 146, 255);
selection-color: rgb(82, 1, 93);
QAbstractItemView::DropOnly
-
-
History:
-
QLayout::SetFixedSize
-
Qt::Vertical
QSizePolicy::Fixed
20
18
-
Clears History
Clear
:/images/document-revert.png:/images/document-revert.png
true
-
Removes all non-existant images from History
Remove
:/images/edit-delete.png:/images/edit-delete.png
true
-
Qt::Vertical
20
40
-
14
0
PointingHandCursor
Qt::CustomContextMenu
Double click to mount. Right click for context menu
background-color: rgb(244, 251, 255);
selection-background-color: rgb(121, 123, 255);
selection-color: rgb(1, 10, 134);
QAbstractItemView::DropOnly
-
-
0
0
search:
-
0
0
type a letter/s to filter the search
background-color: rgb(244, 251, 255);
selection-color: rgb(197, 24, 212);
:/images/burn_media.png:/images/burn_media.png
Burn CD/DVD
false
10
40
281
31
-
Erase CD-RW
:/images/erase_media.png:/images/erase_media.png
-
Erase DVD±RW
:/images/format_media.png:/images/format_media.png
false
300
40
41
31
PointingHandCursor
Do the action specified in the combobox
:/images/eraser.png:/images/eraser.png
20
20
false
10
120
281
31
-
Burn ISO/TOC/CUE to CD-R/RW
:/images/burn_media_cd.png:/images/burn_media_cd.png
-
Burn ISO image to DVD±R/RW
:/images/burn_media_dvd.png:/images/burn_media_dvd.png
false
300
120
41
31
PointingHandCursor
Do the action specified in the combobox
:/images/burn_media.png:/images/burn_media.png
20
20
10
20
421
21
Erase CD-RW or DVD±RW :
true
10
100
421
20
Burn Image ISO/CUE/TOC to CD-R/RW or DVD±R/RW :
:/images/go-down.png:/images/go-down.png
Torrents
-
false
Open
:/images/document-open.png:/images/document-open.png
true
-
false
selection-background-color: rgb(194, 150, 209);
selection-color: rgb(0, 0, 0);
color: rgb(0, 0, 0);
false
false
Name
Progress
Size
Speed
ETA
Seeds
Leechers
Errors
-
false
Open URL
:/images/document-open-remote.png:/images/document-open-remote.png
true
-
false
Pause
:/images/pause.png:/images/pause.png
true
-
false
Remove
:/images/edit-delete.png:/images/edit-delete.png
true
-
Qt::Vertical
QSizePolicy::Expanding
105
196
-
Qt::Vertical
QSizePolicy::Fixed
20
18
:/images/splash.png:/images/splash.png
Updates
-
false
0
0
260
100
6000
6000
Real time updates from the net
-
Qt::Vertical
QSizePolicy::Fixed
20
18
-
-
0
0
Process Progress:
-
0
0
ArrowCursor
Hides the Process Display
Hide Process display
:/images/buttTG.png:/images/buttTG.png
true
-
0
0
16777215
120
This display shows you the current progress of the process in action
background-color: rgb(255, 255, 238);
selection-background-color: rgb(85, 0, 255);
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:9pt; font-weight:400; font-style:normal;">
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'DejaVu Sans';"><br /></p></body></html>
Qt::TextSelectableByMouse
textBrowser
tabWidget
0
0
QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetMovable
Qt::LeftDockWidgetArea|Qt::RightDockWidgetArea
database
2
-
-
0
0
search:
-
0
0
true
false
type a letter/s to filter the search
background-color: rgb(246, 255, 248);
selection-color: rgb(197, 24, 212);
-
0
0
PointingHandCursor
Qt::CustomContextMenu
Double click to mount. Right click for context menu
background-color: rgb(246, 255, 248);
selection-color: rgb(19, 89, 0);
selection-background-color: rgb(147, 255, 151);
10
-
0
0
Database set to:
-
0
0
Qt::AutoText
-
0
0
ArrowCursor
select an image on display to delete
Delete
:/images/edit-delete.png:/images/edit-delete.png
true
-
0
0
30
16777215
ArrowCursor
Options
:/images/aoptions.png:/images/aoptions.png
false
false
true
-
0
0
ArrowCursor
Click to update database's display
Refresh
:/images/reload.png:/images/reload.png
true
:/images/application-exit.png:/images/application-exit.png
Quit
:/images/db_comit.png:/images/db_comit.png
Set Database
:/images/cdwriter_mount.png:/images/cdwriter_mount.png
Manual Umount
:/images/zoom2.png:/images/zoom2.png
Image Info
:/images/buttTG.png:/images/buttTG.png
Extract Boot Image
:/images/amd5.png:/images/amd5.png
Generate to file
:/images/zoom2.png:/images/zoom2.png
Check
:/images/configure.png:/images/configure.png
DOS Boot
:/images/configure.png:/images/configure.png
Generic Floppy-Emulation
:/images/configure.png:/images/configure.png
Generic No-Emulation
:/images/manual.png:/images/manual.png
Manual
:/images/Acetino2.png:/images/Acetino2.png
About
:/images/cdrom_unmount.png:/images/cdrom_unmount.png
umount
:/images/cdwriter_mount.png:/images/cdwriter_mount.png
mount
To CD
To DvD
:/images/mac.gif:/images/mac.gif
Convert MacOs Image
:/images/buttTG.png:/images/buttTG.png
Extract Boot Image
../../../../../../.designer/backup../../../../../../.designer/backup
MS-DOS Boot
:/images/afloppy.png:/images/afloppy.png
Generic Floppy-Emulation
:/images/ataco.png:/images/ataco.png
Generic No-Emulation
:/images/gdm.png:/images/gdm.png
Convert Image to ISO
:/images/mac.gif:/images/mac.gif
Convert MacOs Image
:/images/afolder.png:/images/afolder.png
Generate ISO from folder
:/images/apsx.png:/images/apsx.png
Rip a PSX1 game for epsxe/psx emulators
:/images/xvid.png:/images/xvid.png
Split
:/images/amerge.png:/images/amerge.png
Merge Splitted Image
:/images/kgpg.png:/images/kgpg.png
Encrypt
:/images/password.png:/images/password.png
Decrypt
:/images/cdwriter_mount.png:/images/cdwriter_mount.png
Mount
:/images/document-revert.png:/images/document-revert.png
Unmount
:/images/extract.png:/images/extract.png
Extract Image Content to a folder
:/images/cdwriter_mount.png:/images/cdwriter_mount.png
Backup CD-Audio
:/images/a7z.png:/images/a7z.png
Compress
:/images/db_comit.png:/images/db_comit.png
Uncompress
:/images/Startup Wizard.png:/images/Startup Wizard.png
Generate Cue for BIN/IMG images
:/images/aoptions.png:/images/aoptions.png
O&ptions
Mount UDF ISO
:/images/udf.png:/images/udf.png
Mount UDF ISO
:/images/xvid2.png:/images/xvid2.png
Rip DVD 2 Xvid AVI
:/images/xvid2.png:/images/xvid2.png
Convert generic video 2 Xvid AVI
:/images/aflv.png:/images/aflv.png
Convert FLV 2 AVI
:/images/cdwriter_mount.png:/images/cdwriter_mount.png
&Open
:/images/aplay.png:/images/aplay.png
Play
:/images/document-revert.png:/images/document-revert.png
Unmount
:/images/x-click-but04.gif:/images/x-click-but04.gif
Donate
:/images/anonimo.png:/images/anonimo.png
Anonymous Login
:/images/account.png:/images/account.png
User Account Login
:/images/aburnercue.png:/images/aburnercue.png
Burn CUE
:/images/cdrom_unmount.png:/images/cdrom_unmount.png
CD
:/images/dvd_unmount.png:/images/dvd_unmount.png
DVD
:/images/cdrom_unmount.png:/images/cdrom_unmount.png
to CD
:/images/dvd_unmount.png:/images/dvd_unmount.png
to DVD
:/images/cdrom_unmount.png:/images/cdrom_unmount.png
to CD
:/images/dvd_unmount.png:/images/dvd_unmount.png
to DVD
:/images/amd5.png:/images/amd5.png
Burn TOC
:/images/cdrom_unmount.png:/images/cdrom_unmount.png
Copy a normal CD/DVD data
:/images/cdaudio.png:/images/cdaudio.png
Copy a CD Audio
:/images/kgpg.png:/images/kgpg.png
Copy a protected PC Game CD/DVD
:/images/cdrom_unmount.png:/images/cdrom_unmount.png
a standard data CD/DVD
:/images/cdaudio.png:/images/cdaudio.png
a CD Audio
:/images/apsx.png:/images/apsx.png
a Playstation 1 Game
:/images/kgpg.png:/images/kgpg.png
a protected PC Game CD/DVD
:/images/default.png:/images/default.png
a DVD Video
:/images/default.png:/images/default.png
Copy a DVD Video
:/images/apsx.png:/images/apsx.png
Copy a Playstation 1 Game
:/images/cdwriter_mount.png:/images/cdwriter_mount.png
Mount Image
:/images/pornotube.png:/images/pornotube.png
PornoTube Download Video
:/images/metacafe.png:/images/metacafe.png
MetaCafe Download Video
:/images/cdaudio.png:/images/cdaudio.png
Rip CD Audio 2 MP3
:/images/wma.png:/images/wma.png
Convert WMA 2 MP3
:/images/wav.png:/images/wav.png
Convert WAV 2 MP3
Split
:/images/amerge.png:/images/amerge.png
Merge Splitted Image
:/images/xvid.png:/images/xvid.png
Split
:/images/a7z.png:/images/a7z.png
Compress
:/images/extract.png:/images/extract.png
Extract
:/images/kgpg.png:/images/kgpg.png
Encrypt
:/images/password.png:/images/password.png
Decrypt
:/images/winrar.png:/images/winrar.png
Extract a RAR password protected
:/images/psp.png:/images/psp.png
ISO 2 CSO
:/images/db_comit.png:/images/db_comit.png
CSO 2 ISO
:/images/audio.png:/images/audio.png
Extract Audio from a Video file
:/images/document-revert.png:/images/document-revert.png
Unmount Image
:/images/psp.png:/images/psp.png
Convert video for PSP™
false
:/images/cdaudio.png:/images/cdaudio.png
Rip CD-Audio to WAV
:/images/x-click-but04.gif:/images/x-click-but04.gif
Make a small donation
:/images/zoom2.png:/images/zoom2.png
Sha1
:/images/zoom2.png:/images/zoom2.png
Sha256
:/images/zoom2.png:/images/zoom2.png
Sha384
QWebView
QWidget
listWidget_2
acetoneiso2.4/acetoneiso/ui/erasedvd.ui 0000664 0001750 0001750 00000014726 11513606137 020562 0 ustar andrikos andrikos
erasedvd
Qt::NonModal
0
0
473
340
0
0
400
0
16777215
16777215
Erase DVD±RW
-
-
0
0
Device:
-
true
This combobox shows all the DVD±RW capable devices found in your system
-
true
Selecting this will completely blank your DVD±RW. This is not recommended and may damage your media on if used several times
Blank the entire disk (not recommended)
false
-
Qt::Vertical
QSizePolicy::Fixed
89
17
-
true
Quick Blank
true
-
Qt::Vertical
QSizePolicy::Fixed
90
18
-
-
true
0
0
This will eject your disc when the blank process ends
Eject the disk after doing the work
-
Qt::Vertical
QSizePolicy::Fixed
90
18
-
Progress:
-
true
0
0
This display shows the progress of the blanking process
-
-
false
0
0
100
0
PointingHandCursor
Start blanking your disc
Start
:/images/erase_media.png:/images/erase_media.png
acetoneiso2.4/acetoneiso/ui/burn_iso_2_dvd.ui 0000664 0001750 0001750 00000016605 11513606137 021661 0 ustar andrikos andrikos
burniso2dvd
Qt::NonModal
0
0
620
397
0
0
400
0
16777215
16777215
Burn ISO to DVD±R/RW
-
-
0
0
Device:
-
0
0
This combobox shows all the dvd DVD±R/RW capable devices found in your system
-
0
0
Speed:
-
true
0
0
90
0
Choose writing speed. When putting high values, be sure to have a good optical medium quality.
-
-
false
Select ISO image to burn to DVD±R/RW :
-
-
false
true
-
false
Click here to browse and choose what image to burn to your optical medium
:/images/afolder.png:/images/afolder.png
20
20
-
-
true
-
-
false
0
0
100
0
PointingHandCursor
Start burning your image.
Start
:/images/burn_media_dvd.png:/images/burn_media_dvd.png
-
Progress:
-
true
0
0
This display shows the progress of the blanking process
-
Qt::Vertical
QSizePolicy::Fixed
20
20
-
Qt::Vertical
QSizePolicy::Fixed
20
20
acetoneiso2.4/acetoneiso/ui/options.ui 0000664 0001750 0001750 00000042765 11552661720 020466 0 ustar andrikos andrikos
options
0
0
599
422
0
420
AcetoneISO::Options
:/images/Acetino2.png:/images/Acetino2.png
-
0
General Options
-
0
0
QFrame::StyledPanel
2
0
0
131
54
:/images/afolder.png:/images/afolder.png
Iso from folder
-
Standard Settings
-
will let you add an ID to the ISO
User Settings
0
0
105
79
:/images/default.png:/images/default.png
Media player
-
Kaffeine
:/images/kaffeine.png:/images/kaffeine.png
-
Vlc
:/images/vlc.png:/images/vlc.png
-
SMPlayer
:/images/smplayer.png:/images/smplayer.png
0
0
565
223
:/images/file_manager.png:/images/file_manager.png
File manager
-
it will use kde's default file manager
Dolphin
:/images/kde.png:/images/kde.png
-
it will use Nautilus file manager
Nautilus
:/images/gnome.png:/images/gnome.png
-
Thunar
:/images/thunar.png:/images/thunar.png
-
Don't Open a file manager
:/images/edit-delete.png:/images/edit-delete.png
-
Lxde
:/images/lxde.png:/images/lxde.png
0
0
100
30
:/images/db_comit.png:/images/db_comit.png
Database
370
30
121
33
What is Database?
410
60
51
51
:/images/manual.png:/images/manual.png
42
42
true
false
false
10
110
281
81
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'DejaVu Sans';">If you activate Scan Subdirectories checkbox, avoid setting database root folder directly to your ~home folder or system folders.</span></p></body></html>
10
20
311
16
Set database root folder:
10
40
221
25
230
34
41
31
PointingHandCursor
:/images/afolder.png:/images/afolder.png
20
20
10
80
341
23
Scan Subdirectories (read below)
Advanced Options
20
30
551
23
Enable Tray Icon (requires application restart)
50
50
431
23
Close in Tray Icon
20
120
541
23
Automatically clean History display on restart
20
140
541
23
Automatically remove non-existant images from History display on restart
10
10
271
16
Tray Icon:
10
100
211
16
History:
-
Reset options to default values.
Defaults
:/images/document-revert.png:/images/document-revert.png
-
Qt::Horizontal
QSizePolicy::Fixed
201
20
-
-
OK
:/images/dialog-ok.png:/images/dialog-ok.png
-
Apply
:/images/dialog-ok-apply.png:/images/dialog-ok-apply.png
-
Cancel
:/images/dialog-cancel.png:/images/dialog-cancel.png
pushButton_cancel
clicked()
options
close()
201
356
261
187
acetoneiso2.4/acetoneiso/ui/erasecd.ui 0000664 0001750 0001750 00000014134 11513606137 020364 0 ustar andrikos andrikos
erasecd
Qt::NonModal
0
0
476
340
0
0
400
0
16777215
16777215
Erase CD
-
-
0
0
Device:
-
This combobox shows all the cdrom CD-RW capable devices found in your system
-
Selecting this will completely blank your CD-RW
Blank the entire disk
true
-
Qt::Vertical
QSizePolicy::Fixed
89
17
-
This will not delete files but only PMA, TOC and the pregap
Minimally blank the entire disk (PMA, TOC, pregap)
false
-
Qt::Vertical
QSizePolicy::Fixed
90
18
-
-
0
0
This will eject your disc when the blank process ends
Eject the disk after doing the work
-
Qt::Vertical
QSizePolicy::Fixed
90
18
-
Progress:
-
true
0
0
This display shows the progress of the blanking process
-
-
0
0
100
0
PointingHandCursor
Start blanking your disc
Start
:/images/erase_media.png:/images/erase_media.png
acetoneiso2.4/acetoneiso/ui/manual.ui 0000664 0001750 0001750 00000003731 11213625717 020236 0 ustar andrikos andrikos
manual
0
0
650
480
AcetoneISO::Manual
:/images/Acetino2.png:/images/Acetino2.png
-
-
Qt::Horizontal
QSizePolicy::Fixed
551
30
-
0
0
OK
:/images/dialog-ok.png:/images/dialog-ok.png
pushButton
clicked()
manual
close()
589
341
326
180
acetoneiso2.4/acetoneiso/locale/ 0000775 0001750 0001750 00000000000 12232235610 017227 5 ustar andrikos andrikos acetoneiso2.4/acetoneiso/locale/acetoneiso_zh.qm 0000664 0001750 0001750 00000052021 11472576336 022442 0 ustar andrikos andrikos