gnomecatalog_0.3.4.2/0000755000175000017500000000000011147771076013075 5ustar josejosegnomecatalog_0.3.4.2/tools/0000755000175000017500000000000010743372431014226 5ustar josejosegnomecatalog_0.3.4.2/share/0000755000175000017500000000000010743466512014174 5ustar josejosegnomecatalog_0.3.4.2/scripts/0000755000175000017500000000000011147771057014563 5ustar josejosegnomecatalog_0.3.4.2/po/0000755000175000017500000000000011147770051013503 5ustar josejosegnomecatalog_0.3.4.2/gnomecatalog/0000755000175000017500000000000011147771066015534 5ustar josejosegnomecatalog_0.3.4.2/doc/0000755000175000017500000000000010743372432013634 5ustar josejosegnomecatalog_0.3.4.2/share/mime/0000755000175000017500000000000010743372432015120 5ustar josejosegnomecatalog_0.3.4.2/share/glade/0000755000175000017500000000000010743372432015245 5ustar josejosegnomecatalog_0.3.4.2/share/pixmaps/0000755000175000017500000000000010743372432015652 5ustar josejosegnomecatalog_0.3.4.2/gnomecatalog/ui/0000755000175000017500000000000011147771066016151 5ustar josejosegnomecatalog_0.3.4.2/ChangeLog0000644000175000017500000000000111147770627014637 0ustar josejose gnomecatalog_0.3.4.2/NEWS0000644000175000017500000000023711147770262013572 0ustar josejose=============== Version 0.3.4.2 =============== * Solved Bug #329519 from launchpad patch from Tom Lees Closes Translations - New de: Mario Blättermann gnomecatalog_0.3.4.2/TODO0000644000175000017500000000054010743372430013554 0ustar josejosePOR HACER POR REVISAR 6º) Una cosa muy muy importante es poder definir si has prestado una funda, peli o algo 8º) Estaría bien poder exportar en formato txt, html, etc. la base de datos para compartirla con la gente que no tenga el mismo programa. 9. control + b sale un dialogo preguntandote que extensiones quieres catalogar. * importar gnomecatalog_0.3.4.2/setup.py0000755000175000017500000000567510743674606014631 0ustar josejose#! /usr/bin/env python from distutils.core import setup from distutils.command.install_data import install_data from distutils.command.clean import clean from distutils.dep_util import newer from distutils.log import info import glob import os import sys mod_list = ["gnomecatalog"] name = "gnomecatalog" version="0.3.4" long_desc = '''Catalog Software''' class CleanData(clean): def run(self): top = os.path.join('build', 'mo') if os.path.exists(top): for root, dirs, files in os.walk(top, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) os.removedirs(top) clean.run(self) class InstallData(install_data): def run (self): self.data_files.extend (self._compile_po_files ()) install_data.run (self) def _compile_po_files (self): data_files = [] # Don't install language files on win32 if sys.platform == 'win32': return data_files PO_DIR = 'po' for po in glob.glob (os.path.join (PO_DIR,'*.po')): lang = os.path.basename(po[:-3]) mo = os.path.join('build', 'mo', lang, 'gnomecatalog.mo') directory = os.path.dirname(mo) if not os.path.exists(directory): info('creating %s' % directory) os.makedirs(directory) if newer(po, mo): # True if mo doesn't exist cmd = 'msgfmt -o %s %s' % (mo, po) info('compiling %s -> %s' % (po, mo)) if os.system(cmd) != 0: raise SystemExit('Error while running msgfmt') dest = os.path.dirname(os.path.join('share', 'locale', lang, 'LC_MESSAGES', 'gnomecatalog.mo')) data_files.append((dest, [mo])) return data_files setup (name = name, version = version, description = 'Catalog Software for Gnome Desktop', long_description = long_desc, author = 'Jose Sanchez Moreno', author_email = 'jose@o2w.es', url = 'http://gnomecatalog.sf.net', license = 'GPL v3', packages = ['gnomecatalog', "gnomecatalog.ui"], scripts = ['scripts/gnomecatalog'], data_files = [('share/gnomecatalog/glade', ["share/glade/dialogs.glade","share/glade/gnomecatalog.glade"]), ('share/gnomecatalog/pixmaps', glob.glob('share/pixmaps/*.png')), ('share/gnomecatalog/pixmaps', glob.glob('share/pixmaps/*.xpm')), ('share/applications', ["share/mime/gnomecatalog.desktop"]), ('share/mime/packages', ["share/mime/gnomecatalog.xml"]), ('share/mime-info', ["share/mime/gnomecatalog.mime","share/mime/gnomecatalog.keys" ]), ('share/application-registry', ["share/mime/gnomecatalog.applications"]), ('share/icons/hicolor/48x48/mimetypes', ["share/mime/gnome-mime-application-x-gcatalog.png"]), ('share/man/man1', ['doc/gnomecatalog.1']) ], cmdclass = {'install_data': InstallData, 'clean': CleanData }, ) gnomecatalog_0.3.4.2/setup.cfg0000644000175000017500000000071110743372430014705 0ustar josejose[bdist_rpm] release = 1 doc_files = README TODO NEWS LICENSE install_script = tools/rpm-install post_install = tools/rpm-post-install requires = python => 2.5, libglade2, pygtk2 => 1.99.13, pygtk2-libglade, gnome-python2, gnome-python2-gconf, gnome-python2-gnomevfs, gnome-python2-gtkhtml2, pyorbit, python-pysql2, python-xml, python-kaa-metadata group = Applications/Internet #[install] #install_data=$base/share/gnomecatalog [sdist] force-manifest = 1 gnomecatalog_0.3.4.2/README0000644000175000017500000000012310743372430013741 0ustar josejoseTo install python setup.py install To run execute ./gnomecatalog in src directory gnomecatalog_0.3.4.2/MANIFEST.in0000644000175000017500000000051710743372430014626 0ustar josejoserecursive-include src/lib *.py include src/gnomecatalog recursive-include po *.po Makefile POTFILES.in POTFILES.skip recursive-include share * recursive-include test *.py recursive-include po *.mo recursive-include tools *.py rpm-* include ChangeLog include setup.py setup.cfg include README LICENSE TODO NEWS global-exclude *.id =id gnomecatalog_0.3.4.2/MANIFEST0000644000175000017500000000250710743372430014222 0ustar josejoseChangeLog LICENSE NEWS README TODO setup.cfg setup.py po/Makefile po/en/LC_MESSAGES/gnomecatalog.mo po/en/LC_MESSAGES/gnomecatalog.po po/es/LC_MESSAGES/gnomecatalog.mo po/es/LC_MESSAGES/gnomecatalog.po po/pl/LC_MESSAGES/gnomecatalog.mo po/pl/LC_MESSAGES/gnomecatalog.po share/.cvsignore share/gnomecatalog.desktop share/glade/dialogs.glade share/glade/gcatalog.png share/glade/gnomecatalog (copia).glade share/glade/gnomecatalog.glade share/mime/gnome-mime-application-x-gcatalog.png share/mime/gnomecatalog share/mime/gnomecatalog.applications share/mime/gnomecatalog.desktop share/mime/gnomecatalog.keys share/mime/gnomecatalog.mime share/mime/gnomecatalog.xml share/pixmaps/gcatalog.png share/pixmaps/gcatalog.xpm share/pixmaps/star_set.png share/pixmaps/star_unset.png src/gnomecatalog src/lib/__init__.py src/lib/gnomecatalog/__init__.py src/lib/gnomecatalog/config.py src/lib/gnomecatalog/data.py src/lib/gnomecatalog/fileinfo.py src/lib/gnomecatalog/fstypes.py src/lib/gnomecatalog/importdata.py src/lib/gnomecatalog/reader.py src/lib/gnomecatalog/storage.py src/lib/gnomecatalog/thumbnails.py src/lib/gnomecatalog/utils.py src/lib/gnomecatalog/ui/__init__.py src/lib/gnomecatalog/ui/app.py src/lib/gnomecatalog/ui/dialogs.py src/lib/gnomecatalog/ui/gladeconnect.py src/lib/gnomecatalog/ui/treeviews.py tools/rpm-install tools/rpm-post-install gnomecatalog_0.3.4.2/LICENSE0000644000175000017500000010451310743372430014076 0ustar josejose 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 . gnomecatalog_0.3.4.2/AUTHORS0000644000175000017500000000005210743372430014132 0ustar josejoseJosé Sánchez Moreno gnomecatalog_0.3.4.2/tools/rpm-post-install0000644000175000017500000000030410743372431017373 0ustar josejose#export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) #SCHEMAS="straw.schemas" #for S in $SCHEMAS; do # gconftool-2 --makefile-install-rule /etc/gconf/schemas/$S > /dev/null || : #done gnomecatalog_0.3.4.2/tools/rpm-install0000644000175000017500000000021010743372431016404 0ustar josejoseexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 python setup.py install --prefix=/usr --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES gnomecatalog_0.3.4.2/share/gnomecatalog.desktop0000755000175000017500000000141210743466511020227 0ustar josejose[Desktop Entry] Version=1.0 Name=Gnome Catalog Name[fr]=Catalogueur de disques Name[de]=Cd-Rom-Katalogprogramm Name[nl]=Gnome Schijvencatalogus Name[hu]=Katalógusprogram GNOME alá Name[pl]=Katalog dysków CD dla Gnome Name[cs]=GNOME katalog Comment=make disk/CD catalogs Comment[fr]=Faites vos catalogues de disques/CD Comment[de]=Erstellung von Platten-/CD-Katalogen Comment[nl]=Maakt catalogen van uw schijven Comment[hu]=Meghajtó és CD katalógusokat készít Comment[pl]=Aplikacja katalogująca dyski CD (i nie tylko) Comment[cs]=Program pro katalogizaci CD disků TryExec=gnomecatalog Exec=gnomecatalog Icon=/usr/share/gnomecatalog/pixmaps/catalog.png Terminal=false Type=Application Categories=GNOME;Utility; MimeType=application/x-gcatalog; Name[es_ES]=Gnome Catalog gnomecatalog_0.3.4.2/scripts/gnomecatalog0000755000175000017500000000224711147770570017155 0ustar josejose#!/usr/bin/env python # -*- coding: UTF-8 -*- import string, os, sys, time, locale import gtk, gtk.glade, gnome import threading def find_lib(): h, t = os.path.split(os.path.split(os.path.abspath(sys.argv[0]))[0]) return os.path.join(h, t, "..") print find_lib() sys.path.insert(0, find_lib()) from gnomecatalog.ui.app import * from gnomecatalog.ui import dialogs DIR = None APP = "gnomecatalog" import locale import gettext locale.setlocale(locale.LC_ALL, '') gettext.bindtextdomain(APP, DIR) gettext.textdomain(APP) gettext.install(APP, DIR, unicode=1) gtk.glade.bindtextdomain (APP, "/usr/share/locale") #gtk.glade.bindtextdomain (APP, "/home/jose/Escritorio/gnomecatalog/po") gtk.glade.textdomain (APP) app_name = "Gnome Catalog" app_version = '0.3.4.2' app_authors = ["José Sánchez Moreno "] app_translators = _("Translators credits") gnome_program = gnome.program_init(app_name, app_version) class GnomeCatalog(App): def __init__(self): App.__init__(self, {'name' : app_name, 'version' : app_version, 'authors' : app_authors, 'translators' : app_translators }) def run(self): gtk.main() if __name__ == "__main__": app = GnomeCatalog() app.run() gnomecatalog_0.3.4.2/po/es.po0000644000175000017500000001746210743372431014465 0ustar josejose# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: 3.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2008-01-07 23:58+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: José Sánchez Moreno \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #: ../share/glade/dialogs.glade.h:1 msgid "Categories" msgstr "Categorías" #: ../share/glade/dialogs.glade.h:2 msgid "Comment" msgstr "Comentario" #: ../share/glade/dialogs.glade.h:3 msgid "Rating" msgstr "Ratio" #: ../share/glade/dialogs.glade.h:4 msgid "Save the changes?" msgstr "¿Desea guardar los cambios?" #: ../share/glade/dialogs.glade.h:5 msgid "Add new disk" msgstr "Añadir nuevo disco" #: ../share/glade/dialogs.glade.h:6 msgid "Categories, Comments" msgstr "Categorías y comentarios" #: ../share/glade/dialogs.glade.h:7 ../share/glade/dialogs.glade.h:5 msgid "Category" msgstr "Categoría" #: ../share/glade/dialogs.glade.h:8 ../share/glade/dialogs.glade.h:6 msgid "Close _without save" msgstr "Cerrar _sin guardar" #: ../share/glade/dialogs.glade.h:9 ../share/glade/dialogs.glade.h:7 msgid "Eject disk after disk read" msgstr "Expulsar disco después de su lectura" #: ../share/glade/dialogs.glade.h:10 msgid "File information" msgstr "Información de archivo" #: ../share/glade/dialogs.glade.h:11 ../share/glade/dialogs.glade.h:8 msgid "If don't save the changes will be lost." msgstr "Si no guarda ahora los cambios se perderán." #: ../share/glade/dialogs.glade.h:12 ../share/glade/dialogs.glade.h:9 msgid "Importing data from disk. Please wait a moment........." msgstr "Importando datos. Por favor espere un momento......" #: ../share/glade/dialogs.glade.h:13 msgid "Importing disk" msgstr "Importando disco" #: ../share/glade/dialogs.glade.h:14 ../share/glade/dialogs.glade.h:10 msgid "Nombre del archivo.avi" msgstr "nombre del archivo" #: ../share/glade/dialogs.glade.h:15 msgid "Preferences" msgstr "Preferencias" #: ../share/glade/dialogs.glade.h:16 msgid "Save dialog" msgstr "Guardar" #: ../share/glade/dialogs.glade.h:17 ../share/glade/dialogs.glade.h:11 msgid "Save thumbnails in the database" msgstr "Guardar los thumbnails en la base de datos" #: ../share/glade/dialogs.glade.h:18 msgid "Seleccione un directorio" msgstr "Seleccione un directorio" #: ../share/glade/dialogs.glade.h:19 ../share/glade/dialogs.glade.h:12 msgid "Select path to read" msgstr "Seleccione la ruta a leer" #: ../share/glade/dialogs.glade.h:20 msgid "gnome Catalog" msgstr "Gnome catalog" #: ../share/glade/gnomecatalog.glade.h:1 msgid "Catalog" msgstr "Catálogo" #: ../share/glade/gnomecatalog.glade.h:2 lib/gnomecatalog/ui/app.py:43 #: lib/gnomecatalog/ui/dialogs.py:157 lib/gnomecatalog/ui/app.py:46 #: ../share/glade/gnomecatalog.glade.h:1 msgid "Categories" msgstr "Categorí­as" #: ../share/glade/gnomecatalog.glade.h:3 msgid "Disk" msgstr "Disco" #: ../share/glade/gnomecatalog.glade.h:4 msgid "New _Catalog" msgstr "Nuevo _Catálogo" #: ../share/glade/gnomecatalog.glade.h:5 msgid "New _Disk" msgstr "Nuevo _disco" #: ../share/glade/gnomecatalog.glade.h:6 msgid "Rename" msgstr "Renombrar" #: ../share/glade/gnomecatalog.glade.h:7 msgid "_Edit" msgstr "_Editar" #: ../share/glade/gnomecatalog.glade.h:8 ../share/glade/gnomecatalog.glade.h:9 msgid "_File" msgstr "_Archivo" #: ../share/glade/gnomecatalog.glade.h:9 #: ../share/glade/gnomecatalog.glade.h:10 msgid "_Help" msgstr "_Ayuda" #: ../share/glade/gnomecatalog.glade.h:10 #: ../share/glade/gnomecatalog.glade.h:12 msgid "_Properties" msgstr "_Propiedades" #: ../share/glade/gnomecatalog.glade.h:11 #: ../share/glade/gnomecatalog.glade.h:13 msgid "_View" msgstr "_Ver" #: lib/gnomecatalog/ui/dialogs.py:13 lib/gnomecatalog/ui/dialogs.py:355 #: lib/gnomecatalog/ui/dialogs.py:386 lib/gnomecatalog/ui/dialogs.py:396 msgid "Open database" msgstr "Abrir" #: lib/gnomecatalog/ui/dialogs.py:22 lib/gnomecatalog/ui/dialogs.py:52 #: lib/gnomecatalog/ui/dialogs.py:84 lib/gnomecatalog/ui/dialogs.py:370 #: lib/gnomecatalog/ui/dialogs.py:407 lib/gnomecatalog/ui/dialogs.py:417 msgid "Gnome Catalog Files" msgstr "Archivos Gnome catalog" #: lib/gnomecatalog/ui/dialogs.py:27 lib/gnomecatalog/ui/dialogs.py:57 #: lib/gnomecatalog/ui/dialogs.py:89 lib/gnomecatalog/ui/dialogs.py:375 #: lib/gnomecatalog/ui/dialogs.py:412 lib/gnomecatalog/ui/dialogs.py:376 #: lib/gnomecatalog/ui/dialogs.py:422 msgid "All files" msgstr "Todos" #: lib/gnomecatalog/ui/dialogs.py:43 msgid "New database" msgstr "Nuevo" #: lib/gnomecatalog/ui/dialogs.py:75 msgid "Save as" msgstr "Guardar como" #: lib/gnomecatalog/ui/dialogs.py:92 msgid "Don't save thumbnails." msgstr "No guardar los thumbnails" #: lib/gnomecatalog/ui/dialogs.py:132 msgid "Type" msgstr "Tipo" #: lib/gnomecatalog/ui/dialogs.py:133 lib/gnomecatalog/ui/treeviews.py:145 #: lib/gnomecatalog/ui/treeviews.py:148 lib/gnomecatalog/ui/treeviews.py:151 msgid "Size" msgstr "Tamaño" #: lib/gnomecatalog/ui/dialogs.py:222 lib/gnomecatalog/ui/dialogs.py:223 msgid "New category" msgstr "Nueva categoría" #: lib/gnomecatalog/ui/treeviews.py:15 msgid "Disks" msgstr "Discos" #: lib/gnomecatalog/ui/treeviews.py:133 lib/gnomecatalog/ui/treeviews.py:136 #: lib/gnomecatalog/ui/treeviews.py:139 msgid "Files" msgstr "Archivos" #: lib/gnomecatalog/ui/treeviews.py:150 lib/gnomecatalog/ui/treeviews.py:153 #: lib/gnomecatalog/ui/treeviews.py:156 msgid "Rating" msgstr "Ratio" #: lib/gnomecatalog/data.py:92 lib/gnomecatalog/data.py:102 #: lib/gnomecatalog/data.py:97 lib/gnomecatalog/data.py:59 #: lib/gnomecatalog/data.py:105 msgid "files" msgstr "archivos" #: lib/gnomecatalog/data.py:97 lib/gnomecatalog/data.py:110 #: lib/gnomecatalog/data.py:105 lib/gnomecatalog/data.py:113 msgid "Searching..." msgstr "Buscando..." #: lib/gnomecatalog/data.py:121 lib/gnomecatalog/data.py:150 #: lib/gnomecatalog/data.py:145 lib/gnomecatalog/data.py:153 msgid "No name" msgstr "Sin nombre" #: lib/gnomecatalog/storage.py:73 lib/gnomecatalog/storage.py:144 msgid "Movies" msgstr "Pelí­culas" #: lib/gnomecatalog/storage.py:73 lib/gnomecatalog/storage.py:144 msgid "Audio" msgstr "Sonido" #: lib/gnomecatalog/storage.py:73 lib/gnomecatalog/storage.py:144 msgid "Pictures" msgstr "Imágenes" #: lib/gnomecatalog/storage.py:73 lib/gnomecatalog/storage.py:144 msgid "Documents" msgstr "Documentos" #: ../share/glade/gnomecatalog.glade.h:8 msgid "_Export" msgstr "_Exportar" #: ../share/glade/gnomecatalog.glade.h:11 msgid "_Import" msgstr "_Importar" #: lib/gnomecatalog/ui/app.py:46 msgid "File types" msgstr "Tipos de archivo" #: lib/gnomecatalog/ui/app.py:55 msgid "Audio files" msgstr "Archivos de sonido" #: lib/gnomecatalog/ui/app.py:55 msgid "Image files" msgstr "Archivos de imágenes" #: lib/gnomecatalog/ui/app.py:55 msgid "Text files" msgstr "Archivos de texto" #: lib/gnomecatalog/reader.py:59 lib/gnomecatalog/reader.py:73 #: lib/gnomecatalog/reader.py:88 msgid "Importando " msgstr "Importando" #: lib/gnomecatalog/ui/app.py:55 msgid "Video files" msgstr "Archivos de video" #: lib/gnomecatalog/ui/dialogs.py:398 lib/gnomecatalog/ui/dialogs.py:408 msgid "Select file type" msgstr "Seleccionar tipo de fichero" #: gnomecatalog.py:35 msgid "Translators credits" msgstr "José Sánchez Moreno (2007)" #: ../share/glade/gnomecatalog.glade.h:2 msgid "Export" msgstr "Exportar" #: ../share/glade/gnomecatalog.glade.h:3 lib/gnomecatalog/ui/dialogs.py:355 msgid "Export database" msgstr "Exportar base de datos" gnomecatalog_0.3.4.2/po/pl.po0000644000175000017500000001744510743372431014472 0ustar josejose# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2008-01-07 23:58+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../share/glade/dialogs.glade.h:1 msgid "Categories" msgstr "Kategorie" #: ../share/glade/dialogs.glade.h:2 msgid "Comment" msgstr "Komentarz" #: ../share/glade/dialogs.glade.h:3 msgid "Rating" msgstr "Ocena" #: ../share/glade/dialogs.glade.h:4 msgid "Save the changes?" msgstr "B?Zapisać zmiany?" #: ../share/glade/dialogs.glade.h:5 msgid "Add new disk" msgstr "Dodaj nowy dysk" #: ../share/glade/dialogs.glade.h:6 msgid "Categories, Comments" msgstr "Kategorie, Komentarze" #: ../share/glade/dialogs.glade.h:7 ../share/glade/dialogs.glade.h:5 msgid "Category" msgstr "Kategoria" #: ../share/glade/dialogs.glade.h:8 ../share/glade/dialogs.glade.h:6 msgid "Close _without save" msgstr "Zamknij bez zapisywania" #: ../share/glade/dialogs.glade.h:9 ../share/glade/dialogs.glade.h:7 msgid "Eject disk after disk read" msgstr "Wyrzuć dysk po przeczytaniu" #: ../share/glade/dialogs.glade.h:10 msgid "File information" msgstr "Informacja o pliku" #: ../share/glade/dialogs.glade.h:11 ../share/glade/dialogs.glade.h:8 msgid "If don't save the changes will be lost." msgstr "Jeżeli nie zapiszesz, zmiany zostaną utracone." #: ../share/glade/dialogs.glade.h:12 ../share/glade/dialogs.glade.h:9 msgid "Importing data from disk. Please wait a moment........." msgstr "Importowanie danych z dysku. Proszę czekać............" #: ../share/glade/dialogs.glade.h:13 msgid "Importing disk" msgstr "Importowanie dysku" #: ../share/glade/dialogs.glade.h:14 ../share/glade/dialogs.glade.h:10 msgid "Nombre del archivo.avi" msgstr "" #: ../share/glade/dialogs.glade.h:15 msgid "Preferences" msgstr "Preferencje" #: ../share/glade/dialogs.glade.h:16 msgid "Save dialog" msgstr "Zapisywanie" #: ../share/glade/dialogs.glade.h:17 ../share/glade/dialogs.glade.h:11 msgid "Save thumbnails in the database" msgstr "Zapisz miniaturki w bazie" #: ../share/glade/dialogs.glade.h:18 msgid "Seleccione un directorio" msgstr "Wybierz katalog" #: ../share/glade/dialogs.glade.h:19 ../share/glade/dialogs.glade.h:12 msgid "Select path to read" msgstr "Wybierz ścieżkę do czytania" #: ../share/glade/dialogs.glade.h:20 msgid "gnome Catalog" msgstr "gnome Catalog" #: ../share/glade/gnomecatalog.glade.h:1 msgid "Catalog" msgstr "Katalog" #: ../share/glade/gnomecatalog.glade.h:2 lib/gnomecatalog/ui/app.py:43 #: lib/gnomecatalog/ui/dialogs.py:144 lib/gnomecatalog/ui/app.py:46 #: lib/gnomecatalog/ui/dialogs.py:157 ../share/glade/gnomecatalog.glade.h:1 msgid "Categories" msgstr "Kategorie" #: ../share/glade/gnomecatalog.glade.h:3 msgid "Disk" msgstr "Dysk" #: ../share/glade/gnomecatalog.glade.h:4 msgid "New Catalog" msgstr "Nowy katalog" #: ../share/glade/gnomecatalog.glade.h:5 ../share/glade/gnomecatalog.glade.h:6 msgid "Rename" msgstr "Zmień nazwę" #: ../share/glade/gnomecatalog.glade.h:6 msgid "_Add" msgstr "_Dodaj" #: ../share/glade/gnomecatalog.glade.h:7 msgid "_Edit" msgstr "_Modyfikuj" #: ../share/glade/gnomecatalog.glade.h:8 ../share/glade/gnomecatalog.glade.h:9 msgid "_File" msgstr "_Plik" #: ../share/glade/gnomecatalog.glade.h:9 #: ../share/glade/gnomecatalog.glade.h:10 msgid "_Help" msgstr "_Pomoc" #: ../share/glade/gnomecatalog.glade.h:10 #: ../share/glade/gnomecatalog.glade.h:12 msgid "_Properties" msgstr "_Właściwości" #: ../share/glade/gnomecatalog.glade.h:11 #: ../share/glade/gnomecatalog.glade.h:13 msgid "_View" msgstr "_Widok" #: lib/gnomecatalog/ui/dialogs.py:13 lib/gnomecatalog/ui/dialogs.py:355 #: lib/gnomecatalog/ui/dialogs.py:386 lib/gnomecatalog/ui/dialogs.py:396 msgid "Open database" msgstr "Otwórz bazę" #: lib/gnomecatalog/ui/dialogs.py:22 lib/gnomecatalog/ui/dialogs.py:52 #: lib/gnomecatalog/ui/dialogs.py:84 lib/gnomecatalog/ui/dialogs.py:370 #: lib/gnomecatalog/ui/dialogs.py:407 lib/gnomecatalog/ui/dialogs.py:417 msgid "Gnome Catalog Files" msgstr "Pliki Gnome Catalog" #: lib/gnomecatalog/ui/dialogs.py:27 lib/gnomecatalog/ui/dialogs.py:57 #: lib/gnomecatalog/ui/dialogs.py:89 lib/gnomecatalog/ui/dialogs.py:375 #: lib/gnomecatalog/ui/dialogs.py:412 lib/gnomecatalog/ui/dialogs.py:376 #: lib/gnomecatalog/ui/dialogs.py:422 msgid "All files" msgstr "Wszystkie pliki" #: lib/gnomecatalog/ui/dialogs.py:43 msgid "New database" msgstr "Nowa baza" #: lib/gnomecatalog/ui/dialogs.py:75 msgid "Save as" msgstr "Zapisz jako" #: lib/gnomecatalog/ui/dialogs.py:92 msgid "Don't save thumbnails." msgstr "Nie zapisuj miniaturek" #: lib/gnomecatalog/ui/dialogs.py:209 lib/gnomecatalog/ui/dialogs.py:223 msgid "New category" msgstr "Nowa kategoria" #: lib/gnomecatalog/ui/treeviews.py:15 msgid "Disks" msgstr "Dyski" #: lib/gnomecatalog/ui/treeviews.py:133 lib/gnomecatalog/ui/treeviews.py:136 #: lib/gnomecatalog/ui/treeviews.py:139 msgid "Files" msgstr "Pliki" #: lib/gnomecatalog/ui/treeviews.py:145 lib/gnomecatalog/data.py:120 #: lib/gnomecatalog/ui/dialogs.py:133 lib/gnomecatalog/ui/treeviews.py:148 #: lib/gnomecatalog/ui/treeviews.py:151 msgid "Size" msgstr "Rozmiar" #: lib/gnomecatalog/ui/treeviews.py:150 lib/gnomecatalog/ui/treeviews.py:153 #: lib/gnomecatalog/ui/treeviews.py:156 msgid "Rating" msgstr "Ocena" #: lib/gnomecatalog/data.py:92 lib/gnomecatalog/data.py:102 #: lib/gnomecatalog/data.py:97 lib/gnomecatalog/data.py:59 #: lib/gnomecatalog/data.py:105 msgid "files" msgstr "plików" #: lib/gnomecatalog/data.py:97 lib/gnomecatalog/data.py:110 #: lib/gnomecatalog/data.py:105 lib/gnomecatalog/data.py:113 msgid "Searching..." msgstr "Wyszukiwanie..." #: lib/gnomecatalog/data.py:119 lib/gnomecatalog/ui/dialogs.py:132 msgid "Type" msgstr "Typ" #: lib/gnomecatalog/data.py:132 lib/gnomecatalog/data.py:150 #: lib/gnomecatalog/data.py:145 lib/gnomecatalog/data.py:153 msgid "No name" msgstr "Brak nazwy" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Movies" msgstr "Filmy" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Audio" msgstr "Dźwięk" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Pictures" msgstr "Obrazy" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Documents" msgstr "Dokumenty" #: ../share/glade/gnomecatalog.glade.h:4 msgid "New _Catalog" msgstr "" #: ../share/glade/gnomecatalog.glade.h:5 msgid "New _Disk" msgstr "" #: ../share/glade/gnomecatalog.glade.h:8 msgid "_Export" msgstr "" #: ../share/glade/gnomecatalog.glade.h:11 msgid "_Import" msgstr "" #: lib/gnomecatalog/ui/app.py:46 msgid "File types" msgstr "" #: lib/gnomecatalog/ui/app.py:55 msgid "Audio files" msgstr "" #: lib/gnomecatalog/ui/app.py:55 msgid "Image files" msgstr "" #: lib/gnomecatalog/ui/app.py:55 msgid "Text files" msgstr "" #: lib/gnomecatalog/reader.py:59 lib/gnomecatalog/reader.py:73 #: lib/gnomecatalog/reader.py:88 msgid "Importando " msgstr "" #: lib/gnomecatalog/ui/app.py:55 msgid "Video files" msgstr "" #: lib/gnomecatalog/ui/dialogs.py:398 lib/gnomecatalog/ui/dialogs.py:408 msgid "Select file type" msgstr "" #: gnomecatalog.py:35 msgid "Translators credits" msgstr "Michael Kastelik " #: ../share/glade/gnomecatalog.glade.h:2 msgid "Export" msgstr "" #: ../share/glade/gnomecatalog.glade.h:3 lib/gnomecatalog/ui/dialogs.py:355 msgid "Export database" msgstr "" gnomecatalog_0.3.4.2/po/en.po0000644000175000017500000001575310743372431014461 0ustar josejose# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2008-01-07 23:58+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../share/glade/dialogs.glade.h:1 msgid "Categories" msgstr "" #: ../share/glade/dialogs.glade.h:2 msgid "Comment" msgstr "" #: ../share/glade/dialogs.glade.h:3 msgid "Rating" msgstr "" #: ../share/glade/dialogs.glade.h:4 msgid "¿Save the changes?" msgstr "" #: ../share/glade/dialogs.glade.h:5 msgid "Add new disk" msgstr "" #: ../share/glade/dialogs.glade.h:6 msgid "Categories, Comments" msgstr "" #: ../share/glade/dialogs.glade.h:7 ../share/glade/dialogs.glade.h:5 msgid "Category" msgstr "" #: ../share/glade/dialogs.glade.h:8 ../share/glade/dialogs.glade.h:6 msgid "Close _without save" msgstr "" #: ../share/glade/dialogs.glade.h:9 ../share/glade/dialogs.glade.h:7 msgid "Eject disk after disk read" msgstr "" #: ../share/glade/dialogs.glade.h:10 msgid "File information" msgstr "" #: ../share/glade/dialogs.glade.h:11 ../share/glade/dialogs.glade.h:8 msgid "If don't save the changes will be lost." msgstr "" #: ../share/glade/dialogs.glade.h:12 ../share/glade/dialogs.glade.h:9 msgid "Importing data from disk. Please wait a moment........." msgstr "" #: ../share/glade/dialogs.glade.h:13 msgid "Importing disk" msgstr "" #: ../share/glade/dialogs.glade.h:14 ../share/glade/dialogs.glade.h:10 msgid "Nombre del archivo.avi" msgstr "" #: ../share/glade/dialogs.glade.h:15 msgid "Preferences" msgstr "" #: ../share/glade/dialogs.glade.h:16 msgid "Save dialog" msgstr "" #: ../share/glade/dialogs.glade.h:17 ../share/glade/dialogs.glade.h:11 msgid "Save thumbnails in the database" msgstr "" #: ../share/glade/dialogs.glade.h:18 msgid "Seleccione un directorio" msgstr "" #: ../share/glade/dialogs.glade.h:19 ../share/glade/dialogs.glade.h:12 msgid "Select path to read" msgstr "" #: ../share/glade/dialogs.glade.h:20 msgid "gnome Catalog" msgstr "" #: ../share/glade/gnomecatalog.glade.h:1 msgid "Catalog" msgstr "" #: ../share/glade/gnomecatalog.glade.h:2 lib/gnomecatalog/ui/app.py:43 #: lib/gnomecatalog/ui/dialogs.py:145 lib/gnomecatalog/ui/app.py:46 #: lib/gnomecatalog/ui/dialogs.py:157 ../share/glade/gnomecatalog.glade.h:1 msgid "Categories" msgstr "" #: ../share/glade/gnomecatalog.glade.h:3 msgid "Disk" msgstr "" #: ../share/glade/gnomecatalog.glade.h:4 msgid "New _Catalog" msgstr "" #: ../share/glade/gnomecatalog.glade.h:5 msgid "New _Disk" msgstr "" #: ../share/glade/gnomecatalog.glade.h:6 msgid "Rename" msgstr "" #: ../share/glade/gnomecatalog.glade.h:7 msgid "_Edit" msgstr "" #: ../share/glade/gnomecatalog.glade.h:8 ../share/glade/gnomecatalog.glade.h:9 msgid "_File" msgstr "" #: ../share/glade/gnomecatalog.glade.h:9 #: ../share/glade/gnomecatalog.glade.h:10 msgid "_Help" msgstr "" #: ../share/glade/gnomecatalog.glade.h:10 #: ../share/glade/gnomecatalog.glade.h:12 msgid "_Properties" msgstr "" #: ../share/glade/gnomecatalog.glade.h:11 #: ../share/glade/gnomecatalog.glade.h:13 msgid "_View" msgstr "" #: lib/gnomecatalog/ui/dialogs.py:13 lib/gnomecatalog/ui/dialogs.py:355 #: lib/gnomecatalog/ui/dialogs.py:386 lib/gnomecatalog/ui/dialogs.py:396 msgid "Open database" msgstr "" #: lib/gnomecatalog/ui/dialogs.py:22 lib/gnomecatalog/ui/dialogs.py:52 #: lib/gnomecatalog/ui/dialogs.py:84 lib/gnomecatalog/ui/dialogs.py:370 #: lib/gnomecatalog/ui/dialogs.py:407 lib/gnomecatalog/ui/dialogs.py:417 msgid "Gnome Catalog Files" msgstr "" #: lib/gnomecatalog/ui/dialogs.py:27 lib/gnomecatalog/ui/dialogs.py:57 #: lib/gnomecatalog/ui/dialogs.py:89 lib/gnomecatalog/ui/dialogs.py:375 #: lib/gnomecatalog/ui/dialogs.py:412 lib/gnomecatalog/ui/dialogs.py:376 #: lib/gnomecatalog/ui/dialogs.py:422 msgid "All files" msgstr "" #: lib/gnomecatalog/ui/dialogs.py:43 msgid "New database" msgstr "" #: lib/gnomecatalog/ui/dialogs.py:75 msgid "Save as" msgstr "" #: lib/gnomecatalog/ui/dialogs.py:92 msgid "Don't save thumbnails." msgstr "" #: lib/gnomecatalog/ui/dialogs.py:210 lib/gnomecatalog/ui/dialogs.py:223 msgid "New category" msgstr "" #: lib/gnomecatalog/ui/treeviews.py:15 msgid "Disks" msgstr "" #: lib/gnomecatalog/ui/treeviews.py:133 lib/gnomecatalog/ui/treeviews.py:136 #: lib/gnomecatalog/ui/treeviews.py:139 msgid "Files" msgstr "" #: lib/gnomecatalog/ui/treeviews.py:145 lib/gnomecatalog/data.py:120 #: lib/gnomecatalog/ui/dialogs.py:133 lib/gnomecatalog/ui/treeviews.py:148 #: lib/gnomecatalog/ui/treeviews.py:151 msgid "Size" msgstr "" #: lib/gnomecatalog/ui/treeviews.py:150 lib/gnomecatalog/ui/treeviews.py:153 #: lib/gnomecatalog/ui/treeviews.py:156 msgid "Rating" msgstr "" #: lib/gnomecatalog/data.py:92 lib/gnomecatalog/data.py:102 #: lib/gnomecatalog/data.py:97 lib/gnomecatalog/data.py:59 #: lib/gnomecatalog/data.py:105 msgid "files" msgstr "" #: lib/gnomecatalog/data.py:97 lib/gnomecatalog/data.py:110 #: lib/gnomecatalog/data.py:105 lib/gnomecatalog/data.py:113 msgid "Searching..." msgstr "" #: lib/gnomecatalog/data.py:119 lib/gnomecatalog/ui/dialogs.py:132 msgid "Type" msgstr "" #: lib/gnomecatalog/data.py:132 lib/gnomecatalog/data.py:150 #: lib/gnomecatalog/data.py:145 lib/gnomecatalog/data.py:153 msgid "No name" msgstr "" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Movies" msgstr "" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Audio" msgstr "" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Pictures" msgstr "" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Documents" msgstr "" #: ../share/glade/dialogs.glade.h:4 msgid "Save the changes?" msgstr "" #: ../share/glade/gnomecatalog.glade.h:8 msgid "_Export" msgstr "" #: ../share/glade/gnomecatalog.glade.h:11 msgid "_Import" msgstr "" #: lib/gnomecatalog/ui/app.py:46 msgid "File types" msgstr "" #: lib/gnomecatalog/ui/app.py:55 msgid "Audio files" msgstr "" #: lib/gnomecatalog/ui/app.py:55 msgid "Image files" msgstr "" #: lib/gnomecatalog/ui/app.py:55 msgid "Text files" msgstr "" #: lib/gnomecatalog/reader.py:59 lib/gnomecatalog/reader.py:73 #: lib/gnomecatalog/reader.py:88 msgid "Importando " msgstr "" #: lib/gnomecatalog/ui/app.py:55 msgid "Video files" msgstr "" #: lib/gnomecatalog/ui/dialogs.py:398 lib/gnomecatalog/ui/dialogs.py:408 msgid "Select file type" msgstr "" #: gnomecatalog.py:35 msgid "Translators credits" msgstr "" #: ../share/glade/gnomecatalog.glade.h:2 msgid "Export" msgstr "" #: ../share/glade/gnomecatalog.glade.h:3 lib/gnomecatalog/ui/dialogs.py:355 msgid "Export database" msgstr "" gnomecatalog_0.3.4.2/po/de.po0000644000175000017500000001776011147767761014464 0ustar josejose# German translation for GnomeCatalog. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2008-01-07 23:58+0100\n" "PO-Revision-Date: 2008-05-02 19:18+0200\n" "Last-Translator: Mario Blättermann \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../share/glade/dialogs.glade.h:1 msgid "Categories" msgstr "Kategorien" #: ../share/glade/dialogs.glade.h:2 msgid "Comment" msgstr "Kommentar" #: ../share/glade/dialogs.glade.h:3 msgid "Rating" msgstr "" #: ../share/glade/dialogs.glade.h:4 msgid "¿Save the changes?" msgstr "Änderungen speichern?" #: ../share/glade/dialogs.glade.h:5 msgid "Add new disk" msgstr "Neue Disk hinzufügen" #: ../share/glade/dialogs.glade.h:6 msgid "Categories, Comments" msgstr "Kategorien, Kommentare" #: ../share/glade/dialogs.glade.h:7 ../share/glade/dialogs.glade.h:5 msgid "Category" msgstr "Kategorie" #: ../share/glade/dialogs.glade.h:8 ../share/glade/dialogs.glade.h:6 msgid "Close _without save" msgstr "Schließen, _ohne zu speichern" #: ../share/glade/dialogs.glade.h:9 ../share/glade/dialogs.glade.h:7 msgid "Eject disk after disk read" msgstr "Disk nach dem Lesen auswerfen" #: ../share/glade/dialogs.glade.h:10 msgid "File information" msgstr "Dateieigenschaften" #: ../share/glade/dialogs.glade.h:11 ../share/glade/dialogs.glade.h:8 msgid "If don't save the changes will be lost." msgstr "Ohne zu speichern werden alle Änderungen verworfen" #: ../share/glade/dialogs.glade.h:12 ../share/glade/dialogs.glade.h:9 msgid "Importing data from disk. Please wait a moment........." msgstr "Daten werden von der Disk importiert. Bitte einen Moment warten.......... " #: ../share/glade/dialogs.glade.h:13 msgid "Importing disk" msgstr "Disk wird importiert" #: ../share/glade/dialogs.glade.h:14 ../share/glade/dialogs.glade.h:10 msgid "Nombre del archivo.avi" msgstr "Nummer des Archivs.avi" #: ../share/glade/dialogs.glade.h:15 msgid "Preferences" msgstr "Einstellungen" #: ../share/glade/dialogs.glade.h:16 msgid "Save dialog" msgstr "Speichern-Dialog" #: ../share/glade/dialogs.glade.h:17 ../share/glade/dialogs.glade.h:11 msgid "Save thumbnails in the database" msgstr "Thumbnails in Datenbank speichern" #: ../share/glade/dialogs.glade.h:18 msgid "Seleccione un directorio" msgstr "Verzeichnis auswählen" #: ../share/glade/dialogs.glade.h:19 ../share/glade/dialogs.glade.h:12 msgid "Select path to read" msgstr "Pfad auswählen" #: ../share/glade/dialogs.glade.h:20 msgid "gnome Catalog" msgstr "Gnome Catalog" #: ../share/glade/gnomecatalog.glade.h:1 msgid "Catalog" msgstr "Katalog" #: ../share/glade/gnomecatalog.glade.h:2 lib/gnomecatalog/ui/app.py:43 #: lib/gnomecatalog/ui/dialogs.py:145 lib/gnomecatalog/ui/app.py:46 #: lib/gnomecatalog/ui/dialogs.py:157 ../share/glade/gnomecatalog.glade.h:1 msgid "Categories" msgstr "Kategorien" #: ../share/glade/gnomecatalog.glade.h:3 msgid "Disk" msgstr "Disk" #: ../share/glade/gnomecatalog.glade.h:4 msgid "New _Catalog" msgstr "Neuer _Katalog" #: ../share/glade/gnomecatalog.glade.h:5 msgid "New _Disk" msgstr "Neue _Disk" #: ../share/glade/gnomecatalog.glade.h:6 msgid "Rename" msgstr "Umbenennen" #: ../share/glade/gnomecatalog.glade.h:7 msgid "_Edit" msgstr "B_earbeiten" #: ../share/glade/gnomecatalog.glade.h:8 ../share/glade/gnomecatalog.glade.h:9 msgid "_File" msgstr "_Datei" #: ../share/glade/gnomecatalog.glade.h:9 #: ../share/glade/gnomecatalog.glade.h:10 msgid "_Help" msgstr "_Hilfe" #: ../share/glade/gnomecatalog.glade.h:10 #: ../share/glade/gnomecatalog.glade.h:12 msgid "_Properties" msgstr "_Einstellungen" #: ../share/glade/gnomecatalog.glade.h:11 #: ../share/glade/gnomecatalog.glade.h:13 msgid "_View" msgstr "_Ansicht" #: lib/gnomecatalog/ui/dialogs.py:13 lib/gnomecatalog/ui/dialogs.py:355 #: lib/gnomecatalog/ui/dialogs.py:386 lib/gnomecatalog/ui/dialogs.py:396 msgid "Open database" msgstr "Datenbank öffnen" #: lib/gnomecatalog/ui/dialogs.py:22 lib/gnomecatalog/ui/dialogs.py:52 #: lib/gnomecatalog/ui/dialogs.py:84 lib/gnomecatalog/ui/dialogs.py:370 #: lib/gnomecatalog/ui/dialogs.py:407 lib/gnomecatalog/ui/dialogs.py:417 msgid "Gnome Catalog Files" msgstr "GnomeCatalog-Dateien" #: lib/gnomecatalog/ui/dialogs.py:27 lib/gnomecatalog/ui/dialogs.py:57 #: lib/gnomecatalog/ui/dialogs.py:89 lib/gnomecatalog/ui/dialogs.py:375 #: lib/gnomecatalog/ui/dialogs.py:412 lib/gnomecatalog/ui/dialogs.py:376 #: lib/gnomecatalog/ui/dialogs.py:422 msgid "All files" msgstr "Alle Dateien " #: lib/gnomecatalog/ui/dialogs.py:43 msgid "New database" msgstr "Neue Datenbank" #: lib/gnomecatalog/ui/dialogs.py:75 msgid "Save as" msgstr "Speichern unter" #: lib/gnomecatalog/ui/dialogs.py:92 msgid "Don't save thumbnails." msgstr "Keine Thumbnails speichern" #: lib/gnomecatalog/ui/dialogs.py:210 lib/gnomecatalog/ui/dialogs.py:223 msgid "New category" msgstr "Neue Kategorie" #: lib/gnomecatalog/ui/treeviews.py:15 msgid "Disks" msgstr "Disks" #: lib/gnomecatalog/ui/treeviews.py:133 lib/gnomecatalog/ui/treeviews.py:136 #: lib/gnomecatalog/ui/treeviews.py:139 msgid "Files" msgstr "Dateien" #: lib/gnomecatalog/ui/treeviews.py:145 lib/gnomecatalog/data.py:120 #: lib/gnomecatalog/ui/dialogs.py:133 lib/gnomecatalog/ui/treeviews.py:148 #: lib/gnomecatalog/ui/treeviews.py:151 msgid "Size" msgstr "Größe" #: lib/gnomecatalog/ui/treeviews.py:150 lib/gnomecatalog/ui/treeviews.py:153 #: lib/gnomecatalog/ui/treeviews.py:156 msgid "Rating" msgstr "Bewertung" #: lib/gnomecatalog/data.py:92 lib/gnomecatalog/data.py:102 #: lib/gnomecatalog/data.py:97 lib/gnomecatalog/data.py:59 #: lib/gnomecatalog/data.py:105 msgid "files" msgstr "Dateien" #: lib/gnomecatalog/data.py:97 lib/gnomecatalog/data.py:110 #: lib/gnomecatalog/data.py:105 lib/gnomecatalog/data.py:113 msgid "Searching..." msgstr "Suche..." #: lib/gnomecatalog/data.py:119 lib/gnomecatalog/ui/dialogs.py:132 msgid "Type" msgstr "Typ" #: lib/gnomecatalog/data.py:132 lib/gnomecatalog/data.py:150 #: lib/gnomecatalog/data.py:145 lib/gnomecatalog/data.py:153 msgid "No name" msgstr "Kein Name" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Movies" msgstr "Filme" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Audio" msgstr "Audio" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Pictures" msgstr "Bilder" #: lib/gnomecatalog/storage.py:69 lib/gnomecatalog/storage.py:73 #: lib/gnomecatalog/storage.py:144 msgid "Documents" msgstr "Dokumente" #: ../share/glade/dialogs.glade.h:4 msgid "Save the changes?" msgstr "Änderungen speichern?" #: ../share/glade/gnomecatalog.glade.h:8 msgid "_Export" msgstr "_Exportieren" #: ../share/glade/gnomecatalog.glade.h:11 msgid "_Import" msgstr "_Importieren" #: lib/gnomecatalog/ui/app.py:46 msgid "File types" msgstr "Dateitypen" #: lib/gnomecatalog/ui/app.py:55 msgid "Audio files" msgstr "Audiodateien" #: lib/gnomecatalog/ui/app.py:55 msgid "Image files" msgstr "Bilddateien" #: lib/gnomecatalog/ui/app.py:55 msgid "Text files" msgstr "Textdateien" #: lib/gnomecatalog/reader.py:59 lib/gnomecatalog/reader.py:73 #: lib/gnomecatalog/reader.py:88 msgid "Importando " msgstr "Wichtig" #: lib/gnomecatalog/ui/app.py:55 msgid "Video files" msgstr "Videodateien" #: lib/gnomecatalog/ui/dialogs.py:398 lib/gnomecatalog/ui/dialogs.py:408 msgid "Select file type" msgstr "Wähle Dateityp" #: gnomecatalog.py:35 msgid "Translators credits" msgstr "Deutsch: Mario Blättermann self.count_files: self.position = self.count_files if self.path: self.progress_bar.set_text(" " + _("Importing ") + self.path + " (" + str(self.position) + "/" + str(self.count_files) + ") ") self.progress_bar.set_fraction(float(self.position) / float(self.count_files)) return True def clear_progress_bar(self): if self.progress_bar: self.progress_bar.set_text(_('Importing files ...')) self.progress_bar.set_fraction(0) def cancel_import_disk(self): self.progress_bar = None self._cancel_import_disk = True if __name__ == "__main__": reader = Reader() # pprint.pprint(reader.read("/home/jose/Desktop")) pprint.pprint(reader.read("/home/jose/Desktop/Peliculas")) # print reader.read("/home/jose") gnomecatalog_0.3.4.2/gnomecatalog/storage.py0000644000175000017500000004100711147766262017556 0ustar josejose# -*- coding: UTF-8 -*- from pysqlite2 import dbapi2 as sqlite #import sqlite import string, os, pprint, tempfile, shutil import utils, fstypes, thumbnails, config config = config.Config() thumbnails = thumbnails.Thumb(config.get('database')) def dict_factory( cursor, row ): d = {} for idx, col in enumerate( cursor.description ): d[col[0]] = row[idx] return d class DictCursor( sqlite.Cursor ): def __init__( self, *args, **kwargs ): sqlite.Cursor.__init__( self, *args, **kwargs ) self.row_factory = dict_factory class Sqlite: database = "gnomeCatalog.gcatalog" version = '3.2' def __init__( self, dbfile = None, app = None, temp = False ): self.database = dbfile self.app = app self.__deleted_data = False self.thumbnails_from_deleted_files = [] self.thumbnails_from_new_files = [] self.is_temporal = temp if( self.database ): if temp: self.open_db_temp(dbfile) else: self.open( self.database) def get_version(self): rs = self.sql("select value from config where key='version'") if len(rs) == 0: return '3.0' else: return rs[0]['value'] def open_db_temp(self, tmpfile): self.database = tmpfile self.db = sqlite.connect(self.database) #, isolation_level=None ) self.db.text_factory = lambda x: unicode(x, "utf-8", "ignore") self.cursor = self.db.cursor( factory=DictCursor ) if not os.path.exists(thumbnails.get_dir()): os.mkdir(thumbnails.get_dir()) def open( self, database): self.database = database self.database_tempfile = tempfile.mktemp() if(os.path.isfile(self.database)): shutil.copyfile(self.database, self.database_tempfile) print "Creado :",self.database_tempfile self.created = os.path.exists( self.database ) #self.db = sqlite.connect(database, encoding=('utf-8', 'ignore')) self.db = sqlite.connect(self.database_tempfile, isolation_level=None ) self.db.text_factory = lambda x: unicode(x, "utf-8", "ignore") self.cursor = self.db.cursor( factory=DictCursor ) if not self.created: self.__createDB() else: """ Comprobamos las versiones """ version = self.get_version() """ Actualizamos a la versión actual """ if version != self.version: self.__update_database(version) self.save() def save(self): self.commit() self.compress() print "Copiando ",self.database_tempfile, " a ", self.database shutil.copyfile(self.database_tempfile, self.database) """ Ahora tenemos que borrar todos los que tenemos apuntados para borrar """ self.__delete_thumbnails_from_deleted_files() self.thumbnails_from_deleted_files = [] self.thumbnails_from_new_files = [] def close(self): if self.is_temporal: self.commit() self.cursor.close() else: # print "borrando ",self.database_tempfile os.remove(self.database_tempfile) self.__delete_thumbnails_from_new_files() self.thumbnails_from_deleted_files = [] self.thumbnails_from_new_files = [] def sql( self, sql ): return self.fetchall( self.__sql( sql ) ); def fetchall( self, result ): return self.cursor.fetchall(); def __sql( self, sql ): # print "SQL: ",sql command = sql.split( " " )[0].lower() if command != "select": if command == "delete": self.__deleted_data = True self.app.set_guardar_state( True ) try: return self.cursor.execute( sql ) except sqlite.Error, e: print "SQL error occurred:", e.args[0], sql def commit( self ): self.db.commit() #self.__sql("COMMIT") def __update_database( self, version ): print 'Updating to version ', self.version if version == '3.0': self.__create_config(self.version) self.__sql("ALTER TABLE DISKS ADD COLUMN icon BLOB") self.__sql("ALTER TABLE DISKS ADD COLUMN comment VARCHAR") self.__sql("ALTER TABLE DISKS ADD COLUMN borrow VARCHAR") self.__sql("ALTER TABLE catalogs ADD COLUMN comment VARCHAR") self.__sql("ALTER TABLE catalogs ADD COLUMN borrow VARCHAR") self.__create_index() self.__check_db_integrity() self.__extract_thumbnails_from_db() self.__sql("DROP TABLE thumbnails") # self.__create_trigers() if version == '3.1': self.__sql("ALTER TABLE DISKS ADD COLUMN borrow VARCHAR") self.__sql("ALTER TABLE catalogs ADD COLUMN comment VARCHAR") self.__sql("ALTER TABLE catalogs ADD COLUMN borrow VARCHAR") self.cursor.execute( "DELETE INDEX metadata_index" ) self.cursor.execute( "CREATE INDEX IF NOT EXISTS metadata_index ON metadata (id asc, key asc);" ) self.__sql("update config set value='" + self.version + "' where key='version'") def __extract_thumbnails_from_db(self): print "Extracting thumbnails from database" rows = self.sql("select id, img from thumbnails") if not os.path.exists(thumbnails.get_dir()): os.mkdir(thumbnails.get_dir()) for row in rows: open('/tmp/gnomecatalog_icon.png', 'wb').write(row['img']) thumbnails.save_from_file(row['id'], '/tmp/gnomecatalog_icon.png') def __createDB( self ): self.__sql( "create table catalogs (id integer PRIMARY KEY, name varchar, idcatalog integer, comment varchar, borrow varchar)" ); self.__sql( "create table disks (id integer PRIMARY KEY, name varchar, volname varchar, root varchar, idcatalog integer, rating integer, icon BLOB, comment varchar, borrow varchar)" ); self.__sql( "create table files (id integer PRIMARY KEY, iddisk integer, idparent integer, name varchar, size integer, date timestamp, path varchar, mime varchar, type varchar, comment varchar, rating integer)" ); self.__sql( "create table metadata (id integer, key varchar, value varchar)" ); # self.__sql( "create table thumbnails (id integer , img blob);" ); self.__sql( "create table categories (id integer PRIMARY KEY, name varchar);" ); self.__sql( "create table rcategoriesfiles (idfile integer, idcategorie integer);" ); self.__create_config(self.version) # self.__create_trigers() self.__create_index() for c in [_("Movies"), _("Audio"), _("Pictures"), _("Documents")]: self.insert_category(c) self.created = True def __create_index( self ): self.cursor.execute( "CREATE INDEX IF NOT EXISTS idcatalog_index ON disks (idcatalog asc);" ) self.cursor.execute( "CREATE INDEX IF NOT EXISTS iddisk_index ON files (iddisk asc);" ) self.cursor.execute( "CREATE INDEX IF NOT EXISTS idparent_index ON files (idparent asc);" ) self.cursor.execute( "CREATE INDEX IF NOT EXISTS metadata_index ON metadata (id asc, key asc);" ) self.cursor.execute( "CREATE INDEX IF NOT EXISTS rcategories_index ON rcategoriesfiles (idfile asc);" ) # self.cursor.execute( "CREATE INDEX IF NOT EXISTS thumbnails_index ON thumbnails (id asc);" ) def __create_config(self, value): self.__sql( "create table config (key varchar, value varchar);" ) self.__sql( "insert into config values ('version', '" + value + "');" ) """ sqlite3 no soporta triggers recursivos, de momento no son útiles """ def __create_trigers(self): self.cursor.execute( "CREATE TRIGGER trigger_delete_catalog DELETE ON catalogs " + "BEGIN" + " DELETE FROM catalogs where idcatalog=old.id;" + " DELETE FROM disks where idcatalog=old.id;" + "END;") self.cursor.execute( "CREATE TRIGGER trigger_delete_disks DELETE ON disks " + "BEGIN" + " DELETE FROM files where iddisk=old.id;" + "END;") self.cursor.execute( "CREATE TRIGGER trigger_delete_files DELETE ON files " + "BEGIN" + " DELETE FROM metadata where id=old.id;" + " DELETE FROM rcategoriesfiles where idfile=old.id;" + " DELETE FROM files where idparent=old.id;" + "END;") self.cursor.execute( "CREATE TRIGGER trigger_delete_categorie DELETE ON categories " + "BEGIN" + " DELETE FROM rcategoriesfiles where idcategorie=old.id;" + "END;") def _check( self, data ): txt = str(data) try: txt = txt.encode("utf-8", "replace") except: txt = unicode(txt, 'iso-8859-15').encode('utf-8') data = string.replace( txt, "'", "") return data def getFile( self, idfile ): metadata = self.sql( "select key, value from metadata where id=" + str( idfile ) ) # file = self.sql( "select files.*, thumbnails.img as img FROM files left outer join thumbnails on thumbnails.id=files.id where files.id=" + str( idfile ) ) file = self.sql( "select files.* FROM files where files.id=" + str( idfile ) ) return [file, metadata] def set_categories_to_files(self, ids, categories): idstr = ", ".join( [str( i ) for i in ids] ) self.sql( "DELETE from rcategoriesfiles where idfile in (" + idstr + ")" ); for idfile in ids: for cat in categories: self.sql( "insert into rcategoriesfiles (idfile, idcategorie) values (" + str( idfile ) + ", " + str( cat ) + ")" ) self.commit() def get_categories( self ): result = self.sql( "select id, name from categories order by name" ) res = [] for col in result: res.append( [col["id"], col["name"]] ) return res def get_categories_from_file(self, id ): result = self.sql( "select categories.*, rcategoriesfiles.idfile from categories left outer join rcategoriesfiles on categories.id=rcategoriesfiles.idcategorie and rcategoriesfiles.idfile=" + str( id ) ); cats = [] for col in result: try: if col["idfile"] != None: cats.append(col["id"]) except: pass return cats def get_metadata_from_file(self, id): meta = {} result = self.sql( "select key, value from metadata where id=" + str( id ) ); for item in result: meta[item["key"]] = item["value"] return meta def compress( self ): self.cursor.execute( "VACUUM" ); # def clear_thumbnails(self): # self.__sql("DELETE FROM thumbnails") # self.commit() def insert_category( self, cat ): self.__sql( "insert into categories values (Null, '" + cat + "')" ) return self.cursor.lastrowid; """ inserta un disco en la bd """ def __insert_disk(self, disk): # icon = disk.get_icon().get_pixels() disk.get_icon().save('/tmp/gnomecatalog_icon_disk.png', 'png') data = open('/tmp/gnomecatalog_icon_disk.png', 'rb').read() self.cursor.execute( "INSERT into disks (id, name, volname, root, icon, comment, borrow) values (NULL, ?, ?, ?, ?, ?, ?)", ( disk.name , disk.name, disk.path, buffer(data), disk.comment, disk.borrow)); return self.cursor.lastrowid; """ Inserta los ficheros recursivamente """ def __insert_files(self, iddisk, idparent, file): idparent = self.__insert_file(iddisk, idparent, file) if file.is_dir(): for f in file: idfile = self.__insert_files(iddisk, idparent, f) def __insert_file(self, iddisk, idparent, file): self.__sql( "INSERT into files (id, iddisk, idparent, name, size, path, mime, type) values (NULL, " + str( iddisk ) +", " + str( idparent ) + " ,'" + self._check(file.name) + "', " + str( file.size ) + ", '" + self._check(file.path) + "', '" + file.mime + "', '" + str( file.type ) + "')" ) idfile = self.cursor.lastrowid; """ Insetamos los metadatos del fichero """ if file.meta: for key, val in file.meta.items(): to_insert = () self.cursor.execute( "INSERT into metadata (id, key, value) values (?, ?, ?)", (str( idfile ), key , val )); if config.get("thumbnails") == "True": thumbnails.save(idfile, file) self.thumbnails_from_new_files.append(idfile) # thumb = file.get_thumbnail() # if thumb: # self.cursor.execute("INSERT INTO thumbnails VALUES(?, ?);",(idfile, buffer(thumb))) return idfile def insert_disk(self, disk): iddisk = self.__insert_disk(disk) for file in disk: self.__insert_files(iddisk, 0, file) self.db.commit() return fstypes.Disk(disk.name, disk.path, iddisk, self) def insert_catalog(self, catalog): self.cursor.execute( "INSERT into catalogs (id, name, comment, borrow) values (NULL, ?, ?, ?)", (catalog.name, catalog.comment, catalog.borrow)); catalog.id = self.cursor.lastrowid; return catalog.id """ Funciones usadas en la importacion """ def add_catalog(self, name): self.__sql("INSERT INTO catalogs (id, name) values (NULL, '" + name + "')") id = self.cursor.lastrowid; return id def add_disk(self, name, idcatalog = '', volname = '', path = ''): self.cursor.execute( "INSERT into disks (id, idcatalog, name, volname, root) values (NULL, ?, ?, ?, ?)", (idcatalog, name, self._check(volname), self._check(path))); id = self.cursor.lastrowid; return id def add_file(self, iddisk, idparent, name, size = '', path = '', mime = '', mimetype = ''): self.cursor.execute( "INSERT into files (id, iddisk, idparent, name, size, path, mime, type) values (NULL, ?, ?, ?, ?, ?, ?, ?)", (iddisk, idparent, name, size, path, mime, mimetype) ); id = self.cursor.lastrowid; return id def read_data(self, idparent = None): data = [] if idparent: c_condition = " idcatalog = " + str(idparent) else: c_condition = "idcatalog=0 or idcatalog is null" catalogs = self.sql("select * from catalogs where " + c_condition) for c in catalogs: data.append(fstypes.Catalog(c["name"], c["id"], self, c["idcatalog"], c['comment'], c['borrow'])) disks = self.sql("select * from disks where " + c_condition) for c in disks: data.append(fstypes.Disk(c["name"], c["root"], c["id"], self, c["idcatalog"], c["icon"], c['comment'], c['borrow'])) return data def read_files_from_disk(self, disk, idparent = None): data = [] if idparent: c_condition = " idparent = " + str(idparent) else: c_condition = "idparent=0 or idparent is null" files = self.sql("select * from files where iddisk=" + str(disk.id) + " and " + c_condition + " order by type, id") for file in files: data.append(fstypes.File(file, disk, self)) return data def search_files(self, search, categorie = None, mime_type = None): data = [] search_cond = "" if search: # search in metadata, comment and name search_cond = " and (files.name like '%" + search + "%' or files.comment like '%" + search + "%' or files.id in (select id from metadata where value like '%" + search + "%'))" if categorie: sql = "select files.* from files where files.id in (select idfile from rcategoriesfiles where idcategorie='" + str(categorie) + "') " + search_cond elif mime_type: sql = "select files.* from files where mime like '" + mime_type + "/%' " + search_cond else: sql = "select files.* from files where 1=1 " + search_cond files = self.sql(sql) for file in files: data.append(fstypes.File(file, None, self)) return data def update(self, type, id, name, value): self.__sql("update " + type +" set " + name + "='" + str( value ) + "' where id=" + str(id)) self.commit() def delete(self, type, id): self.__sql("delete from " + type + " where id=" + str(id)) if type == "categories": self.__sql("delete from rcategoriesfiles where idcategorie = " + str(id)) if type == "files": if config.get("thumbnails") == "True": self.thumbnails_from_deleted_files.append(id) self.__sql("delete from rcategoriesfiles where idfile = " + str(id)) self.__sql("delete from metadata where id = " + str(id)) # self.__sql("delete from thumbnails where id= " + str(id)) def remove_disk(self, id): """ Guardamos los thumbnails para luego borrarlos si se guardan los cambios """ if config.get("thumbnails") == "True": files = self.sql("select id from files where iddisk=" + str(id)) for file in files: self.thumbnails_from_deleted_files.append(file['id']) self.__sql("delete from disks where id=" + str(id)) self.__check_db_integrity() def __check_db_integrity(self): # self.__sql("delete from thumbnails where id in (select id from files where files.iddisk not in (select id from disks))") self.__sql("delete from rcategoriesfiles where idfile in (select id from files where files.iddisk not in (select id from disks))") self.__sql("delete from metadata where id in (select id from files where files.iddisk not in (select id from disks))") self.__sql("delete from files where files.iddisk not in (select id from disks)") self.commit() def get_duration(self, idfile): result = self.cursor.execute("select value from metadata where id='" + str(idfile) + "' and (key='length' or key='duration')").fetchone() if result: return round(float(result['value'])) def get_disk(self, id): return self.sql("select * from disks where id=" + str(id)) def get_catalog(self, id): return self.sql("select * from catalogs where id=" + str(id)) def has_deleted_data(self): return self.__deleted_data def get_categorie_id(self, name): result = self.sql("select id from categories where name ='" + name + "'") return result[0]["id"] def get_totals(self): return self.sql("select sum(size) as size, count(*) as count from files")[0] def __delete_thumbnails_from_new_files(self): for id in self.thumbnails_from_new_files: thumbnails.delete(id) def __delete_thumbnails_from_deleted_files(self): for id in self.thumbnails_from_deleted_files: thumbnails.delete(id) gnomecatalog_0.3.4.2/gnomecatalog/thumbnails.py0000644000175000017500000000566711147762740020271 0ustar josejose# -*- coding: UTF-8 -*- import gtk, gtk.glade, gconf, gnomevfs, os, string, commands, md5, sys, urllib, shutil class Thumb: size = 64 def __init__(self, database): self.conf_client = gconf.client_get_default() self.thumbnailers = {} self.database = database self.thumbnails_dir = database + "_thumbs" def get_pixbuf(self, idfile): if self.exists(idfile): return gtk.gdk.pixbuf_new_from_file_at_size(self.get_path(idfile), self.size, self.size) def save(self, idfile, file): try: type, subtype = string.split(file.mime, "/") except: return if type == "audio" or subtype == "ogg": return # Ya está creada if self.exists(idfile): return else: self.__generate(idfile, file) def get_dir(self): return self.thumbnails_dir def delete(self, idfile): try: os.unlink(self.get_path(idfile)) except: pass def exists(self, idfile): return os.path.exists(self.get_path(idfile)) def get_path(self, idfile): return os.path.join(self.thumbnails_dir, str(idfile) + '.png') def __md5(self, path): return os.path.join(self.thumbnails_dir, md5.new(str(path)).hexdigest() + ".png") def __md5gnome(self, path): return os.environ['HOME'] + "/.thumbnails/normal/" + md5.new(str(path)).hexdigest() + ".png" """ Genera un nuevo thumb para el fichero """ def __generate(self, idfile, file): type, subtype = string.split(file.mime, "/") # Si existe en gnome ya lo copiamos if os.path.exists(self.__md5gnome(file.path)): gtk.gdk.pixbuf_new_from_file_at_size(self.__md5gnome(file.path), self.size, self.size).save(self.get_path(idfile), 'png') # shutil.copyfile(self.__md5gnome(path), self.__md5(path)) else: if type == "image": try: image = urllib.url2pathname(str(file.path))[7:] dest = self.get_path(idfile) gtk.gdk.pixbuf_new_from_file_at_size(image, self.size, self.size).save(dest, 'png') except: return None else: thumbnailer = self.__get_thumbnailers(file, type + "@" + subtype, idfile) try: if thumbnailer != None: output = commands.getoutput(thumbnailer) except: return None def __get_thumbnailers(self, file, mime, idfile): if self.thumbnailers.has_key(mime): thumbnailer = self.thumbnailers[mime] else: try: thumbnailer = self.conf_client.get_string("/desktop/gnome/thumbnailers/" + mime + "/command") except: return None self.thumbnailers[mime] = thumbnailer if thumbnailer == None or thumbnailer == "": return None thumbnailer = string.replace(thumbnailer, "%s", str(self.size)) thumbnailer = string.replace(thumbnailer, "%u", '"' + str(file.path) + '"') thumbnailer = string.replace(thumbnailer, "%o", '"' + self.get_path(idfile) + '"') # print thumbnailer return thumbnailer def save_from_file(self, idfile, path): gtk.gdk.pixbuf_new_from_file_at_size(path, self.size, self.size).save(self.get_path(idfile), 'png') if __name__ == "__main__": t = Thumb() # t.stat("test.jpg") # print t.get_path(sys.argv[1]); gnomecatalog_0.3.4.2/gnomecatalog/data.py0000644000175000017500000001636310743466506017031 0ustar josejose# -*- coding: UTF-8 -*- import gtk, string, pprint, commands, os, pprint, gobject import gnome, gnome.ui import gnomevfs from gnomecatalog.ui import dialogs, treeviews import utils, storage, reader, config, ui.dialogs, fstypes, csv icon_theme = gtk.icon_theme_get_default() class Data: def __init__(self, treeDisk, treeFiles, app): self.icons = { "star_on" : gtk.gdk.pixbuf_new_from_file_at_size(utils.locate_file("star_set.png", "icons"), 16,16), "star_off" : gtk.gdk.pixbuf_new_from_file_at_size(utils.locate_file("star_unset.png", "icons"), 16,16) } self.config = config.Config() self.db = storage.Sqlite(None, app) self.reader = reader.Reader() self.treeFiles = ui.treeviews.Files(treeFiles, self.db) self.treeDisk = ui.treeviews.Tree(treeDisk, self.db) fstypes.FstypeBase.model_disk = self.treeDisk.model fstypes.FstypeBase.model_files = self.treeFiles.model self.app = app self.__cancel_action = False self.__searching = False def _mount_callback(self, success, error, detail): print "SUCCESS" """ Leemos el disco y lo insertamos en la base de datos """ def import_disk(self): path = self.config.get("source") database = storage.Sqlite(self.opened_database, self.app, True) if self.config.get("thumbnails") == "True": if not os.path.exists(database.database + "_thumbs"): os.mkdir(database.database + "_thumbs") """Importamos un nuevo disco""" if not utils.is_mounted(path): self.__path = path self.__progress = self.app.progress_bar utils.mount(path, self._mount_callback) disk = self.reader.read(path, self.app.progress_bar) if disk: """ ahora insertamos los datos en la base de datos. """ disk = database.insert_disk(disk) if self.config.get("eject") == "True": utils.eject(path) self.app.set_guardar_state(True) # self.load_data() # self.treeDisk.select(disk) # self.show_files_from_selected() database.close() return disk """ Carga los discos de a base de datos en el treeview tree """ def load_data(self): total = self.db.get_totals() self.refresh_statusbar(str(total['count']) + " " + _("files") + " " + utils.getSize(total['size'])) self.treeDisk.clear() data = self.db.read_data() for item in data: iter = self.treeDisk.insert(item) for i in item: if i.is_dir() or i.is_disk() or i.is_catalog(): iteri = self.treeDisk.insert(i, iter) """ Precarga los ficheros en el arbol """ def preload_data(self, iter): model = self.treeDisk.model iter = model.iter_children(iter) while True: if not model.iter_children(iter): item = model[iter][3] for i in item: if i.is_dir() or i.is_disk() or i.is_catalog(): iteri = self.treeDisk.insert(i, iter) iter = model.iter_next(iter) if not iter: break """ Cuando se pulsa sobre el arbol de discos """ def show_files_from_selected(self): if self.is_searching(): self.treeDisk.unselect_all() return self.treeFiles.clear() item, iter = self.treeDisk.get_selected() for i in item: self.treeFiles.insert(i) self.refresh_statusbar() def cancel_action(self): self.__cancel_action = True def selection_size(self): return utils.getSize(self.treeFiles.get_size()) def refresh_statusbar(self, txt = None): if txt == None: self.app.statusBar.push(0, str(self.treeFiles.count()) + " " + _("files") + " " + self.selection_size()) else: self.app.statusBar.push(0,txt) def search(self, text, categorie): self.treeDisk.unselect_all() self.__searching = True self.app.toolbutton_buscar.set_stock_id(gtk.STOCK_STOP) self.refresh_statusbar(_("Searching...")); while (gtk.events_pending ()): gtk.main_iteration (); self.treeFiles.clear() if not categorie[1]: files = self.db.search_files(text, categorie = categorie[0] ) else: files = self.db.search_files(text, mime_type = categorie[0] ) pos= 0 for i in files: if (pos % 100) == 0: while (gtk.events_pending ()): gtk.main_iteration (); pos = pos + 1 if self.__cancel_action: break self.treeFiles.insert(i, search = True) self.__cancel_action = self.__searching = False self.app.toolbutton_buscar.set_stock_id(gtk.STOCK_FIND) self.refresh_statusbar() self.treeDisk.unselect_all() def is_searching(self): return self.__searching def click_on_fileview(self, path = None): file = self.treeFiles.get_selected_files()[0] if file.is_file(): self.show_information_dialog() if file.is_dir() or file.is_catalog(): self.treeDisk.select(file) self.show_files_from_selected() ##################################### # ACCIONES SOBRE EL LISTADO DE DISCOS Y CATALOGOS ##################################### def new_catalog(self): catalog = fstypes.Catalog(_("No name")) self.db.insert_catalog(catalog) iter = self.treeDisk.insert(catalog) self.treeDisk.tree.set_cursor(self.treeDisk.model.get_path(iter), self.treeDisk.column, True) self.treeDisk.edit() self.app.set_guardar_state(True) def __remove_selected_disk(self): item, iter = self.treeDisk.get_selected() item.delete() self.treeDisk.remove(iter) self.treeDisk.set_selected(iter) self.show_files_from_selected() def __remove_selected_files(self): files = self.treeFiles.get_selected_files() files.reverse() for file in files: self.treeFiles.remove(file.iter) file.delete() def remove_selected(self): if self.app.treeviewDisk.is_focus(): self.__remove_selected_disk() if self.app.treeviewFiles.is_focus(): self.__remove_selected_files() def show_properties_dialog(self): files = self.treeFiles.get_selected_files() if len(files) > 0: dialogs.PropertiesDialog().run(files, self, callback = self.callback_properties_dialog) def show_information_dialog(self): files = self.treeFiles.get_selected_files() if len(files) > 0: file = files[0] else: return #f, descripcion = self.getFileInfo(file.id) dialogs.InfoDialogs().show(file); def callback_properties_dialog(self, files, categories, comment, rating): # Ahora las categorias cats = [] insert = False for id, check, cat in categories: if id == 0: id = self.db.insert_category(cat) insert = True if check: cats.append(id) ids = [] for file in files: file.comment = str(comment) file.rating = int(rating) ids.append(file.id) self.app.reload_categories() self.db.set_categories_to_files(ids, cats) self.treeFiles.reload_file_names() #self.show_files_from_selected() ##################################### # DIALOGOS DE FICHEROS ##################################### def open_database(self, file): if file != None: self.db.open(file) self.opened_database = self.db.database_tempfile self.config.save("database", file) self.treeFiles.clear() self.treeDisk.clear() gobject.idle_add(self.load_data) # self.load_data() self.app.mainApp.set_title("Gnome Catalog - " + os.path.basename(file)); self.app.set_guardar_state(False) def save_database(self, clear_thumbnails): self.db.save() try: self.app.set_guardar_state(False) except: pass def close_database(self): self.db.close() def export(self, file, type = 'csv'): files = self.db.sql("select disks.name as disk, files.name, files.size from disks, files where disks.id=files.iddisk"); writer = csv.writer(open(file, "wb"), dialect='excel', delimiter=',') for file in files: writer.writerow(file.values()) gnomecatalog_0.3.4.2/gnomecatalog/importdata.py0000644000175000017500000000310111006366613020235 0ustar josejose# -*- coding: UTF-8 -*- import gzip import xml.dom.pulldom import fstypes class Cdcat: def __init__(self, data): self.db = data.db self.data = data def open(self, filename): print "Abriendo ", filename data = gzip.open(filename, 'r') self.dom = xml.dom.pulldom.parse(data) self.__importCdcat(self.dom) self.db.commit() self.data.load_data() def __importCdcat(self, node, idcatalog = 0, iddisk = 0, idparent = 0 ): while node: node = self.dom.getEvent() if not node: return if node[0] == 'START_ELEMENT': if node[1].nodeType == 1: if node[1].tagName == 'catalog': # creamos el catalogo idcatalog = self.db.add_catalog(node[1].attributes['name'].value) self.__importCdcat(node, idcatalog) elif node[1].tagName == 'media': # insertamos el disco iddisk = self.db.add_disk(node[1].attributes['name'].value, idcatalog, node[1].attributes['name'].value, '/media/cdrom') self.__importCdcat(node, idcatalog, iddisk) elif node[1].tagName == 'directory': # Insertamos el directorio iddirectory = self.db.add_file(iddisk, idparent, node[1].attributes['name'].value, 0, '', 'x-directory/normal', 'directory') self.__importCdcat(node, idcatalog, iddisk, iddirectory) elif node[1].tagName == 'file': self.db.add_file(iddisk, idparent, node[1].attributes['name'].value, 0, '', '', 'regular') if node[0] == 'END_ELEMENT' and (node[1].tagName == 'media' or node[1].tagName == 'catalog' or node[1].tagName == 'directory'): return if __name__ == "__main__": info = Info() dis = info.get(sys.argv[1]) gnomecatalog_0.3.4.2/gnomecatalog/fstypes.py0000644000175000017500000002057610743466506017616 0ustar josejose# -*- coding: UTF-8 -*- import gtk, os.path import fileinfo, utils, config, thumbnails config = config.Config() thumbnails = thumbnails.Thumb(config.get('database')) icon_size = w = h = 24 icon_theme = gtk.icon_theme_get_default() icons = { "directory" : icon_theme.load_icon("folder", icon_size, 0), "audio": icon_theme.load_icon("audio-x-generic", icon_size, 0), "video": icon_theme.load_icon("video-x-generic", icon_size, 0), "image": icon_theme.load_icon("image-x-generic", icon_size, 0), "package": icon_theme.load_icon("gnome-package", icon_size, 0), "default": icon_theme.load_icon("document", icon_size, 0), "loading": icon_theme.load_icon("gnome-fs-loading-icon", icon_size, 0), "catalog": icon_theme.load_icon("folder", icon_size, 0), "cdrom": icon_theme.load_icon("media-optical", icon_size, 0), } class FstypeBase: model_disk = None model_files = None def __init__(self): self._data_loaded = False self.db = self.id = self.name = self.comment = None self.items = [] self.size = None self.rating = None self._index = 0 self._count = 0 self.iter = None self.metadata = None self.path = None self.type = None def is_catalog(self): return False def is_disk(self): return False def is_file(self): return False def is_dir(self): return False def __iter__(self): if not self._data_loaded: self.items = self._load_data() self._data_loaded = True self._count = len(self.items) self._index = 0 return self def next(self): if self._index >= self._count: raise StopIteration self._index = self._index + 1 return self.items[self._index - 1] def _load_data(self): pass class Catalog(FstypeBase): def __init__(self, name, id = None, db = None, idcatalog = 0, comment = None, borrow = None): FstypeBase.__init__(self) self.iter = None self.catalog = None self.name = name self.db = db self.idcatalog = idcatalog self.comment = comment self.borrow = borrow self.id = id def add(self, item): self.items.append(item) def is_catalog(self): return True def get_icon(self): return icons["catalog"] def _load_data(self): if self.db: return self.db.read_data(self.id) else: return [] def __setattr__(self, name, value): if name in ["name", "idcatalog", "comment", "borrow"]: if self.id and self.__dict__[name] != value: self.__dict__[name] = value self.db.update("catalogs", self.id, name, value) if self.__dict__.has_key('iter') and self.iter != None: FstypeBase.model_disk.set_value(self.iter, 1, self.get_text()) else: self.__dict__[name] = value else: self.__dict__[name] = value def get_text(self): txt = self.name if self.comment: txt = txt + "\n" + self.comment + ""; if self.borrow: txt = txt + "\n" + _("Borrowed to ") + self.borrow + ""; return txt def delete(self): for i in self.items: i.delete() self.db.delete("catalogs", self.id) self.db.commit() def get_catalog(self): if self.catalog: return self.catalog if self.idcatalog: d = self.db.get_catalog(self.idcatalog)[0] self.catalog = Catalog(d["name"], d["id"], self.db, d["idcatalog"]) return self.catalog class Disk(FstypeBase): def __init__(self, name, path, id = None, db = None, idcatalog = 0, icon = None, comment = None, borrow = None): FstypeBase.__init__(self) self.iter = None self.catalog = None self.name = name self.path = path self.db = db self.idcatalog = idcatalog self.icon = None self.comment = comment self.borrow = borrow self.id = id """ Desde la bd """ if type(icon) == gtk.gdk.Pixbuf: self.icon = icon if type(icon) == buffer: open('/tmp/tmp_gnomecatalog_icon.png', 'wb').write(icon) self.icon = gtk.gdk.pixbuf_new_from_file_at_size("/tmp/tmp_gnomecatalog_icon.png", 24, 24) if not db: self._data_loaded = True def add(self, file): self.items.append(file) def is_disk(self): return True def get_icon(self): if self.icon: return self.icon return icons["cdrom"] def __setattr__(self, name, value): if name in ["name", "idcatalog", "comment", "borrow"]: if self.id and self.__dict__[name] != value: self.__dict__[name] = value self.db.update("disks", self.id, name, value) if self.__dict__.has_key('iter') and self.iter != None: FstypeBase.model_disk.set_value(self.iter, 1, self.get_text()) else: self.__dict__[name] = value else: self.__dict__[name] = value def get_text(self): txt = self.name if self.comment: txt = txt + "\n" + self.comment + ""; if self.borrow: txt = txt + "\n" + _("Borrowed to ") + self.borrow + ""; return txt def _load_data(self): return self.db.read_files_from_disk(self) def delete(self): # for i in self.items: # i.delete() # print "Eliminando",self.id self.db.remove_disk(self.id) self.db.commit() def get_catalog(self): if self.catalog: return self.catalog if self.idcatalog: d = self.db.get_catalog(self.idcatalog)[0] self.catalog = Catalog(d["name"], d["id"], self.db, d["idcatalog"]) return self.catalog class File(FstypeBase): """ Acepta como informacion de bd o path """ def __init__(self, info = None, disk = None, db = None): FstypeBase.__init__(self) self.__categories = None self.iter = None self.disk = disk self.path = None self.duration = None if type(info) == str: self._data_loaded = True finfo = fileinfo.Info() self.path , self.name, self.size, self.type, self.mime, self.meta = finfo.get(info) if type(info) == dict: self.name = info["name"] self.comment = info["comment"] self.rating = info["rating"] self.path = info["path"] self.size = info["size"] self.type = info["type"] self.mime = info["mime"] self.iddisk = info["iddisk"] self.db = db self.id = info["id"] def get_text(self): return self.name def get_icon(self, size = 24): if self.is_dir(): return icons["directory"] if not self.mime: return icons['default'] type, subtype = self.mime.split("/") thumb = thumbnails.get_pixbuf(self.id) if thumb: return thumb if size == w and icons.has_key(self.mime): return icons[self.mime] try: icon = icon_theme.load_icon("gnome-mime-" + type + "-" + subtype, size, 0) if size == w: icons[self.mime] = icon return icon except: if icons.has_key(type): return icons[type] return icons["default"] def is_dir(self): return self.type == "directory" # or self.mime == "application/x-compressed-tar" def is_file(self): return self.type == "regular" def add_files(self, files): self.items = files def __setattr__(self, name, value): if name in ["name", "comment", "rating"] and self.db and self.id != None and self.__dict__[name] != value: self.db.update("files", self.id, name, value) self.__dict__[name] = value def get_disk(self): if self.disk: return self.disk if self.iddisk: d = self.db.get_disk(self.iddisk)[0] self.disk = Disk( d["name"], d["root"], d["id"], self.db, d["idcatalog"]) return self.disk def _load_data(self): return self.db.read_files_from_disk(self.disk, self.id) def delete(self): for i in self.items: i.delete() self.db.delete("files", self.id) def get_location(self): disk = self.get_disk() item = disk txt = "" while True: item = item.get_catalog() if not item: break txt = txt + item.name + " / " txt = txt + disk.name dir = os.path.dirname(self.path)[len(disk.path) + len("file:///")-1:] if dir: txt = txt + " - " + dir return txt def get_categories(self): if self.__categories: return self.__categories if self.id: self.__categories = self.db.get_categories_from_file(self.id) return self.__categories def get_metadata(self): if self.id and self.metadata == None: self.metadata = self.db.get_metadata_from_file(self.id) # print self.metadata return self.metadata def get_duration(self): if self.duration == None: self.duration = self.db.get_duration(self.id) return self.duration def get_duration_backup(self): metadata = self.get_metadata() if not metadata: return None if metadata.has_key("length"): return metadata["length"] if metadata.has_key("LENGTH"): return metadata["LENGTH"] if metadata.has_key("duration"): return int(metadata["duration"]) / (1000 * 1000 * 1000) return None gnomecatalog_0.3.4.2/gnomecatalog/utils.py0000644000175000017500000000620410743466506017251 0ustar josejoseimport os, commands, time import gnomevfs, gtk def locate_file(path, type = "icons"): prefixes = ['', 'usr/', 'usr/local/'] if type == "glade": subs = ["share/gnomecatalog/glade", "share/glade"]; elif type == "icons" or type == "pixmap": subs = ["share/gnomecatalog/pixmaps", "share/pixmaps"]; # Try them locally for prefix in prefixes: for sub in subs: if os.path.exists(prefix + os.path.join(".." ,sub, path)): return prefix + os.path.join(".." ,sub, path); # Try them from root for prefix in prefixes: for sub in subs: if os.path.exists('/' + prefix + os.path.join(sub, path)): return '/' + prefix + os.path.join(sub, path) return None def getSize(size): if not size or size == None: return "" if size > 1024 * 1024 * 1024: return str(round(float(size) / (1024 * 1024 * 1024),2)) + " Gb" elif size > 1024 * 1024: return str(size / (1024 * 1024)) + " Mb" elif size > 1024: return str(size / 1024) + " Kb" else: return str(size) + "b" def get_length(secs): txt = "" t = time.localtime(secs) hour = t[3] - 1 minute = t[4] sec = t[5] if hour > 0: txt = txt + str(hour) + "h " txt = txt + str(minute) + "m" if hour == 0: txt = txt + " " + str(sec) + "s" return txt def encode(txt): # txt = unicode(txt, "utf-8") txt = str(txt).replace("&", "&") try: txt =txt.encode("utf-8", "replace") except: txt = unicode(txt, 'iso-8859-15').encode('utf-8') return txt def get_label(path): drive = gnomevfs.VolumeMonitor().get_volume_for_path(path) if drive: print "label:",drive.get_display_name() return drive.get_display_name() def callback_eject(data, data1, data2): pass def eject(path): print "EJECT: " + path drives = gnomevfs.VolumeMonitor().get_connected_drives() for drive in drives: if drive.get_activation_uri() == path: return drive.eject(callback_eject) # Callback dont work volumes = drive.get_mounted_volumes() for volume in volumes: if volume.get_activation_uri() == path: drive.eject(callback_eject) def is_mounted(path): drives = gnomevfs.VolumeMonitor().get_connected_drives() for drive in drives: if drive.get_activation_uri() == path and drive.is_mounted(): return True return False def get_drive_icon(path): icon_theme = gtk.icon_theme_get_default() volume = gnomevfs.VolumeMonitor().get_volume_for_path(path) icon = icon_theme.load_icon(volume.get_icon(), 24, 0) return icon def callback_mount(data, data1, data2): print "Dont work" def mount(path, callback): print "Montando " + path drives = gnomevfs.VolumeMonitor().get_connected_drives() for drive in drives: if drive.get_activation_uri() == path: drive.mount(callback) time.sleep(2) if __name__ == "__main__": # path = "/media/cdrom0" path = "/home/jose/Escritorio/Descargas/Sober" icon = get_drive_icon(path) icon.save('/home/jose/Escritorio/tmp_gnomecatalog_icon.png', 'png') drives = gnomevfs.VolumeMonitor().get_connected_drives() volume = gnomevfs.VolumeMonitor().get_volume_for_path(path) print volume.is_mounted() print dir(volume) for drive in drives: # print dir(drive) print drive.get_activation_uri() if drive.get_activation_uri() == path: print path # drive.mount(mounted) gnomecatalog_0.3.4.2/gnomecatalog/fileinfo.py0000644000175000017500000001317010743466506017704 0ustar josejose# -*- coding: UTF-8 -*- # Gstreamer 0.10 #import gobject #import pygst #pygst.require('0.10') #from gst.extend import discoverer #import gst #import EXIF #import mmpython import kaa.metadata import gnomevfs, os, string, sys, urllib class Info: def __init__(self): pass def get(self, file): meta = {} img = None # print "FILEINFO: " + file file_path, file_name, file_type, file_size, file_mime = self.__stat(file) try: path = urllib.url2pathname(str(file))[7:] # path = file meta = self.__kaa(path) #if file_mime == "image/jpeg": # meta = self.__image(file) #else: # meta = self.__gstreamer(file) except: pass # print meta return file_path, file_name, file_size, file_type, file_mime, meta def __kaa(self, filename): meta = {} info = kaa.metadata.parse(filename) for i in info.keys(): value = info.get(i) if isinstance(value, list): for lista in value: for item in lista.keys(): val = lista.get(item) if val != None: meta[i + '_' + item] = val elif value != None and i != 'thumbnail': meta[i] = value return meta def __mmpython(self, file): meta = {} info = mmpython.parse(file) # print info if info: tables = ["video", "audio", "image"] not_save = ["dict", "i18ndir", "url", "name"] for table in tables: if info.has_key(table): mediums = info[table] for medium in mediums: for key in medium.keys: if medium[key] and key not in not_save: meta[table + "_" + key] = medium[key] for table in info._tables: mm = info._tables[table] for key, value in mm.__dict__.items(): if value and key not in not_save: meta[key] = value for key in info.keys: if info[key] and key not in not_save: meta[key] = info[key] return meta def __image(self, file): meta = {} try: tags = EXIF.process_file(open(file, 'rb')) except: tags = {} for item in ("EXIF ApertureValue", "EXIF BrightnessValue", "EXIF ColorSpace", "EXIF ComponentsConfiguration", "EXIF DateTimeDigitized", "EXIF ExifImageLength", "EXIF ExifImageWidth", "EXIF ExifVersion", "EXIF ExposureBiasValue", "EXIF ExposureProgram", "EXIF ExposureTime", "EXIF FNumber", "EXIF Flash", "EXIF FlashEnergy", "EXIF FlashPixVersion", "EXIF FocalLength", "EXIF ISOSpeedRatings", "EXIF InteroperabilityOffset", "EXIF LightSource", "EXIF MeteringMode", "EXIF ShutterSpeedValue", "EXIF SubjectDistance", "Image Model", "Image Make", "EXIF MaxApertureValue","EXIF MeteringMode", "EXIF SensingMethod", "JPEGThumbnail"): if tags.has_key(item): if tags[item] != None : meta[item] = tags[item] return meta def __stat(self, file): self.cwd = gnomevfs.URI(os.getcwd()) if str(self.cwd)[-1] != '/': self.cwd = self.cwd.append_string('/') file_uri = self.cwd.resolve_relative(file) try: file_info = gnomevfs.get_file_info(file_uri, gnomevfs.FILE_INFO_GET_MIME_TYPE) except: class file_info: name = file file_type = "" file_size = 0 mime = "" # print 'Name: ', file_info.name file_type = '(none)' try: file_type = ('unknown', 'regular', 'directory', 'fifo', 'socket', 'chardev', 'blockdev', 'symlink')[file_info.type] except: pass # print 'Type: ', file_type file_size = '(unknown)' try: file_size = file_info.size except: file_size = 0 # print 'Size: ', file_size mime_type = '(none)' try: mime_type = file_info.mime_type except: pass #print 'Mime type: ', mime_type return file_uri, file_info.name, file_type, file_size, mime_type def _discovered_cb(self, discoverer, ismedia): self.discoverer = discoverer self.discovered = True gobject.idle_add(self.loop.quit) return True def discover(self): discover = discoverer.Discoverer(self.filename) discover.connect('discovered', self._discovered_cb) discover.discover() def __gstreamer(self, filename): # print "INFORMACIN GSTREAMER"; Discoverer(filename).print_info() return self.filename = filename self.loop = gobject.MainLoop() gobject.idle_add(self.discover) self.loop.run() self.discovered = False self.discover() discoverer = self.discoverer info = {} info = discoverer.tags #print dir(info["date"]) #info["date"] = str(info["date"].) info["duration"] = max(discoverer.audiolength, discoverer.videolength) if discoverer.is_audio: info["audio"] = "%d channel(s) %dHz" % (discoverer.audiochannels, discoverer.audiorate) if discoverer.is_video: info["video"] = "%d x %d at %d/%d fps" % (discoverer.videowidth, discoverer.videoheight, discoverer.videorate.num, discoverer.videorate.denom) self.loop.quit() return info def gs2(self, filename): # print filename discover = discoverer.Discoverer(filename) discover.discover() while 1: if not discover.audiolength: continue # Extract tags with gstreamer is too slow, not used at the moment def gs(self, filename): pipeline = gst.parse_launch("filesrc name=source ! decodebin name=demux ! fakesink") source = pipeline.get_by_name("source") source.set_property("location", filename) demux = pipeline.get_by_name("demux") self.bus = pipeline.get_bus() pipeline.set_state(gst.STATE_PLAYING) while 1: msg = self.bus.poll(gst.MESSAGE_ANY , gst.SECOND) print msg if msg: if msg.type == gst.MESSAGE_EOS: break if msg.type == gst.MESSAGE_TAG: print msg else: break; pipeline.set_state(gst.STATE_NULL) if __name__ == "__main__": info = Info() dis = info.get(sys.argv[1]) gnomecatalog_0.3.4.2/gnomecatalog/models.py0000644000175000017500000000015710743466506017375 0ustar josejose# -*- coding: UTF-8 -*- class ActiveRecord: pass class Catalog: pass class Disk: pass class File: pass gnomecatalog_0.3.4.2/gnomecatalog/__init__.py0000644000175000017500000000005310743466506017644 0ustar josejoseAPPNAME = "gnomecatalog" VERSION = "0.0.1" gnomecatalog_0.3.4.2/gnomecatalog/config.py0000644000175000017500000000117010743466506017353 0ustar josejoseimport gconf class Config: def __init__(self): self.client = gconf.client_get_default() self.base = "/apps/gnomeCatalog/" # self.client.add_dir("/apps/gnomecatalog", gconf.CLIENT_PRELOAD_NONE) if not self.get("database"): self.__initConfig() def get(self, data): return self.client.get_string(self.base + data) def save(self, data, value): self.client.set_string(self.base + data, str(value)) def __initConfig(self): self.save("source", "/cdrom") self.save("database", "gnomeCatalog.db") self.save("height", 500) self.save("width", 800) self.save("top", 100) self.save("left", 100) gnomecatalog_0.3.4.2/doc/gnomecatalog.10000644000175000017500000000243310743372433016361 0ustar josejose.\" Hey, EMACS: -*- nroff -*- .TH GNOMECATALOG 1 "September 27, 2007" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME gnomecatalog \- Cd cataloguing .SH SYNOPSIS .B gnomecatalog .SH DESCRIPTION This manual page documents briefly \fBgnomecatalog\fP. Cataloging software for CDs and DVDs. Catalog your dvds/cds and files in your hard disk. You can find easily your files stored in your cds and dvds. You can search in all metadata of the files, exif, id3tags, etc. The files, disks and catalog can be commented and can annotate if you borrow a disk to someone. You can export your file list to send to your friends. It can import data from other catalog software to your database. The program has been developed in python-gtk uses sqlite3 for store the data. .PP \fBgnomecatalog\fP is a catalog software .SH AUTHOR This manual page was written by Jose Sanchez Moreno , for the Debian GNU/Linux system (but may be used by others). gnomecatalog_0.3.4.2/share/mime/gnomecatalog.applications0000644000175000017500000000024510743372432022171 0ustar josejosegnomecatalog command=gnomecatalog name=gnomecatalog can_open_multiple_files=false expects_uris=false requires_terminal=false mime_types=application/x-gcatalog gnomecatalog_0.3.4.2/share/mime/gnomecatalog.keys0000644000175000017500000000017710743372432020462 0ustar josejoseapplication/x-gcatalog open=gnomecatalog %f view=gnomecatalog %f icon-filename=/usr/share/gnomecatalog/pixmaps/gcatalog.png gnomecatalog_0.3.4.2/share/mime/gnome-mime-application-x-gcatalog.png0000644000175000017500000000675110743372432024216 0ustar josejosePNG  IHDR00WbKGD pHYs  tIME9E(LtEXtCommentCreated with The GIMPd%n MIDATh՚{l\U~?y9c'H$!K`<0 !e7]RBmS-ڪU%ZJъTA"v?V%iҐHac;188m̝=ycZi|sy'|jkkeyy^;Đwu]vttȃj|e! 0u}$׹e򟕽p8H$D"\BSS:`\l$LOii)7o=@MEk|D"c֭>| ,-7/ _O&ظ~~_c *hj{nJoo/|0$(ɛ҂X y~{aX,7'"}>T(.0BbDOO)\.v߿ p<;w|!ļxb25Y )>o";io%R>oV+yH[_)$.9J)Lc8]]4X0Lv;r}033C_ ,=룭-͞J^K)9wMMMD*D  M30"6!F nNW322BQQvEQt=ͦf>سg/+Eu;J4x{P-%>!V)-ij!Es4_nzj45@ss3\HB,sl0¦ +3cs(>X,F,2QWWժe?>G &SNa )Z0|H))vX/ḟa&&&addMӈD"hƶmp:]H$2]BiKԓUʆ +M/I&0sg ߽2^/̓~hhh{reh׿J'2::TcNBqd6t vnOE0 XlJc㝜8q+6ᯨ s5n7=֭pѪ!G, 0LH$y.@ &[2IKFYEUǣY0x<466~zN7ugWBb18` 6RSSGn͎DQyejJ(*EgTTbs]w5x2F`ll,@ i(d;wL*@AQbiV6oނ۷oI$a$U8M(Jcΰtww\(^z[;V𭥺Q8yv&U&.//G#$qɤF6KEQSG)7x" nbÆ46BUUÇ> ^d;mD#:W~Fw@70j͍ : O{ݮ' [;$I^fuÖ[ ~t=/~boиX,{Gޱ \^U|~N=;SNyrO4s<>s_|D?t_ߦP(;??8x^4>ՂjaW6slx'TTPT䡨CqRn\@Q&'f 9<f3vƓOв~j8{4MOdȠp0XMy2AEQ(.R^Qm72? х;$6ƲrnF4kN\ Һ=N_dDžsa@!**K*+bJu6EڠWYQȆeqe]O4( ?Q@R Ǚngj gEXD-i[zV͊a&&fXϻ2 B:Zq{2h?svluqW QZVjCJΣP0o!9۬Wpϖ՜jZ( G9K B]&XtFy]N!CZ*55COXQL@`6k_QЭaߺ}߹'_j䏟~ ΪUBj(禺,0O]haP, PZ-RWWG2~'4+ Gnome Catalog database gnomecatalog_0.3.4.2/share/mime/gnomecatalog.desktop0000755000175000017500000000154110743372432021157 0ustar josejose[Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Gnome Catalog Name[fr]=Catalogueur de disques Name[de]=Cd-Rom-Katalogprogramm Name[nl]=Gnome Schijvencatalogus Name[hu]=Katalógusprogram GNOME alá Name[pl]=Katalog dysków CD dla Gnome Name[cs]=GNOME katalog Comment=make disk/CD catalogs Comment[fr]=Faites vos catalogues de disques/CD Comment[de]=Erstellung von Platten-/CD-Katalogen Comment[nl]=Maakt catalogen van uw schijven Comment[hu]=Meghajtó és CD katalógusokat készít Comment[pl]=Aplikacja katalogująca dyski CD (i nie tylko) Comment[cs]=Program pro katalogizaci CD disků TryExec=gnomecatalog Exec=gnomecatalog %F Icon=/usr/share/gnomecatalog/pixmaps/gcatalog.png Terminal=false Type=Application Categories=GNOME;Application;Utility; MimeType=application/x-gcatalog; Name[es_ES]=Catalogador de Gnome Comment[es_ES]=Cataloga tus CD / DVDs y archivos gnomecatalog_0.3.4.2/share/mime/gnomecatalog0000644000175000017500000000017710743372432017510 0ustar josejoseapplication/x-gcatalog; gnomecatalog '%s'; description="Gnome Catalog File"; test=test -n "$DISPLAY"; nametemplate=%s.gcatalog gnomecatalog_0.3.4.2/share/mime/gnomecatalog.mime0000644000175000017500000000004610743372432020431 0ustar josejoseapplication/x-gcatalog ext: gcatalog gnomecatalog_0.3.4.2/share/glade/gnomecatalog (copia).glade0000644000175000017500000006446010743372432022112 0ustar josejose True gcatalog.png True True True _File True True gtk-new True True True gtk-open True True True gtk-save True True True gtk-save-as True True True True New _Disk True True 0 0 gtk-add 1 True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Export database Export True gtk-save-as True gtk-quit True True True _Edit True True gtk-cut True True True gtk-copy True True True gtk-paste True True True gtk-delete True True True True gtk-preferences True True True _View True True gtk-dialog-info True True True _Properties True True 0 0 gtk-properties 1 True _Help True True gtk-about True True False False True GTK_TOOLBAR_BOTH_HORIZ True True gtk-open False True gtk-save False True False False True True True gtk-add False False True gtk-delete False True False False True 136 True True False False True gtk-find False True True Categories False False True False False True gtk-preferences False False 1 True True True 200 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC True True True False True True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC True True True True True 2 True False False 3 True Disk True True 0 0 gtk-cdrom 1 True Catalog True True 0 0 gtk-open 1 True gtk-dialog-info True True True gtk-properties True True True Rename True True 0 0 gtk-edit 1 gnomecatalog_0.3.4.2/share/glade/dialogs.glade0000644000175000017500000013370310743372432017674 0ustar josejose Add new disk GDK_WINDOW_TYPE_HINT_DIALOG True 0 0 True 5 True True True 0 0 14 Importing data from disk. Please <b>wait a moment</b>......... True PANGO_WRAP_CHAR False False 1 True 0 0 6 6 64 find GTK_PACK_END 1 False True True True 0 Importing disk PANGO_ELLIPSIZE_MIDDLE 1 1 False False 12 True GTK_BUTTONBOX_END True True True gtk-cancel True 0 1 Preferences True GDK_WINDOW_TYPE_HINT_DIALOG True 0 0 True 7 True True 0 0 19 6 80 gnome-dev-computer True 0 0 8 Select path to read True GTK_JUSTIFY_CENTER False False 18 1 True True 11 False GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER Seleccione un directorio 1 True True 5 Eject disk after disk read True 0 True False False 2 2 True True 5 Save thumbnails in the database True 0 True False False 3 True 6 15 GTK_BUTTONBOX_END True True True gtk-cancel True 0 True True True gtk-ok True 0 1 False False 4 File information True GTK_WIN_POS_CENTER_ON_PARENT GDK_WINDOW_TYPE_HINT_DIALOG True True True True 0 0 6 60 gtk-info False False 23 True 0 0 Nombre del archivo.avi GTK_JUSTIFY_CENTER 1 8 True 0 0 36 label7 True False 11 1 True 10 GTK_BUTTONBOX_END True True True gtk-close True 0 False 2 10 Categories, Comments True GTK_WIN_POS_CENTER GDK_WINDOW_TYPE_HINT_DIALOG True True 0 0 10 <b>Categories</b> True categories_treeview False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_ETCHED_OUT 100 True True False False 1 True GTK_BUTTONBOX_END True True True gtk-remove True 0 True True True gtk-new True 0 1 2 True 0 1 10 <b>Comment</b> True categories_comment False False 3 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_ETCHED_IN 50 True True True 1 4 True 0 1 10 <b>Rating</b> True categories_comment False False 5 True True True True 0 0 gtk-missing-image True True 0 0 gtk-missing-image 1 True True 0 0 gtk-missing-image 2 True True 0 0 gtk-missing-image 3 True True 0 0 gtk-missing-image 4 False 6 True 10 20 GTK_BUTTONBOX_END True True True gtk-cancel True 0 True True True gtk-ok True 0 1 False False 7 gnome Catalog True GTK_WIN_POS_CENTER GDK_WINDOW_TYPE_HINT_DIALOG True 10 True 0 0 Category True dialog_entry False False True True False False 1 True 5 20 GTK_BUTTONBOX_END True True True gtk-cancel True 0 True True True gtk-ok True 0 1 2 Save dialog True GTK_WIN_POS_CENTER GDK_WINDOW_TYPE_HINT_DIALOG True True True True 0 0 80 dialog-warning False 26 True 0 0 <b>Save the changes?</b> True GTK_JUSTIFY_CENTER 1 True 0 If don't save the changes will be lost. False False 13 1 2 True GTK_BUTTONBOX_END True True True Close _without save True 0 True True True gtk-cancel True -6 1 True True True gtk-save True 0 2 False GTK_PACK_END 300 300 GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Disk or catalog information True GTK_WIN_POS_CENTER_ON_PARENT True GDK_WINDOW_TYPE_HINT_DIALOG True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 1 1 10 10 10 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 10 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK gtk-missing-image False 20 True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 1 False False 10 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 Comments False False 2 True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 3 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 100 100 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 300 50 stock_person False False True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 1 Borrowed to True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 20 1 False False 1 False False 4 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 10 GTK_BUTTONBOX_END True True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK gtk-cancel True 0 True True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK gtk-ok True 0 1 False False 10 5 gnomecatalog_0.3.4.2/share/glade/gcatalog.png0000644000175000017500000000573110743372432017542 0ustar josejosePNG  IHDR00`ntEXtCreation Time 7tIME ,2 pHYs  ~ WIDATx tT߾̛yf2L6HIH=V)p9DA!RjjhCR#Z\R Hs"E@,$,of1 I]{Ne3L1AQf.]Ml{=h} ZkEbЎ^ZFKƳcǗ^5.) N~xGk8[ʬfWT;ݮh. PKs˂?ußJr}]at2F`3;/>o@'+ (nI(iEe/;"9.`,8TI`, 챣aj,煷׮?$4:>(BPVLjnwqfN<.\}lΘ5w򯉡&!z^# $3^® ťWNT hEShEZHLGYXǛj:x2Ȳq;6WK=bE4 B$ QU5ba0IV% &QE77Z cHeH1]m7X_W0 ?#K$PNФ qI ť~vo#1dHFR` 0Q,Egϥ]En 8wcMh,v˝7>'Oc^GD\ t0uHNB-,N 4 /~ aFp2R(pvzTQɊ'4p6 ==xP 3Jm'0=l GbӛvN}~=cs]#Vxr{K[ I qBS<]7#Q͊&DZɫihnFτ$Yy~@ʶoεq$2 j[x;Au@ #iQǹD)+^h3g&U}'\VZ(⅄CPt&"* @0hjMO y<_Z֫HCaqxw i IP7ISիf~3eq݃~n%8(ZG_Ԑqצ 3i>xBn8e!YшIHHQ2nL[yps}?B'O_}v3_?zpwn- P Y(-2ťz#ѦP,aKy=gu8\GV>J|!Vv_KkŁk6m܆CiAq>~1cǎTaHjqe="Bg`Ό}'Q$vUKh*"cz\rҲQLyAm3|aXXXneLQuyO|-h#͘+p,ڽ6B([;kN w/ed.+|:Bq`6G\X/w = U]Wv~9cygsvn.q0p_+*!3=ngP,= -6JӔX"M&{tƬa$I CƲlY5Xg)&R@fe$-!> ɇ' mf2VKh+TC)U0".#bҥ~3 y2cYP"C0]6"z̈́"9 cZ]㼣0??wa1u'g }Ν;OikhUEts9;@޽9{=^hƎp@ηۛ_Ey뭷::::;;d}}}0*Ģ6eHd True gcatalog.png True True True _File True True gtk-new True True True gtk-open True True True gtk-save True True True gtk-save-as True True True True New _Disk True True 0 0 gtk-add 1 True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Import True gtk-open True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Export database Export True gtk-save-as True True gtk-quit True True True _Edit True True gtk-cut True True True gtk-copy True True True gtk-paste True True True gtk-delete True True True True gtk-preferences True True True _View True True gtk-dialog-info True True True _Properties True True 0 0 gtk-properties 1 True _Help True True gtk-about True True False False True GTK_TOOLBAR_BOTH_HORIZ True Open a new database file True gtk-open False True Save the changes in your database gtk-save False True False False True True Add a new disk or catalog to your database True gtk-add False False True Delete a selected file, disks or catalog gtk-delete False True False False True Click to search for the typed text gtk-find False True True Select a file's categorie to search Categories False False True False False True Show preferences dialog gtk-preferences False False 1 True True True 200 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC True True True False True True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC True True True True True 2 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK True False False 3 True Disk True True 0 0 gtk-cdrom 1 True Catalog True True 0 0 gtk-open 1 True gtk-dialog-info True True True gtk-properties True True True Rename True True 0 0 gtk-edit 1 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Rename True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK gtk-edit True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK gtk-info True True gnomecatalog_0.3.4.2/share/pixmaps/star_set.png0000644000175000017500000000124410743372432020205 0ustar josejosePNG  IHDR;mGbKGD pHYsHHFk>IDATxڭMhSQK_&hՊ i5&J$vDQA BQ"R(Fu!SPM$ XR"%i yBQ_"a`gp.Cu;,Phhdlhi\*=㯞!3;/>o@'+ (nI(iEe/;"9.`,8TI`, 챣aj,煷׮?$4:>(BPVLjnwqfN<.\}lΘ5w򯉡&!z^# $3^® ťWNT hEShEZHLGYXǛj:x2Ȳq;6WK=bE4 B$ QU5ba0IV% &QE77Z cHeH1]m7X_W0 ?#K$PNФ qI ť~vo#1dHFR` 0Q,Egϥ]En 8wcMh,v˝7>'Oc^GD\ t0uHNB-,N 4 /~ aFp2R(pvzTQɊ'4p6 ==xP 3Jm'0=l GbӛvN}~=cs]#Vxr{K[ I qBS<]7#Q͊&DZɫihnFτ$Yy~@ʶoεq$2 j[x;Au@ #iQǹD)+^h3g&U}'\VZ(⅄CPt&"* @0hjMO y<_Z֫HCaqxw i IP7ISիf~3eq݃~n%8(ZG_Ԑqצ 3i>xBn8e!YшIHHQ2nL[yps}?B'O_}v3_?zpwn- P Y(-2ťz#ѦP,aKy=gu8\GV>J|!Vv_KkŁk6m܆CiAq>~1cǎTaHjqe="Bg`Ό}'Q$vUKh*"cz\rҲQLyAm3|aXXXneLQuyO|-h#͘+p,ڽ6B([;kN w/ed.+|:Bq`6G\X/w = U]Wv~9cygsvn.q0p_+*!3=ngP,= -6JӔX"M&{tƬa$I CƲlY5Xg)&R@fe$-!> ɇ' mf2VKh+TC)U0".#bҥ~3 y2cYP"C0]6"z̈́"9 cZ]㼣0??wa1u'g }Ν;OikhUEts9;@޽9{=^hƎp@ηۛ_Ey뭷::::;;d}}}0*Ģ6eHd c #78736E", ", c #86776B", "' c #9C8583", ") c #D4BCB4", "! c #E8D7C4", "~ c #B4A593", "{ c #877A6E", "] c #645B53", "^ c #746E6E", "/ c #BDBCBD", "( c #EEEDED", "_ c #888586", ": c #918986", "< c #D5C9BA", "[ c #ECD6BD", "} c #D5B8B1", "| c #DBBFBA", "1 c #E3D1BF", "2 c #C1B19E", "3 c #B3A293", "4 c #C8B4A3", "5 c #BEAC9B", "6 c #5B584B", "7 c #828281", "8 c #F3F3F3", "9 c #C0BFBC", "0 c #C9C7C1", "a c #CDCCC9", "b c #D1D1D0", "c c #D9D9D9", "d c #E2E2E2", "e c #E5E5E5", "f c #6A6264", "g c #A89594", "h c #FCEBE7", "i c #FCEFE6", "j c #F1DFC7", "k c #DEC4B6", "l c #D6BAB6", "m c #E0CEBD", "n c #BCAC9B", "o c #B6A595", "p c #D5C1AF", "q c #C4B99B", "r c #A09D76", "s c #5D5C3F", "t c #727372", "u c #EDEDED", "v c #E3E3E2", "w c #B4AE97", "x c #DED2A1", "y c #DBCFA1", "z c #D6CBA0", "A c #D3C9A0", "B c #C8C0A2", "C c #827D74", "D c #B19E9D", "E c #F3D6D6", "F c #F7DEDB", "G c #F9E9E4", "H c #F6E8D7", "I c #E7D0BC", "J c #D5B8B4", "K c #DECBBB", "L c #BAA998", "M c #BFAC9C", "N c #D6C4AD", "O c #AAA581", "P c #919066", "Q c #8B8960", "R c #625C47", "S c #989596", "T c #535353", "U c #FBFBFB", "V c #D6D5D2", "W c #C0B792", "X c #F2E2A4", "Y c #F3E3A4", "Z c #F4E4A4", "` c #F4E4A5", " . c #B0A78B", ".. c #78726F", "+. c #FCEEE8", "@. c #F9E6E1", "#. c #F5DBD9", "$. c #F5DCDA", "%. c #F9EAE2", "&. c #F1E0CC", "*. c #D7B9B6", "=. c #DDCABB", "-. c #BAA99A", ";. c #D2BEAD", ">. c #ABA682", ",. c #939166", "'. c #97906B", "). c #B09F82", "!. c #C4A694", "~. c #62524F", "{. c #E3E3E3", "]. c #353535", "^. c #A4A4A4", "/. c #BEBEBE", "(. c #F6F6F6", "_. c #C7C5BF", ":. c #C4B98C", "<. c #E8D99D", "[. c #E9DA9E", "}. c #EBDB9E", "|. c #EBDC9F", "1. c #7E7A75", "2. c #C1B39F", "3. c #F8EADA", "4. c #FAEDE3", "5. c #FAE8E3", "6. c #F6DFDD", "7. c #F7E0DE", "8. c #F9EDE5", "9. c #EDE3DE", "0. c #EFE7E0", "a. c #DED6CF", "b. c #CDC6B0", "c. c #9B946E", "d. c #C2A893", "e. c #DABAAC", "f. c #ECCFC2", "g. c #AC9C91", "h. c #807F7F", "i. c #515151", "j. c #292928", "k. c #9D967E", "l. c #CEC396", "m. c #BBB28C", "n. c #9B9476", "o. c #9D9782", "p. c #85816F", "q. c #958C68", "r. c #A99E72", "s. c #B1A577", "t. c #B9AD7D", "u. c #DAD6C6", "v. c #7A6C68", "w. c #DDC3B0", "x. c #E7D0B9", "y. c #EBD7C1", "z. c #F3E3D1", "A. c #F8E8DC", "B. c #FBF1EE", "C. c #FDFDFC", "D. c #9C9595", "E. c #9B9693", "F. c #B0ACA5", "G. c #E2D8BA", "H. c #B2A894", "I. c #DBC1B1", "J. c #EED9CA", "K. c #EFE4D1", "L. c #EDEBD5", "M. c #F3F5DD", "N. c #60615F", "O. c #3D3D3D", "P. c #434343", "Q. c #97948B", "R. c #F0E1A4", "S. c #F8E8A8", "T. c #F6E6A7", "U. c #EEDFA4", "V. c #DED099", "W. c #D5C791", "X. c #C5B885", "Y. c #BEB280", "Z. c #AFA477", "`. c #C4C0B3", " + c #725E61", ".+ c #CCADAC", "++ c #CFB0AF", "@+ c #D2B5B0", "#+ c #DBC0B4", "$+ c #E2C9B9", "%+ c #FAF5EE", "&+ c #B5B2AE", "*+ c #726B5F", "=+ c #A79C75", "-+ c #5E5C5A", ";+ c #B6B0AA", ">+ c #BEBBB6", ",+ c #E9E5D4", "'+ c #E0E3D4", ")+ c #DBE1D3", "!+ c #D5DDD3", "~+ c #D4DFD7", "{+ c #828786", "]+ c #2C2D2D", "^+ c #B6B6B6", "/+ c #CBBF92", "(+ c #F5E5A5", "_+ c #D3CFBB", ":+ c #7F706B", "<+ c #E2C7BD", "[+ c #DCC1BB", "}+ c #DBC0BA", "|+ c #DBBFB9", "1+ c #D8BCB7", "2+ c #FCF8F7", "3+ c #736E6C", "4+ c #CBC195", "5+ c #D5C790", "6+ c #918B73", "7+ c #9FA09D", "8+ c #EAEEEB", "9+ c #D1D8D0", "0+ c #C9D1CA", "a+ c #C7CFCA", "b+ c #C6CEC9", "c+ c #C5CECA", "d+ c #8D9190", "e+ c #242424", "f+ c #989176", "g+ c #EBDB9F", "h+ c #EADA9E", "i+ c #DCD6C3", "j+ c #725F62", "k+ c #CDAEAD", "l+ c #D2B5B1", "m+ c #D6BAB3", "n+ c #DDC2B4", "o+ c #E0C7B7", "p+ c #F9F5F1", "q+ c #B6B2B1", "r+ c #68635D", "s+ c #938B7A", "t+ c #464542", "u+ c #B3AEA7", "v+ c #F3F1ED", "w+ c #E8E5D6", "x+ c #E3E7D6", "y+ c #DDE2D4", "z+ c #D4DDD7", "A+ c #828785", "B+ c #2D2D2E", "C+ c #949186", "D+ c #C8BC8B", "E+ c #DFD196", "F+ c #DED096", "G+ c #DDCF96", "H+ c #DDCF95", "I+ c #7A6E69", "J+ c #DCC5B0", "K+ c #ECD6BF", "L+ c #F0DEC7", "M+ c #F5E7D6", "N+ c #F9EBE2", "O+ c #FBEDEA", "P+ c #FEFCFC", "Q+ c #C0BBB9", "R+ c #908B88", "S+ c #BEB9B0", "T+ c #DDDBCD", "U+ c #BDB098", "V+ c #D0B6A3", "W+ c #E8CFC1", "X+ c #EFDECD", "Y+ c #F3ECD4", "Z+ c #EFECD5", "`+ c #5B5D5A", " @ c #414242", ".@ c #B1B0AB", "+@ c #ACA37D", "@@ c #D6C890", "#@ c #D5C78F", "$@ c #D4C68F", "%@ c #817D79", "&@ c #C1B4A0", "*@ c #FAECDC", "=@ c #F9E7E2", "-@ c #F6DFDC", ";@ c #F7E1DF", ">@ c #F9EEE5", ",@ c #F1E6E3", "'@ c #F4EDE9", ")@ c #D5CBC0", "!@ c #C2B99E", "~@ c #939267", "{@ c #C2A993", "]@ c #ECCFC3", "^@ c #AD9E92", "/@ c #868484", "(@ c #525252", "_@ c #CFCFCF", ":@ c #948E77", "<@ c #C9BC89", "[@ c #C9BB88", "}@ c #C9BB87", "|@ c #C8BB87", "1@ c #C7BA87", "2@ c #A39A78", "3@ c #6E6A68", "4@ c #F7E9E4", "5@ c #F8E3E0", "6@ c #F5D9D8", "7@ c #F6DEDC", "8@ c #EFDDC8", "9@ c #D5B6B3", "0@ c #DBC8B8", "a@ c #B7A594", "b@ c #D2BEAE", "c@ c #B4AC8A", "d@ c #96946C", "e@ c #918D66", "f@ c #A79979", "g@ c #B59A85", "h@ c #60514F", "i@ c #F2F2F3", "j@ c #E7E7E7", "k@ c #88867C", "l@ c #BFB382", "m@ c #BFB282", "n@ c #BFB281", "o@ c #BEB181", "p@ c #BEB180", "q@ c #BDB180", "r@ c #BDB287", "s@ c #807C72", "t@ c #A39391", "u@ c #F9DBDA", "v@ c #F6DDDC", "w@ c #FAE9E4", "x@ c #F7E9D8", "y@ c #E7D1BC", "z@ c #D5B9B4", "A@ c #C0AD9D", "B@ c #D3C0AB", "C@ c #929067", "D@ c #8E8B62", "E@ c #55503E", "F@ c #938F91", "G@ c #FCFCFC", "H@ c #989795", "I@ c #A39972", "J@ c #B3A879", "K@ c #B3A779", "L@ c #B2A778", "M@ c #B2A678", "N@ c #B1A678", "O@ c #696158", "P@ c #8D7E7E", "Q@ c #FEEFEA", "R@ c #FBF0E6", "S@ c #EEDCC4", "T@ c #DCC1B5", "U@ c #D7BBB7", "V@ c #E1CEBD", "W@ c #BDAD9C", "X@ c #B5A495", "Y@ c #D5BFAE", "Z@ c #CDBEA4", "`@ c #9A9771", " # c #52513A", ".# c #8B8C8D", "+# c #F5F5F6", "@# c #C2C1C1", "## c #80795D", "$# c #A99E73", "%# c #A89D72", "&# c #A89D71", "*# c #A79C71", "=# c #A19670", "-# c #757068", ";# c #86817E", "># c #D9CDBC", ",# c #EDD7BE", "'# c #D4B7B0", ")# c #DABFBA", "!# c #E2CFBE", "~# c #C8B4A4", "{# c #C0AF9E", "]# c #565345", "^# c #838382", "/# c #F8F8F8", "(# c #F1F1F1", "_# c #605D4D", ":# c #968D66", "<# c #9D936A", "[# c #9C9269", "}# c #9B9269", "|# c #9B9169", "1# c #9B9168", "2# c #9A9068", "3# c #8E8666", "4# c #484537", "5# c #8C7F77", "6# c #A98F90", "7# c #BBA69F", "8# c #C1B2A3", "9# c #A59789", "0# c #998C81", "a# c #65605B", "b# c #565355", "c# c #E6E4E4", "d# c #FAFAFA", "e# c #65645F", "f# c #524D3B", "g# c #625C44", "h# c #787051", "i# c #877E5C", "j# c #8A825E", "k# c #8F8661", "l# c #918863", "m# c #918862", "n# c #918762", "o# c #908762", "p# c #908761", "q# c #89826A", "r# c #7D735E", "s# c #7F745C", "t# c #554F3F", "u# c #47433C", "v# c #636162", "w# c #A0A0A1", "x# c #EFEFEF", "y# c #C2C2C2", "z# c #A7A7A7", "A# c #959595", "B# c #636261", "C# c #5E5D57", "D# c #5F5C52", "E# c #535042", "F# c #514C3A", "G# c #605A43", "H# c #6A6348", "I# c #70694C", "J# c #7A7253", "K# c #827957", "L# c #827A58", "M# c #837A58", "N# c #827958", "O# c #56503A", "P# c #2F2E2B", "Q# c #7F7F7F", "R# c #DBDBDB", "S# c #EBEBEB", "T# c #DFDFDF", "U# c #C5C5C4", "V# c #B6B6B5", "W# c #B3B2B0", "X# c #72716D", "Y# c #65645E", "Z# c #5D5B53", "`# c #4A473C", " $ c #413D2E", ".$ c #4E4935", "+$ c #5D573F", "@$ c #4F4A36", "#$ c #3C3C3A", "$$ c #BFBFBF", "%$ c #FEFEFE", "&$ c #F7F7F7", "*$ c #E1E1E1", "=$ c #CECECE", "-$ c #C5C5C5", ";$ c #848484", ">$ c #6D6D6C", ",$ c #929292", ". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ # $ % + & * = @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ - ; > , ' ) ! ~ { ] ^ / - @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ ( _ : < [ } | 1 2 3 4 5 6 7 @ @ @ + ", "+ @ @ @ @ @ 8 9 0 a b c d e f g h i j k l m n o p q r s t u @ + ", "+ @ @ @ @ @ v w x y z A B C D E F G H I J K L M N O P Q R S @ + ", "T U @ @ @ @ V W X Y Z ` ...+.@.#.$.%.&.*.=.-.;.>.,.'.).!.~.{.+ ", "].^./.c (.@ _.:.<.[.}.|.1.2.3.4.5.6.7.8.9.0.a.b.P c.d.e.f.g.h.i.", "j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.", "P.Q.R.S.T.U.V.W.X.Y.Z.`. +.+++@+#+$+%+&+*+=+-+;+>+,+'+)+!+~+{+]+", "T ^+/+(+` ` ` ` ` ` Y _+:+<+[+}+|+1+2+3+4+5+6+7+8+9+0+a+b+c+d+e+", "+ e f+[.|.g+g+g+h+h+[.i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+!+z+A+B+", "+ @ C+D+E+F+F+F+F+G+H+H+I+J+K+L+M+N+O+P+Q+R+S+T+U+V+W+X+Y+Z+`+ @", "+ @ .@+@@@5+5+#@$@$@$@$@%@&@*@4.=@-@;@>@,@'@)@!@~@c.{@e.]@^@/@(@", "+ @ _@:@<@[@[@}@|@|@1@1@2@3@4@5@6@7@%.8@9@0@a@b@c@d@e@f@g@h@i@+ ", "+ @ j@k@l@m@n@n@o@p@q@q@r@s@t@u@v@w@x@y@z@K L A@B@O C@D@E@F@@ + ", "+ @ G@H@I@J@K@L@L@M@N@N@s.s.O@P@Q@R@S@T@U@V@W@X@Y@Z@`@ #.#+#@ + ", "+ @ @ @###r.$#r.%#&#&#&#*#*#=#-#;#>#,#'#)#!#2 3 ~#{#]#^#/#@ @ + ", "+ @ @ (#_#:#<#<#[#[#[#}#|#1#2#2#3#4#5#6#7#8#9#0#a#b#c#G@@ @ @ + ", "+ @ @ d#e#f#g#h#i#j#k#l#m#n#o#o#p#k#q#r#s#t#u#v#w#c U @ @ @ @ + ", "+ @ @ @ x#y#z#A#B#C#D#E#F#G#H#I#J#K#L#M#N#O#P#Q#R#d#@ @ @ @ @ + ", "+ @ @ @ @ @ @ G@x#S#T#U#V#W#X#Y#Z#`# $.$+$@$#$$$- @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ %$&$*$=$-$;$>$,$d#@ @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + ", "+ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + ", ". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . "}; gnomecatalog_0.3.4.2/share/pixmaps/star_unset.png0000644000175000017500000000145610743372432020555 0ustar josejosePNG  IHDR;mGbKGD pHYsHHFk>oIDATxڭTkawi/#% `,B]JE,"*Bbq`$K)d1R:zPڔ/w^(Q"UT|Yyx> \?g,666f:stannu^g333z9DQ]MӐd WD"7EQa_DQMAӴ^d*'lNQ1p8ONN>V%AVywwAP(,dYYb Yq<σ}BtP*-..>u`TUhe$ A8JR[YYy{ttԼ`$IP*eu]evB]etQQHϙ1~8o V-//1~'LF)`AQC}ABP4|<}.R)4 1: database = sys.argv[1] else: database = self.config.get("database") self.data.open_database(database) self.__id_search = None self.restore_state() def save_state(self): """Guarda el estado""" pos = self.mainApp.get_position() size = self.mainApp.get_size() self.config.save("width", size[0]) self.config.save("height", size[1]) self.config.save("left", pos[0]) self.config.save("top", pos[1]) def reload_categories(self): model = gtk.ListStore(str, str, bool) self.combobox_categories.set_model(model) model.append([_("Categories") + " / "+ _("File types"), "", False]) model.append(["@@--types--@@", "@@--types--@@", True]) for id, name in self.data.db.get_categories(): model.append([name, id, False]) self.combobox_categories.set_active(0) model.append(["@@--types--@@", "@@--types--@@", True]) self.combobox_categories.set_row_separator_func(self.__combo_categories) for key, name in {"audio" : _("Audio files"), "image" : _("Image files"), "text" : _("Text files"), "video" : _("Video files")}.items(): model.append([name, key, True]) def __combo_categories(self, model, iter): return model[iter][0] == "@@--types--@@" def get_selected_category(self): iter= self.combobox_categories.get_active_iter() model = self.combobox_categories.get_model() return [model[iter][1], model[iter][2]] #print model[iter][1] #self.data.treeFiles.filter(model[iter][1], model[iter][2]) #if not self.combobox_categories.get_active() == 0: # return self.combobox_categories.get_active_text() #return None def restore_state(self): self.create_search_entry() self.create_progress_bar() self.mainApp.move(int(self.config.get("left")), int(self.config.get("top"))) self.mainApp.resize(int(self.config.get("width")), int(self.config.get("height"))) self.reload_categories() self.mainApp.show() def create_progress_bar(self): self.hbox_import = gtk.HBox() self.progress_bar = gtk.ProgressBar() self.progress_bar.set_size_request(400, -1) self.progress_bar.set_ellipsize(pango.ELLIPSIZE_MIDDLE) self.progress_bar.show() self.button_import_stop = gtk.Button('Stop', gtk.STOCK_STOP) self.button_import_stop.connect("clicked",self.on_import_stop) self.button_import_stop.show() self.hbox_import.pack_start(self.progress_bar, True, True) self.hbox_import.pack_start(self.button_import_stop, False, False) self.statusBar.pack_end(self.hbox_import) def create_search_entry(self): if has_sexy: self.search_entry = sexy.IconEntry() self.search_entry.set_icon(sexy.ICON_ENTRY_PRIMARY,gtk.image_new_from_stock(gtk.STOCK_FIND,gtk.ICON_SIZE_BUTTON)) self.search_entry.add_clear_button() else: self.search_entry = gtk.Entry() self.search_entry.connect("changed",self.on_search_changed) toolitem = gtk.ToolItem() toolitem.add(self.search_entry) self.toolbar_top.insert(toolitem, 6) self.search_entry.show() toolitem.show() rc_style = self.search_entry.rc_get_style() self.entry_active_style = rc_style.copy() self.entry_active_style.base[ gtk.STATE_NORMAL] = rc_style.base[gtk.STATE_SELECTED] self.entry_active_style.text[ gtk.STATE_NORMAL] = rc_style.text[gtk.STATE_SELECTED] self.entry_active_style.base[ gtk.STATE_ACTIVE] = rc_style.base[gtk.STATE_NORMAL] self.entry_active_style.text[ gtk.STATE_ACTIVE] = rc_style.text[gtk.STATE_NORMAL] self.entry_active_style.base[ gtk.STATE_SELECTED] = rc_style.base[gtk.STATE_ACTIVE] self.entry_active_style.text[ gtk.STATE_SELECTED] = rc_style.text[gtk.STATE_ACTIVE] ##################################### # EVENTOS DE LA VENTANA PRINCIPAL ##################################### def on_toolbutton_preferencias_clicked(self, window): dialogs.preferences(self.config) def on_combobox_categories_changed(self, widget): pass #iter= self.combobox_categories.get_active_iter() #model = self.combobox_categories.get_model() #print model[iter][1] #self.data.treeFiles.filter(model[iter][1], model[iter][2]) ##################################### # ACCIONES DEL TOOLBAR ##################################### def on_toolbutton_add_clicked(self, window): self.hbox_import.show() # addDialog = dialogs.addDisk(self.data) self.import_thread = threading.Thread(target=self.data.import_disk) # self.import_thread.setDaemon(True) self.import_thread.start() gobject.timeout_add(1000, self.wait_import_cb) # t2 = threading.Thread(target=self.wait_import_cb) # t2.setDaemon(True) # t2.start() # gobject.idle_add(self.wait_import_cb, t) #dialogs.addDisk(self.data).loadDisk() def wait_import_cb(self): if not self.import_thread.isAlive(): self.hbox_import.hide() self.data.load_data() return False return True def on_import_stop(self, widget): self.data.reader.cancel_import_disk() print "stop" def on_toolbutton_borrar_clicked(self, window): self.data.remove_selected() def on_toolbutton_buscar_clicked(self, window): if self.data.is_searching(): self.data.cancel_action() else: self.data.search(self.search_entry.get_text(), self.get_selected_category()) def on_search_changed(self, entry, selected_last_selected = False): if entry.get_text() != "": entry.set_style(self.entry_active_style.copy()) if self.__id_search != None: gobject.source_remove(self.__id_search) self.__id_search = gobject.timeout_add(800, self.on_search_changed_cb,entry, selected_last_selected) else: entry.set_style(None) self.data.show_files_from_selected() def on_search_changed_cb(self, entry, selected_last_selected = False): # print "Buscando" self.data.search(entry.get_text(), self.get_selected_category()) return False ##################################### # ACCIONES SOBRE LOS TREEVIEWS ##################################### # Pulsamos sobre el disco o directorio y hay que cargar los discos def on_treeviewDisk_row_activated(self,widget, iter, path): self.data.show_files_from_selected() def on_treeviewDisk_cursor_changed(self, three): self.data.show_files_from_selected() # Esto es para precargar los directorios al abrirlos def on_treeviewDisk_row_expanded(self, widget, iter, path): self.data.preload_data(iter) # Se pulsa sobre la lista de ficheros. def on_treeviewFiles_row_activated(self, widget, iter, column): pass #print widget, iter, column #self.data.clickOnFiles(iter) ##################################### # ACCIONES DEL MENU ##################################### def on_menu_abrir_activate(self, widget): self.data.open_database(dialogs.FileDialogs().open()) def on_menu_nuevo_activate(self, widget): self.data.open_database(dialogs.FileDialogs().new()) def on_menu_nuevo_catalogo_activate(self, widget): self.data.new_catalog() def on_menu_compactar_activate(self, window): self.data.db.compress() def on_treeviewFiles_popup_menu(self, window, event): if event.type == gtk.gdk._2BUTTON_PRESS: self.data.click_on_fileview() if event.button == 3: # Si se pulsa el boton derecho self.menu_files.popup(None,None,None,event.button, event.time) self.data.treeFiles.check_star_clicked(event) def on_treeviewDisk_button_press_event(self, widget, event): if event.type == gtk.gdk._2BUTTON_PRESS: item, iter = self.data.treeDisk.get_selected() if item.is_catalog() or item.is_disk(): dialogs.InfoDiskDialogs(self).show(item) if event.button == 3: self.menu_disks.popup(None, None, None, event.button, event.time) def on_treeviewDisk_key_press_event(self, entry, event): if event.keyval == 65471: # f2 key self.data.treeDisk.edit() def on_treeviewFiles_key_press_event(self, entry, event): if event.keyval == 65471: # f2 key self.data.treeFiles.edit() def on_mainApp_button_press_event(self, entry, event): pass def on_renombrar_activate(self, widget): self.data.treeFiles.edit() def on_menu_disks_rename_activate(self, widget): self.data.treeDisk.edit() def on_menu_edit_comments_categories_activate(self, window): self.data.show_properties_dialog() def on_menu_info_activate(self, window): self.data.show_information_dialog() def on_menu_disks_info_activate(self, window): dialogs.InfoDiskDialogs().show(self.data.treeDisk.get_selected()); def on_menu_guardar_activate(self, window): self.data.save_database(False) def on_guardar_como_activate(self, window): self.data.database_filename, clear_thumbnails = dialogs.FileDialogs().save_as() self.data.save_database(clear_thumbnails) self.data.open_database(self.data.database_filename) def on_menu_acercade_activate(self, window): dialogs.acercaDe(self.app_info) def on_import_menu_activate(self, widget): dialogs.Import(self.config, self.data) def on_exportar_menu_activate(self, widget): dialogs.Export(self.config, self.data) def on_menu_quit_activate(self, window, other=None): if not self.estado_guardado: dialogs.quitDialog(self) return True else: self.quit() def quit(self): self.data.close_database() self.save_state() gtk.main_quit() def set_guardar_state(self, state): self.estado_guardado = not state self.toolbutton_guardar.set_sensitive(state) self.menu_guardar.set_sensitive(state) gnomecatalog_0.3.4.2/gnomecatalog/ui/dialogs.py0000644000175000017500000003213610743466511020147 0ustar josejose# -*- coding: UTF-8 -*- import gtk, gnome, gnome.ui import string, os from gnomecatalog import utils from gnomecatalog.ui.gladeconnect import GladeConnect ##################################### # DIALOGOS DE FICHEROS ##################################### class FileDialogs: def open(self): dialog = gtk.FileChooserDialog(_("Open database"), None, gtk.FILE_CHOOSER_ACTION_OPEN, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) dialog.set_default_response(gtk.RESPONSE_OK) filter = gtk.FileFilter() filter.set_name(_("Gnome Catalog Files")) filter.add_pattern("*.gcatalog") dialog.add_filter(filter) filter = gtk.FileFilter() filter.set_name(_("All files")) filter.add_pattern("*") dialog.add_filter(filter) response = dialog.run() if response == gtk.RESPONSE_OK: file = dialog.get_filename() dialog.destroy() return file elif response == gtk.RESPONSE_CANCEL: dialog.destroy() return None dialog.destroy() def new(self): dialog = gtk.FileChooserDialog(_("New database"), None, gtk.FILE_CHOOSER_ACTION_SAVE, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_SAVE, gtk.RESPONSE_OK)) dialog.set_default_response(gtk.RESPONSE_OK) filter = gtk.FileFilter() filter.set_name(_("Gnome Catalog Files")) filter.add_pattern("*.gcatalog") dialog.add_filter(filter) filter = gtk.FileFilter() filter.set_name(_("All files")) filter.add_pattern("*") dialog.add_filter(filter) response = dialog.run() if response == gtk.RESPONSE_OK: file = dialog.get_filename() dialog.destroy() if(string.split(file, ".")[0] != "db"): file = file + ".gcatalog" return file elif response == gtk.RESPONSE_CANCEL: dialog.destroy() return None dialog.destroy() def save_as(self): dialog = gtk.FileChooserDialog(_("Save as"), None, gtk.FILE_CHOOSER_ACTION_SAVE, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_SAVE, gtk.RESPONSE_OK)) dialog.set_default_response(gtk.RESPONSE_OK) filter = gtk.FileFilter() filter.set_name(_("Gnome Catalog Files")) filter.add_pattern("*.gcatalog") dialog.add_filter(filter) filter = gtk.FileFilter() filter.set_name(_("All files")) filter.add_pattern("*") dialog.add_filter(filter) check = gtk.CheckButton(_("Don't save thumbnails.")) dialog.set_extra_widget(check) response = dialog.run() if response == gtk.RESPONSE_OK: file = dialog.get_filename() dialog.destroy() if(string.split(file, ".")[0] != "db"): file = file + ".gcatalog" return [file, check.get_active()] elif response == gtk.RESPONSE_CANCEL: dialog.destroy() return None dialog.destroy() class InfoDialogs(GladeConnect): def __init__(self): GladeConnect.__init__(self, "dialogs.glade", {"on_info_borrar_activate" : self.on_info_borrar_activate }) def show(self, file): self.glade.get_widget("label_info").set_use_markup(True) self.label_info.set_markup(utils.encode(self.get_file_description(file))) self.info_filename.set_markup("" + file.name + " ") self.info_fileimage.set_from_pixbuf(file.get_icon(48)) w, h = self.label_info.get_layout().get_pixel_size() self.window_info.show() def on_info_borrar_activate(self, widget): self.window_info.destroy() def get_file_description(self, file): txt = "" + _("Type") + ": " + file.mime + "\n" txt = txt + "" + _("Size") + ": " + utils.getSize(file.size) + "\n\n" meta = file.get_metadata() for key, value in meta.items(): txt += "" + key + ": " + value + "\n" return txt class InfoDiskDialogs(GladeConnect): def __init__(self, app): self.app = app GladeConnect.__init__(self, "dialogs.glade", { "on_button_disk_cancel_clicked" : self.on_button_cancel, "on_button_disk_accept_clicked" : self.on_button_accept }) def show(self, item): self.disk = item self.image_disk.set_from_pixbuf(self.disk.get_icon()) self.entry_disk_name.set_text(self.disk.name) if self.disk.comment: self.text_disk_comments.get_buffer().set_text(self.disk.comment) if self.disk.borrow: self.entry_disk_borrowed.set_text(self.disk.borrow) self.window_info_disk.show() def on_button_accept(self, widget): if self.disk.name != self.entry_disk_name.get_text(): self.disk.name = self.entry_disk_name.get_text() self.app.set_guardar_state(True) startiter, enditer = self.text_disk_comments.get_buffer().get_bounds() comment = self.text_disk_comments.get_buffer().get_text(startiter, enditer) if self.disk.comment != comment: self.disk.comment = comment self.app.set_guardar_state(True) if self.disk.borrow != self.entry_disk_borrowed.get_text(): self.disk.borrow = self.entry_disk_borrowed.get_text() self.app.set_guardar_state(True) self.window_info_disk.destroy() def on_button_cancel(self, widget): self.window_info_disk.destroy() class PropertiesDialog(GladeConnect): def __init__(self): gtk.glade.textdomain("gnomecatalog") GladeConnect.__init__(self, "dialogs.glade") def run(self, files, data, callback): self.callback = callback self.files = files self.rating = 0 self.model = gtk.ListStore(int, 'gboolean', str) self.tree = self.categories_treeview self.tree.set_model(self.model) self.data = data column = gtk.TreeViewColumn(_("Categories")) self.tree.append_column(column) cellBool = gtk.CellRendererToggle() cellText = gtk.CellRendererText() column.pack_start(cellBool, False) column.pack_start(cellText, True) column.set_attributes(cellText, text=2) column.set_attributes(cellBool, active=1) cellBool.connect("toggled", self.toggled_cb, (self.model, column)) if len(files) == 1: rating = files[0].rating if files[0].comment: comment = files[0].comment else: comment = "" selected_categories = files[0].get_categories() else: rating = 0 comment = "" selected_categories = [] print selected_categories for id, cat in data.db.get_categories(): if id in selected_categories: active = True else: active = False self.model.append([id, active, cat]) self.setRating(rating) self.glade.get_widget("categories_comment").get_buffer().set_text(comment) self.glade.get_widget("window_categories").show() def on_eventbox_key_press_event(self, widget, event): self.setRating(string.split(widget.name, "_")[1]) def setRating(self, rating): if not rating: rating = 0 self.rating = rating for i in range(1,6): print i if i > int(rating): icon = self.data.icons["star_off"] else: icon = self.data.icons["star_on"] self.glade.get_widget("image_rating_" + str(i)).set_from_pixbuf(icon) def on_categories_button_aceptar_activate(self, widget): text = self.glade.get_widget("categories_comment") startiter, enditer = text.get_buffer().get_bounds() comment = text.get_buffer().get_text(startiter, enditer) self.callback(self.files, self.model, comment, self.rating) self.glade.get_widget("window_categories").destroy() def on_categories_button_cancelar_activate(self, widget): self.glade.get_widget("window_categories").destroy() def toggled_cb(self , cell, path, user_data): model, column = user_data model[path][1] = not model[path][1] return def on_button_nuevo_clicked(self, widget): dialog = textDialog() category = dialog.run(_("New category"), self.newCategory) def on_button_quitar_clicked(self, widget): (model, iter) = self.tree.get_selection().get_selected() if iter: self.data.db.delete("categories", model[iter][0]) model.remove(iter) def newCategory(self, text): self.model.append([0, False, text]) class textDialog(GladeConnect): def __init__(self): signals = { # Menu "on_dialog_button_aceptar_clicked" : self.on_button_accept ,"on_dialog_button_cancelar_clicked" : self.on_button_cancel ,"on_dialog_entry_key_press_event" : self.on_dialog_entry_key_press_event } GladeConnect.__init__(self, "dialogs.glade", signals) def run(self, txt, callback): self.callback = callback self.window_dialog.set_title(txt) self.dialog_label.set_text(txt) self.window_dialog.show() def close(self): self.window_dialog.destroy() def on_button_accept(self, widget): self.callback(self.dialog_entry.get_text()) self.close() def on_button_cancel(self, widget): self.close() def on_dialog_entry_key_press_event(self, entry, event): if event.keyval == 65293: # Pulsa enter self.on_button_accept(entry); class preferences(GladeConnect): def __init__(self, config): self.config = config GladeConnect.__init__(self, "dialogs.glade") self.filechooserbutton_preferences.set_uri(str(self.config.get("source"))) if self.config.get("eject") == "True": self.checkbutton_expulsar.set_active(True) if self.config.get("thumbnails") == "True": self.checkbutton_thumbnails.set_active(True) self.window_preferences.show() def on_button_preferences_aceptar_clicked(self, widget): self.config.save("source", utils.encode(self.filechooserbutton_preferences.get_uri())) self.config.save("eject", self.checkbutton_expulsar.get_active()) self.config.save("thumbnails", self.checkbutton_thumbnails.get_active()) self.window_preferences.hide() def on_button_preferences_cancelar_clicked(self, widget): self.window_preferences.hide() class addDisk(GladeConnect): def __init__(self, data): GladeConnect.__init__(self, "dialogs.glade") self.addDiskDialog.show() self.data = data def load_disk(self): # self.data = data progress = self.progressbar_addDisk progress.set_text(""); progress.show(); while (gtk.events_pending ()): gtk.main_iteration (); iddisk = self.data.import_disk(self.data.config.get("source"), progress); self.on_add_cancel(True) # self.data.load_data() # self.data.treeDisk.select_item(iddisk) # hay que hacer que edite # self.data.show_files_from_selected() # self.data.eject() def on_add_cancel(self, window): self.data.reader.cancel_import_disk() self.addDiskDialog.hide() class quitDialog(GladeConnect): def __init__(self, app): self.app = app GladeConnect.__init__(self, "dialogs.glade") self.dialog_quit.show() def on_button_quit_guardar_clicked(self, window): self.app.data.save_database(False) self.app.quit() def on_button_quit_cancelar_clicked(self, window): self.dialog_quit.hide() def on_button_quit_cerrar_sin_guardar_clicked(self, window): self.app.quit() class acercaDe(gtk.AboutDialog): def __init__(self, app_info): gtk.AboutDialog.__init__(self) self.set_name(app_info['name']) self.set_version(app_info['version']) self.set_website("http://gnomecatalog.sf.net") self.set_website_label("http://gnomecatalog.sf.net") self.set_authors(app_info['authors']); self.set_translator_credits(app_info["translators"]) self.set_logo(gtk.gdk.pixbuf_new_from_file(utils.locate_file('gcatalog.png', "icons"), )); self.set_copyright("Copyright (c) 2004-2007 José Sánchez Moreno."); self.set_comments("Gnome Catalog program.") self.run() self.destroy() class Export(gtk.FileChooserDialog): def __init__(self, config, data): gtk.FileChooserDialog.__init__(self, _("Export database"), None, gtk.FILE_CHOOSER_ACTION_SAVE, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_SAVE, gtk.RESPONSE_OK)) combo = gtk.combo_box_new_text() combo.append_text("csv") # combo.append_text("HTML") # combo.append_text("XML Tellico") combo.set_active(0) self.set_extra_widget(combo) # filter = gtk.FileFilter() # filter.set_name(_("Gnome Catalog Files")) # filter.add_pattern("*.gcatalog") # self.add_filter(filter) filter = gtk.FileFilter() filter.set_name(_("All files")) filter.add_pattern("*") self.add_filter(filter) response = self.run() if response == gtk.RESPONSE_OK: file = self.get_filename() if(len(string.split(os.path.basename(file), ".")) == 1): file = file + ".csv" self.destroy() data.export(file, 'csv') elif response == gtk.RESPONSE_CANCEL: self.destroy() class Import(gtk.FileChooserDialog): def __init__(self, config, data): gtk.FileChooserDialog.__init__(self, _("Import database"), None, gtk.FILE_CHOOSER_ACTION_OPEN, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) filter = gtk.FileFilter() filter.set_name(_("Cdcat files")) filter.add_pattern("*.hcf") self.add_filter(filter) response = self.run() if response == gtk.RESPONSE_OK: file = self.get_filename() self.destroy() from gnomecatalog import importdata imp = importdata.Cdcat(data) imp.open(file) elif response == gtk.RESPONSE_CANCEL: self.destroy() gnomecatalog_0.3.4.2/gnomecatalog/ui/treeviews.py0000644000175000017500000002307710743466511020546 0ustar josejose# -*- coding: UTF-8 -*- import gtk, string import gobject from gnomecatalog import utils class Tree: def __init__(self, tree, db): self.tree = tree self.db = db self.model = gtk.TreeStore(int, str, gtk.gdk.Pixbuf, gobject.TYPE_PYOBJECT) self.tree.set_model(self.model) self.tree.set_reorderable(True) self.tree.set_rules_hint(True) # Alternal el color de las filas self.column = gtk.TreeViewColumn(_("Disks")) self.tree.append_column(self.column) self.cellicon = gtk.CellRendererPixbuf() self.cellicon.set_property('xpad', 2) self.cell = gtk.CellRendererText() self.cell.set_property('editable', False) self.cell.connect('edited', self.edited_cb, self.model) self.cell.connect('editing-started', self.editing_started, self.model) self.column.pack_start(self.cellicon, False) self.column.pack_start(self.cell, True) self.column.set_attributes(self.cellicon, pixbuf=2) self.column.set_attributes(self.cell, markup=1) self.tree.set_search_column(True) self.column.set_sort_column_id(1) self.tree.connect("drag_data_received", self.drag_data_received_data) def edit(self): (model, pathlist) = self.tree.get_selection().get_selected_rows() if len(pathlist) == 0: return path = pathlist[0] self.tree.get_selection().select_path(path) self.cell.set_property('editable', True) self.tree.set_cursor(path, self.column, start_editing=True) def drag_data_received_data(self, treeview, context, x, y, selection, info, etime): source_path = selection.data[4:] # path del source source_item = self.get_item(self.model.get_iter(source_path)) drop_info = treeview.get_dest_row_at_pos(x, y) if drop_info: path, position = drop_info dest_item = self.get_item(self.model.get_iter(path)) if(position == gtk.TREE_VIEW_DROP_INTO_OR_BEFORE or position == gtk.TREE_VIEW_DROP_INTO_OR_AFTER): if dest_item.is_catalog(): source_item.idcatalog = dest_item.id return True else: if source_item.is_dir(): return False source_item.idcatalog = 0 def get_item(self, iter): return self.model[iter][3] def edited_cb(self, cellrenderer, row , value, model): item = self.get_item(row) model[row][1] = item.name = value self.cell.set_property('editable', False) def unselect_all(self): self.tree.get_selection().unselect_all() def editing_started(self, cell, editable, path, data): item = self.model[path][3] if item.is_dir(): editable.destroy() return False def select(self, item): iter = self.model.foreach(self.__select_handler, item) self.set_selected(self.__searchIter) def __select_handler(self, model, path, iter, item = None): file = self.get_item(iter) found = False if item.is_catalog(): if file.id == item.id and file.is_catalog(): found = True elif item.is_disk(): if file.id == item.id and file.is_disk(): found = True elif item.is_dir(): if file.id == item.id and file.is_dir(): found = True if found: self.__searchIter = iter return True def clear(self): self.model.clear() def insert(self, item, iter = None): iter = self.model.append(iter, [item.id, item.get_text(), item.get_icon(), item]) item.iter = iter return iter def set_value(self, iter, column, value): self.model.set_value(iter, column, value) def get_selected(self): (model, iter) = self.tree.get_selection().get_selected() return model[iter][3], iter def set_selected(self, iter): try: self.tree.expand_to_path(self.model.get_path(iter)) except: pass self.tree.get_selection().select_iter(iter) def remove(self, iter): self.model.remove(iter) class Files: color = '#606060' def __init__(self, tree, db): self.tree = tree self.db = db self.icons = { "star_on" : gtk.gdk.pixbuf_new_from_file_at_size(utils.locate_file("star_set.png", "icons"), 16,16), "star_off" : gtk.gdk.pixbuf_new_from_file_at_size(utils.locate_file("star_unset.png", "icons"), 16,16) } self.edit_enabled = True # texto, tamaño, icono, item, size, rating # 0 1 2 3 4 5 self.model = gtk.ListStore(str, str, gtk.gdk.Pixbuf, gobject.TYPE_PYOBJECT, int, int) self.tree.set_model(self.model) self.tree.set_reorderable(False) self.tree.set_headers_clickable(True) self.tree.set_rules_hint(True) self.tree.set_search_column(0) column = gtk.TreeViewColumn(_("Files")) column.set_resizable(True) column.set_clickable(True) column.set_reorderable(True) column.set_expand(True) column.set_sort_column_id(0) self.file_column = column celltext = gtk.CellRendererText() column2 = gtk.TreeViewColumn(_("Size"), celltext, markup=1) column2.set_resizable(True) column2.set_clickable(True) column2.set_sort_column_id(4) column3 = gtk.TreeViewColumn(_("Rating")) column3.set_resizable(True) column3.set_clickable(True) column3.set_sort_column_id(5) for i in range(1, 6): renderer_pixbuf = gtk.CellRendererPixbuf() if i == 1: renderer_pixbuf.set_property('xalign', 1.0) renderer_pixbuf.set_property('width', 25) column3.pack_start(renderer_pixbuf, False) column3.set_cell_data_func(renderer_pixbuf, self.cell_paint_rating, i) column3.set_max_width(120) column3.set_alignment(0) self.column_star = column3 self.tree.append_column(column) self.tree.append_column(column2) self.tree.append_column(column3) cellicon = gtk.CellRendererPixbuf() cellicon.set_property('xpad', 2) renderer = gtk.CellRendererText() # renderer.set_property('editable', True) self.renderer = renderer renderer.connect('edited', self.edited_cb, self.model) renderer.connect('editing-started', self.edited_started, self.model) column.pack_start(cellicon, False) column.pack_start(renderer, True) column.set_attributes(cellicon, pixbuf=2) column.set_attributes(renderer, markup=0) self.tree.get_selection().set_mode(gtk.SELECTION_MULTIPLE) #self.modelfilter = self.model.filter_new() #self.modelfilter.set_visible_func(self.__filter_func) #self.tree.set_model(self.modelfilter) def edit(self): (model, pathlist) = self.tree.get_selection().get_selected_rows() if len(pathlist) == 0: return path = pathlist[0] self.tree.get_selection().select_path(path) self.renderer.set_property('editable', True) self.tree.set_cursor(path, self.file_column, start_editing=True) """ Paint rating """ def cell_paint_rating(self, column, cell, model, iter, data): item = self.get_item(iter) if item.is_file(): if data <= item.rating: cell.set_property('pixbuf', self.icons["star_on"]) else: cell.set_property('pixbuf', self.icons["star_off"]) def edited_started(self, cell, editable, path, data): item = self.get_item(path) if not self.edit_enabled or item.is_disk() or item.is_catalog(): editable.destroy() return False self.renderer.set_property('editable', False) editable.set_text(item.name) def get_item(self, iter): return self.model[iter][3] def edited_cb(self, cellrenderer, row , value, model): item = self.get_item(row) txt = "" if item.comment: txt = txt + "\n" + item.comment + "" self.model[row][0] = utils.encode(value + txt) item.name = value def count(self): return len(self.model) def clear(self): self.model.clear() def reload_file_names(self): self.model.foreach(self.__foreach_reload_file_names) def __foreach_reload_file_names(self, model, path, iter, value = None): item = self.get_item(iter) self.model[iter][0] = self.__get_item_text(item) def insert(self, item, iter = None, search = False): if item.size == None: size = 0 else: size = item.size size_txt = "" + utils.getSize(item.size) + ""; if item.rating == None: rating = 0 else: rating = item.rating iter = self.model.append([self.__get_item_text(item, search), size_txt, item.get_icon(), item, size, rating]) item.iter = iter return iter def __get_item_text(self, item, search = False): text = item.name if search: text = text + "\n" + item.get_location() + "" if item.comment: text = text + "\n" + item.comment + "" if item.is_file(): duration = item.get_duration() if duration: text = text + " (" + utils.get_length(float(duration)) + ")" return text def get_size(self): self.__size = 0 self.model.foreach(self.foreach_handler_dirs) return self.__size def foreach_handler_dirs(self, model, path, iter, value = None): self.__size =self.__size + model[iter][4] def get_selected_files(self): (model, pathlist) = self.tree.get_selection().get_selected_rows() files = [] for path in pathlist: files += [model[path][3]] return files def remove(self, iter): self.model.remove(iter) def filter(self, data, filter_mime): self.__filter_data = data self.__filter_mime_type = filter_mime self.modelfilter.refilter() def __filter_func(self, model, iter): item = model[iter][3] if item and self.__filter_data != "": if self.__filter_mime_type: item.mime.split("/") return type == self.__filter_data else: return item.get_categories().count( int(self.__filter_data)) > 0 return True def check_star_clicked(self, event): try: path, column, x, y = self.tree.get_path_at_pos(int(event.x), int(event.y)) if self.column_star == column: if x > 10: star = ((x - 10) / 16) + 1 else: # If you click out of the stars star = 0 if star > 5: star = 0 item = self.get_item(path) item.rating = star except: pass gnomecatalog_0.3.4.2/gnomecatalog/ui/gladeconnect.py0000644000175000017500000000172310743466511021151 0ustar josejose# -*- coding: UTF-8 -*- import gtk.glade from gnomecatalog import utils class GladeConnect: def __init__(self, file, signals = None): gtk.glade.textdomain("gnomecatalog") # print file, utils.locate_file(file, "glade") self.glade = gtk.glade.XML(utils.locate_file(file, "glade"), domain = "gnomecatalog") self.connect(signals) def connect(self, signals = None): if signals == None: signals = self self.glade.signal_autoconnect(signals) def __getattr__(self, name): result = self.glade.get_widget(name) if result == None: ## On ne le trouve pas sur l'ui, il serait bon de recherche sur ## la fenetre de l'ui pass if result == None: raise AttributeError, name return result def on_exit(self, source=None, event=None): try: gtk.main_quit() except: print "Terminando ejecución..." gnomecatalog_0.3.4.2/gnomecatalog/ui/__init__.py0000644000175000017500000000000210743466511020247 0ustar josejose