commit f48aef5ed7f2e333984766d9ceb02e01ecbd47a7 Author: tpearson Date: Sun Jan 17 23:39:35 2010 +0000 Added old KDE3 version of dolphin git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1076309 283d02a7-25f6-0310-bc7c-ecb5cbfe19da diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..db36855 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,4 @@ +Marcel Juhnke +Peter Penz +Cvetoslav Ludmiloff +Stefan Monov \ No newline at end of file diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..c13faf0 --- /dev/null +++ b/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) 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 +this service 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 make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. 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. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +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 +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the 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 a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE 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. + + 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 +convey 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 2 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, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision 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, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This 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 Library General +Public License instead of this License. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..400c17f --- /dev/null +++ b/ChangeLog @@ -0,0 +1,113 @@ +0.9 + +- Renamed to D3lphin (Marcel Juhnke maintains this from now on - send bug reports to him). +- Integrated a second sidebar on the right. +- Integrated Folder-like navigation for .tar- and .zip-files (Filip Brcic). +- Fixed: If you select the first sub-folder in a folder in the breadcrumb view, the view jumps not into this directory. +- Many thanks to Peter Penz and sorry for not integrating many new things in D3lphin. + +0.8.2 + +- Updated German translation (Jannick Kuhr) +- Updated Polish translation (Piotr Malinski) + +0.8.1 + +- Split view divides the window in two equal sections. + +- Updated the documentation how to make Dolphin the default file manager (Michael Austin). + +- Updated Estonian translation (Ain Vagula). + +0.8.0 + +- Provide a sidebar for accessing bookmarks and the history. ATTENTION: old bookmarks will get lost by the update, as the Dolphin proprietary format has been exchanged by the XBEL standard (http://pyxml.sourceforge.net/topics/xbel/). + +- Update of documentation including screenshots (Michael Austin). + +- Provide a drop down menu in the navigation bar for accessing directories (patch submitted by Aaron J. Seigo). + +- Remember view properties also for folders having no write access (e. g. root) (patch submitted by Aaron J. Seigo) + +- Provide filter bar (patch submitted by Gregor Kalisnik) + +- Don't differ between fixed and editable bookmarks anymore. Provide sensible defaults but let the user decide. + +- Don't show the volume space widget if the volume space is not available. + +- Minor cosmetic fixes in the navigation bar and volume space information. + +0.7.0 + +- Renaming of a variable number of selected items in one step is supported now. + +- Translations for Estonian, French, Hebrew and Polish (thanks to Ain Vagula, Stephane Lesimple, Patrice Tremblay, Itai Alter and Piotr MaliƄski) + +- When dragging a file A above file B, file A is copied into the directory of file B instead of replacing file B itself (Bug 1559793). + +- Use larger icons in bookmarks menu applied, this allows a faster access (patch submitted by Patrice Tremblay) + +- The default bookmark for 'System' has been replaced by 'Storage Media', 'Network' and 'Trash' (patch submitted by Patrice Tremblay) + +- General Settings page: use "Home URL" instead of "Home" as this prevents some translation issues for French (patch submitted by Patrice Tremblay) + +- Minor fixes for the disk space information (patch submitted by Patrice Tremblay). + +- Replaced "Edit Location" icon (submitted by Patrice Tremblay). + +- Refresh the icon positions when a file has been deleted (Bug 1548249) + +- New service menu 'Open as Root' for directories. + +- Fixed possible wrong selection in Details View (Bug 1547516) + + +0.6.2 +- The status bar shows the available size of the current mount point. +- Added sidebar widgets (pre alpha stage) +- Added support for KDE session management (Feature Request 1539965) +- The sorting type and order is remembered for each directory. +- When selecting files the amount of size is shown in the statusbar (Bug 1537554). +- Position of scrollbars is remembered also if the scroll wheel is used (Bug 1537252). +- The content of the 'Size' column in the details mode is right aligned (Bug 1539685). +- When entering an URL, then ~ is replaced by the users home directory (Bug 1537539). +- It's possible to specify default modes for 'Split view' and 'Editable navigation bar' for startup. +- Fixed wrong preview position for some MIME types. +- Improved error messages. + +0.6.1 +- Several fixes for service menus: services like 'mount', 'unmount' and 'eject' are available +- Allow to bookmark the current folder with the context menu (thanks to Cvetoslav Ludmiloff). +- View mode 'Details': it's assured that the content of the columns and header match together when turning off columns. +- Respect alternate color setting from KDE in the view mode 'Details'. +- Additional shortcuts for keyboards (thanks to Anatolie Cernii). + +0.6.0 +- Added support for Console, KFind and file comparing (Kompare). +- The sorting can be adjusted for each view mode by name, size or date. +- Zoom support for all view modes. +- Path in title is updated when changing between split views. +- Minor service menus fixes. + +0.5.2 + +- Fixed issue that moving, copying and renaming of files on non local directories failed under certain circumstances. +- The previews are not positioned in a wrong manner for specific MIME types anymore. +- Creating files on non local directories works. +- Don't clear selection if the focus is changed on a split view. +- The view mode 'Icons' strictly refuses to generate any kind of preview. +- Pressing 'Escape' in the 'Edit Location' mode of the navigation bar switches to the 'Browse' mode. +- View properties dialog: don't ask for confirmation, if no change has been done by the user. +- File information is shown in statusbar when the mouse pointer is above an item. +- Spanish translation (thanks to Nestor Diaz). + +0.5.1 + +- Command line options are supported. +- Added menu entries and shortcuts for switching the navigation bar between the modes 'Edit Location (Ctrl+L)' and 'Browse (Ctrl+B)'. +- If the view is split and the Dolphin settings are modified, the width of the split view is not changed to zero anymore. +- Patches for gcc-2.95 (thanks to Leo Savernik). + +0.5.0 + +- Initial release. \ No newline at end of file diff --git a/Doxyfile b/Doxyfile new file mode 100644 index 0000000..180a33c --- /dev/null +++ b/Doxyfile @@ -0,0 +1,275 @@ +# Doxyfile 1.4.1-KDevelop + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = d3lphin.kdevelop +PROJECT_NUMBER = 0.9 +OUTPUT_DIRECTORY = +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = NO +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = YES +STRIP_FROM_PATH = /home/marcel/ +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = NO +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = NO +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = YES +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = NO +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = YES +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = /home/marcel/Desktop/d3lphin +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.idl \ + *.odl \ + *.cs \ + *.php \ + *.php3 \ + *.inc \ + *.m \ + *.mm \ + *.dox \ + *.C \ + *.CC \ + *.C++ \ + *.II \ + *.I++ \ + *.H \ + *.HH \ + *.H++ \ + *.CS \ + *.PHP \ + *.PHP3 \ + *.M \ + *.MM \ + *.C \ + *.H \ + *.tlh \ + *.diff \ + *.patch \ + *.moc \ + *.xpm \ + *.dox +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = * +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = NO +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = NO +TOC_EXPAND = NO +DISABLE_INDEX = NO +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = NO +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = YES +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = NO +RTF_OUTPUT = rtf +COMPACT_RTF = NO +RTF_HYPERLINKS = NO +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = YES +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = NO +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = d3lphin.tag +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = YES +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = NO +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 999 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..02a4a07 --- /dev/null +++ b/INSTALL @@ -0,0 +1,167 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Type `make install' to install the programs and any data files and + documentation. + + 4. You can remove the program binaries and object files from the + source code directory by typing `make clean'. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..8a2284f --- /dev/null +++ b/Makefile.am @@ -0,0 +1,22 @@ +SUBDIRS = $(TOPSUBDIRS) + +$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs + cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ; + +$(top_srcdir)/subdirs: + cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs + +$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in + @cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4 + +MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files + +package-messages: + cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common package-messages + $(MAKE) -C po merge + +EXTRA_DIST = admin COPYING configure.in.in + +dist-hook: + cd $(top_distdir) && perl admin/am_edit -padmin + cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs diff --git a/Makefile.cvs b/Makefile.cvs new file mode 100644 index 0000000..4c0afd1 --- /dev/null +++ b/Makefile.cvs @@ -0,0 +1,10 @@ +all: + @echo "This Makefile is only for the CVS repository" + @echo "This will be deleted before making the distribution" + @echo "" + $(MAKE) -f admin/Makefile.common cvs + +dist: + $(MAKE) -f admin/Makefile.common dist + +.SILENT: diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/TODO b/TODO new file mode 100644 index 0000000..26f31b5 --- /dev/null +++ b/TODO @@ -0,0 +1,4 @@ +Code duplication: +----------------- + +BookmarksSidebarPage::adjustSelection() uses same code as BookmarkSelector::updateSelection(). Suggestion: provide generic class in combination with the URL Navigator for this. diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 0000000..39765d7 --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,11890 @@ +## -*- autoconf -*- + +dnl This file is part of the KDE libraries/packages +dnl Copyright (C) 1997 Janos Farkas (chexum@shadow.banki.hu) +dnl (C) 1997,98,99 Stephan Kulow (coolo@kde.org) + +dnl This file is free software; you can redistribute it and/or +dnl modify it under the terms of the GNU Library General Public +dnl License as published by the Free Software Foundation; either +dnl version 2 of the License, or (at your option) any later version. + +dnl This library is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl Library General Public License for more details. + +dnl You should have received a copy of the GNU Library General Public License +dnl along with this library; see the file COPYING.LIB. If not, write to +dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +dnl Boston, MA 02110-1301, USA. + +dnl IMPORTANT NOTE: +dnl Please do not modify this file unless you expect your modifications to be +dnl carried into every other module in the repository. +dnl +dnl Single-module modifications are best placed in configure.in for kdelibs +dnl and kdebase or configure.in.in if present. + +# KDE_PATH_X_DIRECT +dnl Internal subroutine of AC_PATH_X. +dnl Set ac_x_includes and/or ac_x_libraries. +AC_DEFUN([KDE_PATH_X_DIRECT], +[ +AC_REQUIRE([KDE_CHECK_LIB64]) + +if test "$ac_x_includes" = NO; then + # Guess where to find include files, by looking for this one X11 .h file. + test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h + + # First, try using that file with no special directory specified. +AC_TRY_CPP([#include <$x_direct_test_include>], +[# We can compile using X headers with no special include directory. +ac_x_includes=], +[# Look for the header file in a standard set of common directories. +# Check X11 before X11Rn because it is often a symlink to the current release. + for ac_dir in \ + /usr/X11/include \ + /usr/X11R6/include \ + /usr/X11R5/include \ + /usr/X11R4/include \ + \ + /usr/include/X11 \ + /usr/include/X11R6 \ + /usr/include/X11R5 \ + /usr/include/X11R4 \ + \ + /usr/local/X11/include \ + /usr/local/X11R6/include \ + /usr/local/X11R5/include \ + /usr/local/X11R4/include \ + \ + /usr/local/include/X11 \ + /usr/local/include/X11R6 \ + /usr/local/include/X11R5 \ + /usr/local/include/X11R4 \ + \ + /usr/X386/include \ + /usr/x386/include \ + /usr/XFree86/include/X11 \ + \ + /usr/include \ + /usr/local/include \ + /usr/unsupported/include \ + /usr/athena/include \ + /usr/local/x11r5/include \ + /usr/lpp/Xamples/include \ + \ + /usr/openwin/include \ + /usr/openwin/share/include \ + ; \ + do + if test -r "$ac_dir/$x_direct_test_include"; then + ac_x_includes=$ac_dir + break + fi + done]) +fi # $ac_x_includes = NO + +if test "$ac_x_libraries" = NO; then + # Check for the libraries. + + test -z "$x_direct_test_library" && x_direct_test_library=Xt + test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc + + # See if we find them without any special options. + # Don't add to $LIBS permanently. + ac_save_LIBS="$LIBS" + LIBS="-l$x_direct_test_library $LIBS" +AC_TRY_LINK([#include ], [${x_direct_test_function}(1)], +[LIBS="$ac_save_LIBS" +# We can link X programs with no special library path. +ac_x_libraries=], +[LIBS="$ac_save_LIBS" +# First see if replacing the include by lib works. +# Check X11 before X11Rn because it is often a symlink to the current release. +for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \ + /usr/X11/lib${kdelibsuff} \ + /usr/X11R6/lib${kdelibsuff} \ + /usr/X11R5/lib${kdelibsuff} \ + /usr/X11R4/lib${kdelibsuff} \ + \ + /usr/lib${kdelibsuff}/X11 \ + /usr/lib${kdelibsuff}/X11R6 \ + /usr/lib${kdelibsuff}/X11R5 \ + /usr/lib${kdelibsuff}/X11R4 \ + \ + /usr/local/X11/lib${kdelibsuff} \ + /usr/local/X11R6/lib${kdelibsuff} \ + /usr/local/X11R5/lib${kdelibsuff} \ + /usr/local/X11R4/lib${kdelibsuff} \ + \ + /usr/local/lib${kdelibsuff}/X11 \ + /usr/local/lib${kdelibsuff}/X11R6 \ + /usr/local/lib${kdelibsuff}/X11R5 \ + /usr/local/lib${kdelibsuff}/X11R4 \ + \ + /usr/X386/lib${kdelibsuff} \ + /usr/x386/lib${kdelibsuff} \ + /usr/XFree86/lib${kdelibsuff}/X11 \ + \ + /usr/lib${kdelibsuff} \ + /usr/local/lib${kdelibsuff} \ + /usr/unsupported/lib${kdelibsuff} \ + /usr/athena/lib${kdelibsuff} \ + /usr/local/x11r5/lib${kdelibsuff} \ + /usr/lpp/Xamples/lib${kdelibsuff} \ + /lib/usr/lib${kdelibsuff}/X11 \ + \ + /usr/openwin/lib${kdelibsuff} \ + /usr/openwin/share/lib${kdelibsuff} \ + ; \ +do +dnl Don't even attempt the hair of trying to link an X program! + for ac_extension in a so sl; do + if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then + ac_x_libraries=$ac_dir + break 2 + fi + done +done]) +fi # $ac_x_libraries = NO +]) + + +dnl ------------------------------------------------------------------------ +dnl Find a file (or one of more files in a list of dirs) +dnl ------------------------------------------------------------------------ +dnl +AC_DEFUN([AC_FIND_FILE], +[ +$3=NO +for i in $2; +do + for j in $1; + do + echo "configure: __oline__: $i/$j" >&AC_FD_CC + if test -r "$i/$j"; then + echo "taking that" >&AC_FD_CC + $3=$i + break 2 + fi + done +done +]) + +dnl KDE_FIND_PATH(program-name, variable-name, list-of-dirs, +dnl if-not-found, test-parameter, prepend-path) +dnl +dnl Look for program-name in list-of-dirs+$PATH. +dnl If prepend-path is set, look in $PATH+list-of-dirs instead. +dnl If found, $variable-name is set. If not, if-not-found is evaluated. +dnl test-parameter: if set, the program is executed with this arg, +dnl and only a successful exit code is required. +AC_DEFUN([KDE_FIND_PATH], +[ + AC_MSG_CHECKING([for $1]) + if test -n "$$2"; then + kde_cv_path="$$2"; + else + kde_cache=`echo $1 | sed 'y%./+-%__p_%'` + + AC_CACHE_VAL(kde_cv_path_$kde_cache, + [ + kde_cv_path="NONE" + kde_save_IFS=$IFS + IFS=':' + dirs="" + for dir in $PATH; do + dirs="$dirs $dir" + done + if test -z "$6"; then dnl Append dirs in PATH (default) + dirs="$3 $dirs" + else dnl Prepend dirs in PATH (if 6th arg is set) + dirs="$dirs $3" + fi + IFS=$kde_save_IFS + + for dir in $dirs; do + if test -x "$dir/$1"; then + if test -n "$5" + then + evalstr="$dir/$1 $5 2>&1 " + if eval $evalstr; then + kde_cv_path="$dir/$1" + break + fi + else + kde_cv_path="$dir/$1" + break + fi + fi + done + + eval "kde_cv_path_$kde_cache=$kde_cv_path" + + ]) + + eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" + + fi + + if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then + AC_MSG_RESULT(not found) + $4 + else + AC_MSG_RESULT($kde_cv_path) + $2=$kde_cv_path + + fi +]) + +AC_DEFUN([KDE_MOC_ERROR_MESSAGE], +[ + AC_MSG_ERROR([No Qt meta object compiler (moc) found! +Please check whether you installed Qt correctly. +You need to have a running moc binary. +configure tried to run $ac_cv_path_moc and the test didn't +succeed. If configure shouldn't have tried this one, set +the environment variable MOC to the right one before running +configure. +]) +]) + +AC_DEFUN([KDE_UIC_ERROR_MESSAGE], +[ + AC_MSG_WARN([No Qt ui compiler (uic) found! +Please check whether you installed Qt correctly. +You need to have a running uic binary. +configure tried to run $ac_cv_path_uic and the test didn't +succeed. If configure shouldn't have tried this one, set +the environment variable UIC to the right one before running +configure. +]) +]) + + +AC_DEFUN([KDE_CHECK_UIC_FLAG], +[ + AC_MSG_CHECKING([whether uic supports -$1 ]) + kde_cache=`echo $1 | sed 'y% .=/+-%____p_%'` + AC_CACHE_VAL(kde_cv_prog_uic_$kde_cache, + [ + cat >conftest.ui < +EOT + ac_uic_testrun="$UIC_PATH -$1 $2 conftest.ui >/dev/null" + if AC_TRY_EVAL(ac_uic_testrun); then + eval "kde_cv_prog_uic_$kde_cache=yes" + else + eval "kde_cv_prog_uic_$kde_cache=no" + fi + rm -f conftest* + ]) + + if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then + AC_MSG_RESULT([yes]) + : + $3 + else + AC_MSG_RESULT([no]) + : + $4 + fi +]) + + +dnl ------------------------------------------------------------------------ +dnl Find the meta object compiler and the ui compiler in the PATH, +dnl in $QTDIR/bin, and some more usual places +dnl ------------------------------------------------------------------------ +dnl +AC_DEFUN([AC_PATH_QT_MOC_UIC], +[ + AC_REQUIRE([KDE_CHECK_PERL]) + qt_bindirs="" + for dir in $kde_qt_dirs; do + qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc" + done + qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin" + if test ! "$ac_qt_bindir" = "NO"; then + qt_bindirs="$ac_qt_bindir $qt_bindirs" + fi + + KDE_FIND_PATH(moc, MOC, [$qt_bindirs], [KDE_MOC_ERROR_MESSAGE]) + if test -z "$UIC_NOT_NEEDED"; then + KDE_FIND_PATH(uic, UIC_PATH, [$qt_bindirs], [UIC_PATH=""]) + if test -z "$UIC_PATH" ; then + KDE_UIC_ERROR_MESSAGE + exit 1 + else + UIC=$UIC_PATH + + if test $kde_qtver = 3; then + KDE_CHECK_UIC_FLAG(L,[/nonexistent],ac_uic_supports_libpath=yes,ac_uic_supports_libpath=no) + KDE_CHECK_UIC_FLAG(nounload,,ac_uic_supports_nounload=yes,ac_uic_supports_nounload=no) + + if test x$ac_uic_supports_libpath = xyes; then + UIC="$UIC -L \$(kde_widgetdir)" + fi + if test x$ac_uic_supports_nounload = xyes; then + UIC="$UIC -nounload" + fi + fi + fi + else + UIC="echo uic not available: " + fi + + AC_SUBST(MOC) + AC_SUBST(UIC) + + UIC_TR="i18n" + if test $kde_qtver = 3; then + UIC_TR="tr2i18n" + fi + + AC_SUBST(UIC_TR) +]) + +AC_DEFUN([KDE_1_CHECK_PATHS], +[ + KDE_1_CHECK_PATH_HEADERS + + KDE_TEST_RPATH= + + if test -n "$USE_RPATH"; then + + if test -n "$kde_libraries"; then + KDE_TEST_RPATH="-R $kde_libraries" + fi + + if test -n "$qt_libraries"; then + KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries" + fi + + if test -n "$x_libraries"; then + KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries" + fi + + KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH" + fi + +AC_MSG_CHECKING([for KDE libraries installed]) +ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5' + +if AC_TRY_EVAL(ac_link) && test -s conftest; then + AC_MSG_RESULT(yes) +else + AC_MSG_ERROR([your system fails at linking a small KDE application! +Check, if your compiler is installed correctly and if you have used the +same compiler to compile Qt and kdelibs as you did use now. +For more details about this problem, look at the end of config.log.]) +fi + +if eval `KDEDIR= ./conftest 2>&5`; then + kde_result=done +else + kde_result=problems +fi + +KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log +kde_have_all_paths=yes + +KDE_SET_PATHS($kde_result) + +]) + +AC_DEFUN([KDE_SET_PATHS], +[ + kde_cv_all_paths="kde_have_all_paths=\"yes\" \ + kde_htmldir=\"$kde_htmldir\" \ + kde_appsdir=\"$kde_appsdir\" \ + kde_icondir=\"$kde_icondir\" \ + kde_sounddir=\"$kde_sounddir\" \ + kde_datadir=\"$kde_datadir\" \ + kde_locale=\"$kde_locale\" \ + kde_cgidir=\"$kde_cgidir\" \ + kde_confdir=\"$kde_confdir\" \ + kde_kcfgdir=\"$kde_kcfgdir\" \ + kde_mimedir=\"$kde_mimedir\" \ + kde_toolbardir=\"$kde_toolbardir\" \ + kde_wallpaperdir=\"$kde_wallpaperdir\" \ + kde_templatesdir=\"$kde_templatesdir\" \ + kde_bindir=\"$kde_bindir\" \ + kde_servicesdir=\"$kde_servicesdir\" \ + kde_servicetypesdir=\"$kde_servicetypesdir\" \ + kde_moduledir=\"$kde_moduledir\" \ + kde_styledir=\"$kde_styledir\" \ + kde_widgetdir=\"$kde_widgetdir\" \ + xdg_appsdir=\"$xdg_appsdir\" \ + xdg_menudir=\"$xdg_menudir\" \ + xdg_directorydir=\"$xdg_directorydir\" \ + kde_result=$1" +]) + +AC_DEFUN([KDE_SET_DEFAULT_PATHS], +[ +if test "$1" = "default"; then + + if test -z "$kde_htmldir"; then + kde_htmldir='\${datadir}/doc/HTML' + fi + if test -z "$kde_appsdir"; then + kde_appsdir='\${datadir}/applnk' + fi + if test -z "$kde_icondir"; then + kde_icondir='\${datadir}/icons' + fi + if test -z "$kde_sounddir"; then + kde_sounddir='\${datadir}/sounds' + fi + if test -z "$kde_datadir"; then + kde_datadir='\${datadir}/apps' + fi + if test -z "$kde_locale"; then + kde_locale='\${datadir}/locale' + fi + if test -z "$kde_cgidir"; then + kde_cgidir='\${exec_prefix}/cgi-bin' + fi + if test -z "$kde_confdir"; then + kde_confdir='\${datadir}/config' + fi + if test -z "$kde_kcfgdir"; then + kde_kcfgdir='\${datadir}/config.kcfg' + fi + if test -z "$kde_mimedir"; then + kde_mimedir='\${datadir}/mimelnk' + fi + if test -z "$kde_toolbardir"; then + kde_toolbardir='\${datadir}/toolbar' + fi + if test -z "$kde_wallpaperdir"; then + kde_wallpaperdir='\${datadir}/wallpapers' + fi + if test -z "$kde_templatesdir"; then + kde_templatesdir='\${datadir}/templates' + fi + if test -z "$kde_bindir"; then + kde_bindir='\${exec_prefix}/bin' + fi + if test -z "$kde_servicesdir"; then + kde_servicesdir='\${datadir}/services' + fi + if test -z "$kde_servicetypesdir"; then + kde_servicetypesdir='\${datadir}/servicetypes' + fi + if test -z "$kde_moduledir"; then + if test "$kde_qtver" = "2"; then + kde_moduledir='\${libdir}/kde2' + else + kde_moduledir='\${libdir}/kde3' + fi + fi + if test -z "$kde_styledir"; then + kde_styledir='\${libdir}/kde3/plugins/styles' + fi + if test -z "$kde_widgetdir"; then + kde_widgetdir='\${libdir}/kde3/plugins/designer' + fi + if test -z "$xdg_appsdir"; then + xdg_appsdir='\${datadir}/applications/kde' + fi + if test -z "$xdg_menudir"; then + xdg_menudir='\${sysconfdir}/xdg/menus' + fi + if test -z "$xdg_directorydir"; then + xdg_directorydir='\${datadir}/desktop-directories' + fi + + KDE_SET_PATHS(defaults) + +else + + if test $kde_qtver = 1; then + AC_MSG_RESULT([compiling]) + KDE_1_CHECK_PATHS + else + AC_MSG_ERROR([path checking not yet supported for KDE 2]) + fi + +fi +]) + +AC_DEFUN([KDE_CHECK_PATHS_FOR_COMPLETENESS], +[ if test -z "$kde_htmldir" || test -z "$kde_appsdir" || + test -z "$kde_icondir" || test -z "$kde_sounddir" || + test -z "$kde_datadir" || test -z "$kde_locale" || + test -z "$kde_cgidir" || test -z "$kde_confdir" || + test -z "$kde_kcfgdir" || + test -z "$kde_mimedir" || test -z "$kde_toolbardir" || + test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" || + test -z "$kde_bindir" || test -z "$kde_servicesdir" || + test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" || + test -z "$kde_styledir" || test -z "kde_widgetdir" || + test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" || + test "x$kde_have_all_paths" != "xyes"; then + kde_have_all_paths=no + fi +]) + +AC_DEFUN([KDE_MISSING_PROG_ERROR], +[ + AC_MSG_ERROR([The important program $1 was not found! +Please check whether you installed KDE correctly. +]) +]) + +AC_DEFUN([KDE_MISSING_ARTS_ERROR], +[ + AC_MSG_ERROR([The important program $1 was not found! +Please check whether you installed aRts correctly or use +--without-arts to compile without aRts support (this will remove functionality). +]) +]) + +AC_DEFUN([KDE_SET_DEFAULT_BINDIRS], +[ + kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin" + test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs" + if test -n "$KDEDIRS"; then + kde_save_IFS=$IFS + IFS=: + for dir in $KDEDIRS; do + kde_default_bindirs="$dir/bin $kde_default_bindirs " + done + IFS=$kde_save_IFS + fi +]) + +AC_DEFUN([KDE_SUBST_PROGRAMS], +[ + AC_ARG_WITH(arts, + AC_HELP_STRING([--without-arts],[build without aRts [default=no]]), + [build_arts=$withval], + [build_arts=yes] + ) + AM_CONDITIONAL(include_ARTS, test "$build_arts" '!=' "no") + if test "$build_arts" = "no"; then + AC_DEFINE(WITHOUT_ARTS, 1, [Defined if compiling without arts]) + fi + + KDE_SET_DEFAULT_BINDIRS + kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs" + KDE_FIND_PATH(dcopidl, DCOPIDL, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl)]) + KDE_FIND_PATH(dcopidl2cpp, DCOPIDL2CPP, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl2cpp)]) + if test "$build_arts" '!=' "no"; then + KDE_FIND_PATH(mcopidl, MCOPIDL, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(mcopidl)]) + KDE_FIND_PATH(artsc-config, ARTSCCONFIG, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(artsc-config)]) + fi + KDE_FIND_PATH(meinproc, MEINPROC, [$kde_default_bindirs]) + + kde32ornewer=1 + kde33ornewer=1 + if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then + kde32ornewer= + kde33ornewer= + else + if test "$kde_qtver" = "3"; then + if test "$kde_qtsubver" -le 1; then + kde32ornewer= + fi + if test "$kde_qtsubver" -le 2; then + kde33ornewer= + fi + if test "$KDECONFIG" != "compiled"; then + if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then + kde33ornewer= + fi + fi + fi + fi + + if test -n "$kde32ornewer"; then + KDE_FIND_PATH(kconfig_compiler, KCONFIG_COMPILER, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kconfig_compiler)]) + KDE_FIND_PATH(dcopidlng, DCOPIDLNG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidlng)]) + fi + if test -n "$kde33ornewer"; then + KDE_FIND_PATH(makekdewidgets, MAKEKDEWIDGETS, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(makekdewidgets)]) + AC_SUBST(MAKEKDEWIDGETS) + fi + KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin], [XMLLINT=""]) + + if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then + kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share" + test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs" + AC_FIND_FILE(apps/ksgmltools2/customization/kde-chunk.xsl, $kde_sharedirs, KDE_XSL_STYLESHEET) + if test "$KDE_XSL_STYLESHEET" = "NO"; then + KDE_XSL_STYLESHEET="" + else + KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl" + fi + fi + + DCOP_DEPENDENCIES='$(DCOPIDL)' + if test -n "$kde32ornewer"; then + KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)' + DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)' + AC_SUBST(KCONFIG_COMPILER) + AC_SUBST(KCFG_DEPENDENCIES) + AC_SUBST(DCOPIDLNG) + fi + AC_SUBST(DCOPIDL) + AC_SUBST(DCOPIDL2CPP) + AC_SUBST(DCOP_DEPENDENCIES) + AC_SUBST(MCOPIDL) + AC_SUBST(ARTSCCONFIG) + AC_SUBST(MEINPROC) + AC_SUBST(KDE_XSL_STYLESHEET) + AC_SUBST(XMLLINT) +])dnl + +AC_DEFUN([AC_CREATE_KFSSTND], +[ +AC_REQUIRE([AC_CHECK_RPATH]) + +AC_MSG_CHECKING([for KDE paths]) +kde_result="" +kde_cached_paths=yes +AC_CACHE_VAL(kde_cv_all_paths, +[ + KDE_SET_DEFAULT_PATHS($1) + kde_cached_paths=no +]) +eval "$kde_cv_all_paths" +KDE_CHECK_PATHS_FOR_COMPLETENESS +if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then + # wrong values were cached, may be, we can set better ones + kde_result= + kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir= + kde_datadir= kde_locale= kde_cgidir= kde_confdir= kde_kcfgdir= + kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir= + kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir= + kde_have_all_paths= + kde_styledir= + kde_widgetdir= + xdg_appsdir = xdg_menudir= xdg_directorydir= + KDE_SET_DEFAULT_PATHS($1) + eval "$kde_cv_all_paths" + KDE_CHECK_PATHS_FOR_COMPLETENESS + kde_result="$kde_result (cache overridden)" +fi +if test "$kde_have_all_paths" = "no"; then + AC_MSG_ERROR([configure could not run a little KDE program to test the environment. +Since it had compiled and linked before, it must be a strange problem on your system. +Look at config.log for details. If you are not able to fix this, look at +http://www.kde.org/faq/installation.html or any www.kde.org mirror. +(If you're using an egcs version on Linux, you may update binutils!) +]) +else + rm -f conftest* + AC_MSG_RESULT($kde_result) +fi + +bindir=$kde_bindir + +KDE_SUBST_PROGRAMS + +]) + +AC_DEFUN([AC_SUBST_KFSSTND], +[ +AC_SUBST(kde_htmldir) +AC_SUBST(kde_appsdir) +AC_SUBST(kde_icondir) +AC_SUBST(kde_sounddir) +AC_SUBST(kde_datadir) +AC_SUBST(kde_locale) +AC_SUBST(kde_confdir) +AC_SUBST(kde_kcfgdir) +AC_SUBST(kde_mimedir) +AC_SUBST(kde_wallpaperdir) +AC_SUBST(kde_bindir) +dnl X Desktop Group standards +AC_SUBST(xdg_appsdir) +AC_SUBST(xdg_menudir) +AC_SUBST(xdg_directorydir) +dnl for KDE 2 +AC_SUBST(kde_templatesdir) +AC_SUBST(kde_servicesdir) +AC_SUBST(kde_servicetypesdir) +AC_SUBST(kde_moduledir) +AC_SUBST(kdeinitdir, '$(kde_moduledir)') +AC_SUBST(kde_styledir) +AC_SUBST(kde_widgetdir) +if test "$kde_qtver" = 1; then + kde_minidir="$kde_icondir/mini" +else +# for KDE 1 - this breaks KDE2 apps using minidir, but +# that's the plan ;-/ + kde_minidir="/dev/null" +fi +dnl AC_SUBST(kde_minidir) +dnl AC_SUBST(kde_cgidir) +dnl AC_SUBST(kde_toolbardir) +]) + +AC_DEFUN([KDE_MISC_TESTS], +[ + dnl Checks for libraries. + AC_CHECK_LIB(util, main, [LIBUTIL="-lutil"]) dnl for *BSD + AC_SUBST(LIBUTIL) + AC_CHECK_LIB(compat, main, [LIBCOMPAT="-lcompat"]) dnl for *BSD + AC_SUBST(LIBCOMPAT) + kde_have_crypt= + AC_CHECK_LIB(crypt, crypt, [LIBCRYPT="-lcrypt"; kde_have_crypt=yes], + AC_CHECK_LIB(c, crypt, [kde_have_crypt=yes], [ + AC_MSG_WARN([you have no crypt in either libcrypt or libc. +You should install libcrypt from another source or configure with PAM +support]) + kde_have_crypt=no + ])) + AC_SUBST(LIBCRYPT) + if test $kde_have_crypt = yes; then + AC_DEFINE_UNQUOTED(HAVE_CRYPT, 1, [Defines if your system has the crypt function]) + fi + AC_CHECK_SOCKLEN_T + AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"]) + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + AC_CHECK_LIB(dnet_stub, dnet_ntoa, + [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"]) + fi + AC_CHECK_FUNC(inet_ntoa) + if test $ac_cv_func_inet_ntoa = no; then + AC_CHECK_LIB(nsl, inet_ntoa, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl") + fi + AC_CHECK_FUNC(connect) + if test $ac_cv_func_connect = no; then + AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", , + $X_EXTRA_LIBS) + fi + + AC_CHECK_FUNC(remove) + if test $ac_cv_func_remove = no; then + AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix") + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + AC_CHECK_FUNC(shmat, , + AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc")) + + # more headers that need to be explicitly included on darwin + AC_CHECK_HEADERS(sys/types.h stdint.h) + + # sys/bitypes.h is needed for uint32_t and friends on Tru64 + AC_CHECK_HEADERS(sys/bitypes.h) + + # darwin requires a poll emulation library + AC_CHECK_LIB(poll, poll, LIB_POLL="-lpoll") + + # for some image handling on Mac OS X + AC_CHECK_HEADERS(Carbon/Carbon.h) + + # CoreAudio framework + AC_CHECK_HEADER(CoreAudio/CoreAudio.h, [ + AC_DEFINE(HAVE_COREAUDIO, 1, [Define if you have the CoreAudio API]) + FRAMEWORK_COREAUDIO="-Wl,-framework,CoreAudio" + ]) + + AC_CHECK_RES_INIT + AC_SUBST(LIB_POLL) + AC_SUBST(FRAMEWORK_COREAUDIO) + LIBSOCKET="$X_EXTRA_LIBS" + AC_SUBST(LIBSOCKET) + AC_SUBST(X_EXTRA_LIBS) + AC_CHECK_LIB(ucb, killpg, [LIBUCB="-lucb"]) dnl for Solaris2.4 + AC_SUBST(LIBUCB) + + case $host in dnl this *is* LynxOS specific + *-*-lynxos* ) + AC_MSG_CHECKING([LynxOS header file wrappers]) + [CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"] + AC_MSG_RESULT(disabled) + AC_CHECK_LIB(bsd, gethostbyname, [LIBSOCKET="-lbsd"]) dnl for LynxOS + ;; + esac + + KDE_CHECK_TYPES + KDE_CHECK_LIBDL + KDE_CHECK_STRLCPY + KDE_CHECK_PIE_SUPPORT + +# darwin needs this to initialize the environment +AC_CHECK_HEADERS(crt_externs.h) +AC_CHECK_FUNC(_NSGetEnviron, [AC_DEFINE(HAVE_NSGETENVIRON, 1, [Define if your system needs _NSGetEnviron to set up the environment])]) + +AH_VERBATIM(_DARWIN_ENVIRON, +[ +#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H) +# include +# include +# define environ (*_NSGetEnviron()) +#endif +]) + +AH_VERBATIM(_AIX_STRINGS_H_BZERO, +[ +/* + * AIX defines FD_SET in terms of bzero, but fails to include + * that defines bzero. + */ + +#if defined(_AIX) +#include +#endif +]) + +AC_CHECK_FUNCS([vsnprintf snprintf]) + +AH_VERBATIM(_TRU64,[ +/* + * On HP-UX, the declaration of vsnprintf() is needed every time ! + */ + +#if !defined(HAVE_VSNPRINTF) || defined(hpux) +#if __STDC__ +#include +#include +#else +#include +#endif +#ifdef __cplusplus +extern "C" +#endif +int vsnprintf(char *str, size_t n, char const *fmt, va_list ap); +#ifdef __cplusplus +extern "C" +#endif +int snprintf(char *str, size_t n, char const *fmt, ...); +#endif +]) + +]) + +dnl ------------------------------------------------------------------------ +dnl Find the header files and libraries for X-Windows. Extended the +dnl macro AC_PATH_X +dnl ------------------------------------------------------------------------ +dnl +AC_DEFUN([K_PATH_X], +[ +AC_REQUIRE([KDE_MISC_TESTS])dnl +AC_REQUIRE([KDE_CHECK_LIB64]) + +AC_ARG_ENABLE( + embedded, + AC_HELP_STRING([--enable-embedded],[link to Qt-embedded, don't use X]), + kde_use_qt_emb=$enableval, + kde_use_qt_emb=no +) + +AC_ARG_ENABLE( + qtopia, + AC_HELP_STRING([--enable-qtopia],[link to Qt-embedded, link to the Qtopia Environment]), + kde_use_qt_emb_palm=$enableval, + kde_use_qt_emb_palm=no +) + +AC_ARG_ENABLE( + mac, + AC_HELP_STRING([--enable-mac],[link to Qt/Mac (don't use X)]), + kde_use_qt_mac=$enableval, + kde_use_qt_mac=no +) + +# used to disable x11-specific stuff on special platforms +AM_CONDITIONAL(include_x11, test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no") + +if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then + +AC_MSG_CHECKING(for X) + +AC_CACHE_VAL(kde_cv_have_x, +[# One or both of the vars are not set, and there is no cached value. +if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then + kde_x_includes=NO +else + kde_x_includes=$x_includes +fi +if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then + kde_x_libraries=NO +else + kde_x_libraries=$x_libraries +fi + +# below we use the standard autoconf calls +ac_x_libraries=$kde_x_libraries +ac_x_includes=$kde_x_includes + +KDE_PATH_X_DIRECT +dnl AC_PATH_X_XMKMF picks /usr/lib as the path for the X libraries. +dnl Unfortunately, if compiling with the N32 ABI, this is not the correct +dnl location. The correct location is /usr/lib32 or an undefined value +dnl (the linker is smart enough to pick the correct default library). +dnl Things work just fine if you use just AC_PATH_X_DIRECT. +dnl Solaris has a similar problem. AC_PATH_X_XMKMF forces x_includes to +dnl /usr/openwin/include, which doesn't work. /usr/include does work, so +dnl x_includes should be left alone. +case "$host" in +mips-sgi-irix6*) + ;; +*-*-solaris*) + ;; +*) + _AC_PATH_X_XMKMF + if test -z "$ac_x_includes"; then + ac_x_includes="." + fi + if test -z "$ac_x_libraries"; then + ac_x_libraries="/usr/lib${kdelibsuff}" + fi +esac +#from now on we use our own again + +# when the user already gave --x-includes, we ignore +# what the standard autoconf macros told us. +if test "$kde_x_includes" = NO; then + kde_x_includes=$ac_x_includes +fi + +# for --x-libraries too +if test "$kde_x_libraries" = NO; then + kde_x_libraries=$ac_x_libraries +fi + +if test "$kde_x_includes" = NO; then + AC_MSG_ERROR([Can't find X includes. Please check your installation and add the correct paths!]) +fi + +if test "$kde_x_libraries" = NO; then + AC_MSG_ERROR([Can't find X libraries. Please check your installation and add the correct paths!]) +fi + +# Record where we found X for the cache. +kde_cv_have_x="have_x=yes \ + kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries" +])dnl + +eval "$kde_cv_have_x" + +if test "$have_x" != yes; then + AC_MSG_RESULT($have_x) + no_x=yes +else + AC_MSG_RESULT([libraries $kde_x_libraries, headers $kde_x_includes]) +fi + +if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then + X_INCLUDES="" + x_includes="."; dnl better than nothing :- + else + x_includes=$kde_x_includes + X_INCLUDES="-I$x_includes" +fi + +if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE || test "$kde_x_libraries" = "/usr/lib"; then + X_LDFLAGS="" + x_libraries="/usr/lib"; dnl better than nothing :- + else + x_libraries=$kde_x_libraries + X_LDFLAGS="-L$x_libraries" +fi +all_includes="$X_INCLUDES" +all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS" + +# Check for libraries that X11R6 Xt/Xaw programs need. +ac_save_LDFLAGS="$LDFLAGS" +LDFLAGS="$LDFLAGS $X_LDFLAGS" +# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to +# check for ICE first), but we must link in the order -lSM -lICE or +# we get undefined symbols. So assume we have SM if we have ICE. +# These have to be linked with before -lX11, unlike the other +# libraries we check for below, so use a different variable. +# --interran@uluru.Stanford.EDU, kb@cs.umb.edu. +AC_CHECK_LIB(ICE, IceConnectionNumber, + [LIBSM="-lSM -lICE"], , $X_EXTRA_LIBS) +LDFLAGS="$ac_save_LDFLAGS" + +LIB_X11='-lX11 $(LIBSOCKET)' + +AC_MSG_CHECKING(for libXext) +AC_CACHE_VAL(kde_cv_have_libXext, +[ +kde_ldflags_safe="$LDFLAGS" +kde_libs_safe="$LIBS" + +LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS" +LIBS="-lXext -lX11 $LIBSOCKET" + +AC_TRY_LINK([ +#include +#ifdef STDC_HEADERS +# include +#endif +], +[ +printf("hello Xext\n"); +], +kde_cv_have_libXext=yes, +kde_cv_have_libXext=no +) + +LDFLAGS=$kde_ldflags_safe +LIBS=$kde_libs_safe +]) + +AC_MSG_RESULT($kde_cv_have_libXext) + +if test "$kde_cv_have_libXext" = "no"; then + AC_MSG_ERROR([We need a working libXext to proceed. Since configure +can't find it itself, we stop here assuming that make wouldn't find +them either.]) +fi + +LIB_XEXT="-lXext" +QTE_NORTTI="" + +elif test "$kde_use_qt_emb" = "yes"; then + dnl We're using QT Embedded + CPPFLAGS=-DQWS + CXXFLAGS="$CXXFLAGS -fno-rtti" + QTE_NORTTI="-fno-rtti -DQWS" + X_PRE_LIBS="" + LIB_X11="" + LIB_XEXT="" + LIB_XRENDER="" + LIBSM="" + X_INCLUDES="" + X_LDFLAGS="" + x_includes="" + x_libraries="" +elif test "$kde_use_qt_mac" = "yes"; then + dnl We're using QT/Mac (I use QT_MAC so that qglobal.h doesn't *have* to + dnl be included to get the information) --Sam + CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp" + CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp" + X_PRE_LIBS="" + LIB_X11="" + LIB_XEXT="" + LIB_XRENDER="" + LIBSM="" + X_INCLUDES="" + X_LDFLAGS="" + x_includes="" + x_libraries="" +fi +AC_SUBST(X_PRE_LIBS) +AC_SUBST(LIB_X11) +AC_SUBST(LIB_XRENDER) +AC_SUBST(LIBSM) +AC_SUBST(X_INCLUDES) +AC_SUBST(X_LDFLAGS) +AC_SUBST(x_includes) +AC_SUBST(x_libraries) +AC_SUBST(QTE_NORTTI) +AC_SUBST(LIB_XEXT) + +]) + +AC_DEFUN([KDE_PRINT_QT_PROGRAM], +[ +AC_REQUIRE([KDE_USE_QT]) +cat > conftest.$ac_ext < +#include +EOF +if test "$kde_qtver" = "2"; then +cat >> conftest.$ac_ext < +#include +#include +EOF + +if test $kde_qtsubver -gt 0; then +cat >> conftest.$ac_ext <> conftest.$ac_ext < +#include +#include +EOF +fi + +echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext +cat >> conftest.$ac_ext <> conftest.$ac_ext <> conftest.$ac_ext <> conftest.$ac_ext <> conftest.$ac_ext <&AC_FD_CC + cat conftest.$ac_ext >&AC_FD_CC +fi + +rm -f conftest* +CXXFLAGS="$ac_cxxflags_safe" +LDFLAGS="$ac_ldflags_safe" +LIBS="$ac_libs_safe" + +LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe" +export LD_LIBRARY_PATH +LIBRARY_PATH="$ac_LIBRARY_PATH" +export LIBRARY_PATH +AC_LANG_RESTORE +]) + +if test "$kde_cv_qt_direct" = "yes"; then + AC_MSG_RESULT(yes) + $1 +else + AC_MSG_RESULT(no) + $2 +fi +]) + +dnl ------------------------------------------------------------------------ +dnl Try to find the Qt headers and libraries. +dnl $(QT_LDFLAGS) will be -Lqtliblocation (if needed) +dnl and $(QT_INCLUDES) will be -Iqthdrlocation (if needed) +dnl ------------------------------------------------------------------------ +dnl +AC_DEFUN([AC_PATH_QT_1_3], +[ +AC_REQUIRE([K_PATH_X]) +AC_REQUIRE([KDE_USE_QT]) +AC_REQUIRE([KDE_CHECK_LIB64]) + +dnl ------------------------------------------------------------------------ +dnl Add configure flag to enable linking to MT version of Qt library. +dnl ------------------------------------------------------------------------ + +AC_ARG_ENABLE( + mt, + AC_HELP_STRING([--disable-mt],[link to non-threaded Qt (deprecated)]), + kde_use_qt_mt=$enableval, + [ + if test $kde_qtver = 3; then + kde_use_qt_mt=yes + else + kde_use_qt_mt=no + fi + ] +) + +USING_QT_MT="" + +dnl ------------------------------------------------------------------------ +dnl If we not get --disable-qt-mt then adjust some vars for the host. +dnl ------------------------------------------------------------------------ + +KDE_MT_LDFLAGS= +KDE_MT_LIBS= +if test "x$kde_use_qt_mt" = "xyes"; then + KDE_CHECK_THREADING + if test "x$kde_use_threading" = "xyes"; then + CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS" + KDE_MT_LDFLAGS="$USE_THREADS" + KDE_MT_LIBS="$LIBPTHREAD" + else + kde_use_qt_mt=no + fi +fi +AC_SUBST(KDE_MT_LDFLAGS) +AC_SUBST(KDE_MT_LIBS) + +kde_qt_was_given=yes + +dnl ------------------------------------------------------------------------ +dnl If we haven't been told how to link to Qt, we work it out for ourselves. +dnl ------------------------------------------------------------------------ +if test -z "$LIBQT_GLOB"; then + if test "x$kde_use_qt_emb" = "xyes"; then + LIBQT_GLOB="libqte.*" + else + LIBQT_GLOB="libqt.*" + fi +fi + +dnl ------------------------------------------------------------ +dnl If we got --enable-embedded then adjust the Qt library name. +dnl ------------------------------------------------------------ +if test "x$kde_use_qt_emb" = "xyes"; then + qtlib="qte" +else + qtlib="qt" +fi + +kde_int_qt="-l$qtlib" + +if test -z "$LIBQPE"; then +dnl ------------------------------------------------------------ +dnl If we got --enable-palmtop then add -lqpe to the link line +dnl ------------------------------------------------------------ + if test "x$kde_use_qt_emb" = "xyes"; then + if test "x$kde_use_qt_emb_palm" = "xyes"; then + LIB_QPE="-lqpe" + else + LIB_QPE="" + fi + else + LIB_QPE="" + fi +fi + +dnl ------------------------------------------------------------------------ +dnl If we got --enable-qt-mt then adjust the Qt library name for the host. +dnl ------------------------------------------------------------------------ + +if test "x$kde_use_qt_mt" = "xyes"; then + LIBQT="-l$qtlib-mt" + kde_int_qt="-l$qtlib-mt" + LIBQT_GLOB="lib$qtlib-mt.*" + USING_QT_MT="using -mt" +else + LIBQT="-l$qtlib" +fi + +if test $kde_qtver != 1; then + + AC_REQUIRE([AC_FIND_PNG]) + AC_REQUIRE([AC_FIND_JPEG]) + LIBQT="$LIBQT $LIBPNG $LIBJPEG" +fi + +if test $kde_qtver = 3; then + AC_REQUIRE([KDE_CHECK_LIBDL]) + LIBQT="$LIBQT $LIBDL" +fi + +AC_MSG_CHECKING([for Qt]) + +if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then +LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET" +fi +ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO +qt_libraries="" +qt_includes="" +AC_ARG_WITH(qt-dir, + AC_HELP_STRING([--with-qt-dir=DIR],[where the root of Qt is installed ]), + [ ac_qt_includes="$withval"/include + ac_qt_libraries="$withval"/lib${kdelibsuff} + ac_qt_bindir="$withval"/bin + ]) + +AC_ARG_WITH(qt-includes, + AC_HELP_STRING([--with-qt-includes=DIR],[where the Qt includes are. ]), + [ + ac_qt_includes="$withval" + ]) + +kde_qt_libs_given=no + +AC_ARG_WITH(qt-libraries, + AC_HELP_STRING([--with-qt-libraries=DIR],[where the Qt library is installed.]), + [ ac_qt_libraries="$withval" + kde_qt_libs_given=yes + ]) + +AC_CACHE_VAL(ac_cv_have_qt, +[#try to guess Qt locations + +qt_incdirs="" +for dir in $kde_qt_dirs; do + qt_incdirs="$qt_incdirs $dir/include $dir" +done +if test -z "$PKG_CONFIG"; then + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) +fi +if test "$PKG_CONFIG" != "no" ; then + if $PKG_CONFIG --exists qt-mt ; then + qt_incdirs="$qt_incdirs `$PKG_CONFIG --variable=includedir qt-mt`" + fi +fi +qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes" +if test ! "$ac_qt_includes" = "NO"; then + qt_incdirs="$ac_qt_includes $qt_incdirs" +fi + +if test "$kde_qtver" != "1"; then + kde_qt_header=qstyle.h +else + kde_qt_header=qglobal.h +fi + +AC_FIND_FILE($kde_qt_header, $qt_incdirs, qt_incdir) +ac_qt_includes="$qt_incdir" + +qt_libdirs="" +for dir in $kde_qt_dirs; do + qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir/lib $dir" +done +if test -z "$PKG_CONFIG"; then + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) +fi +if test "$PKG_CONFIG" != "no" ; then + if $PKG_CONFIG --exists qt-mt ; then + qt_libdirs="$qt_incdirs `$PKG_CONFIG --variable=libdir qt-mt`" + fi +fi +qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries" +if test ! "$ac_qt_libraries" = "NO"; then + qt_libdir=$ac_qt_libraries +else + qt_libdirs="$ac_qt_libraries $qt_libdirs" + # if the Qt was given, the chance is too big that libqt.* doesn't exist + qt_libdir=NONE + for dir in $qt_libdirs; do + try="ls -1 $dir/${LIBQT_GLOB}" + if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi + done +fi +for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do + if test -e "$a"; then + LIBQT="$LIBQT ${kde_int_qt}_incremental" + break + fi +done + +ac_qt_libraries="$qt_libdir" + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +ac_cxxflags_safe="$CXXFLAGS" +ac_ldflags_safe="$LDFLAGS" +ac_libs_safe="$LIBS" + +CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes" +LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS" +LIBS="$LIBS $LIBQT $KDE_MT_LIBS" + +KDE_PRINT_QT_PROGRAM + +if AC_TRY_EVAL(ac_link) && test -s conftest; then + rm -f conftest* +else + echo "configure: failed program was:" >&AC_FD_CC + cat conftest.$ac_ext >&AC_FD_CC + ac_qt_libraries="NO" +fi +rm -f conftest* +CXXFLAGS="$ac_cxxflags_safe" +LDFLAGS="$ac_ldflags_safe" +LIBS="$ac_libs_safe" + +AC_LANG_RESTORE +if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then + ac_cv_have_qt="have_qt=no" + ac_qt_notfound="" + missing_qt_mt="" + if test "$ac_qt_includes" = NO; then + if test "$ac_qt_libraries" = NO; then + ac_qt_notfound="(headers and libraries)"; + else + ac_qt_notfound="(headers)"; + fi + else + if test "x$kde_use_qt_mt" = "xyes"; then + missing_qt_mt=" +Make sure that you have compiled Qt with thread support!" + ac_qt_notfound="(library $qtlib-mt)"; + else + ac_qt_notfound="(library $qtlib)"; + fi + fi + + AC_MSG_ERROR([Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation! +For more details about this problem, look at the end of config.log.$missing_qt_mt]) +else + have_qt="yes" +fi +]) + +eval "$ac_cv_have_qt" + +if test "$have_qt" != yes; then + AC_MSG_RESULT([$have_qt]); +else + ac_cv_have_qt="have_qt=yes \ + ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries" + AC_MSG_RESULT([libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT]) + + qt_libraries="$ac_qt_libraries" + qt_includes="$ac_qt_includes" +fi + +if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then + KDE_CHECK_QT_DIRECT(qt_libraries= ,[]) +fi + +AC_SUBST(qt_libraries) +AC_SUBST(qt_includes) + +if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then + QT_INCLUDES="" +else + QT_INCLUDES="-I$qt_includes" + all_includes="$QT_INCLUDES $all_includes" +fi + +if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then + QT_LDFLAGS="" +else + QT_LDFLAGS="-L$qt_libraries" + all_libraries="$QT_LDFLAGS $all_libraries" +fi +test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS" + +AC_SUBST(QT_INCLUDES) +AC_SUBST(QT_LDFLAGS) +AC_PATH_QT_MOC_UIC + +KDE_CHECK_QT_JPEG + +if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then +LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)' +else +LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)' +fi +test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS" +for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do + if test -e "$a"; then + LIB_QT="$LIB_QT ${kde_int_qt}_incremental" + break + fi +done + +AC_SUBST(LIB_QT) +AC_SUBST(LIB_QPE) + +AC_SUBST(kde_qtver) +]) + +AC_DEFUN([AC_PATH_QT], +[ +AC_PATH_QT_1_3 +]) + +AC_DEFUN([KDE_CHECK_UIC_PLUGINS], +[ +AC_REQUIRE([AC_PATH_QT_MOC_UIC]) + +if test x$ac_uic_supports_libpath = xyes; then + +AC_MSG_CHECKING([if UIC has KDE plugins available]) +AC_CACHE_VAL(kde_cv_uic_plugins, +[ +cat > actest.ui << EOF + +NewConnectionDialog + + + + testInput + + + + +EOF + + + +kde_cv_uic_plugins=no +kde_line="$UIC_PATH -L $kde_widgetdir" +if test x$ac_uic_supports_nounload = xyes; then + kde_line="$kde_line -nounload" +fi +kde_line="$kde_line -impl actest.h actest.ui > actest.cpp" +if AC_TRY_EVAL(kde_line); then + # if you're trying to debug this check and think it's incorrect, + # better check your installation. The check _is_ correct - your + # installation is not. + if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then + kde_cv_uic_plugins=yes + fi +fi +rm -f actest.ui actest.cpp +]) + +AC_MSG_RESULT([$kde_cv_uic_plugins]) +if test "$kde_cv_uic_plugins" != yes; then + AC_MSG_ERROR([ +you need to install kdelibs first. + +If you did install kdelibs, then the Qt version that is picked up by +this configure is not the same version you used to compile kdelibs. +The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the +_same Qt version_, compiled with the _same compiler_ and the same Qt +configuration settings. +]) +fi +fi +]) + +AC_DEFUN([KDE_CHECK_FINAL], +[ + AC_ARG_ENABLE(final, + AC_HELP_STRING([--enable-final], + [build size optimized apps (experimental - needs lots of memory)]), + kde_use_final=$enableval, kde_use_final=no) + + if test "x$kde_use_final" = "xyes"; then + KDE_USE_FINAL_TRUE="" + KDE_USE_FINAL_FALSE="#" + else + KDE_USE_FINAL_TRUE="#" + KDE_USE_FINAL_FALSE="" + fi + AC_SUBST(KDE_USE_FINAL_TRUE) + AC_SUBST(KDE_USE_FINAL_FALSE) +]) + +AC_DEFUN([KDE_CHECK_CLOSURE], +[ + AC_ARG_ENABLE(closure, + AC_HELP_STRING([--enable-closure],[delay template instantiation]), + kde_use_closure=$enableval, kde_use_closure=no) + + KDE_NO_UNDEFINED="" + if test "x$kde_use_closure" = "xyes"; then + KDE_USE_CLOSURE_TRUE="" + KDE_USE_CLOSURE_FALSE="#" +# CXXFLAGS="$CXXFLAGS $REPO" + else + KDE_USE_CLOSURE_TRUE="#" + KDE_USE_CLOSURE_FALSE="" + KDE_NO_UNDEFINED="" + case $host in + *-*-linux-gnu) + KDE_CHECK_COMPILER_FLAG([Wl,--no-undefined], + [KDE_CHECK_COMPILER_FLAG([Wl,--allow-shlib-undefined], + [KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"], + [KDE_NO_UNDEFINED=""])], + [KDE_NO_UNDEFINED=""]) + ;; + esac + fi + AC_SUBST(KDE_USE_CLOSURE_TRUE) + AC_SUBST(KDE_USE_CLOSURE_FALSE) + AC_SUBST(KDE_NO_UNDEFINED) +]) + +dnl Check if the linker supports --enable-new-dtags and --as-needed +AC_DEFUN([KDE_CHECK_NEW_LDFLAGS], +[ + AC_ARG_ENABLE(new_ldflags, + AC_HELP_STRING([--enable-new-ldflags], + [enable the new linker flags]), + kde_use_new_ldflags=$enableval, + kde_use_new_ldflags=no) + + LDFLAGS_AS_NEEDED="" + LDFLAGS_NEW_DTAGS="" + if test "x$kde_use_new_ldflags" = "xyes"; then + LDFLAGS_NEW_DTAGS="" + KDE_CHECK_COMPILER_FLAG([Wl,--enable-new-dtags], + [LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"],) + + KDE_CHECK_COMPILER_FLAG([Wl,--as-needed], + [LDFLAGS_AS_NEEDED="-Wl,--as-needed"],) + fi + AC_SUBST(LDFLAGS_AS_NEEDED) + AC_SUBST(LDFLAGS_NEW_DTAGS) +]) + +AC_DEFUN([KDE_CHECK_NMCHECK], +[ + AC_ARG_ENABLE(nmcheck,AC_HELP_STRING([--enable-nmcheck],[enable automatic namespace cleanness check]), + kde_use_nmcheck=$enableval, kde_use_nmcheck=no) + + if test "$kde_use_nmcheck" = "yes"; then + KDE_USE_NMCHECK_TRUE="" + KDE_USE_NMCHECK_FALSE="#" + else + KDE_USE_NMCHECK_TRUE="#" + KDE_USE_NMCHECK_FALSE="" + fi + AC_SUBST(KDE_USE_NMCHECK_TRUE) + AC_SUBST(KDE_USE_NMCHECK_FALSE) +]) + +AC_DEFUN([KDE_EXPAND_MAKEVAR], [ +savex=$exec_prefix +test "x$exec_prefix" = xNONE && exec_prefix=$prefix +tmp=$$2 +while $1=`eval echo "$tmp"`; test "x$$1" != "x$tmp"; do tmp=$$1; done +exec_prefix=$savex +]) + +dnl ------------------------------------------------------------------------ +dnl Now, the same with KDE +dnl $(KDE_LDFLAGS) will be the kdeliblocation (if needed) +dnl and $(kde_includes) will be the kdehdrlocation (if needed) +dnl ------------------------------------------------------------------------ +dnl +AC_DEFUN([AC_BASE_PATH_KDE], +[ +AC_REQUIRE([KDE_CHECK_STL]) +AC_REQUIRE([AC_PATH_QT])dnl +AC_REQUIRE([KDE_CHECK_LIB64]) + +AC_CHECK_RPATH +AC_MSG_CHECKING([for KDE]) + +if test "${prefix}" != NONE; then + kde_includes=${includedir} + KDE_EXPAND_MAKEVAR(ac_kde_includes, includedir) + + kde_libraries=${libdir} + KDE_EXPAND_MAKEVAR(ac_kde_libraries, libdir) + +else + ac_kde_includes= + ac_kde_libraries= + kde_libraries="" + kde_includes="" +fi + +AC_CACHE_VAL(ac_cv_have_kde, +[#try to guess kde locations + +if test "$kde_qtver" = 1; then + kde_check_header="ksock.h" + kde_check_lib="libkdecore.la" +else + kde_check_header="ksharedptr.h" + kde_check_lib="libkio.la" +fi + +if test -z "$1"; then + +kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes" +test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs" +kde_incdirs="$ac_kde_includes $kde_incdirs" +AC_FIND_FILE($kde_check_header, $kde_incdirs, kde_incdir) +ac_kde_includes="$kde_incdir" + +if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then + AC_MSG_ERROR([ +in the prefix, you've chosen, are no KDE headers installed. This will fail. +So, check this please and use another prefix!]) +fi + +kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}" +test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs" +kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs" +AC_FIND_FILE($kde_check_lib, $kde_libdirs, kde_libdir) +ac_kde_libraries="$kde_libdir" + +kde_widgetdir=NO +dnl this might be somewhere else +AC_FIND_FILE("kde3/plugins/designer/kdewidgets.la", $kde_libdirs, kde_widgetdir) + +if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then +AC_MSG_ERROR([ +in the prefix, you've chosen, are no KDE libraries installed. This will fail. +So, check this please and use another prefix!]) +fi + +if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then +AC_MSG_ERROR([ +I can't find the designer plugins. These are required and should have been installed +by kdelibs]) +fi + +if test -n "$kde_widgetdir"; then + kde_widgetdir="$kde_widgetdir/kde3/plugins/designer" +fi + + +if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then + ac_cv_have_kde="have_kde=no" +else + ac_cv_have_kde="have_kde=yes \ + ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" +fi + +else dnl test -z $1, e.g. from kdelibs + + ac_cv_have_kde="have_kde=no" + +fi +])dnl + +eval "$ac_cv_have_kde" + +if test "$have_kde" != "yes"; then + if test "${prefix}" = NONE; then + ac_kde_prefix="$ac_default_prefix" + else + ac_kde_prefix="$prefix" + fi + if test "$exec_prefix" = NONE; then + ac_kde_exec_prefix="$ac_kde_prefix" + AC_MSG_RESULT([will be installed in $ac_kde_prefix]) + else + ac_kde_exec_prefix="$exec_prefix" + AC_MSG_RESULT([will be installed in $ac_kde_prefix and $ac_kde_exec_prefix]) + fi + + kde_libraries="${libdir}" + kde_includes="${includedir}" + +else + ac_cv_have_kde="have_kde=yes \ + ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries" + AC_MSG_RESULT([libraries $ac_kde_libraries, headers $ac_kde_includes]) + + kde_libraries="$ac_kde_libraries" + kde_includes="$ac_kde_includes" +fi +AC_SUBST(kde_libraries) +AC_SUBST(kde_includes) + +if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then + KDE_INCLUDES="" +else + KDE_INCLUDES="-I$kde_includes" + all_includes="$KDE_INCLUDES $all_includes" +fi + +KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION" + +KDE_LDFLAGS="-L$kde_libraries" +if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then + all_libraries="$KDE_LDFLAGS $all_libraries" +fi + +AC_SUBST(KDE_LDFLAGS) +AC_SUBST(KDE_INCLUDES) + +AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) + +all_libraries="$all_libraries $USER_LDFLAGS" +all_includes="$all_includes $USER_INCLUDES" +AC_SUBST(all_includes) +AC_SUBST(all_libraries) + +if test -z "$1"; then +KDE_CHECK_UIC_PLUGINS +fi + +ac_kde_libraries="$kde_libdir" + +AC_SUBST(AUTODIRS) + + +]) + +AC_DEFUN([KDE_CHECK_EXTRA_LIBS], +[ +AC_MSG_CHECKING(for extra includes) +AC_ARG_WITH(extra-includes,AC_HELP_STRING([--with-extra-includes=DIR],[adds non standard include paths]), + kde_use_extra_includes="$withval", + kde_use_extra_includes=NONE +) +kde_extra_includes= +if test -n "$kde_use_extra_includes" && \ + test "$kde_use_extra_includes" != "NONE"; then + + ac_save_ifs=$IFS + IFS=':' + for dir in $kde_use_extra_includes; do + kde_extra_includes="$kde_extra_includes $dir" + USER_INCLUDES="$USER_INCLUDES -I$dir" + done + IFS=$ac_save_ifs + kde_use_extra_includes="added" +else + kde_use_extra_includes="no" +fi +AC_SUBST(USER_INCLUDES) + +AC_MSG_RESULT($kde_use_extra_includes) + +kde_extra_libs= +AC_MSG_CHECKING(for extra libs) +AC_ARG_WITH(extra-libs,AC_HELP_STRING([--with-extra-libs=DIR],[adds non standard library paths]), + kde_use_extra_libs=$withval, + kde_use_extra_libs=NONE +) +if test -n "$kde_use_extra_libs" && \ + test "$kde_use_extra_libs" != "NONE"; then + + ac_save_ifs=$IFS + IFS=':' + for dir in $kde_use_extra_libs; do + kde_extra_libs="$kde_extra_libs $dir" + KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir" + USER_LDFLAGS="$USER_LDFLAGS -L$dir" + done + IFS=$ac_save_ifs + kde_use_extra_libs="added" +else + kde_use_extra_libs="no" +fi + +AC_SUBST(USER_LDFLAGS) + +AC_MSG_RESULT($kde_use_extra_libs) + +]) + +AC_DEFUN([KDE_1_CHECK_PATH_HEADERS], +[ + AC_MSG_CHECKING([for KDE headers installed]) + AC_LANG_SAVE + AC_LANG_CPLUSPLUS +cat > conftest.$ac_ext < +#endif +#include +#include "confdefs.h" +#include + +int main() { + printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data()); + printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data()); + printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data()); + printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data()); + printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data()); + printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data()); + printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data()); + printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data()); + printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data()); + printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data()); + printf("kde_wallpaperdir=\\"%s\\"\n", + KApplication::kde_wallpaperdir().data()); + printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data()); + printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data()); + printf("kde_servicesdir=\\"/tmp/dummy\\"\n"); + printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n"); + printf("kde_moduledir=\\"/tmp/dummy\\"\n"); + printf("kde_styledir=\\"/tmp/dummy\\"\n"); + printf("kde_widgetdir=\\"/tmp/dummy\\"\n"); + printf("xdg_appsdir=\\"/tmp/dummy\\"\n"); + printf("xdg_menudir=\\"/tmp/dummy\\"\n"); + printf("xdg_directorydir=\\"/tmp/dummy\\"\n"); + printf("kde_kcfgdir=\\"/tmp/dummy\\"\n"); + return 0; + } +EOF + + ac_save_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$all_includes $CPPFLAGS" + if AC_TRY_EVAL(ac_compile); then + AC_MSG_RESULT(yes) + else + AC_MSG_ERROR([your system is not able to compile a small KDE application! +Check, if you installed the KDE header files correctly. +For more details about this problem, look at the end of config.log.]) + fi + CPPFLAGS=$ac_save_CPPFLAGS + + AC_LANG_RESTORE +]) + +AC_DEFUN([KDE_CHECK_KDEQTADDON], +[ +AC_MSG_CHECKING(for kde-qt-addon) +AC_CACHE_VAL(kde_cv_have_kdeqtaddon, +[ + kde_ldflags_safe="$LDFLAGS" + kde_libs_safe="$LIBS" + kde_cxxflags_safe="$CXXFLAGS" + + LIBS="-lkde-qt-addon $LIBQT $LIBS" + CXXFLAGS="$CXXFLAGS -I$prefix/include -I$prefix/include/kde $all_includes" + LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS" + + AC_TRY_LINK([ + #include + ], + [ + QDomDocument doc; + ], + kde_cv_have_kdeqtaddon=yes, + kde_cv_have_kdeqtaddon=no + ) + + LDFLAGS=$kde_ldflags_safe + LIBS=$kde_libs_safe + CXXFLAGS=$kde_cxxflags_safe +]) + +AC_MSG_RESULT($kde_cv_have_kdeqtaddon) + +if test "$kde_cv_have_kdeqtaddon" = "no"; then + AC_MSG_ERROR([Can't find libkde-qt-addon. You need to install it first. +It is a separate package (and CVS module) named kde-qt-addon.]) +fi +]) + +AC_DEFUN([KDE_CREATE_LIBS_ALIASES], +[ + AC_REQUIRE([KDE_MISC_TESTS]) + AC_REQUIRE([KDE_CHECK_LIBDL]) + AC_REQUIRE([K_PATH_X]) + +if test $kde_qtver = 3; then + case $host in + *cygwin*) lib_kded="-lkdeinit_kded" ;; + *) lib_kded="" ;; + esac + AC_SUBST(LIB_KDED, $lib_kded) + AC_SUBST(LIB_KDECORE, "-lkdecore") + AC_SUBST(LIB_KDEUI, "-lkdeui") + AC_SUBST(LIB_KIO, "-lkio") + AC_SUBST(LIB_KJS, "-lkjs") + AC_SUBST(LIB_SMB, "-lsmb") + AC_SUBST(LIB_KAB, "-lkab") + AC_SUBST(LIB_KABC, "-lkabc") + AC_SUBST(LIB_KHTML, "-lkhtml") + AC_SUBST(LIB_KSPELL, "-lkspell") + AC_SUBST(LIB_KPARTS, "-lkparts") + AC_SUBST(LIB_KDEPRINT, "-lkdeprint") + AC_SUBST(LIB_KUTILS, "-lkutils") + AC_SUBST(LIB_KDEPIM, "-lkdepim") + AC_SUBST(LIB_KIMPROXY, "-lkimproxy") + AC_SUBST(LIB_KNEWSTUFF, "-lknewstuff") + AC_SUBST(LIB_KDNSSD, "-lkdnssd") + AC_SUBST(LIB_KUNITTEST, "-lkunittest") +# these are for backward compatibility + AC_SUBST(LIB_KSYCOCA, "-lkio") + AC_SUBST(LIB_KFILE, "-lkio") +elif test $kde_qtver = 2; then + AC_SUBST(LIB_KDECORE, "-lkdecore") + AC_SUBST(LIB_KDEUI, "-lkdeui") + AC_SUBST(LIB_KIO, "-lkio") + AC_SUBST(LIB_KSYCOCA, "-lksycoca") + AC_SUBST(LIB_SMB, "-lsmb") + AC_SUBST(LIB_KFILE, "-lkfile") + AC_SUBST(LIB_KAB, "-lkab") + AC_SUBST(LIB_KHTML, "-lkhtml") + AC_SUBST(LIB_KSPELL, "-lkspell") + AC_SUBST(LIB_KPARTS, "-lkparts") + AC_SUBST(LIB_KDEPRINT, "-lkdeprint") +else + AC_SUBST(LIB_KDECORE, "-lkdecore -lXext $(LIB_QT)") + AC_SUBST(LIB_KDEUI, "-lkdeui $(LIB_KDECORE)") + AC_SUBST(LIB_KFM, "-lkfm $(LIB_KDECORE)") + AC_SUBST(LIB_KFILE, "-lkfile $(LIB_KFM) $(LIB_KDEUI)") + AC_SUBST(LIB_KAB, "-lkab $(LIB_KIMGIO) $(LIB_KDECORE)") +fi +]) + +AC_DEFUN([AC_PATH_KDE], +[ + AC_BASE_PATH_KDE + AC_ARG_ENABLE(path-check,AC_HELP_STRING([--disable-path-check],[don't try to find out, where to install]), + [ + if test "$enableval" = "no"; + then ac_use_path_checking="default" + else ac_use_path_checking="" + fi + ], + [ + if test "$kde_qtver" = 1; + then ac_use_path_checking="" + else ac_use_path_checking="default" + fi + ] + ) + + AC_CREATE_KFSSTND($ac_use_path_checking) + + AC_SUBST_KFSSTND + KDE_CREATE_LIBS_ALIASES +]) + +dnl KDE_CHECK_FUNC_EXT(, [headers], [sample-use], [C prototype], [autoheader define], [call if found]) +AC_DEFUN([KDE_CHECK_FUNC_EXT], +[ +AC_MSG_CHECKING(for $1) +AC_CACHE_VAL(kde_cv_func_$1, +[ +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +save_CXXFLAGS="$CXXFLAGS" +kde_safe_LIBS="$LIBS" +LIBS="$LIBS $X_EXTRA_LIBS" +if test "$GXX" = "yes"; then +CXXFLAGS="$CXXFLAGS -pedantic-errors" +fi +AC_TRY_COMPILE([ +$2 +], +[ +$3 +], +kde_cv_func_$1=yes, +kde_cv_func_$1=no) +CXXFLAGS="$save_CXXFLAGS" +LIBS="$kde_safe_LIBS" +AC_LANG_RESTORE +]) + +AC_MSG_RESULT($kde_cv_func_$1) + +AC_MSG_CHECKING([if $1 needs custom prototype]) +AC_CACHE_VAL(kde_cv_proto_$1, +[ +if test "x$kde_cv_func_$1" = xyes; then + kde_cv_proto_$1=no +else + case "$1" in + setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat) + kde_cv_proto_$1="yes - in libkdefakes" + ;; + *) + kde_cv_proto_$1=unknown + ;; + esac +fi + +if test "x$kde_cv_proto_$1" = xunknown; then + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + kde_safe_libs=$LIBS + LIBS="$LIBS $X_EXTRA_LIBS" + AC_TRY_LINK([ +$2 + +extern "C" $4; +], +[ +$3 +], +[ kde_cv_func_$1=yes + kde_cv_proto_$1=yes ], + [kde_cv_proto_$1="$1 unavailable"] +) +LIBS=$kde_safe_libs +AC_LANG_RESTORE +fi +]) +AC_MSG_RESULT($kde_cv_proto_$1) + +if test "x$kde_cv_func_$1" = xyes; then + AC_DEFINE(HAVE_$5, 1, [Define if you have $1]) + $6 +fi +if test "x$kde_cv_proto_$1" = xno; then + AC_DEFINE(HAVE_$5_PROTO, 1, + [Define if you have the $1 prototype]) +fi + +AH_VERBATIM([_HAVE_$5_PROTO], +[ +#if !defined(HAVE_$5_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +$4; +#ifdef __cplusplus +} +#endif +#endif +]) +]) + +AC_DEFUN([AC_CHECK_SETENV], +[ + KDE_CHECK_FUNC_EXT(setenv, [ +#include +], + [setenv("VAR", "VALUE", 1);], + [int setenv (const char *, const char *, int)], + [SETENV]) +]) + +AC_DEFUN([AC_CHECK_UNSETENV], +[ + KDE_CHECK_FUNC_EXT(unsetenv, [ +#include +], + [unsetenv("VAR");], + [void unsetenv (const char *)], + [UNSETENV]) +]) + +AC_DEFUN([AC_CHECK_GETDOMAINNAME], +[ + KDE_CHECK_FUNC_EXT(getdomainname, [ +#include +#include +#include +], + [ +char buffer[200]; +getdomainname(buffer, 200); +], + [#include + int getdomainname (char *, size_t)], + [GETDOMAINNAME]) +]) + +AC_DEFUN([AC_CHECK_GETHOSTNAME], +[ + KDE_CHECK_FUNC_EXT(gethostname, [ +#include +#include +], + [ +char buffer[200]; +gethostname(buffer, 200); +], + [int gethostname (char *, unsigned int)], + [GETHOSTNAME]) +]) + +AC_DEFUN([AC_CHECK_USLEEP], +[ + KDE_CHECK_FUNC_EXT(usleep, [ +#include +], + [ +usleep(200); +], + [int usleep (unsigned int)], + [USLEEP]) +]) + + +AC_DEFUN([AC_CHECK_RANDOM], +[ + KDE_CHECK_FUNC_EXT(random, [ +#include +], + [ +random(); +], + [long int random(void)], + [RANDOM]) + + KDE_CHECK_FUNC_EXT(srandom, [ +#include +], + [ +srandom(27); +], + [void srandom(unsigned int)], + [SRANDOM]) + +]) + +AC_DEFUN([AC_CHECK_INITGROUPS], +[ + KDE_CHECK_FUNC_EXT(initgroups, [ +#include +#include +#include +], + [ +char buffer[200]; +initgroups(buffer, 27); +], + [int initgroups(const char *, gid_t)], + [INITGROUPS]) +]) + +AC_DEFUN([AC_CHECK_MKSTEMPS], +[ + KDE_CHECK_FUNC_EXT(mkstemps, [ +#include +#include +], + [ +mkstemps("/tmp/aaaXXXXXX", 6); +], + [int mkstemps(char *, int)], + [MKSTEMPS]) +]) + +AC_DEFUN([AC_CHECK_MKSTEMP], +[ + KDE_CHECK_FUNC_EXT(mkstemp, [ +#include +#include +], + [ +mkstemp("/tmp/aaaXXXXXX"); +], + [int mkstemp(char *)], + [MKSTEMP]) +]) + +AC_DEFUN([AC_CHECK_MKDTEMP], +[ + KDE_CHECK_FUNC_EXT(mkdtemp, [ +#include +#include +], + [ +mkdtemp("/tmp/aaaXXXXXX"); +], + [char *mkdtemp(char *)], + [MKDTEMP]) +]) + + +AC_DEFUN([AC_CHECK_RES_INIT], +[ + AC_MSG_CHECKING([if res_init needs -lresolv]) + kde_libs_safe="$LIBS" + LIBS="$LIBS $X_EXTRA_LIBS -lresolv" + AC_TRY_LINK( + [ +#include +#include +#include +#include + ], + [ + res_init(); + ], + [ + LIBRESOLV="-lresolv" + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_RES_INIT, 1, [Define if you have the res_init function]) + ], + [ AC_MSG_RESULT(no) ] + ) + LIBS=$kde_libs_safe + AC_SUBST(LIBRESOLV) + + KDE_CHECK_FUNC_EXT(res_init, + [ +#include +#include +#include +#include + ], + [res_init()], + [int res_init(void)], + [RES_INIT]) +]) + +AC_DEFUN([AC_CHECK_STRLCPY], +[ + KDE_CHECK_FUNC_EXT(strlcpy, [ +#include +], +[ char buf[20]; + strlcpy(buf, "KDE function test", sizeof(buf)); +], + [unsigned long strlcpy(char*, const char*, unsigned long)], + [STRLCPY]) +]) + +AC_DEFUN([AC_CHECK_STRLCAT], +[ + KDE_CHECK_FUNC_EXT(strlcat, [ +#include +], +[ char buf[20]; + buf[0]='\0'; + strlcat(buf, "KDE function test", sizeof(buf)); +], + [unsigned long strlcat(char*, const char*, unsigned long)], + [STRLCAT]) +]) + +AC_DEFUN([AC_CHECK_RES_QUERY], +[ + KDE_CHECK_FUNC_EXT(res_query, [ +#include +#include +#include +#include +#include +], +[ +res_query(NULL, 0, 0, NULL, 0); +], + [int res_query(const char *, int, int, unsigned char *, int)], + [RES_QUERY]) +]) + +AC_DEFUN([AC_CHECK_DN_SKIPNAME], +[ + KDE_CHECK_FUNC_EXT(dn_skipname, [ +#include +#include +#include +#include +], +[ +dn_skipname (NULL, NULL); +], + [int dn_skipname (unsigned char *, unsigned char *)], + [DN_SKIPNAME]) +]) + + +AC_DEFUN([AC_FIND_GIF], + [AC_MSG_CHECKING([for giflib]) +AC_CACHE_VAL(ac_cv_lib_gif, +[ac_save_LIBS="$LIBS" +if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then +LIBS="$all_libraries -lgif -lX11 $LIBSOCKET" +else +LIBS="$all_libraries -lgif" +fi +AC_TRY_LINK(dnl +[ +#ifdef __cplusplus +extern "C" { +#endif +int GifLastError(void); +#ifdef __cplusplus +} +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +], + [return GifLastError();], + eval "ac_cv_lib_gif=yes", + eval "ac_cv_lib_gif=no") +LIBS="$ac_save_LIBS" +])dnl +if eval "test \"`echo $ac_cv_lib_gif`\" = yes"; then + AC_MSG_RESULT(yes) + AC_DEFINE_UNQUOTED(HAVE_LIBGIF, 1, [Define if you have libgif]) +else + AC_MSG_ERROR(You need giflib30. Please install the kdesupport package) +fi +]) + +AC_DEFUN([KDE_FIND_JPEG_HELPER], +[ +AC_MSG_CHECKING([for libjpeg$2]) +AC_CACHE_VAL(ac_cv_lib_jpeg_$1, +[ +ac_save_LIBS="$LIBS" +LIBS="$all_libraries $USER_LDFLAGS -ljpeg$2 -lm" +ac_save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" +AC_TRY_LINK( +[ +#ifdef __cplusplus +extern "C" { +#endif +void jpeg_CreateDecompress(); +#ifdef __cplusplus +} +#endif +], +[jpeg_CreateDecompress();], + eval "ac_cv_lib_jpeg_$1=-ljpeg$2", + eval "ac_cv_lib_jpeg_$1=no") +LIBS="$ac_save_LIBS" +CFLAGS="$ac_save_CFLAGS" +]) + +if eval "test ! \"`echo $ac_cv_lib_jpeg_$1`\" = no"; then + LIBJPEG="$ac_cv_lib_jpeg_$1" + AC_MSG_RESULT($ac_cv_lib_jpeg_$1) +else + AC_MSG_RESULT(no) + $3 +fi + +]) + +AC_DEFUN([AC_FIND_JPEG], +[ +dnl first look for libraries +KDE_FIND_JPEG_HELPER(6b, 6b, + KDE_FIND_JPEG_HELPER(normal, [], + [ + LIBJPEG= + ] + ) +) + +dnl then search the headers (can't use simply AC_TRY_xxx, as jpeglib.h +dnl requires system dependent includes loaded before it) +jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes" +AC_FIND_FILE(jpeglib.h, $jpeg_incdirs, jpeg_incdir) +test "x$jpeg_incdir" = xNO && jpeg_incdir= + +dnl if headers _and_ libraries are missing, this is no error, and we +dnl continue with a warning (the user will get no jpeg support in khtml) +dnl if only one is missing, it means a configuration error, but we still +dnl only warn +if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then + AC_DEFINE_UNQUOTED(HAVE_LIBJPEG, 1, [Define if you have libjpeg]) +else + if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then + AC_MSG_WARN([ +There is an installation error in jpeg support. You seem to have only one +of either the headers _or_ the libraries installed. You may need to either +provide correct --with-extra-... options, or the development package of +libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/ +Disabling JPEG support. +]) + else + AC_MSG_WARN([libjpeg not found. disable JPEG support.]) + fi + jpeg_incdir= + LIBJPEG= +fi + +AC_SUBST(LIBJPEG) +AH_VERBATIM(_AC_CHECK_JPEG, +[/* + * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system + * headers and I'm too lazy to write a configure test as long as only + * unixware is related + */ +#ifdef _UNIXWARE +#define HAVE_BOOLEAN +#endif +]) +]) + +AC_DEFUN([KDE_CHECK_QT_JPEG], +[ +if test -n "$LIBJPEG"; then +AC_MSG_CHECKING([if Qt needs $LIBJPEG]) +AC_CACHE_VAL(kde_cv_qt_jpeg, +[ +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +ac_save_LIBS="$LIBS" +LIBS="$all_libraries $USER_LDFLAGS $LIBQT" +LIBS=`echo $LIBS | sed "s/$LIBJPEG//"` +ac_save_CXXFLAGS="$CXXFLAGS" +CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES" +AC_TRY_LINK( +[#include ], + [ + int argc; + char** argv; + QApplication app(argc, argv);], + eval "kde_cv_qt_jpeg=no", + eval "kde_cv_qt_jpeg=yes") +LIBS="$ac_save_LIBS" +CXXFLAGS="$ac_save_CXXFLAGS" +AC_LANG_RESTORE +fi +]) + +if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then + AC_MSG_RESULT(yes) + LIBJPEG_QT='$(LIBJPEG)' +else + AC_MSG_RESULT(no) + LIBJPEG_QT= +fi + +]) + +AC_DEFUN([AC_FIND_ZLIB], +[ +AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) +AC_MSG_CHECKING([for libz]) +AC_CACHE_VAL(ac_cv_lib_z, +[ +kde_save_LIBS="$LIBS" +LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET" +kde_save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" +AC_TRY_LINK(dnl +[ +#include +#include +], +[ + char buf[42]; + gzFile f = (gzFile) 0; + /* this would segfault.. but we only link, don't run */ + (void) gzgets(f, buf, sizeof(buf)); + + return (strcmp(zlibVersion(), ZLIB_VERSION) == 0); +], + eval "ac_cv_lib_z='-lz'", + eval "ac_cv_lib_z=no") +LIBS="$kde_save_LIBS" +CFLAGS="$kde_save_CFLAGS" +])dnl +if test ! "$ac_cv_lib_z" = no; then + AC_DEFINE_UNQUOTED(HAVE_LIBZ, 1, [Define if you have libz]) + LIBZ="$ac_cv_lib_z" + AC_MSG_RESULT($ac_cv_lib_z) +else + AC_MSG_ERROR(not found. + Possibly configure picks up an outdated version + installed by XFree86. Remove it from your system. + + Check your installation and look into config.log) + LIBZ="" +fi +AC_SUBST(LIBZ) +]) + +AC_DEFUN([KDE_TRY_TIFFLIB], +[ +AC_MSG_CHECKING([for libtiff $1]) + +AC_CACHE_VAL(kde_cv_libtiff_$1, +[ +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +kde_save_LIBS="$LIBS" +if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then +LIBS="$all_libraries $USER_LDFLAGS -l$1 $LIBJPEG $LIBZ -lX11 $LIBSOCKET -lm" +else +LIBS="$all_libraries $USER_LDFLAGS -l$1 $LIBJPEG $LIBZ -lm" +fi +kde_save_CXXFLAGS="$CXXFLAGS" +CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES" + +AC_TRY_LINK(dnl +[ +#include +], + [return (TIFFOpen( "", "r") == 0); ], +[ + kde_cv_libtiff_$1="-l$1 $LIBJPEG $LIBZ" +], [ + kde_cv_libtiff_$1=no +]) + +LIBS="$kde_save_LIBS" +CXXFLAGS="$kde_save_CXXFLAGS" +AC_LANG_RESTORE +]) + +if test "$kde_cv_libtiff_$1" = "no"; then + AC_MSG_RESULT(no) + LIBTIFF="" + $3 +else + LIBTIFF="$kde_cv_libtiff_$1" + AC_MSG_RESULT(yes) + AC_DEFINE_UNQUOTED(HAVE_LIBTIFF, 1, [Define if you have libtiff]) + $2 +fi + +]) + +AC_DEFUN([AC_FIND_TIFF], +[ +AC_REQUIRE([K_PATH_X]) +AC_REQUIRE([AC_FIND_ZLIB]) +AC_REQUIRE([AC_FIND_JPEG]) +AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) + +KDE_TRY_TIFFLIB(tiff, [], + KDE_TRY_TIFFLIB(tiff34)) + +AC_SUBST(LIBTIFF) +]) + +AC_DEFUN([KDE_FIND_LIBEXR], +[ +AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) +AC_REQUIRE([AC_FIND_ZLIB]) +AC_CACHE_VAL(ac_cv_libexr, +[ + if test -z "$PKG_CONFIG"; then + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + fi + + AC_MSG_CHECKING([for OpenEXR libraries]) + + if test "$PKG_CONFIG" = "no" ; then + AC_MSG_RESULT(no) + echo "*** The pkg-config script could not be found. Make sure it is" + echo "*** in your path, or set the PKG_CONFIG environment variable" + echo "*** to the full path to pkg-config." + echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." + else + if ! $PKG_CONFIG --exists OpenEXR ; then + AC_MSG_RESULT(no) + EXRSTATUS=no + else + if ! $PKG_CONFIG --atleast-version="1.1.1" OpenEXR ; then + AC_MSG_RESULT(no) + EXRSTATUS=old + else + kde_save_LIBS="$LIBS" + LIBS="$LIBS $all_libraries $USER_LDFLAGS `pkg-config --libs OpenEXR` $LIBZ" + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + kde_save_CXXFLAGS="$CXXFLAGS" + EXR_FLAGS=`$PKG_CONFIG --cflags OpenEXR` + CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES $EXR_FLAGS" + + AC_TRY_LINK(dnl + [ + #include + ], + [ + using namespace Imf; + RgbaInputFile file ("dummy"); + return 0; + ], + eval "ac_cv_libexr='`pkg-config --libs OpenEXR`'", + eval "ac_cv_libexr=no" + ) + LIBS="$kde_save_LIBS" + CXXFLAGS="$kde_save_CXXFLAGS" + AC_LANG_RESTORE + ])dnl + if eval "test ! \"`echo $ac_cv_libexr`\" = no"; then + AC_DEFINE_UNQUOTED(HAVE_EXR, 1, [Define if you have OpenEXR]) + LIB_EXR="$ac_cv_libexr" + AC_MSG_RESULT($ac_cv_libexr) + else + AC_MSG_RESULT(no) + LIB_EXR="" + fi + fi + fi + fi + AC_SUBST(LIB_EXR) + AC_SUBST(EXR_FLAGS) +]) + + + +AC_DEFUN([AC_FIND_PNG], +[ +AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) +AC_REQUIRE([AC_FIND_ZLIB]) +AC_MSG_CHECKING([for libpng]) +AC_CACHE_VAL(ac_cv_lib_png, +[ +kde_save_LIBS="$LIBS" +if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then +LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET" +else +LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm" +fi +kde_save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" + +AC_TRY_LINK(dnl + [ + #include + ], + [ + png_structp png_ptr = png_create_read_struct( /* image ptr */ + PNG_LIBPNG_VER_STRING, 0, 0, 0 ); + return( png_ptr != 0 ); + ], + eval "ac_cv_lib_png='-lpng $LIBZ -lm'", + eval "ac_cv_lib_png=no" +) +LIBS="$kde_save_LIBS" +CFLAGS="$kde_save_CFLAGS" +])dnl +if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then + AC_DEFINE_UNQUOTED(HAVE_LIBPNG, 1, [Define if you have libpng]) + LIBPNG="$ac_cv_lib_png" + AC_SUBST(LIBPNG) + AC_MSG_RESULT($ac_cv_lib_png) +else + AC_MSG_RESULT(no) + LIBPNG="" + AC_SUBST(LIBPNG) +fi +]) + + +AC_DEFUN([AC_FIND_JASPER], +[ +AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) +AC_REQUIRE([AC_FIND_JPEG]) +AC_MSG_CHECKING([for jasper]) +AC_CACHE_VAL(ac_cv_jasper, +[ +kde_save_LIBS="$LIBS" +LIBS="$LIBS $all_libraries $USER_LDFLAGS -ljasper $LIBJPEG -lm" +kde_save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" + +AC_TRY_LINK(dnl + [ + #include + ], + [ + return( jas_init() ); + ], + eval "ac_cv_jasper='-ljasper $LIBJPEG -lm'", + eval "ac_cv_jasper=no" +) +LIBS="$kde_save_LIBS" +CFLAGS="$kde_save_CFLAGS" +])dnl +if eval "test ! \"`echo $ac_cv_jasper`\" = no"; then + AC_DEFINE_UNQUOTED(HAVE_JASPER, 1, [Define if you have jasper]) + LIB_JASPER="$ac_cv_jasper" + AC_MSG_RESULT($ac_cv_jasper) +else + AC_MSG_RESULT(no) + LIB_JASPER="" +fi +AC_SUBST(LIB_JASPER) +]) + +AC_DEFUN([AC_CHECK_BOOL], +[ + AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool]) +]) + +AC_DEFUN([AC_CHECK_GNU_EXTENSIONS], +[ +AC_MSG_CHECKING(if you need GNU extensions) +AC_CACHE_VAL(ac_cv_gnu_extensions, +[ +cat > conftest.c << EOF +#include + +#ifdef __GNU_LIBRARY__ +yes +#endif +EOF + +if (eval "$ac_cpp conftest.c") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_gnu_extensions=yes +else + ac_cv_gnu_extensions=no +fi +]) + +AC_MSG_RESULT($ac_cv_gnu_extensions) +if test "$ac_cv_gnu_extensions" = "yes"; then + AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions]) +fi +]) + +AC_DEFUN([KDE_CHECK_COMPILER_FLAG], +[ +AC_MSG_CHECKING([whether $CXX supports -$1]) +kde_cache=`echo $1 | sed 'y% .=/+-,%____p__%'` +AC_CACHE_VAL(kde_cv_prog_cxx_$kde_cache, +[ + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -$1" + AC_TRY_LINK([],[ return 0; ], [eval "kde_cv_prog_cxx_$kde_cache=yes"], []) + CXXFLAGS="$save_CXXFLAGS" + AC_LANG_RESTORE +]) +if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then + AC_MSG_RESULT(yes) + : + $2 +else + AC_MSG_RESULT(no) + : + $3 +fi +]) + +AC_DEFUN([KDE_CHECK_C_COMPILER_FLAG], +[ +AC_MSG_CHECKING([whether $CC supports -$1]) +kde_cache=`echo $1 | sed 'y% .=/+-,%____p__%'` +AC_CACHE_VAL(kde_cv_prog_cc_$kde_cache, +[ + AC_LANG_SAVE + AC_LANG_C + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -$1" + AC_TRY_LINK([],[ return 0; ], [eval "kde_cv_prog_cc_$kde_cache=yes"], []) + CFLAGS="$save_CFLAGS" + AC_LANG_RESTORE +]) +if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then + AC_MSG_RESULT(yes) + : + $2 +else + AC_MSG_RESULT(no) + : + $3 +fi +]) + + +dnl AC_REMOVE_FORBIDDEN removes forbidden arguments from variables +dnl use: AC_REMOVE_FORBIDDEN(CC, [-forbid -bad-option whatever]) +dnl it's all white-space separated +AC_DEFUN([AC_REMOVE_FORBIDDEN], +[ __val=$$1 + __forbid=" $2 " + if test -n "$__val"; then + __new="" + ac_save_IFS=$IFS + IFS=" " + for i in $__val; do + case "$__forbid" in + *" $i "*) AC_MSG_WARN([found forbidden $i in $1, removing it]) ;; + *) # Careful to not add spaces, where there were none, because otherwise + # libtool gets confused, if we change e.g. CXX + if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; + esac + done + IFS=$ac_save_IFS + $1=$__new + fi +]) + + +AC_DEFUN([KDE_CHECK_FOR_BAD_COMPILER], +[ + AC_MSG_CHECKING([whether $CC is blacklisted]) + + dnl In theory we have tu run this test against $CC and $CXX + dnl in C and in C++ mode, because its perfectly legal for + dnl the user to mix compiler versions, since C has a defined + dnl ABI. + dnl + dnl For now, we assume the user is not on crack. + + AC_TRY_COMPILE([ +#ifdef __GNUC__ +#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0 +choke me +#endif +#endif +], , + kde_bad_compiler=no, + kde_bad_compiler=yes +) + + AC_MSG_RESULT($kde_bad_compiler) + +if test "$kde_bad_compiler" = "yes"; then + AC_MSG_ERROR([ + +This particular compiler version is blacklisted because it +is known to miscompile KDE. Please use a newer version, or +if that is not yet available, choose an older version. + +Please do not report a bug or bother us reporting this +configure error. We know about it, and we introduced +it by intention to avoid untraceable bugs or crashes in KDE. + +]) +fi + +]) + + +AC_DEFUN([KDE_CHECK_FOR_OPT_NOINLINE_MATCH], +[ + AC_CACHE_CHECK([whether system headers can cope with -O2 -fno-inline], + kde_cv_opt_noinline_match, + [ + kde_cv_opt_noinline_match=irrelevant + dnl if we don't use both -O2 and -fno-inline, this check is moot + if echo "$CFLAGS" | grep -e -O2 >/dev/null 2>/dev/null \ + && echo "$CFLAGS" | grep -e -fno-inline >/dev/null 2>/dev/null ; then + + ac_cflags_save="$CFLAGS" + CFLAGS="$CFLAGS -D_USE_GNU" + + AC_TRY_LINK([ + #include +], [ const char *pt, *et; + et = __extension__ ({ char __a0, __a1, __a2; (__builtin_constant_p ( ";," ) && ((size_t)(const void *)(( ";," )+ 1) - (size_t)(const void *)( ";," ) == 1) ? ((__a0 =((__const char *) ( ";," ))[0], __a0 == '\0') ? ((void) ( pt ),((void *)0) ) : ((__a1 = ((__const char *) ( ";," ))[1], __a1== '\0') ? (__extension__ (__builtin_constant_p ( __a0 ) && ( __a0 ) == '\0' ? (char *) __rawmemchr ( pt , __a0) : strchr( pt , __a0 ))) : ((__a2 = ((__const char *) ( ";," ))[2], __a2 == '\0') ? __strpbrk_c2 ( pt , __a0, __a1) :(((__const char *) ( ";," ))[3] == '\0' ? __strpbrk_c3 ( pt ,__a0, __a1, __a2): strpbrk ( pt , ";," ))))) : strpbrk ( pt , ";," )); }) ; +], + kde_cv_opt_noinline_match=yes, + kde_cv_opt_noinline_match=no + ) + + CFLAGS="$ac_cflags_save" + fi + ]) +]) + + +dnl AC_VALIDIFY_CXXFLAGS checks for forbidden flags the user may have given +AC_DEFUN([AC_VALIDIFY_CXXFLAGS], +[dnl +if test "x$kde_use_qt_emb" != "xyes"; then + AC_REMOVE_FORBIDDEN(CXX, [-fno-rtti -rpath]) + AC_REMOVE_FORBIDDEN(CXXFLAGS, [-fno-rtti -rpath]) +else + AC_REMOVE_FORBIDDEN(CXX, [-rpath]) + AC_REMOVE_FORBIDDEN(CXXFLAGS, [-rpath]) +fi +]) + +AC_DEFUN([AC_CHECK_COMPILERS], +[ + AC_ARG_ENABLE(debug, + AC_HELP_STRING([--enable-debug=ARG],[enables debug symbols (yes|no|full) [default=no]]), + [ + case $enableval in + yes) + kde_use_debug_code="yes" + kde_use_debug_define=no + ;; + full) + kde_use_debug_code="full" + kde_use_debug_define=no + ;; + *) + kde_use_debug_code="no" + kde_use_debug_define=yes + ;; + esac + ], + [kde_use_debug_code="no" + kde_use_debug_define=no + ]) + + dnl Just for configure --help + AC_ARG_ENABLE(dummyoption, + AC_HELP_STRING([--disable-debug], + [disables debug output and debug symbols [default=no]]), + [],[]) + + AC_ARG_ENABLE(strict, + AC_HELP_STRING([--enable-strict], + [compiles with strict compiler options (may not work!)]), + [ + if test $enableval = "no"; then + kde_use_strict_options="no" + else + kde_use_strict_options="yes" + fi + ], [kde_use_strict_options="no"]) + + AC_ARG_ENABLE(warnings,AC_HELP_STRING([--disable-warnings],[disables compilation with -Wall and similar]), + [ + if test $enableval = "no"; then + kde_use_warnings="no" + else + kde_use_warnings="yes" + fi + ], [kde_use_warnings="yes"]) + + dnl enable warnings for debug build + if test "$kde_use_debug_code" != "no"; then + kde_use_warnings=yes + fi + + AC_ARG_ENABLE(profile,AC_HELP_STRING([--enable-profile],[creates profiling infos [default=no]]), + [kde_use_profiling=$enableval], + [kde_use_profiling="no"] + ) + + dnl this prevents stupid AC_PROG_CC to add "-g" to the default CFLAGS + CFLAGS=" $CFLAGS" + + AC_PROG_CC + + AC_PROG_CPP + + if test "$GCC" = "yes"; then + if test "$kde_use_debug_code" != "no"; then + if test $kde_use_debug_code = "full"; then + CFLAGS="-g3 -fno-inline $CFLAGS" + else + CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS" + fi + else + CFLAGS="-O2 $CFLAGS" + fi + fi + + if test "$kde_use_debug_define" = "yes"; then + CFLAGS="-DNDEBUG $CFLAGS" + fi + + + case "$host" in + *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";; + *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";; + esac + + if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then + LDFLAGS="" + fi + + CXXFLAGS=" $CXXFLAGS" + + AC_PROG_CXX + + KDE_CHECK_FOR_BAD_COMPILER + + if test "$GXX" = "yes" || test "$CXX" = "KCC"; then + if test "$kde_use_debug_code" != "no"; then + if test "$CXX" = "KCC"; then + CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS" + else + if test "$kde_use_debug_code" = "full"; then + CXXFLAGS="-g3 -fno-inline $CXXFLAGS" + else + CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS" + fi + fi + KDE_CHECK_COMPILER_FLAG(fno-builtin,[CXXFLAGS="-fno-builtin $CXXFLAGS"]) + + dnl convenience compiler flags + KDE_CHECK_COMPILER_FLAG(Woverloaded-virtual, [WOVERLOADED_VIRTUAL="-Woverloaded-virtual"], [WOVERLOADED_VRITUAL=""]) + AC_SUBST(WOVERLOADED_VIRTUAL) + else + if test "$CXX" = "KCC"; then + CXXFLAGS="+K3 $CXXFLAGS" + else + CXXFLAGS="-O2 $CXXFLAGS" + fi + fi + fi + + if test "$kde_use_debug_define" = "yes"; then + CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS" + fi + + if test "$kde_use_profiling" = "yes"; then + KDE_CHECK_COMPILER_FLAG(pg, + [ + CFLAGS="-pg $CFLAGS" + CXXFLAGS="-pg $CXXFLAGS" + ]) + fi + + if test "$kde_use_warnings" = "yes"; then + if test "$GCC" = "yes"; then + CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS" + case $host in + *-*-linux-gnu) + CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" + CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS" + KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"]) + KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"]) + ;; + esac + KDE_CHECK_COMPILER_FLAG(Wundef,[CXXFLAGS="-Wundef $CXXFLAGS"]) + KDE_CHECK_COMPILER_FLAG(Wno-long-long,[CXXFLAGS="-Wno-long-long $CXXFLAGS"]) + dnl ### FIXME: revert for KDE 4 + KDE_CHECK_COMPILER_FLAG(Wno-non-virtual-dtor,[CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"]) + fi + fi + + if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then + CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS" + fi + + AC_ARG_ENABLE(pch, + AC_HELP_STRING([--enable-pch], + [enables precompiled header support (currently only KCC or gcc >=3.4+unsermake) [default=no]]), + [ kde_use_pch=$enableval ],[ kde_use_pch=no ]) + + HAVE_GCC_VISIBILITY=0 + AC_SUBST([HAVE_GCC_VISIBILITY]) + + if test "$GXX" = "yes"; then + gcc_no_reorder_blocks=NO + KDE_CHECK_COMPILER_FLAG(fno-reorder-blocks,[gcc_no_reorder_blocks=YES]) + if test $kde_use_debug_code != "no" && \ + test $kde_use_debug_code != "full" && \ + test "YES" = "$gcc_no_reorder_blocks" ; then + CXXFLAGS="$CXXFLAGS -fno-reorder-blocks" + CFLAGS="$CFLAGS -fno-reorder-blocks" + fi + KDE_CHECK_COMPILER_FLAG(fno-exceptions,[CXXFLAGS="$CXXFLAGS -fno-exceptions"]) + KDE_CHECK_COMPILER_FLAG(fno-check-new, [CXXFLAGS="$CXXFLAGS -fno-check-new"]) + KDE_CHECK_COMPILER_FLAG(fno-common, [CXXFLAGS="$CXXFLAGS -fno-common"]) + KDE_CHECK_COMPILER_FLAG(fexceptions, [USE_EXCEPTIONS="-fexceptions"], USE_EXCEPTIONS= ) + ENABLE_PERMISSIVE_FLAG="-fpermissive" + + if test "$kde_use_pch" = "yes"; then + AC_MSG_CHECKING(whether gcc supports precompiling c header files) + echo >conftest.h + if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then + kde_gcc_supports_pch=yes + AC_MSG_RESULT(yes) + else + kde_gcc_supports_pch=no + AC_MSG_RESULT(no) + fi + if test "$kde_gcc_supports_pch" = "yes"; then + AC_MSG_CHECKING(whether gcc supports precompiling c++ header files) + if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then + kde_gcc_supports_pch=yes + AC_MSG_RESULT(yes) + else + kde_gcc_supports_pch=no + AC_MSG_RESULT(no) + fi + fi + rm -f conftest.h conftest.h.gch + fi + + KDE_CHECK_FOR_OPT_NOINLINE_MATCH + if test "x$kde_cv_opt_noinline_match" = "xno" ; then + CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`" + fi + fi + AM_CONDITIONAL(unsermake_enable_pch, test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes") + if test "$CXX" = "KCC"; then + dnl unfortunately we currently cannot disable exception support in KCC + dnl because doing so is binary incompatible and Qt by default links with exceptions :-( + dnl KDE_CHECK_COMPILER_FLAG(-no_exceptions,[CXXFLAGS="$CXXFLAGS --no_exceptions"]) + dnl KDE_CHECK_COMPILER_FLAG(-exceptions, [USE_EXCEPTIONS="--exceptions"], USE_EXCEPTIONS= ) + + if test "$kde_use_pch" = "yes"; then + dnl TODO: support --pch-dir! + KDE_CHECK_COMPILER_FLAG(-pch,[CXXFLAGS="$CXXFLAGS --pch"]) + dnl the below works (but the dir must exist), but it's + dnl useless for a whole package. + dnl The are precompiled headers for each source file, so when compiling + dnl from scratch, it doesn't make a difference, and they take up + dnl around ~5Mb _per_ sourcefile. + dnl KDE_CHECK_COMPILER_FLAG(-pch_dir /tmp, + dnl [CXXFLAGS="$CXXFLAGS --pch_dir `pwd`/pcheaders"]) + fi + dnl this flag controls inlining. by default KCC inlines in optimisation mode + dnl all implementations that are defined inside the class {} declaration. + dnl because of templates-compatibility with broken gcc compilers, this + dnl can cause excessive inlining. This flag limits it to a sane level + KDE_CHECK_COMPILER_FLAG(-inline_keyword_space_time=6,[CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"]) + KDE_CHECK_COMPILER_FLAG(-inline_auto_space_time=2,[CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"]) + KDE_CHECK_COMPILER_FLAG(-inline_implicit_space_time=2.0,[CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"]) + KDE_CHECK_COMPILER_FLAG(-inline_generated_space_time=2.0,[CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"]) + dnl Some source files are shared between multiple executables + dnl (or libraries) and some of those need template instantiations. + dnl In that case KCC needs to compile those sources with + dnl --one_instantiation_per_object. To make it easy for us we compile + dnl _all_ objects with that flag (--one_per is a shorthand). + KDE_CHECK_COMPILER_FLAG(-one_per, [CXXFLAGS="$CXXFLAGS --one_per"]) + fi + AC_SUBST(USE_EXCEPTIONS) + dnl obsolete macro - provided to keep things going + USE_RTTI= + AC_SUBST(USE_RTTI) + + case "$host" in + *-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;; + *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";; + *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";; + *-*-solaris*) + if test "$GXX" = yes; then + libstdcpp=`$CXX -print-file-name=libstdc++.so` + if test ! -f $libstdcpp; then + AC_MSG_ERROR([You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so]) + fi + fi + ;; + esac + + AC_VALIDIFY_CXXFLAGS + + AC_PROG_CXXCPP + + if test "$GCC" = yes; then + NOOPT_CFLAGS=-O0 + fi + KDE_CHECK_COMPILER_FLAG(O0,[NOOPT_CXXFLAGS=-O0]) + + AC_ARG_ENABLE(coverage, + AC_HELP_STRING([--enable-coverage],[use gcc coverage testing]), [ + if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then + ac_coverage_compiler="-fprofile-arcs -ftest-coverage" + ac_coverage_linker="-lgcc" + elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then + ac_coverage_compiler="-fprofile-arcs -ftest-coverage" + ac_coverage_linker="" + else + AC_MSG_ERROR([coverage with your compiler is not supported]) + fi + CFLAGS="$CFLAGS $ac_coverage_compiler" + CXXFLAGS="$CXXFLAGS $ac_coverage_compiler" + LDFLAGS="$LDFLAGS $ac_coverage_linker" + ]) + + AC_SUBST(NOOPT_CXXFLAGS) + AC_SUBST(NOOPT_CFLAGS) + AC_SUBST(ENABLE_PERMISSIVE_FLAG) + + KDE_CHECK_NEW_LDFLAGS + KDE_CHECK_FINAL + KDE_CHECK_CLOSURE + KDE_CHECK_NMCHECK + + ifdef([AM_DEPENDENCIES], AC_REQUIRE([KDE_ADD_DEPENDENCIES]), []) +]) + +AC_DEFUN([KDE_CHECK_VISIBILITY_GCC_BUG], + [ + AC_CACHE_CHECK([for gcc -fvisibility-inlines-hidden bug], kde_cv_val_gcc_visibility_bug, + [ + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + + safe_CXXFLAGS=$CXXFLAGS + safe_LDFLAGS=$LDFLAGS + CXXFLAGS="$CXXFLAGS -fPIC -fvisibility-inlines-hidden -O0" + LDFLAGS="$LDFLAGS -shared -fPIC" + + AC_TRY_LINK( + [ + /* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */ + #include + int some_function( void ) __attribute__ ((visibility("default"))); + int some_function( void ) + { + std::string s("blafasel"); + return 0; + } + ], [/* elvis is alive */], + kde_cv_val_gcc_visibility_bug=no, kde_cv_val_gcc_visibility_bug=yes) + + CXXFLAGS=$safe_CXXFLAGS + LDFLAGS=$safe_LDFLAGS + AC_LANG_RESTORE + ] + ) + + if test x$kde_cv_val_gcc_visibility_bug = xno; then + CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" + fi + ] +) + +AC_DEFUN([KDE_ENABLE_HIDDEN_VISIBILITY], +[ + AC_BEFORE([AC_PATH_QT_1_3], [KDE_ENABLE_HIDDEN_VISIBILITY]) + + AC_MSG_CHECKING([grepping for visibility push/pop in headers]) + + if test "x$GXX" = "xyes"; then + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_EGREP_CPP( + [GCC visibility push], + [ #include + ], + [ + AC_MSG_RESULT(yes) + kde_stdc_visibility_patched=yes ], + [ + AC_MSG_RESULT(no) + AC_MSG_WARN([Your libstdc++ doesn't appear to be patched for + visibility support. Disabling -fvisibility=hidden]) + + kde_stdc_visibility_patched=no ]) + + AC_LANG_RESTORE + + kde_have_gcc_visibility=no + KDE_CHECK_COMPILER_FLAG(fvisibility=hidden, + [ + kde_have_gcc_visibility=yes + dnl the whole toolchain is just a mess, gcc is just too buggy + dnl to handle STL with visibility enabled. Lets reconsider + dnl when gcc 4.2 is out or when things get fixed in the compiler. + dnl Contact mueller@kde.org for details. + AC_ARG_ENABLE(gcc-hidden-visibility, + AC_HELP_STRING([--enable-gcc-hidden-visibility],[toolchain hidden visibility [default=no]]), + [kde_have_gcc_visibility=$enableval], + [kde_have_gcc_visibility=no]) + + AC_CACHE_CHECK([if Qt is patched for -fvisibility], kde_cv_val_qt_gcc_visibility_patched, + [ + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + + safe_CXXFLAGS=$CXXFLAGS + CXXFLAGS="$CXXFLAGS $all_includes" + + AC_TRY_COMPILE( + [ +#include +#if Q_EXPORT - 0 != 0 +/* if this compiles, then Q_EXPORT is undefined */ +/* if Q_EXPORT is nonempty, this will break compilation */ +#endif + ], [/* elvis is alive */], + kde_cv_val_qt_gcc_visibility_patched=no, kde_cv_val_qt_gcc_visibility_patched=yes) + + CXXFLAGS=$safe_CXXFLAGS + AC_LANG_RESTORE + ] + ) + + if test x$kde_have_gcc_visibility = "xyes" && test x$kde_stdc_visibility_patched = "xyes" && test x$kde_cv_val_qt_gcc_visibility_patched = "xyes"; then + CXXFLAGS="$CXXFLAGS -fvisibility=hidden" + KDE_CHECK_VISIBILITY_GCC_BUG + HAVE_GCC_VISIBILITY=1 + AC_DEFINE_UNQUOTED(__KDE_HAVE_GCC_VISIBILITY, "$HAVE_GCC_VISIBILITY", [define to 1 if -fvisibility is supported]) + fi + ]) + fi +]) + +AC_DEFUN([KDE_ADD_DEPENDENCIES], +[ + [A]M_DEPENDENCIES(CC) + [A]M_DEPENDENCIES(CXX) +]) + +dnl just a wrapper to clean up configure.in +AC_DEFUN([KDE_PROG_LIBTOOL], +[ +AC_REQUIRE([AC_CHECK_COMPILERS]) +AC_REQUIRE([AC_ENABLE_SHARED]) +AC_REQUIRE([AC_ENABLE_STATIC]) + +AC_REQUIRE([AC_LIBTOOL_DLOPEN]) +AC_REQUIRE([KDE_CHECK_LIB64]) + +AC_OBJEXT +AC_EXEEXT + +AM_PROG_LIBTOOL +AC_LIBTOOL_CXX + +LIBTOOL_SHELL="/bin/sh ./libtool" +# LIBTOOL="$LIBTOOL --silent" +KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)" +AC_SUBST(KDE_PLUGIN) + +# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs. +KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)" +AC_SUBST(KDE_CHECK_PLUGIN) + +# we patch configure quite some so we better keep that consistent for incremental runs +AC_SUBST(AUTOCONF,'$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure') +]) + +AC_DEFUN([KDE_CHECK_LIB64], +[ + AC_ARG_ENABLE(libsuffix, + AC_HELP_STRING([--enable-libsuffix], + [/lib directory suffix (64,32,none,auto[=default])]), + kdelibsuff=$enableval, kdelibsuff="auto") + + if test "$kdelibsuff" = "auto"; then + +cat > conftest.c << EOF +#include +int main() { + return 0; +} +EOF + kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{ + s,.*/lib\([[^\/]]*\)/.*,\1, + p +}'` + rm -rf conftest.* + fi + + if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then + kdelibsuff= + fi + if test -z "$kdelibsuff"; then + AC_MSG_RESULT([not using lib directory suffix]) + AC_DEFINE(KDELIBSUFF, [""], Suffix for lib directories) + else + if test "$libdir" = '${exec_prefix}/lib'; then + libdir="$libdir${kdelibsuff}" + AC_SUBST([libdir], ["$libdir"]) dnl ugly hack for lib64 platforms + fi + AC_DEFINE_UNQUOTED(KDELIBSUFF, ["${kdelibsuff}"], Suffix for lib directories) + AC_MSG_RESULT([using lib directory suffix $kdelibsuff]) + fi +]) + +AC_DEFUN([KDE_CHECK_TYPES], +[ AC_CHECK_SIZEOF(int, 4)dnl + AC_CHECK_SIZEOF(short)dnl + AC_CHECK_SIZEOF(long, 4)dnl + AC_CHECK_SIZEOF(char *, 4)dnl +])dnl + +dnl Not used - kept for compat only? +AC_DEFUN([KDE_DO_IT_ALL], +[ +AC_CANONICAL_SYSTEM +AC_ARG_PROGRAM +AM_INIT_AUTOMAKE($1, $2) +AM_DISABLE_LIBRARIES +AC_PREFIX_DEFAULT(${KDEDIR:-/usr/local/kde}) +AC_CHECK_COMPILERS +KDE_PROG_LIBTOOL +AM_KDE_WITH_NLS +AC_PATH_KDE +]) + +AC_DEFUN([AC_CHECK_RPATH], +[ +AC_MSG_CHECKING(for rpath) +AC_ARG_ENABLE(rpath, + AC_HELP_STRING([--disable-rpath],[do not use the rpath feature of ld]), + USE_RPATH=$enableval, USE_RPATH=yes) + +if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then + + KDE_RPATH="-R \$(libdir)" + + if test "$kde_libraries" != "$libdir"; then + KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)" + fi + + if test -n "$qt_libraries"; then + KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)" + fi + dnl $x_libraries is set to /usr/lib in case + if test -n "$X_LDFLAGS"; then + X_RPATH="-R \$(x_libraries)" + KDE_RPATH="$KDE_RPATH $X_RPATH" + fi + if test -n "$KDE_EXTRA_RPATH"; then + KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)" + fi +fi +AC_SUBST(KDE_EXTRA_RPATH) +AC_SUBST(KDE_RPATH) +AC_SUBST(X_RPATH) +AC_MSG_RESULT($USE_RPATH) +]) + +dnl Check for the type of the third argument of getsockname +AC_DEFUN([AC_CHECK_SOCKLEN_T], +[ + AC_MSG_CHECKING(for socklen_t) + AC_CACHE_VAL(kde_cv_socklen_t, + [ + AC_LANG_PUSH(C++) + kde_cv_socklen_t=no + AC_TRY_COMPILE([ + #include + #include + ], + [ + socklen_t len; + getpeername(0,0,&len); + ], + [ + kde_cv_socklen_t=yes + kde_cv_socklen_t_equiv=socklen_t + ]) + AC_LANG_POP(C++) + ]) + AC_MSG_RESULT($kde_cv_socklen_t) + if test $kde_cv_socklen_t = no; then + AC_MSG_CHECKING([for socklen_t equivalent for socket functions]) + AC_CACHE_VAL(kde_cv_socklen_t_equiv, + [ + kde_cv_socklen_t_equiv=int + AC_LANG_PUSH(C++) + for t in int size_t unsigned long "unsigned long"; do + AC_TRY_COMPILE([ + #include + #include + ], + [ + $t len; + getpeername(0,0,&len); + ], + [ + kde_cv_socklen_t_equiv="$t" + break + ]) + done + AC_LANG_POP(C++) + ]) + AC_MSG_RESULT($kde_cv_socklen_t_equiv) + fi + AC_DEFINE_UNQUOTED(kde_socklen_t, $kde_cv_socklen_t_equiv, + [type to use in place of socklen_t if not defined]) + AC_DEFINE_UNQUOTED(ksize_t, $kde_cv_socklen_t_equiv, + [type to use in place of socklen_t if not defined (deprecated, use kde_socklen_t)]) +]) + +dnl This is a merge of some macros out of the gettext aclocal.m4 +dnl since we don't need anything, I took the things we need +dnl the copyright for them is: +dnl > +dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. +dnl This Makefile.in is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. +dnl > +dnl for this file it is relicensed under LGPL + +AC_DEFUN([AM_KDE_WITH_NLS], + [ + dnl If we use NLS figure out what method + + AM_PATH_PROG_WITH_TEST_KDE(MSGFMT, msgfmt, + [test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"], msgfmt) + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) + + if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then + AC_MSG_RESULT([found msgfmt program is not GNU msgfmt; ignore it]) + GMSGFMT=":" + fi + MSGFMT=$GMSGFMT + AC_SUBST(GMSGFMT) + AC_SUBST(MSGFMT) + + AM_PATH_PROG_WITH_TEST_KDE(XGETTEXT, xgettext, + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) + + dnl Test whether we really found GNU xgettext. + if test "$XGETTEXT" != ":"; then + dnl If it is no GNU xgettext we define it as : so that the + dnl Makefiles still can work. + if $XGETTEXT --omit-header /dev/null 2> /dev/null; then + : ; + else + AC_MSG_RESULT( + [found xgettext programs is not GNU xgettext; ignore it]) + XGETTEXT=":" + fi + fi + AC_SUBST(XGETTEXT) + + ]) + +# Search path for a program which passes the given test. +# Ulrich Drepper , 1996. + +# serial 1 +# Stephan Kulow: I appended a _KDE against name conflicts + +dnl AM_PATH_PROG_WITH_TEST_KDE(VARIABLE, PROG-TO-CHECK-FOR, +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) +AC_DEFUN([AM_PATH_PROG_WITH_TEST_KDE], +[# Extract the first word of "$2", so it can be a program name with args. +set dummy $2; ac_word=[$]2 +AC_MSG_CHECKING([for $ac_word]) +AC_CACHE_VAL(ac_cv_path_$1, +[case "[$]$1" in + /*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in ifelse([$5], , $PATH, [$5]); do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if [$3]; then + ac_cv_path_$1="$ac_dir/$ac_word" + break + fi + fi + done + IFS="$ac_save_ifs" +dnl If no 4th arg is given, leave the cache variable unset, +dnl so AC_PATH_PROGS will keep looking. +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" +])dnl + ;; +esac])dnl +$1="$ac_cv_path_$1" +if test -n "[$]$1"; then + AC_MSG_RESULT([$]$1) +else + AC_MSG_RESULT(no) +fi +AC_SUBST($1)dnl +]) + + +# Check whether LC_MESSAGES is available in . +# Ulrich Drepper , 1995. + +# serial 1 + +AC_DEFUN([AM_LC_MESSAGES], + [if test $ac_cv_header_locale_h = yes; then + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, + [AC_TRY_LINK([#include ], [return LC_MESSAGES], + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) + if test $am_cv_val_LC_MESSAGES = yes; then + AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your locale.h file contains LC_MESSAGES]) + fi + fi]) + +dnl From Jim Meyering. +dnl FIXME: migrate into libit. + +AC_DEFUN([AM_FUNC_OBSTACK], +[AC_CACHE_CHECK([for obstacks], am_cv_func_obstack, + [AC_TRY_LINK([#include "obstack.h"], + [struct obstack *mem;obstack_free(mem,(char *) 0)], + am_cv_func_obstack=yes, + am_cv_func_obstack=no)]) + if test $am_cv_func_obstack = yes; then + AC_DEFINE(HAVE_OBSTACK) + else + LIBOBJS="$LIBOBJS obstack.o" + fi +]) + +dnl From Jim Meyering. Use this if you use the GNU error.[ch]. +dnl FIXME: Migrate into libit + +AC_DEFUN([AM_FUNC_ERROR_AT_LINE], +[AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line, + [AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");], + am_cv_lib_error_at_line=yes, + am_cv_lib_error_at_line=no)]) + if test $am_cv_lib_error_at_line = no; then + LIBOBJS="$LIBOBJS error.o" + fi + AC_SUBST(LIBOBJS)dnl +]) + +# Macro to add for using GNU gettext. +# Ulrich Drepper , 1995. + +# serial 1 +# Stephan Kulow: I put a KDE in it to avoid name conflicts + +AC_DEFUN([AM_KDE_GNU_GETTEXT], + [AC_REQUIRE([AC_PROG_MAKE_SET])dnl + AC_REQUIRE([AC_PROG_RANLIB])dnl + AC_REQUIRE([AC_HEADER_STDC])dnl + AC_REQUIRE([AC_TYPE_OFF_T])dnl + AC_REQUIRE([AC_TYPE_SIZE_T])dnl + AC_REQUIRE([AC_FUNC_ALLOCA])dnl + AC_REQUIRE([AC_FUNC_MMAP])dnl + AC_REQUIRE([AM_KDE_WITH_NLS])dnl + AC_CHECK_HEADERS([limits.h locale.h nl_types.h string.h values.h alloca.h]) + AC_CHECK_FUNCS([getcwd munmap putenv setlocale strchr strcasecmp \ +__argz_count __argz_stringify __argz_next]) + + AC_MSG_CHECKING(for stpcpy) + AC_CACHE_VAL(kde_cv_func_stpcpy, + [ + kde_safe_cxxflags=$CXXFLAGS + CXXFLAGS="-Werror" + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([ + #include + ], + [ + char buffer[200]; + stpcpy(buffer, buffer); + ], + kde_cv_func_stpcpy=yes, + kde_cv_func_stpcpy=no) + AC_LANG_RESTORE + CXXFLAGS=$kde_safe_cxxflags + ]) + AC_MSG_RESULT($kde_cv_func_stpcpy) + if eval "test \"`echo $kde_cv_func_stpcpy`\" = yes"; then + AC_DEFINE(HAVE_STPCPY, 1, [Define if you have stpcpy]) + fi + + AM_LC_MESSAGES + + if test "x$CATOBJEXT" != "x"; then + if test "x$ALL_LINGUAS" = "x"; then + LINGUAS= + else + AC_MSG_CHECKING(for catalogs to be installed) + NEW_LINGUAS= + for lang in ${LINGUAS=$ALL_LINGUAS}; do + case "$ALL_LINGUAS" in + *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; + esac + done + LINGUAS=$NEW_LINGUAS + AC_MSG_RESULT($LINGUAS) + fi + + dnl Construct list of names of catalog files to be constructed. + if test -n "$LINGUAS"; then + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done + fi + fi + + ]) + +AC_DEFUN([AC_HAVE_XPM], + [AC_REQUIRE_CPP()dnl + AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) + + test -z "$XPM_LDFLAGS" && XPM_LDFLAGS= + test -z "$XPM_INCLUDE" && XPM_INCLUDE= + + AC_ARG_WITH(xpm,AC_HELP_STRING([--without-xpm],[disable color pixmap XPM tests]), + xpm_test=$withval, xpm_test="yes") + if test "x$xpm_test" = xno; then + ac_cv_have_xpm=no + else + AC_MSG_CHECKING(for XPM) + AC_CACHE_VAL(ac_cv_have_xpm, + [ + ac_save_ldflags="$LDFLAGS" + ac_save_cflags="$CFLAGS" + if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then + LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS $LDFLAGS $XPM_LDFLAGS $all_libraries -lXpm -lX11 -lXext $LIBZ $LIBSOCKET" + else + LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS $LDFLAGS $XPM_LDFLAGS $all_libraries -lXpm $LIBZ $LIBSOCKET" + fi + CFLAGS="$CFLAGS $X_INCLUDES $USER_INCLUDES" + test -n "$XPM_INCLUDE" && CFLAGS="-I$XPM_INCLUDE $CFLAGS" + AC_TRY_LINK([#include ],[], + ac_cv_have_xpm="yes",ac_cv_have_xpm="no") + LDFLAGS="$ac_save_ldflags" + CFLAGS="$ac_save_cflags" + ])dnl + + if test "$ac_cv_have_xpm" = no; then + AC_MSG_RESULT(no) + XPM_LDFLAGS="" + XPMINC="" + $2 + else + AC_DEFINE(HAVE_XPM, 1, [Define if you have XPM support]) + if test "$XPM_LDFLAGS" = ""; then + XPMLIB='-lXpm $(LIB_X11)' + else + XPMLIB="-L$XPM_LDFLAGS -lXpm "'$(LIB_X11)' + fi + if test "$XPM_INCLUDE" = ""; then + XPMINC="" + else + XPMINC="-I$XPM_INCLUDE" + fi + AC_MSG_RESULT(yes) + $1 + fi + fi + AC_SUBST(XPMINC) + AC_SUBST(XPMLIB) +]) + +AC_DEFUN([AC_HAVE_DPMS], + [AC_REQUIRE_CPP()dnl + AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) + + test -z "$DPMS_LDFLAGS" && DPMS_LDFLAGS= + test -z "$DPMS_INCLUDE" && DPMS_INCLUDE= + DPMS_LIB= + + AC_ARG_WITH(dpms,AC_HELP_STRING([--without-dpms],[disable DPMS power saving]), + dpms_test=$withval, dpms_test="yes") + if test "x$dpms_test" = xno; then + ac_cv_have_dpms=no + else + AC_MSG_CHECKING(for DPMS) + dnl Note: ac_cv_have_dpms can be no, yes, or -lXdpms. + dnl 'yes' means DPMS_LIB="", '-lXdpms' means DPMS_LIB="-lXdpms". + AC_CACHE_VAL(ac_cv_have_dpms, + [ + if test "x$kde_use_qt_emb" = "xyes" || test "x$kde_use_qt_mac" = "xyes"; then + AC_MSG_RESULT(no) + ac_cv_have_dpms="no" + else + ac_save_ldflags="$LDFLAGS" + ac_save_cflags="$CFLAGS" + ac_save_libs="$LIBS" + LDFLAGS="$LDFLAGS $DPMS_LDFLAGS $all_libraries" + LIBS="-lX11 -lXext $LIBSOCKET" + CFLAGS="$CFLAGS $X_INCLUDES" + test -n "$DPMS_INCLUDE" && CFLAGS="-I$DPMS_INCLUDE $CFLAGS" + AC_TRY_LINK([ + #include + #include + #include + #include + int foo_test_dpms() + { return DPMSSetTimeouts( 0, 0, 0, 0 ); }],[], + ac_cv_have_dpms="yes", [ + LIBS="-lXdpms $LIBS" + AC_TRY_LINK([ + #include + #include + #include + #include + int foo_test_dpms() + { return DPMSSetTimeouts( 0, 0, 0, 0 ); }],[], + [ + ac_cv_have_dpms="-lXdpms" + ],ac_cv_have_dpms="no") + ]) + LDFLAGS="$ac_save_ldflags" + CFLAGS="$ac_save_cflags" + LIBS="$ac_save_libs" + fi + ])dnl + + if test "$ac_cv_have_dpms" = no; then + AC_MSG_RESULT(no) + DPMS_LDFLAGS="" + DPMSINC="" + $2 + else + AC_DEFINE(HAVE_DPMS, 1, [Define if you have DPMS support]) + if test "$ac_cv_have_dpms" = "-lXdpms"; then + DPMS_LIB="-lXdpms" + fi + if test "$DPMS_LDFLAGS" = ""; then + DPMSLIB="$DPMS_LIB "'$(LIB_X11)' + else + DPMSLIB="$DPMS_LDFLAGS $DPMS_LIB "'$(LIB_X11)' + fi + if test "$DPMS_INCLUDE" = ""; then + DPMSINC="" + else + DPMSINC="-I$DPMS_INCLUDE" + fi + AC_MSG_RESULT(yes) + $1 + fi + fi + ac_save_cflags="$CFLAGS" + CFLAGS="$CFLAGS $X_INCLUDES" + test -n "$DPMS_INCLUDE" && CFLAGS="-I$DPMS_INCLUDE $CFLAGS" + AH_TEMPLATE(HAVE_DPMSCAPABLE_PROTO, + [Define if you have the DPMSCapable prototype in ]) + AC_CHECK_DECL(DPMSCapable, + AC_DEFINE(HAVE_DPMSCAPABLE_PROTO),, + [#include + #include ]) + AH_TEMPLATE(HAVE_DPMSINFO_PROTO, + [Define if you have the DPMSInfo prototype in ]) + AC_CHECK_DECL(DPMSInfo, + AC_DEFINE(HAVE_DPMSINFO_PROTO),, + [#include + #include ]) + CFLAGS="$ac_save_cflags" + AC_SUBST(DPMSINC) + AC_SUBST(DPMSLIB) +]) + +AC_DEFUN([AC_HAVE_GL], + [AC_REQUIRE_CPP()dnl + AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) + + test -z "$GL_LDFLAGS" && GL_LDFLAGS= + test -z "$GL_INCLUDE" && GL_INCLUDE= + + AC_ARG_WITH(gl,AC_HELP_STRING([--without-gl],[disable 3D GL modes]), + gl_test=$withval, gl_test="yes") + if test "x$kde_use_qt_emb" = "xyes"; then + # GL and Qt Embedded is a no-go for now. + ac_cv_have_gl=no + elif test "x$gl_test" = xno; then + ac_cv_have_gl=no + else + AC_MSG_CHECKING(for GL) + AC_CACHE_VAL(ac_cv_have_gl, + [ + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + ac_save_ldflags=$LDFLAGS + ac_save_cxxflags=$CXXFLAGS + ac_save_libs=$LIBS + LDFLAGS="$LDFLAGS $GL_LDFLAGS $X_LDFLAGS $all_libraries" + LIBS="$LIBS -lGL -lGLU" + test "x$kde_use_qt_mac" != xyes && test "x$kde_use_qt_emb" != xyes && LIBS="$LIBS -lX11" + LIBS="$LIBS $LIB_XEXT -lm $LIBSOCKET" + CXXFLAGS="$CFLAGS $X_INCLUDES" + test -n "$GL_INCLUDE" && CFLAGS="-I$GL_INCLUDE $CFLAGS" + AC_TRY_LINK([#include +#include +], [], + ac_cv_have_gl="yes", ac_cv_have_gl="no") + AC_LANG_RESTORE + LDFLAGS=$ac_save_ldflags + CXXFLAGS=$ac_save_cxxflags + LIBS=$ac_save_libs + ])dnl + + if test "$ac_cv_have_gl" = "no"; then + AC_MSG_RESULT(no) + GL_LDFLAGS="" + GLINC="" + $2 + else + AC_DEFINE(HAVE_GL, 1, [Defines if you have GL (Mesa, OpenGL, ...)]) + if test "$GL_LDFLAGS" = ""; then + GLLIB='-lGLU -lGL $(LIB_X11)' + else + GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)' + fi + if test "$GL_INCLUDE" = ""; then + GLINC="" + else + GLINC="-I$GL_INCLUDE" + fi + AC_MSG_RESULT($ac_cv_have_gl) + $1 + fi + fi + AC_SUBST(GLINC) + AC_SUBST(GLLIB) +]) + + + dnl shadow password and PAM magic - maintained by ossi@kde.org + +AC_DEFUN([KDE_PAM], [ + AC_REQUIRE([KDE_CHECK_LIBDL]) + + want_pam= + AC_ARG_WITH(pam, + AC_HELP_STRING([--with-pam[=ARG]],[enable support for PAM: ARG=[yes|no|service name]]), + [ if test "x$withval" = "xyes"; then + want_pam=yes + pam_service=kde + elif test "x$withval" = "xno"; then + want_pam=no + else + want_pam=yes + pam_service=$withval + fi + ], [ pam_service=kde ]) + + use_pam= + PAMLIBS= + if test "x$want_pam" != xno; then + AC_CHECK_LIB(pam, pam_start, [ + AC_CHECK_HEADER(security/pam_appl.h, + [ pam_header=security/pam_appl.h ], + [ AC_CHECK_HEADER(pam/pam_appl.h, + [ pam_header=pam/pam_appl.h ], + [ + AC_MSG_WARN([PAM detected, but no headers found! +Make sure you have the necessary development packages installed.]) + ] + ) + ] + ) + ], , $LIBDL) + if test -z "$pam_header"; then + if test "x$want_pam" = xyes; then + AC_MSG_ERROR([--with-pam was specified, but cannot compile with PAM!]) + fi + else + AC_DEFINE(HAVE_PAM, 1, [Defines if you have PAM (Pluggable Authentication Modules)]) + PAMLIBS="$PAM_MISC_LIB -lpam $LIBDL" + use_pam=yes + + dnl darwin claims to be something special + if test "$pam_header" = "pam/pam_appl.h"; then + AC_DEFINE(HAVE_PAM_PAM_APPL_H, 1, [Define if your PAM headers are in pam/ instead of security/]) + fi + + dnl test whether struct pam_message is const (Linux) or not (Sun) + AC_MSG_CHECKING(for const pam_message) + AC_EGREP_HEADER([struct pam_message], $pam_header, + [ AC_EGREP_HEADER([const struct pam_message], $pam_header, + [AC_MSG_RESULT([const: Linux-type PAM])], + [AC_MSG_RESULT([nonconst: Sun-type PAM]) + AC_DEFINE(PAM_MESSAGE_NONCONST, 1, [Define if your PAM support takes non-const arguments (Solaris)])] + )], + [AC_MSG_RESULT([not found - assume const, Linux-type PAM])]) + fi + fi + + AC_SUBST(PAMLIBS) +]) + +dnl DEF_PAM_SERVICE(arg name, full name, define name) +AC_DEFUN([DEF_PAM_SERVICE], [ + AC_ARG_WITH($1-pam, + AC_HELP_STRING([--with-$1-pam=[val]],[override PAM service from --with-pam for $2]), + [ if test "x$use_pam" = xyes; then + $3_PAM_SERVICE=$withval + else + AC_MSG_ERROR([Cannot use use --with-$1-pam, as no PAM was detected. +You may want to enforce it by using --with-pam.]) + fi + ], + [ if test "x$use_pam" = xyes; then + $3_PAM_SERVICE="$pam_service" + fi + ]) + if test -n "$$3_PAM_SERVICE"; then + AC_MSG_RESULT([The PAM service used by $2 will be $$3_PAM_SERVICE]) + AC_DEFINE_UNQUOTED($3_PAM_SERVICE, "$$3_PAM_SERVICE", [The PAM service to be used by $2]) + fi + AC_SUBST($3_PAM_SERVICE) +]) + +AC_DEFUN([KDE_SHADOWPASSWD], [ + AC_REQUIRE([KDE_PAM]) + + AC_CHECK_LIB(shadow, getspent, + [ LIBSHADOW="-lshadow" + ac_use_shadow=yes + ], + [ dnl for UnixWare + AC_CHECK_LIB(gen, getspent, + [ LIBGEN="-lgen" + ac_use_shadow=yes + ], + [ AC_CHECK_FUNC(getspent, + [ ac_use_shadow=yes ], + [ ac_use_shadow=no ]) + ]) + ]) + AC_SUBST(LIBSHADOW) + AC_SUBST(LIBGEN) + + AC_MSG_CHECKING([for shadow passwords]) + + AC_ARG_WITH(shadow, + AC_HELP_STRING([--with-shadow],[If you want shadow password support]), + [ if test "x$withval" != "xno"; then + use_shadow=yes + else + use_shadow=no + fi + ], [ + use_shadow="$ac_use_shadow" + ]) + + if test "x$use_shadow" = xyes; then + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_SHADOW, 1, [Define if you use shadow passwords]) + else + AC_MSG_RESULT(no) + LIBSHADOW= + LIBGEN= + fi + + dnl finally make the relevant binaries setuid root, if we have shadow passwds. + dnl this still applies, if we could use it indirectly through pam. + if test "x$use_shadow" = xyes || + ( test "x$use_pam" = xyes && test "x$ac_use_shadow" = xyes ); then + case $host in + *-*-freebsd* | *-*-netbsd* | *-*-openbsd*) + SETUIDFLAGS="-m 4755 -o root";; + *) + SETUIDFLAGS="-m 4755";; + esac + fi + AC_SUBST(SETUIDFLAGS) + +]) + +AC_DEFUN([KDE_PASSWDLIBS], [ + AC_REQUIRE([KDE_MISC_TESTS]) dnl for LIBCRYPT + AC_REQUIRE([KDE_PAM]) + AC_REQUIRE([KDE_SHADOWPASSWD]) + + if test "x$use_pam" = "xyes"; then + PASSWDLIBS="$PAMLIBS" + else + PASSWDLIBS="$LIBCRYPT $LIBSHADOW $LIBGEN" + fi + + dnl FreeBSD uses a shadow-like setup, where /etc/passwd holds the users, but + dnl /etc/master.passwd holds the actual passwords. /etc/master.passwd requires + dnl root to read, so kcheckpass needs to be root (even when using pam, since pam + dnl may need to read /etc/master.passwd). + case $host in + *-*-freebsd*) + SETUIDFLAGS="-m 4755 -o root" + ;; + *) + ;; + esac + + AC_SUBST(PASSWDLIBS) +]) + +AC_DEFUN([KDE_CHECK_LIBDL], +[ +AC_CHECK_LIB(dl, dlopen, [ +LIBDL="-ldl" +ac_cv_have_dlfcn=yes +]) + +AC_CHECK_LIB(dld, shl_unload, [ +LIBDL="-ldld" +ac_cv_have_shload=yes +]) + +AC_SUBST(LIBDL) +]) + +AC_DEFUN([KDE_CHECK_DLOPEN], +[ +KDE_CHECK_LIBDL +AC_CHECK_HEADERS(dlfcn.h dl.h) +if test "$ac_cv_header_dlfcn_h" = "no"; then + ac_cv_have_dlfcn=no +fi + +if test "$ac_cv_header_dl_h" = "no"; then + ac_cv_have_shload=no +fi + +dnl XXX why change enable_dlopen? its already set by autoconf's AC_ARG_ENABLE +dnl (MM) +AC_ARG_ENABLE(dlopen, +AC_HELP_STRING([--disable-dlopen],[link statically [default=no]]), +enable_dlopen=$enableval, +enable_dlopen=yes) + +# override the user's opinion, if we know it better ;) +if test "$ac_cv_have_dlfcn" = "no" && test "$ac_cv_have_shload" = "no"; then + enable_dlopen=no +fi + +if test "$ac_cv_have_dlfcn" = "yes"; then + AC_DEFINE_UNQUOTED(HAVE_DLFCN, 1, [Define if you have dlfcn]) +fi + +if test "$ac_cv_have_shload" = "yes"; then + AC_DEFINE_UNQUOTED(HAVE_SHLOAD, 1, [Define if you have shload]) +fi + +if test "$enable_dlopen" = no ; then + test -n "$1" && eval $1 +else + test -n "$2" && eval $2 +fi + +]) + +AC_DEFUN([KDE_CHECK_DYNAMIC_LOADING], +[ +KDE_CHECK_DLOPEN(libtool_enable_shared=yes, libtool_enable_static=no) +KDE_PROG_LIBTOOL +AC_MSG_CHECKING([dynamic loading]) +eval "`egrep '^build_libtool_libs=' libtool`" +if test "$build_libtool_libs" = "yes" && test "$enable_dlopen" = "yes"; then + dynamic_loading=yes + AC_DEFINE_UNQUOTED(HAVE_DYNAMIC_LOADING) +else + dynamic_loading=no +fi +AC_MSG_RESULT($dynamic_loading) +if test "$dynamic_loading" = "yes"; then + $1 +else + $2 +fi +]) + +AC_DEFUN([KDE_ADD_INCLUDES], +[ +if test -z "$1"; then + test_include="Pix.h" +else + test_include="$1" +fi + +AC_MSG_CHECKING([for libg++ ($test_include)]) + +AC_CACHE_VAL(kde_cv_libgpp_includes, +[ +kde_cv_libgpp_includes=no + + for ac_dir in \ + \ + /usr/include/g++ \ + /usr/include \ + /usr/unsupported/include \ + /opt/include \ + $extra_include \ + ; \ + do + if test -r "$ac_dir/$test_include"; then + kde_cv_libgpp_includes=$ac_dir + break + fi + done +]) + +AC_MSG_RESULT($kde_cv_libgpp_includes) +if test "$kde_cv_libgpp_includes" != "no"; then + all_includes="-I$kde_cv_libgpp_includes $all_includes $USER_INCLUDES" +fi +]) +]) + +AC_DEFUN([KDE_CHECK_LIBPTHREAD], +[ + dnl This code is here specifically to handle the + dnl various flavors of threading library on FreeBSD + dnl 4-, 5-, and 6-, and the (weird) rules around it. + dnl There may be an environment PTHREAD_LIBS that + dnl specifies what to use; otherwise, search for it. + dnl -pthread is special cased and unsets LIBPTHREAD + dnl below if found. + LIBPTHREAD="" + + if test -n "$PTHREAD_LIBS"; then + if test "x$PTHREAD_LIBS" = "x-pthread" ; then + LIBPTHREAD="PTHREAD" + else + PTHREAD_LIBS_save="$PTHREAD_LIBS" + PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'` + AC_MSG_CHECKING([for pthread_create in $PTHREAD_LIBS]) + KDE_CHECK_LIB($PTHREAD_LIBS, pthread_create, [ + LIBPTHREAD="$PTHREAD_LIBS_save"]) + PTHREAD_LIBS="$PTHREAD_LIBS_save" + fi + fi + + dnl Is this test really needed, in the face of the Tru64 test below? + if test -z "$LIBPTHREAD"; then + AC_CHECK_LIB(pthread, pthread_create, [LIBPTHREAD="-lpthread"]) + fi + + dnl This is a special Tru64 check, see BR 76171 issue #18. + if test -z "$LIBPTHREAD" ; then + AC_MSG_CHECKING([for pthread_create in -lpthread]) + kde_safe_libs=$LIBS + LIBS="$LIBS -lpthread" + AC_TRY_LINK([#include ],[(void)pthread_create(0,0,0,0);],[ + AC_MSG_RESULT(yes) + LIBPTHREAD="-lpthread"],[ + AC_MSG_RESULT(no)]) + LIBS=$kde_safe_libs + fi + + dnl Un-special-case for FreeBSD. + if test "x$LIBPTHREAD" = "xPTHREAD" ; then + LIBPTHREAD="" + fi + + AC_SUBST(LIBPTHREAD) +]) + +AC_DEFUN([KDE_CHECK_PTHREAD_OPTION], +[ + USE_THREADS="" + if test -z "$LIBPTHREAD"; then + KDE_CHECK_COMPILER_FLAG(pthread, [USE_THREADS="-D_THREAD_SAFE -pthread"]) + fi + + AH_VERBATIM(__svr_define, [ +#if defined(__SVR4) && !defined(__svr4__) +#define __svr4__ 1 +#endif +]) + case $host_os in + solaris*) + KDE_CHECK_COMPILER_FLAG(mt, [USE_THREADS="-mt"]) + CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4" + ;; + freebsd*) + CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS" + ;; + aix*) + CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" + LIBPTHREAD="$LIBPTHREAD -lc_r" + ;; + linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" + if test "$CXX" = "KCC"; then + CXXFLAGS="$CXXFLAGS --thread_safe" + NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe" + fi + ;; + *) + ;; + esac + AC_SUBST(USE_THREADS) + AC_SUBST(LIBPTHREAD) +]) + +AC_DEFUN([KDE_CHECK_THREADING], +[ + AC_REQUIRE([KDE_CHECK_LIBPTHREAD]) + AC_REQUIRE([KDE_CHECK_PTHREAD_OPTION]) + dnl default is yes if libpthread is found and no if no libpthread is available + if test -z "$LIBPTHREAD"; then + if test -z "$USE_THREADS"; then + kde_check_threading_default=no + else + kde_check_threading_default=yes + fi + else + kde_check_threading_default=yes + fi + AC_ARG_ENABLE(threading,AC_HELP_STRING([--disable-threading],[disables threading even if libpthread found]), + kde_use_threading=$enableval, kde_use_threading=$kde_check_threading_default) + if test "x$kde_use_threading" = "xyes"; then + AC_DEFINE(HAVE_LIBPTHREAD, 1, [Define if you have a working libpthread (will enable threaded code)]) + fi +]) + +AC_DEFUN([KDE_TRY_LINK_PYTHON], +[ +if test "$kde_python_link_found" = no; then + +if test "$1" = normal; then + AC_MSG_CHECKING(if a Python application links) +else + AC_MSG_CHECKING(if Python depends on $2) +fi + +AC_CACHE_VAL(kde_cv_try_link_python_$1, +[ +kde_save_cflags="$CFLAGS" +CFLAGS="$CFLAGS $PYTHONINC" +kde_save_libs="$LIBS" +LIBS="$LIBS $LIBPYTHON $2 $LIBDL $LIBSOCKET" +kde_save_ldflags="$LDFLAGS" +LDFLAGS="$LDFLAGS $PYTHONLIB" + +AC_TRY_LINK( +[ +#include +],[ + PySys_SetArgv(1, 0); +], + [kde_cv_try_link_python_$1=yes], + [kde_cv_try_link_python_$1=no] +) +CFLAGS="$kde_save_cflags" +LIBS="$kde_save_libs" +LDFLAGS="$kde_save_ldflags" +]) + +if test "$kde_cv_try_link_python_$1" = "yes"; then + AC_MSG_RESULT(yes) + kde_python_link_found=yes + if test ! "$1" = normal; then + LIBPYTHON="$LIBPYTHON $2" + fi + $3 +else + AC_MSG_RESULT(no) + $4 +fi + +fi + +]) + +AC_DEFUN([KDE_CHECK_PYTHON_DIR], +[ +AC_MSG_CHECKING([for Python directory]) + +AC_CACHE_VAL(kde_cv_pythondir, +[ + if test -z "$PYTHONDIR"; then + kde_cv_pythondir=/usr/local + else + kde_cv_pythondir="$PYTHONDIR" + fi +]) + +AC_ARG_WITH(pythondir, +AC_HELP_STRING([--with-pythondir=pythondir],[use python installed in pythondir]), +[ + ac_python_dir=$withval +], ac_python_dir=$kde_cv_pythondir +) + +AC_MSG_RESULT($ac_python_dir) +]) + +AC_DEFUN([KDE_CHECK_PYTHON_INTERN], +[ +AC_REQUIRE([KDE_CHECK_LIBDL]) +AC_REQUIRE([KDE_CHECK_LIBPTHREAD]) +AC_REQUIRE([KDE_CHECK_PYTHON_DIR]) + +if test -z "$1"; then + version="1.5" +else + version="$1" +fi + +AC_MSG_CHECKING([for Python$version]) + +python_incdirs="$ac_python_dir/include /usr/include /usr/local/include/ $kde_extra_includes" +AC_FIND_FILE(Python.h, $python_incdirs, python_incdir) +if test ! -r $python_incdir/Python.h; then + AC_FIND_FILE(python$version/Python.h, $python_incdirs, python_incdir) + python_incdir=$python_incdir/python$version + if test ! -r $python_incdir/Python.h; then + python_incdir=no + fi +fi + +PYTHONINC=-I$python_incdir + +python_libdirs="$ac_python_dir/lib$kdelibsuff /usr/lib$kdelibsuff /usr/local /usr/lib$kdelibsuff $kde_extra_libs" +AC_FIND_FILE(libpython$version.so, $python_libdirs, python_libdir) +if test ! -r $python_libdir/libpython$version.so; then + AC_FIND_FILE(libpython$version.a, $python_libdirs, python_libdir) + if test ! -r $python_libdir/libpython$version.a; then + AC_FIND_FILE(python$version/config/libpython$version.a, $python_libdirs, python_libdir) + python_libdir=$python_libdir/python$version/config + if test ! -r $python_libdir/libpython$version.a; then + python_libdir=no + fi + fi +fi + +PYTHONLIB=-L$python_libdir +kde_orig_LIBPYTHON=$LIBPYTHON +if test -z "$LIBPYTHON"; then + LIBPYTHON=-lpython$version +fi + +AC_FIND_FILE(python$version/copy.py, $python_libdirs, python_moddir) +python_moddir=$python_moddir/python$version +if test ! -r $python_moddir/copy.py; then + python_moddir=no +fi + +PYTHONMODDIR=$python_moddir + +AC_MSG_RESULT(header $python_incdir library $python_libdir modules $python_moddir) + +if test x$python_incdir = xno || test x$python_libdir = xno || test x$python_moddir = xno; then + LIBPYTHON=$kde_orig_LIBPYTHON + test "x$PYTHONLIB" = "x-Lno" && PYTHONLIB="" + test "x$PYTHONINC" = "x-Ino" && PYTHONINC="" + $2 +else + dnl Note: this test is very weak + kde_python_link_found=no + KDE_TRY_LINK_PYTHON(normal) + KDE_TRY_LINK_PYTHON(m, -lm) + KDE_TRY_LINK_PYTHON(pthread, $LIBPTHREAD) + KDE_TRY_LINK_PYTHON(tcl, -ltcl) + KDE_TRY_LINK_PYTHON(db2, -ldb2) + KDE_TRY_LINK_PYTHON(m_and_thread, [$LIBPTHREAD -lm]) + KDE_TRY_LINK_PYTHON(m_and_thread_and_util, [$LIBPTHREAD -lm -lutil]) + KDE_TRY_LINK_PYTHON(m_and_thread_and_db3, [$LIBPTHREAD -lm -ldb-3 -lutil]) + KDE_TRY_LINK_PYTHON(pthread_and_db3, [$LIBPTHREAD -ldb-3]) + KDE_TRY_LINK_PYTHON(m_and_thread_and_db, [$LIBPTHREAD -lm -ldb -ltermcap -lutil]) + KDE_TRY_LINK_PYTHON(pthread_and_dl, [$LIBPTHREAD $LIBDL -lutil -lreadline -lncurses -lm]) + KDE_TRY_LINK_PYTHON(pthread_and_panel_curses, [$LIBPTHREAD $LIBDL -lm -lpanel -lcurses]) + KDE_TRY_LINK_PYTHON(m_and_thread_and_db_special, [$LIBPTHREAD -lm -ldb -lutil], [], + [AC_MSG_WARN([it seems, Python depends on another library. + Please set LIBPYTHON to '-lpython$version -lotherlib' before calling configure to fix this + and contact the authors to let them know about this problem]) + ]) + + LIBPYTHON="$LIBPYTHON $LIBDL $LIBSOCKET" + AC_SUBST(PYTHONINC) + AC_SUBST(PYTHONLIB) + AC_SUBST(LIBPYTHON) + AC_SUBST(PYTHONMODDIR) + AC_DEFINE(HAVE_PYTHON, 1, [Define if you have the development files for python]) +fi + +]) + + +AC_DEFUN([KDE_CHECK_PYTHON], +[ + KDE_CHECK_PYTHON_INTERN("2.6", + [KDE_CHECK_PYTHON_INTERN("2.5", + [KDE_CHECK_PYTHON_INTERN("2.4", + [KDE_CHECK_PYTHON_INTERN("2.3", + [KDE_CHECK_PYTHON_INTERN("2.2", + [KDE_CHECK_PYTHON_INTERN("2.1", + [KDE_CHECK_PYTHON_INTERN("2.0", + [KDE_CHECK_PYTHON_INTERN($1, $2) ]) + ]) + ]) + ]) + ]) + ]) + ]) +]) + +AC_DEFUN([KDE_CHECK_STL], +[ + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`" + + AC_MSG_CHECKING([if C++ programs can be compiled]) + AC_CACHE_VAL(kde_cv_stl_works, + [ + AC_TRY_COMPILE([ +#include +using namespace std; +],[ + string astring="Hallo Welt."; + astring.erase(0, 6); // now astring is "Welt" + return 0; +], kde_cv_stl_works=yes, + kde_cv_stl_works=no) +]) + + AC_MSG_RESULT($kde_cv_stl_works) + + if test "$kde_cv_stl_works" = "yes"; then + # back compatible + AC_DEFINE_UNQUOTED(HAVE_SGI_STL, 1, [Define if you have a STL implementation by SGI]) + else + AC_MSG_ERROR([Your Installation isn't able to compile simple C++ programs. +Check config.log for details - if you're using a Linux distribution you might miss +a package named similar to libstdc++-dev.]) + fi + + CXXFLAGS="$ac_save_CXXFLAGS" + AC_LANG_RESTORE +]) + +AC_DEFUN([AC_FIND_QIMGIO], + [AC_REQUIRE([AC_FIND_JPEG]) +AC_REQUIRE([KDE_CHECK_EXTRA_LIBS]) +AC_MSG_CHECKING([for qimgio]) +AC_CACHE_VAL(ac_cv_lib_qimgio, +[ +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +ac_save_LIBS="$LIBS" +ac_save_CXXFLAGS="$CXXFLAGS" +LIBS="$all_libraries -lqimgio -lpng -lz $LIBJPEG $LIBQT" +CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes" +AC_TRY_RUN(dnl +[ +#include +#include +int main() { + QString t = "hallo"; + t.fill('t'); + qInitImageIO(); +} +], + ac_cv_lib_qimgio=yes, + ac_cv_lib_qimgio=no, + ac_cv_lib_qimgio=no) +LIBS="$ac_save_LIBS" +CXXFLAGS="$ac_save_CXXFLAGS" +AC_LANG_RESTORE +])dnl +if eval "test \"`echo $ac_cv_lib_qimgio`\" = yes"; then + LIBQIMGIO="-lqimgio -lpng -lz $LIBJPEG" + AC_MSG_RESULT(yes) + AC_DEFINE_UNQUOTED(HAVE_QIMGIO, 1, [Define if you have the Qt extension qimgio available]) + AC_SUBST(LIBQIMGIO) +else + AC_MSG_RESULT(not found) +fi +]) + +AC_DEFUN([AM_DISABLE_LIBRARIES], +[ + AC_PROVIDE([AM_ENABLE_STATIC]) + AC_PROVIDE([AM_ENABLE_SHARED]) + enable_static=no + enable_shared=yes +]) + + +AC_DEFUN([AC_CHECK_UTMP_FILE], +[ + AC_MSG_CHECKING([for utmp file]) + + AC_CACHE_VAL(kde_cv_utmp_file, + [ + kde_cv_utmp_file=no + + for ac_file in \ + \ + /var/run/utmp \ + /var/adm/utmp \ + /etc/utmp \ + ; \ + do + if test -r "$ac_file"; then + kde_cv_utmp_file=$ac_file + break + fi + done + ]) + + if test "$kde_cv_utmp_file" != "no"; then + AC_DEFINE_UNQUOTED(UTMP, "$kde_cv_utmp_file", [Define the file for utmp entries]) + $1 + AC_MSG_RESULT($kde_cv_utmp_file) + else + $2 + AC_MSG_RESULT([non found]) + fi +]) + + +AC_DEFUN([KDE_CREATE_SUBDIRSLIST], +[ + +DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin" +TOPSUBDIRS="" + +if test ! -s $srcdir/subdirs; then + dnl Note: Makefile.common creates subdirs, so this is just a fallback + files=`cd $srcdir && ls -1` + dirs=`for i in $files; do if test -d $i; then echo $i; fi; done` + for i in $dirs; do + echo $i >> $srcdir/subdirs + done +fi + +ac_topsubdirs= +if test -s $srcdir/inst-apps; then + ac_topsubdirs="`cat $srcdir/inst-apps`" +elif test -s $srcdir/subdirs; then + ac_topsubdirs="`cat $srcdir/subdirs`" +fi + +for i in $ac_topsubdirs; do + AC_MSG_CHECKING([if $i should be compiled]) + if test -d $srcdir/$i; then + install_it="yes" + for j in $DO_NOT_COMPILE; do + if test $i = $j; then + install_it="no" + fi + done + else + install_it="no" + fi + AC_MSG_RESULT($install_it) + vari=`echo $i | sed -e 's,[[-+.@]],_,g'` + if test $install_it = "yes"; then + TOPSUBDIRS="$TOPSUBDIRS $i" + eval "$vari""_SUBDIR_included=yes" + else + eval "$vari""_SUBDIR_included=no" + fi +done + +AC_SUBST(TOPSUBDIRS) +]) + +AC_DEFUN([KDE_CHECK_NAMESPACES], +[ +AC_MSG_CHECKING(whether C++ compiler supports namespaces) +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +AC_TRY_COMPILE([ +], +[ +namespace Foo { + extern int i; + namespace Bar { + extern int i; + } +} + +int Foo::i = 0; +int Foo::Bar::i = 1; +],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_NAMESPACES) +], [ +AC_MSG_RESULT(no) +]) +AC_LANG_RESTORE +]) + +dnl ------------------------------------------------------------------------ +dnl Check for S_ISSOCK macro. Doesn't exist on Unix SCO. faure@kde.org +dnl ------------------------------------------------------------------------ +dnl +AC_DEFUN([AC_CHECK_S_ISSOCK], +[ +AC_MSG_CHECKING(for S_ISSOCK) +AC_CACHE_VAL(ac_cv_have_s_issock, +[ +AC_TRY_LINK( +[ +#include +], +[ +struct stat buff; +int b = S_ISSOCK( buff.st_mode ); +], +ac_cv_have_s_issock=yes, +ac_cv_have_s_issock=no) +]) +AC_MSG_RESULT($ac_cv_have_s_issock) +if test "$ac_cv_have_s_issock" = "yes"; then + AC_DEFINE_UNQUOTED(HAVE_S_ISSOCK, 1, [Define if sys/stat.h declares S_ISSOCK.]) +fi + +AH_VERBATIM(_ISSOCK, +[ +#ifndef HAVE_S_ISSOCK +#define HAVE_S_ISSOCK +#define S_ISSOCK(mode) (1==0) +#endif +]) + +]) + +dnl ------------------------------------------------------------------------ +dnl Check for MAXPATHLEN macro, defines KDEMAXPATHLEN. faure@kde.org +dnl ------------------------------------------------------------------------ +dnl +AC_DEFUN([AC_CHECK_KDEMAXPATHLEN], +[ +AC_MSG_CHECKING(for MAXPATHLEN) +AC_CACHE_VAL(ac_cv_maxpathlen, +[ +cat > conftest.$ac_ext < +#endif +#include +#include +#ifndef MAXPATHLEN +#define MAXPATHLEN 1024 +#endif + +KDE_HELLO MAXPATHLEN + +EOF + +ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out" + +if AC_TRY_EVAL(ac_try) && test -s conftest.out; then + ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out` +else + ac_cv_maxpathlen=1024 +fi + +rm conftest.* + +]) +AC_MSG_RESULT($ac_cv_maxpathlen) +AC_DEFINE_UNQUOTED(KDEMAXPATHLEN,$ac_cv_maxpathlen, [Define a safe value for MAXPATHLEN] ) +]) + +AC_DEFUN([KDE_CHECK_HEADER], +[ + kde_safe_cppflags=$CPPFLAGS + CPPFLAGS="$CPPFLAGS $all_includes" + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_CHECK_HEADER([$1], [$2], [$3], [$4]) + AC_LANG_RESTORE + CPPFLAGS=$kde_safe_cppflags +]) + +AC_DEFUN([KDE_CHECK_HEADERS], +[ + AH_CHECK_HEADERS([$1]) + AC_LANG_SAVE + kde_safe_cppflags=$CPPFLAGS + CPPFLAGS="$CPPFLAGS $all_includes" + AC_LANG_CPLUSPLUS + AC_CHECK_HEADERS([$1], [$2], [$3], [$4]) + CPPFLAGS=$kde_safe_cppflags + AC_LANG_RESTORE +]) + +AC_DEFUN([KDE_FAST_CONFIGURE], +[ + dnl makes configure fast (needs perl) + AC_ARG_ENABLE(fast-perl, AC_HELP_STRING([--disable-fast-perl],[disable fast Makefile generation (needs perl)]), + with_fast_perl=$enableval, with_fast_perl=yes) +]) + +AC_DEFUN([KDE_CONF_FILES], +[ + val= + if test -f $srcdir/configure.files ; then + val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files` + fi + CONF_FILES= + if test -n "$val" ; then + for i in $val ; do + CONF_FILES="$CONF_FILES $i" + done + fi + AC_SUBST(CONF_FILES) +])dnl + +dnl This sets the prefix, for arts and kdelibs +dnl Do NOT use in any other module. +dnl It only looks at --prefix, KDEDIR and falls back to /usr/local/kde +AC_DEFUN([KDE_SET_PREFIX_CORE], +[ + unset CDPATH + dnl make $KDEDIR the default for the installation + AC_PREFIX_DEFAULT(${KDEDIR:-/usr/local/kde}) + + if test "x$prefix" = "xNONE"; then + prefix=$ac_default_prefix + ac_configure_args="$ac_configure_args --prefix=$prefix" + fi + # And delete superfluous '/' to make compares easier + prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'` + exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'` + + kde_libs_prefix='$(prefix)' + kde_libs_htmldir='$(kde_htmldir)' + AC_SUBST(kde_libs_prefix) + AC_SUBST(kde_libs_htmldir) + KDE_FAST_CONFIGURE + KDE_CONF_FILES +]) + + +AC_DEFUN([KDE_SET_PREFIX], +[ + unset CDPATH + dnl We can't give real code to that macro, only a value. + dnl It only matters for --help, since we set the prefix in this function anyway. + AC_PREFIX_DEFAULT(${KDEDIR:-the kde prefix}) + + KDE_SET_DEFAULT_BINDIRS + if test "x$prefix" = "xNONE"; then + dnl no prefix given: look for kde-config in the PATH and deduce the prefix from it + KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kde-config)], [], prepend) + else + dnl prefix given: look for kde-config, preferrably in prefix, otherwise in PATH + kde_save_PATH="$PATH" + PATH="$exec_prefix/bin:$prefix/bin:$PATH" + KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kde-config)], [], prepend) + PATH="$kde_save_PATH" + fi + + kde_libs_prefix=`$KDECONFIG --prefix` + if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then + AC_MSG_ERROR([$KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs. + This means it has been moved since you installed it. + This won't work. Please recompile kdelibs for the new prefix. + ]) + fi + kde_libs_htmldir=`$KDECONFIG --install html --expandvars` + + AC_MSG_CHECKING([where to install]) + if test "x$prefix" = "xNONE"; then + prefix=$kde_libs_prefix + AC_MSG_RESULT([$prefix (as returned by kde-config)]) + else + dnl --prefix was given. Compare prefixes and warn (in configure.in.bot.end) if different + given_prefix=$prefix + AC_MSG_RESULT([$prefix (as requested)]) + fi + + # And delete superfluous '/' to make compares easier + prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'` + exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'` + given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'` + + AC_SUBST(KDECONFIG) + AC_SUBST(kde_libs_prefix) + AC_SUBST(kde_libs_htmldir) + + KDE_FAST_CONFIGURE + KDE_CONF_FILES +]) + +pushdef([AC_PROG_INSTALL], +[ + dnl our own version, testing for a -p flag + popdef([AC_PROG_INSTALL]) + dnl as AC_PROG_INSTALL works as it works we first have + dnl to save if the user didn't specify INSTALL, as the + dnl autoconf one overwrites INSTALL and we have no chance to find + dnl out afterwards + test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL + test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM + test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT + AC_PROG_INSTALL + + if test -z "$kde_save_INSTALL_given" ; then + # OK, user hasn't given any INSTALL, autoconf found one for us + # now we test, if it supports the -p flag + AC_MSG_CHECKING(for -p flag to install) + rm -f confinst.$$.* > /dev/null 2>&1 + echo "Testtest" > confinst.$$.orig + ac_res=no + if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then + if test -f confinst.$$.new ; then + # OK, -p seems to do no harm to install + INSTALL="${INSTALL} -p" + ac_res=yes + fi + fi + rm -f confinst.$$.* + AC_MSG_RESULT($ac_res) + fi + dnl the following tries to resolve some signs and wonders coming up + dnl with different autoconf/automake versions + dnl e.g.: + dnl *automake 1.4 install-strip sets A_M_INSTALL_PROGRAM_FLAGS to -s + dnl and has INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(A_M_INSTALL_PROGRAM_FLAGS) + dnl it header-vars.am, so there the actual INSTALL_PROGRAM gets the -s + dnl *automake 1.4a (and above) use INSTALL_STRIP_FLAG and only has + dnl INSTALL_PROGRAM = @INSTALL_PROGRAM@ there, but changes the + dnl install-@DIR@PROGRAMS targets to explicitly use that flag + dnl *autoconf 2.13 is dumb, and thinks it can use INSTALL_PROGRAM as + dnl INSTALL_SCRIPT, which breaks with automake <= 1.4 + dnl *autoconf >2.13 (since 10.Apr 1999) has not that failure + dnl *sometimes KDE does not use the install-@DIR@PROGRAM targets from + dnl automake (due to broken Makefile.am or whatever) to install programs, + dnl and so does not see the -s flag in automake > 1.4 + dnl to clean up that mess we: + dnl +set INSTALL_PROGRAM to use INSTALL_STRIP_FLAG + dnl which cleans KDE's program with automake > 1.4; + dnl +set INSTALL_SCRIPT to only use INSTALL, to clean up autoconf's problems + dnl with automake<=1.4 + dnl note that dues to this sometimes two '-s' flags are used (if KDE + dnl properly uses install-@DIR@PROGRAMS, but I don't care + dnl + dnl And to all this comes, that I even can't write in comments variable + dnl names used by automake, because it is so stupid to think I wanted to + dnl _use_ them, therefor I have written A_M_... instead of AM_ + dnl hmm, I wanted to say something ... ahh yes: Arghhh. + + if test -z "$kde_save_INSTALL_PROGRAM_given" ; then + INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)' + fi + if test -z "$kde_save_INSTALL_SCRIPT_given" ; then + INSTALL_SCRIPT='${INSTALL}' + fi +])dnl + +AC_DEFUN([KDE_LANG_CPLUSPLUS], +[AC_LANG_CPLUSPLUS +ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' +pushdef([AC_LANG_CPLUSPLUS], [popdef([AC_LANG_CPLUSPLUS]) KDE_LANG_CPLUSPLUS]) +]) + +pushdef([AC_LANG_CPLUSPLUS], +[popdef([AC_LANG_CPLUSPLUS]) +KDE_LANG_CPLUSPLUS +]) + +AC_DEFUN([KDE_CHECK_LONG_LONG], +[ +AC_MSG_CHECKING(for long long) +AC_CACHE_VAL(kde_cv_c_long_long, +[ + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_LINK([], [ + long long foo = 0; + foo = foo+1; + ], + kde_cv_c_long_long=yes, kde_cv_c_long_long=no) + AC_LANG_RESTORE +]) +AC_MSG_RESULT($kde_cv_c_long_long) +if test "$kde_cv_c_long_long" = yes; then + AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have long long as datatype]) +fi +]) + +AC_DEFUN([KDE_CHECK_LIB], +[ + kde_save_LDFLAGS="$LDFLAGS" + dnl AC_CHECK_LIB modifies LIBS, so save it here + kde_save_LIBS="$LIBS" + LDFLAGS="$LDFLAGS $all_libraries" + case $host_os in + aix*) LDFLAGS="-brtl $LDFLAGS" + test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS" + ;; + esac + AC_CHECK_LIB($1, $2, $3, $4, $5) + LDFLAGS="$kde_save_LDFLAGS" + LIBS="$kde_save_LIBS" +]) + +AC_DEFUN([KDE_JAVA_PREFIX], +[ + dir=`dirname "$1"` + base=`basename "$1"` + list=`ls -1 $dir 2> /dev/null` + for entry in $list; do + if test -d $dir/$entry/bin; then + case $entry in + $base) + javadirs="$javadirs $dir/$entry/bin" + ;; + esac + elif test -d $dir/$entry/jre/bin; then + case $entry in + $base) + javadirs="$javadirs $dir/$entry/jre/bin" + ;; + esac + fi + done +]) + +dnl KDE_CHEC_JAVA_DIR(onlyjre) +AC_DEFUN([KDE_CHECK_JAVA_DIR], +[ + +AC_ARG_WITH(java, +AC_HELP_STRING([--with-java=javadir],[use java installed in javadir, --without-java disables]), +[ ac_java_dir=$withval +], ac_java_dir="" +) + +AC_MSG_CHECKING([for Java]) + +dnl at this point ac_java_dir is either a dir, 'no' to disable, or '' to say look in $PATH +if test "x$ac_java_dir" = "xno"; then + kde_java_bindir=no + kde_java_includedir=no + kde_java_libjvmdir=no + kde_java_libgcjdir=no + kde_java_libhpidir=no +else + if test "x$ac_java_dir" = "x"; then + + + dnl No option set -> collect list of candidate paths + if test -n "$JAVA_HOME"; then + KDE_JAVA_PREFIX($JAVA_HOME) + fi + KDE_JAVA_PREFIX(/usr/j2se) + KDE_JAVA_PREFIX(/usr/lib/j2se) + KDE_JAVA_PREFIX(/usr/j*dk*) + KDE_JAVA_PREFIX(/usr/lib/j*dk*) + KDE_JAVA_PREFIX(/opt/j*sdk*) + KDE_JAVA_PREFIX(/usr/lib/java*) + KDE_JAVA_PREFIX(/usr/java*) + KDE_JAVA_PREFIX(/usr/java/j*dk*) + KDE_JAVA_PREFIX(/usr/java/j*re*) + KDE_JAVA_PREFIX(/usr/lib/SunJava2*) + KDE_JAVA_PREFIX(/usr/lib/SunJava*) + KDE_JAVA_PREFIX(/usr/lib/IBMJava2*) + KDE_JAVA_PREFIX(/usr/lib/IBMJava*) + KDE_JAVA_PREFIX(/opt/java*) + + kde_cv_path="NONE" + kde_save_IFS=$IFS + IFS=':' + for dir in $PATH; do + if test -d "$dir"; then + javadirs="$javadirs $dir" + fi + done + IFS=$kde_save_IFS + jredirs= + + dnl Now javadirs contains a list of paths that exist, all ending with bin/ + for dir in $javadirs; do + dnl Check for the java executable + if test -x "$dir/java"; then + sane_path=$(cd $dir; /bin/pwd) + dnl And also check for a libjvm.so somewhere under there + dnl Since we have to go to the parent dir, /usr/bin is excluded, /usr is too big. + if test "$sane_path" != "/usr/bin"; then + libjvmdir=`find $dir/.. -name libjvm.so | sed 's,libjvm.so,,'|head -n 1` + if test ! -f $libjvmdir/libjvm.so; then continue; fi + jredirs="$jredirs $dir" + fi + fi + done + + dnl Now jredirs contains a reduced list, of paths where both java and ../**/libjvm.so was found + JAVAC= + JAVA= + kde_java_bindir=no + for dir in $jredirs; do + JAVA="$dir/java" + kde_java_bindir=$dir + if test -x "$dir/javac"; then + JAVAC="$dir/javac" + break + fi + done + + if test -n "$JAVAC"; then + dnl this substitution might not work - well, we test for jni.h below + kde_java_includedir=`echo $JAVAC | sed -e 's,bin/javac$,include/,'` + else + kde_java_includedir=no + fi + else + dnl config option set + kde_java_bindir=$ac_java_dir/bin + if test -x $ac_java_dir/bin/java && test ! -x $ac_java_dir/bin/javac; then + kde_java_includedir=no + else + kde_java_includedir=$ac_java_dir/include + fi + fi +fi + +dnl At this point kde_java_bindir and kde_java_includedir are either set or "no" +if test "x$kde_java_bindir" != "xno"; then + + dnl Look for libjvm.so + kde_java_libjvmdir=`find $kde_java_bindir/.. -name libjvm.so | sed 's,libjvm.so,,'|head -n 1` + dnl Look for libgcj.so + kde_java_libgcjdir=`find $kde_java_bindir/.. -name libgcj.so | sed 's,libgcj.so,,'|head -n 1` + dnl Look for libhpi.so and avoid green threads + kde_java_libhpidir=`find $kde_java_bindir/.. -name libhpi.so | grep -v green | sed 's,libhpi.so,,' | head -n 1` + + dnl Now check everything's fine under there + dnl the include dir is our flag for having the JDK + if test -d "$kde_java_includedir"; then + if test ! -x "$kde_java_bindir/javac"; then + AC_MSG_ERROR([javac not found under $kde_java_bindir - it seems you passed a wrong --with-java.]) + fi + if test ! -x "$kde_java_bindir/javah"; then + AC_MSG_ERROR([javah not found under $kde_java_bindir. javac was found though! Use --with-java or --without-java.]) + fi + if test ! -x "$kde_java_bindir/jar"; then + AC_MSG_ERROR([jar not found under $kde_java_bindir. javac was found though! Use --with-java or --without-java.]) + fi + if test ! -r "$kde_java_includedir/jni.h"; then + AC_MSG_ERROR([jni.h not found under $kde_java_includedir. Use --with-java or --without-java.]) + fi + + jni_includes="-I$kde_java_includedir" + dnl Strange thing, jni.h requires jni_md.h which is under genunix here.. + dnl and under linux here.. + + dnl not needed for gcj + + if test "x$kde_java_libgcjdir" = "x"; then + test -d "$kde_java_includedir/linux" && jni_includes="$jni_includes -I$kde_java_includedir/linux" + test -d "$kde_java_includedir/solaris" && jni_includes="$jni_includes -I$kde_java_includedir/solaris" + test -d "$kde_java_includedir/genunix" && jni_includes="$jni_includes -I$kde_java_includedir/genunix" + fi + + else + JAVAC= + jni_includes= + fi + + if test "x$kde_java_libgcjdir" = "x"; then + if test ! -r "$kde_java_libjvmdir/libjvm.so"; then + AC_MSG_ERROR([libjvm.so not found under $kde_java_libjvmdir. Use --without-java.]) + fi + else + if test ! -r "$kde_java_libgcjdir/libgcj.so"; then + AC_MSG_ERROR([libgcj.so not found under $kde_java_libgcjdir. Use --without-java.]) + fi + fi + + if test ! -x "$kde_java_bindir/java"; then + AC_MSG_ERROR([java not found under $kde_java_bindir. javac was found though! Use --with-java or --without-java.]) + fi + + dnl not needed for gcj compile + + if test "x$kde_java_libgcjdir" = "x"; then + if test ! -r "$kde_java_libhpidir/libhpi.so"; then + AC_MSG_ERROR([libhpi.so not found under $kde_java_libhpidir. Use --without-java.]) + fi + fi + + if test -n "$jni_includes"; then + dnl Check for JNI version + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + ac_cxxflags_safe="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS $all_includes $jni_includes" + + AC_TRY_COMPILE([ + #include + ], + [ + #ifndef JNI_VERSION_1_2 + Syntax Error + #endif + ],[ kde_jni_works=yes ], + [ kde_jni_works=no ]) + + if test $kde_jni_works = no; then + AC_MSG_ERROR([Incorrect version of $kde_java_includedir/jni.h. + You need to have Java Development Kit (JDK) version 1.2. + + Use --with-java to specify another location. + Use --without-java to configure without java support. + Or download a newer JDK and try again. + See e.g. http://java.sun.com/products/jdk/1.2 ]) + fi + + CXXFLAGS="$ac_cxxflags_safe" + AC_LANG_RESTORE + + dnl All tests ok, inform and subst the variables + + JAVAC=$kde_java_bindir/javac + JAVAH=$kde_java_bindir/javah + JAR=$kde_java_bindir/jar + AC_DEFINE_UNQUOTED(PATH_JAVA, "$kde_java_bindir/java", [Define where your java executable is]) + if test "x$kde_java_libgcjdir" = "x"; then + JVMLIBS="-L$kde_java_libjvmdir -ljvm -L$kde_java_libhpidir -lhpi" + else + JVMLIBS="-L$kde_java_libgcjdir -lgcj" + fi + AC_MSG_RESULT([java JDK in $kde_java_bindir]) + + else + AC_DEFINE_UNQUOTED(PATH_JAVA, "$kde_java_bindir/java", [Define where your java executable is]) + AC_MSG_RESULT([java JRE in $kde_java_bindir]) + fi +elif test -d "/Library/Java/Home"; then + kde_java_bindir="/Library/Java/Home/bin" + jni_includes="-I/Library/Java/Home/include" + + JAVAC=$kde_java_bindir/javac + JAVAH=$kde_java_bindir/javah + JAR=$kde_java_bindir/jar + JVMLIBS="-Wl,-framework,JavaVM" + + AC_DEFINE_UNQUOTED(PATH_JAVA, "$kde_java_bindir/java", [Define where your java executable is]) + AC_MSG_RESULT([Apple Java Framework]) +else + AC_MSG_RESULT([none found]) +fi + +AC_SUBST(JAVAC) +AC_SUBST(JAVAH) +AC_SUBST(JAR) +AC_SUBST(JVMLIBS) +AC_SUBST(jni_includes) + +# for backward compat +kde_cv_java_includedir=$kde_java_includedir +kde_cv_java_bindir=$kde_java_bindir +]) + +dnl this is a redefinition of autoconf 2.5x's AC_FOREACH. +dnl When the argument list becomes big, as in KDE for AC_OUTPUT in +dnl big packages, m4_foreach is dog-slow. So use our own version of +dnl it. (matz@kde.org) +m4_define([mm_foreach], +[m4_pushdef([$1])_mm_foreach($@)m4_popdef([$1])]) +m4_define([mm_car], [[$1]]) +m4_define([mm_car2], [[$@]]) +m4_define([_mm_foreach], +[m4_if(m4_quote($2), [], [], + [m4_define([$1], mm_car($2))$3[]_mm_foreach([$1], + mm_car2(m4_shift($2)), + [$3])])]) +m4_define([AC_FOREACH], +[mm_foreach([$1], m4_split(m4_normalize([$2])), [$3])]) + +AC_DEFUN([KDE_NEED_FLEX], +[ +kde_libs_safe=$LIBS +LIBS="$LIBS $USER_LDFLAGS" +AM_PROG_LEX +LIBS=$kde_libs_safe +if test -z "$LEXLIB"; then + AC_MSG_ERROR([You need to have flex installed.]) +fi +AC_SUBST(LEXLIB) +]) + +AC_DEFUN([AC_PATH_QTOPIA], +[ + dnl TODO: use AC_CACHE_VAL + + if test -z "$1"; then + qtopia_minver_maj=1 + qtopia_minver_min=5 + qtopia_minver_pat=0 + else + qtopia_minver_maj=`echo "$1" | sed -e "s/^\(.*\)\..*\..*$/\1/"` + qtopia_minver_min=`echo "$1" | sed -e "s/^.*\.\(.*\)\..*$/\1/"` + qtopia_minver_pat=`echo "$1" | sed -e "s/^.*\..*\.\(.*\)$/\1/"` + fi + + qtopia_minver="$qtopia_minver_maj$qtopia_minver_min$qtopia_minver_pat" + qtopia_minverstr="$qtopia_minver_maj.$qtopia_minver_min.$qtopia_minver_pat" + + AC_REQUIRE([AC_PATH_QT]) + + AC_MSG_CHECKING([for Qtopia]) + + LIB_QTOPIA="-lqpe" + AC_SUBST(LIB_QTOPIA) + + kde_qtopia_dirs="$QPEDIR /opt/Qtopia" + + ac_qtopia_incdir=NO + + AC_ARG_WITH(qtopia-dir, + AC_HELP_STRING([--with-qtopia-dir=DIR],[where the root of Qtopia is installed]), + [ ac_qtopia_incdir="$withval"/include] ) + + qtopia_incdirs="" + for dir in $kde_qtopia_dirs; do + qtopia_incdirs="$qtopia_incdirs $dir/include" + done + + if test ! "$ac_qtopia_incdir" = "NO"; then + qtopia_incdirs="$ac_qtopia_incdir $qtopia_incdirs" + fi + + qtopia_incdir="" + AC_FIND_FILE(qpe/qpeapplication.h, $qtopia_incdirs, qtopia_incdir) + ac_qtopia_incdir="$qtopia_incdir" + + if test -z "$qtopia_incdir"; then + AC_MSG_ERROR([Cannot find Qtopia headers. Please check your installation.]) + fi + + qtopia_ver_maj=`cat $qtopia_incdir/qpe/version.h | sed -n -e 's,.*QPE_VERSION "\(.*\)\..*\..*".*,\1,p'`; + qtopia_ver_min=`cat $qtopia_incdir/qpe/version.h | sed -n -e 's,.*QPE_VERSION ".*\.\(.*\)\..*".*,\1,p'`; + qtopia_ver_pat=`cat $qtopia_incdir/qpe/version.h | sed -n -e 's,.*QPE_VERSION ".*\..*\.\(.*\)".*,\1,p'`; + + qtopia_ver="$qtopia_ver_maj$qtopia_ver_min$qtopia_ver_pat" + qtopia_verstr="$qtopia_ver_maj.$qtopia_ver_min.$qtopia_ver_pat" + if test "$qtopia_ver" -lt "$qtopia_minver"; then + AC_MSG_ERROR([found Qtopia version $qtopia_verstr but version $qtopia_minverstr +is required.]) + fi + + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + + ac_cxxflags_safe="$CXXFLAGS" + ac_ldflags_safe="$LDFLAGS" + ac_libs_safe="$LIBS" + + CXXFLAGS="$CXXFLAGS -I$qtopia_incdir $all_includes" + LDFLAGS="$LDFLAGS $QT_LDFLAGS $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS" + LIBS="$LIBS $LIB_QTOPIA $LIBQT" + + cat > conftest.$ac_ext < +#include + +int main( int argc, char **argv ) +{ + QPEApplication app( argc, argv ); + return 0; +} +EOF + + if AC_TRY_EVAL(ac_link) && test -s conftest; then + rm -f conftest* + else + rm -f conftest* + AC_MSG_ERROR([Cannot link small Qtopia Application. For more details look at +the end of config.log]) + fi + + CXXFLAGS="$ac_cxxflags_safe" + LDFLAGS="$ac_ldflags_safe" + LIBS="$ac_libs_safe" + + AC_LANG_RESTORE + + QTOPIA_INCLUDES="-I$qtopia_incdir" + AC_SUBST(QTOPIA_INCLUDES) + + AC_MSG_RESULT([found version $qtopia_verstr with headers at $qtopia_incdir]) +]) + + +AC_DEFUN([KDE_INIT_DOXYGEN], +[ +AC_MSG_CHECKING([for Qt docs]) +kde_qtdir= +if test "${with_qt_dir+set}" = set; then + kde_qtdir="$with_qt_dir" +fi + +AC_FIND_FILE(qsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR) +AC_MSG_RESULT($QTDOCDIR) + +AC_SUBST(QTDOCDIR) + +KDE_FIND_PATH(dot, DOT, [], []) +if test -n "$DOT"; then + KDE_HAVE_DOT="YES" +else + KDE_HAVE_DOT="NO" +fi +AC_SUBST(KDE_HAVE_DOT) +KDE_FIND_PATH(doxygen, DOXYGEN, [], []) +AC_SUBST(DOXYGEN) + +DOXYGEN_PROJECT_NAME="$1" +DOXYGEN_PROJECT_NUMBER="$2" +AC_SUBST(DOXYGEN_PROJECT_NAME) +AC_SUBST(DOXYGEN_PROJECT_NUMBER) + +KDE_HAS_DOXYGEN=no +if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/qsql.html; then + KDE_HAS_DOXYGEN=yes +fi +AC_SUBST(KDE_HAS_DOXYGEN) + +]) + + +AC_DEFUN([AC_FIND_BZIP2], +[ +AC_MSG_CHECKING([for bzDecompress in libbz2]) +AC_CACHE_VAL(ac_cv_lib_bzip2, +[ +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +kde_save_LIBS="$LIBS" +LIBS="$all_libraries $USER_LDFLAGS -lbz2 $LIBSOCKET" +kde_save_CXXFLAGS="$CXXFLAGS" +CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES" +AC_TRY_LINK(dnl +[ +#define BZ_NO_STDIO +#include +], + [ bz_stream s; (void) bzDecompress(&s); ], + eval "ac_cv_lib_bzip2='-lbz2'", + eval "ac_cv_lib_bzip2=no") +LIBS="$kde_save_LIBS" +CXXFLAGS="$kde_save_CXXFLAGS" +AC_LANG_RESTORE +])dnl +AC_MSG_RESULT($ac_cv_lib_bzip2) + +if test ! "$ac_cv_lib_bzip2" = no; then + BZIP2DIR=bzip2 + + LIBBZ2="$ac_cv_lib_bzip2" + AC_SUBST(LIBBZ2) + +else + + cxx_shared_flag= + ld_shared_flag= + KDE_CHECK_COMPILER_FLAG(shared, [ + ld_shared_flag="-shared" + ]) + KDE_CHECK_COMPILER_FLAG(fPIC, [ + cxx_shared_flag="-fPIC" + ]) + + AC_MSG_CHECKING([for BZ2_bzDecompress in (shared) libbz2]) + AC_CACHE_VAL(ac_cv_lib_bzip2_prefix, + [ + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + kde_save_LIBS="$LIBS" + LIBS="$all_libraries $USER_LDFLAGS $ld_shared_flag -lbz2 $LIBSOCKET" + kde_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CFLAGS $cxx_shared_flag $all_includes $USER_INCLUDES" + + AC_TRY_LINK(dnl + [ + #define BZ_NO_STDIO + #include + ], + [ bz_stream s; (void) BZ2_bzDecompress(&s); ], + eval "ac_cv_lib_bzip2_prefix='-lbz2'", + eval "ac_cv_lib_bzip2_prefix=no") + LIBS="$kde_save_LIBS" + CXXFLAGS="$kde_save_CXXFLAGS" + AC_LANG_RESTORE + ])dnl + + AC_MSG_RESULT($ac_cv_lib_bzip2_prefix) + + if test ! "$ac_cv_lib_bzip2_prefix" = no; then + BZIP2DIR=bzip2 + + LIBBZ2="$ac_cv_lib_bzip2_prefix" + AC_SUBST(LIBBZ2) + + AC_DEFINE(NEED_BZ2_PREFIX, 1, [Define if the libbz2 functions need the BZ2_ prefix]) + dnl else, we just ignore this + fi + +fi +AM_CONDITIONAL(include_BZIP2, test -n "$BZIP2DIR") +]) + +dnl ------------------------------------------------------------------------ +dnl Try to find the SSL headers and libraries. +dnl $(SSL_LDFLAGS) will be -Lsslliblocation (if needed) +dnl and $(SSL_INCLUDES) will be -Isslhdrlocation (if needed) +dnl ------------------------------------------------------------------------ +dnl +AC_DEFUN([KDE_CHECK_SSL], +[ +LIBSSL="-lssl -lcrypto" +AC_REQUIRE([KDE_CHECK_LIB64]) + +ac_ssl_includes=NO ac_ssl_libraries=NO +ssl_libraries="" +ssl_includes="" +AC_ARG_WITH(ssl-dir, + AC_HELP_STRING([--with-ssl-dir=DIR],[where the root of OpenSSL is installed]), + [ ac_ssl_includes="$withval"/include + ac_ssl_libraries="$withval"/lib$kdelibsuff + ]) + +want_ssl=yes +AC_ARG_WITH(ssl, + AC_HELP_STRING([--without-ssl],[disable SSL checks]), + [want_ssl=$withval]) + +if test $want_ssl = yes; then + +AC_MSG_CHECKING(for OpenSSL) + +AC_CACHE_VAL(ac_cv_have_ssl, +[#try to guess OpenSSL locations + + ssl_incdirs="/usr/include /usr/local/include /usr/ssl/include /usr/local/ssl/include $prefix/include $kde_extra_includes" + ssl_incdirs="$ac_ssl_includes $ssl_incdirs" + AC_FIND_FILE(openssl/ssl.h, $ssl_incdirs, ssl_incdir) + ac_ssl_includes="$ssl_incdir" + + ssl_libdirs="/usr/lib$kdelibsuff /usr/local/lib$kdelibsuff /usr/ssl/lib$kdelibsuff /usr/local/ssl/lib$kdelibsuff $libdir $prefix/lib$kdelibsuff $exec_prefix/lib$kdelibsuff $kde_extra_libs" + if test ! "$ac_ssl_libraries" = "NO"; then + ssl_libdirs="$ac_ssl_libraries $ssl_libdirs" + fi + + test=NONE + ssl_libdir=NONE + for dir in $ssl_libdirs; do + try="ls -1 $dir/libssl*" + if test=`eval $try 2> /dev/null`; then ssl_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi + done + + ac_ssl_libraries="$ssl_libdir" + + ac_ldflags_safe="$LDFLAGS" + ac_libs_safe="$LIBS" + + LDFLAGS="$LDFLAGS -L$ssl_libdir $all_libraries" + LIBS="$LIBS $LIBSSL -lRSAglue -lrsaref" + + AC_TRY_LINK(,void RSAPrivateEncrypt(void);RSAPrivateEncrypt();, + ac_ssl_rsaref="yes" + , + ac_ssl_rsaref="no" + ) + + LDFLAGS="$ac_ldflags_safe" + LIBS="$ac_libs_safe" + + if test "$ac_ssl_includes" = NO || test "$ac_ssl_libraries" = NO; then + have_ssl=no + else + have_ssl=yes; + fi + + ]) + + eval "$ac_cv_have_ssl" + + AC_MSG_RESULT([libraries $ac_ssl_libraries, headers $ac_ssl_includes]) + + AC_MSG_CHECKING([whether OpenSSL uses rsaref]) + AC_MSG_RESULT($ac_ssl_rsaref) + + AC_MSG_CHECKING([for easter eggs]) + AC_MSG_RESULT([none found]) + +else + have_ssl=no +fi + +if test "$have_ssl" = yes; then + AC_MSG_CHECKING(for OpenSSL version) + dnl Check for SSL version + AC_CACHE_VAL(ac_cv_ssl_version, + [ + + cat >conftest.$ac_ext < +#include + int main() { + +#ifndef OPENSSL_VERSION_NUMBER + printf("ssl_version=\\"error\\"\n"); +#else + if (OPENSSL_VERSION_NUMBER < 0x00906000) + printf("ssl_version=\\"old\\"\n"); + else + printf("ssl_version=\\"ok\\"\n"); +#endif + return (0); + } +EOF + + ac_save_CPPFLAGS=$CPPFLAGS + if test "$ac_ssl_includes" != "/usr/include"; then + CPPFLAGS="$CPPFLAGS -I$ac_ssl_includes" + fi + + if AC_TRY_EVAL(ac_link); then + + if eval `./conftest 2>&5`; then + if test $ssl_version = error; then + AC_MSG_ERROR([$ssl_incdir/openssl/opensslv.h doesn't define OPENSSL_VERSION_NUMBER !]) + else + if test $ssl_version = old; then + AC_MSG_WARN([OpenSSL version too old. Upgrade to 0.9.6 at least, see http://www.openssl.org. SSL support disabled.]) + have_ssl=no + fi + fi + ac_cv_ssl_version="ssl_version=$ssl_version" + else + AC_MSG_ERROR([Your system couldn't run a small SSL test program. + Check config.log, and if you can't figure it out, send a mail to + David Faure , attaching your config.log]) + fi + + else + AC_MSG_ERROR([Your system couldn't link a small SSL test program. + Check config.log, and if you can't figure it out, send a mail to + David Faure , attaching your config.log]) + fi + CPPFLAGS=$ac_save_CPPFLAGS + + ]) + + eval "$ac_cv_ssl_version" + AC_MSG_RESULT($ssl_version) +fi + +if test "$have_ssl" != yes; then + LIBSSL=""; +else + AC_DEFINE(HAVE_SSL, 1, [If we are going to use OpenSSL]) + ac_cv_have_ssl="have_ssl=yes \ + ac_ssl_includes=$ac_ssl_includes ac_ssl_libraries=$ac_ssl_libraries ac_ssl_rsaref=$ac_ssl_rsaref" + + + ssl_libraries="$ac_ssl_libraries" + ssl_includes="$ac_ssl_includes" + + if test "$ac_ssl_rsaref" = yes; then + LIBSSL="-lssl -lcrypto -lRSAglue -lrsaref" + fi + + if test $ssl_version = "old"; then + AC_DEFINE(HAVE_OLD_SSL_API, 1, [Define if you have OpenSSL < 0.9.6]) + fi +fi + +SSL_INCLUDES= + +if test "$ssl_includes" = "/usr/include"; then + if test -f /usr/kerberos/include/krb5.h; then + SSL_INCLUDES="-I/usr/kerberos/include" + fi +elif test "$ssl_includes" != "/usr/local/include" && test -n "$ssl_includes"; then + SSL_INCLUDES="-I$ssl_includes" +fi + +if test "$ssl_libraries" = "/usr/lib" || test "$ssl_libraries" = "/usr/local/lib" || test -z "$ssl_libraries" || test "$ssl_libraries" = "NONE"; then + SSL_LDFLAGS="" +else + SSL_LDFLAGS="-L$ssl_libraries -R$ssl_libraries" +fi + +AC_SUBST(SSL_INCLUDES) +AC_SUBST(SSL_LDFLAGS) +AC_SUBST(LIBSSL) +]) + +AC_DEFUN([KDE_CHECK_STRLCPY], +[ + AC_REQUIRE([AC_CHECK_STRLCAT]) + AC_REQUIRE([AC_CHECK_STRLCPY]) + AC_CHECK_SIZEOF(size_t) + AC_CHECK_SIZEOF(unsigned long) + + AC_MSG_CHECKING([sizeof size_t == sizeof unsigned long]) + AC_TRY_COMPILE(,[ + #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG + choke me + #endif + ],AC_MSG_RESULT([yes]),[ + AC_MSG_RESULT(no) + AC_MSG_ERROR([ + Apparently on your system our assumption sizeof size_t == sizeof unsigned long + does not apply. Please mail kde-devel@kde.org with a description of your system! + ]) + ]) +]) + +AC_DEFUN([KDE_CHECK_BINUTILS], +[ + AC_MSG_CHECKING([if ld supports unversioned version maps]) + + kde_save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" + echo "{ local: extern \"C++\" { foo }; };" > conftest.map + AC_TRY_LINK([int foo;], +[ +#ifdef __INTEL_COMPILER +icc apparently does not support libtools version-info and version-script +at the same time. Dunno where the bug is, but until somebody figured out, +better disable the optional version scripts. +#endif + + foo = 42; +], kde_supports_versionmaps=yes, kde_supports_versionmaps=no) + LDFLAGS="$kde_save_LDFLAGS" + rm -f conftest.map + AM_CONDITIONAL(include_VERSION_SCRIPT, + [test "$kde_supports_versionmaps" = "yes" && test "$kde_use_debug_code" = "no"]) + + AC_MSG_RESULT($kde_supports_versionmaps) +]) + +AC_DEFUN([AM_PROG_OBJC],[ +AC_CHECK_PROGS(OBJC, gcc, gcc) +test -z "$OBJC" && AC_MSG_ERROR([no acceptable objective-c gcc found in \$PATH]) +if test "x${OBJCFLAGS-unset}" = xunset; then + OBJCFLAGS="-g -O2" +fi +AC_SUBST(OBJCFLAGS) +_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES(OBJC)]) +]) + +AC_DEFUN([KDE_CHECK_PERL], +[ + KDE_FIND_PATH(perl, PERL, [$bindir $exec_prefix/bin $prefix/bin], [ + AC_MSG_ERROR([No Perl found in your $PATH. +We need perl to generate some code.]) + ]) + AC_SUBST(PERL) +]) + +AC_DEFUN([KDE_CHECK_LARGEFILE], +[ +AC_SYS_LARGEFILE +if test "$ac_cv_sys_file_offset_bits" != no; then + CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" +fi + +if test "x$ac_cv_sys_large_files" != "xno"; then + CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=1" +fi + +]) + +dnl A small extension to PKG_CHECK_MODULES (defined in pkg.m4.in) +dnl which allows to search for libs that get installed into the KDE prefix. +dnl +dnl Syntax: KDE_PKG_CHECK_MODULES(KSTUFF, libkexif >= 0.2 glib = 1.3.4, action-if, action-not) +dnl defines KSTUFF_LIBS, KSTUFF_CFLAGS, see pkg-config man page +dnl also defines KSTUFF_PKG_ERRORS on error +AC_DEFUN([KDE_PKG_CHECK_MODULES], [ + + PKG_CONFIG_PATH="$prefix/lib${kdelibsuff}/pkgconfig:$PKG_CONFIG_PATH" + if test "$prefix" != "$kde_libs_prefix"; then + PKG_CONFIG_PATH="$kde_libs_prefix/lib${kdelibsuff}/pkgconfig:$PKG_CONFIG_PATH" + fi + export PKG_CONFIG_PATH + PKG_CHECK_MODULES([$1],[$2],[$3],[$4]) +]) + + +dnl Check for PIE support in the compiler and linker +AC_DEFUN([KDE_CHECK_PIE_SUPPORT], +[ + AC_CACHE_CHECK([for PIE support], kde_cv_val_pie_support, + [ + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + safe_CXXFLAGS=$CXXFLAGS + safe_LDFLAGS=$LDFLAGS + CXXFLAGS="$CXXFLAGS -fPIE" + LDFLAGS="$LDFLAGS -pie" + + AC_TRY_LINK([int foo;], [], [kde_cv_val_pie_support=yes], [kde_cv_val_pie_support=no]) + + CXXFLAGS=$safe_CXXFLAGS + LDFLAGS=$safe_LDFLAGS + AC_LANG_RESTORE + ]) + + AC_MSG_CHECKING(if enabling -pie/fPIE support) + + AC_ARG_ENABLE(pie, + AC_HELP_STRING([--enable-pie],[platform supports PIE linking [default=detect]]), + [kde_has_pie_support=$enableval], + [kde_has_pie_support=detect]) + + if test "$kde_has_pie_support" = "detect"; then + kde_has_pie_support=$kde_cv_val_pie_support + fi + + AC_MSG_RESULT([$kde_has_pie_support]) + + KDE_USE_FPIE="" + KDE_USE_PIE="" + + AC_SUBST([KDE_USE_FPIE]) + AC_SUBST([KDE_USE_PIE]) + + if test "$kde_has_pie_support" = "yes"; then + KDE_USE_FPIE="-fPIE" + KDE_USE_PIE="-pie" + fi +]) +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +## Copyright 1996, 1997, 1998, 1999, 2000, 2001 +## Free Software Foundation, Inc. +## Originally by Gordon Matzigkeit , 1996 +## +## 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 2 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, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +## +## As a special exception to the GNU General Public License, if you +## distribute this file as part of a program that contains a +## configuration script generated by Autoconf, you may include it under +## the same distribution terms that you use for the rest of that program. + +# serial 47 AC_PROG_LIBTOOL + + +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) +# ----------------------------------------------------------- +# If this macro is not defined by Autoconf, define it here. +m4_ifdef([AC_PROVIDE_IFELSE], + [], + [m4_define([AC_PROVIDE_IFELSE], + [m4_ifdef([AC_PROVIDE_$1], + [$2], [$3])])]) + + +# AC_PROG_LIBTOOL +# --------------- +AC_DEFUN([AC_PROG_LIBTOOL], +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. + AC_PROVIDE_IFELSE([AC_PROG_CXX], + [AC_LIBTOOL_CXX], + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX + ])]) +dnl And a similar setup for Fortran 77 support + AC_PROVIDE_IFELSE([AC_PROG_F77], + [AC_LIBTOOL_F77], + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 +])]) + +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. + AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [ifdef([AC_PROG_GCJ], + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([A][M_PROG_GCJ], + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([LT_AC_PROG_GCJ], + [define([LT_AC_PROG_GCJ], + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) +])])# AC_PROG_LIBTOOL + + +# _AC_PROG_LIBTOOL +# ---------------- +AC_DEFUN([_AC_PROG_LIBTOOL], +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' +AC_SUBST(LIBTOOL)dnl + +# Prevent multiple expansion +define([AC_PROG_LIBTOOL], []) +])# _AC_PROG_LIBTOOL + + +# AC_LIBTOOL_SETUP +# ---------------- +AC_DEFUN([AC_LIBTOOL_SETUP], +[AC_PREREQ(2.50)dnl +AC_REQUIRE([AC_ENABLE_SHARED])dnl +AC_REQUIRE([AC_ENABLE_STATIC])dnl +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl +AC_REQUIRE([AC_PROG_NM])dnl + +AC_REQUIRE([AC_PROG_LN_S])dnl +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +AC_REQUIRE([AC_OBJEXT])dnl +AC_REQUIRE([AC_EXEEXT])dnl +dnl + +AC_LIBTOOL_SYS_MAX_CMD_LEN +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +AC_LIBTOOL_OBJDIR + +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +_LT_AC_PROG_ECHO_BACKSLASH + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e s/^X//' +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] + +# Same as above, but do not quote variable references. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except M$VC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +AC_CHECK_TOOL(AR, ar, false) +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" + ;; + *) + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + AC_PATH_MAGIC + fi + ;; +esac + +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +enable_win32_dll=yes, enable_win32_dll=no) + +AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +AC_ARG_WITH([pic], + [AC_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +AC_LIBTOOL_LANG_C_CONFIG +_LT_AC_TAGCONFIG +])# AC_LIBTOOL_SETUP + + +# _LT_AC_SYS_COMPILER +# ------------------- +AC_DEFUN([_LT_AC_SYS_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_AC_SYS_COMPILER + + +# _LT_AC_SYS_LIBPATH_AIX +# ---------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi],[]) +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +])# _LT_AC_SYS_LIBPATH_AIX + + +# _LT_AC_SHELL_INIT(ARG) +# ---------------------- +AC_DEFUN([_LT_AC_SHELL_INIT], +[ifdef([AC_DIVERSION_NOTICE], + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +$1 +AC_DIVERT_POP +])# _LT_AC_SHELL_INIT + + +# _LT_AC_PROG_ECHO_BACKSLASH +# -------------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], +[_LT_AC_SHELL_INIT([ +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +echo=${ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null && + echo_test_string="`eval $cmd`" && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(ECHO) +])])# _LT_AC_PROG_ECHO_BACKSLASH + + +# _LT_AC_LOCK +# ----------- +AC_DEFUN([_LT_AC_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case "`/usr/bin/file conftest.o`" in + *32-bit*) + LINUX_64_MODE="32" + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + LINUX_64_MODE="64" + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; + ]) +esac + +need_locks="$enable_libtool_lock" + +])# _LT_AC_LOCK + + +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED]) +AC_CACHE_CHECK([$1], [$2], + [$2=no + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test ! -s conftest.err; then + $2=yes + fi + fi + $rm conftest* +]) + +if test x"[$]$2" = xyes; then + ifelse([$5], , :, [$5]) +else + ifelse([$6], , :, [$6]) +fi +])# AC_LIBTOOL_COMPILER_OPTION + + +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ------------------------------------------------------------ +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], +[AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + printf "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + else + $2=yes + fi + fi + $rm conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + ifelse([$4], , :, [$4]) +else + ifelse([$5], , :, [$5]) +fi +])# AC_LIBTOOL_LINKER_OPTION + + +# AC_LIBTOOL_SYS_MAX_CMD_LEN +# -------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], +[# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + testring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + *) + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ + = "XX$testring") >/dev/null 2>&1 && + new_result=`expr "X$testring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + testring=$testring$testring + done + testring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +])# AC_LIBTOOL_SYS_MAX_CMD_LEN + + +# _LT_AC_CHECK_DLFCN +# -------------------- +AC_DEFUN([_LT_AC_CHECK_DLFCN], +[AC_CHECK_HEADERS(dlfcn.h)dnl +])# _LT_AC_CHECK_DLFCN + + +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ------------------------------------------------------------------ +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +}] +EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_unknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_AC_TRY_DLOPEN_SELF + + +# AC_LIBTOOL_DLOPEN_SELF +# ------------------- +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +])# AC_LIBTOOL_DLOPEN_SELF + + +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) +# --------------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + # According to Tom Tromey, Ian Lance Taylor reported there are C compilers + # that will create temporary files in the current directory regardless of + # the output directory. Thus, making CWD read-only will cause this test + # to fail, enabling locking or at least warning the user not to do parallel + # builds. + chmod -w . + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test ! -s out/conftest.err; then + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . + $rm conftest* out/* + rmdir out + cd .. + rmdir conftest + $rm conftest* +]) +])# AC_LIBTOOL_PROG_CC_C_O + + +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) +# ----------------------------------------- +# Check to see if we can do hard links to lock some files if needed +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], +[AC_REQUIRE([_LT_AC_LOCK])dnl + +hard_links="nottested" +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS + + +# AC_LIBTOOL_OBJDIR +# ----------------- +AC_DEFUN([AC_LIBTOOL_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +])# AC_LIBTOOL_OBJDIR + + +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) +# ---------------------------------------------- +# Check hardcoding attributes. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_AC_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ + test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then + + # We can hardcode non-existant directories. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_AC_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH + + +# AC_LIBTOOL_SYS_LIB_STRIP +# ------------------------ +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], +[striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) +fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +])# AC_LIBTOOL_SYS_LIB_STRIP + + +# AC_LIBTOOL_SYS_DYNAMIC_LINKER +# ----------------------------- +# PORTME Fill in your ld.so characteristics +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], +[AC_MSG_CHECKING([dynamic linker characteristics]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi4*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext='$(test .$module = .yes && echo .so || echo .dylib)' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case "$host_cpu" in + ia64*) + shrext='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + libsuff= + if test "x$LINUX_64_MODE" = x64; then + # Some platforms are per default 64-bit, so there's no /lib64 + if test -d /lib64 -a ! -h /lib64; then + libsuff=64 + fi + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER + + +# _LT_AC_TAGCONFIG +# ---------------- +AC_DEFUN([_LT_AC_TAGCONFIG], +[AC_ARG_WITH([tags], + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], + [include additional configurations @<:@automatic@:>@])], + [tagnames="$withval"]) + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + AC_MSG_WARN([output file `$ofile' does not exist]) + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) + else + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) + fi + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in + "") ;; + *) AC_MSG_ERROR([invalid tag name: $tagname]) + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + AC_MSG_ERROR([tag name \"$tagname\" already exists]) + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && test "X$CXX" != "Xno"; then + AC_LIBTOOL_LANG_CXX_CONFIG + else + tagname="" + fi + ;; + + F77) + if test -n "$F77" && test "X$F77" != "Xno"; then + AC_LIBTOOL_LANG_F77_CONFIG + else + tagname="" + fi + ;; + + GCJ) + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then + AC_LIBTOOL_LANG_GCJ_CONFIG + else + tagname="" + fi + ;; + + RC) + AC_LIBTOOL_LANG_RC_CONFIG + ;; + + *) + AC_MSG_ERROR([Unsupported tag name: $tagname]) + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + AC_MSG_ERROR([unable to update list of available tagged configurations.]) + fi +fi +])# _LT_AC_TAGCONFIG + + +# AC_LIBTOOL_DLOPEN +# ----------------- +# enable checks for dlopen support +AC_DEFUN([AC_LIBTOOL_DLOPEN], + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_DLOPEN + + +# AC_LIBTOOL_WIN32_DLL +# -------------------- +# declare package support for building win32 dll's +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_WIN32_DLL + + +# AC_ENABLE_SHARED([DEFAULT]) +# --------------------------- +# implement the --enable-shared flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([shared], + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]AC_ENABLE_SHARED_DEFAULT) +])# AC_ENABLE_SHARED + + +# AC_DISABLE_SHARED +# ----------------- +#- set the default shared flag to --disable-shared +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_SHARED(no) +])# AC_DISABLE_SHARED + + +# AC_ENABLE_STATIC([DEFAULT]) +# --------------------------- +# implement the --enable-static flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([static], + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]AC_ENABLE_STATIC_DEFAULT) +])# AC_ENABLE_STATIC + + +# AC_DISABLE_STATIC +# ----------------- +# set the default static flag to --disable-static +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_STATIC(no) +])# AC_DISABLE_STATIC + + +# AC_ENABLE_FAST_INSTALL([DEFAULT]) +# --------------------------------- +# implement the --enable-fast-install flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([fast-install], + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) +])# AC_ENABLE_FAST_INSTALL + + +# AC_DISABLE_FAST_INSTALL +# ----------------------- +# set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_FAST_INSTALL(no) +])# AC_DISABLE_FAST_INSTALL + + +# AC_LIBTOOL_PICMODE([MODE]) +# -------------------------- +# implement the --with-pic flag +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default) +])# AC_LIBTOOL_PICMODE + + +# AC_PROG_EGREP +# ------------- +# This is predefined starting with Autoconf 2.54, so this conditional +# definition can be removed once we require Autoconf 2.54 or later. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi]) + EGREP=$ac_cv_prog_egrep + AC_SUBST([EGREP]) +])]) + + +# AC_PATH_TOOL_PREFIX +# ------------------- +# find a file program which can recognise shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +])# AC_PATH_TOOL_PREFIX + + +# AC_PATH_MAGIC +# ------------- +# find a file program which can recognise a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# AC_PATH_MAGIC + + +# AC_PROG_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([AC_PROG_LD], +[AC_ARG_WITH([gnu-ld], + [AC_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no]) +AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case "$host_cpu" in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + irix5* | nonstopux*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" + ;; + *) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" + ;; + esac + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux*) + case $host_cpu in + alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* ) + lt_cv_deplibs_check_method=pass_all ;; + # the debian people say, arm and glibc 2.3.1 works for them with pass_all + arm* ) + lt_cv_deplibs_check_method=pass_all ;; + *) + # glibc up to 2.1.1 does not perform some relocations on ARM + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; + esac + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' + else + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' + fi + ;; + +osf3* | osf4* | osf5*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' + lt_cv_file_magic_test_file=/shlib/libc.so + lt_cv_deplibs_check_method=pass_all + ;; + +sco3.2v5*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + lt_cv_file_magic_test_file=/lib/libc.so + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown +])# AC_DEPLIBS_CHECK_METHOD + + +# AC_PROG_NM +# ---------- +# find the pathname to a BSD-compatible name lister +AC_DEFUN([AC_PROG_NM], +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/${ac_tool_prefix}nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + esac + fi + done + IFS="$lt_save_ifs" + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi]) +NM="$lt_cv_path_NM" +])# AC_PROG_NM + + +# AC_CHECK_LIBM +# ------------- +# check for math library +AC_DEFUN([AC_CHECK_LIBM], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +])# AC_CHECK_LIBM + + +# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl convenience library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If +# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with +# '${top_srcdir}/' (note the single quotes!). If your package is not +# flat and you're not using automake, define top_builddir and +# top_srcdir appropriately in the Makefiles. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case $enable_ltdl_convenience in + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; + "") enable_ltdl_convenience=yes + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; + esac + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_CONVENIENCE + + +# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl installable library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-install to the configure arguments. Note that LIBLTDL +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If +# DIRECTORY is not provided and an installed libltdl is not found, it is +# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single +# quotes!). If your package is not flat and you're not using automake, +# define top_builddir and top_srcdir appropriately in the Makefiles. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + AC_CHECK_LIB(ltdl, lt_dlinit, + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], + [if test x"$enable_ltdl_install" = xno; then + AC_MSG_WARN([libltdl not installed, but installation disabled]) + else + enable_ltdl_install=yes + fi + ]) + if test x"$enable_ltdl_install" = x"yes"; then + ac_configure_args="$ac_configure_args --enable-ltdl-install" + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + else + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" + LIBLTDL="-lltdl" + LTDLINCL= + fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_INSTALLABLE + + +# AC_LIBTOOL_CXX +# -------------- +# enable support for C++ libraries +AC_DEFUN([AC_LIBTOOL_CXX], +[AC_REQUIRE([_LT_AC_LANG_CXX]) +])# AC_LIBTOOL_CXX + + +# _LT_AC_LANG_CXX +# --------------- +AC_DEFUN([_LT_AC_LANG_CXX], +[AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([AC_PROG_CXXCPP]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) +])# _LT_AC_LANG_CXX + + +# AC_LIBTOOL_F77 +# -------------- +# enable support for Fortran 77 libraries +AC_DEFUN([AC_LIBTOOL_F77], +[AC_REQUIRE([_LT_AC_LANG_F77]) +])# AC_LIBTOOL_F77 + + +# _LT_AC_LANG_F77 +# --------------- +AC_DEFUN([_LT_AC_LANG_F77], +[AC_REQUIRE([AC_PROG_F77]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) +])# _LT_AC_LANG_F77 + + +# AC_LIBTOOL_GCJ +# -------------- +# enable support for GCJ libraries +AC_DEFUN([AC_LIBTOOL_GCJ], +[AC_REQUIRE([_LT_AC_LANG_GCJ]) +])# AC_LIBTOOL_GCJ + + +# _LT_AC_LANG_GCJ +# --------------- +AC_DEFUN([_LT_AC_LANG_GCJ], +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) +])# _LT_AC_LANG_GCJ + + +# AC_LIBTOOL_RC +# -------------- +# enable support for Windows resource files +AC_DEFUN([AC_LIBTOOL_RC], +[AC_REQUIRE([LT_AC_PROG_RC]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) +])# AC_LIBTOOL_RC + + +# AC_LIBTOOL_LANG_C_CONFIG +# ------------------------ +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) +AC_DEFUN([_LT_AC_LANG_C_CONFIG], +[lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}\n' + +_LT_AC_SYS_COMPILER + +# +# Check for any special shared library compilation flags. +# +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= +if test "$GCC" = no; then + case $host_os in + sco3.2v5*) + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' + ;; + esac +fi +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : + else + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no + fi +fi + + +# +# Check to make sure the static flag actually works. +# +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), + [], + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF($1) + +# Report which librarie types wil actually be built +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) + +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case "$host_os" in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix4*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + darwin* | rhapsody*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + case "$host_os" in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup' + ;; + esac + fi + ;; + esac + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_C_CONFIG + + +# AC_LIBTOOL_LANG_CXX_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], +[AC_LANG_PUSH(C++) +AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([AC_PROG_CXXCPP]) + +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_AC_TAGVAR(allow_undefined_flag, $1)= +_LT_AC_TAGVAR(always_export_symbols, $1)=no +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_direct, $1)=no +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no +_LT_AC_TAGVAR(hardcode_automatic, $1)=no +_LT_AC_TAGVAR(module_cmds, $1)= +_LT_AC_TAGVAR(module_expsym_cmds, $1)= +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_AC_TAGVAR(no_undefined_flag, $1)= +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Dependencies to place before and after the object being linked: +_LT_AC_TAGVAR(predep_objects, $1)= +_LT_AC_TAGVAR(postdep_objects, $1)= +_LT_AC_TAGVAR(predeps, $1)= +_LT_AC_TAGVAR(postdeps, $1)= +_LT_AC_TAGVAR(compiler_lib_search_path, $1)= + +# Source file extension for C++ test sources. +ac_ext=cc + +# Object file extension for compiled C++ test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' +else + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + AC_PROG_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +_LT_AC_TAGVAR(ld_shlibs, $1)=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # KDE requires run time linking. Make it the default. + aix_use_runtimelinking=yes + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='-qmkshrobj ${wl}-G' + else + shared_flag='-qmkshrobj' + fi + fi + fi + + # Let the compiler handle the export list. + _LT_AC_TAGVAR(always_export_symbols, $1)=no + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds it's shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=no + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + darwin* | rhapsody*) + if test "$GXX" = yes; then + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + case "$host_os" in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup' + ;; + esac + fi + ;; + esac + lt_int_apple_cc_single_mod=no + output_verbose_link_cmd='echo' + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then + lt_int_apple_cc_single_mod=yes + fi + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' + fi + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' + + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + dgux*) + case $cc_basename in + ec++) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + freebsd[12]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + freebsd-elf*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + freebsd* | kfreebsd*-gnu) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + ;; + gnu*) + ;; + hpux9*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + case "$host_cpu" in + hppa*64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + ia64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + ;; + *) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case "$host_cpu" in + hppa*64*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + ia64*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + *) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC) + case "$host_cpu" in + hppa*64*|ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case "$host_cpu" in + ia64*|hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + irix5* | irix6*) + case $cc_basename in + CC) + # SGI C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + linux*) + case $cc_basename in + KCC) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc) + # Intel C++ + with_gnu_ld=yes + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + cxx) + # Compaq C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + m88k*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + mvs*) + case $cc_basename in + cxx) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + osf3*) + case $cc_basename in + KCC) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' + ;; + RCC) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ + $rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + sco*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + case $cc_basename in + CC) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + lcc) + # Lucid + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The C++ compiler is used as linker so we must use $wl + # flag to pass the commands to the underlying system + # linker. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + fi + ;; + esac + ;; + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + tandem*) + case $cc_basename in + NCC) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; +esac +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_AC_TAGVAR(GCC, $1)="$GXX" +_LT_AC_TAGVAR(LD, $1)="$LD" + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +AC_LIBTOOL_POSTDEP_PREDEP($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +])# AC_LIBTOOL_LANG_CXX_CONFIG + +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) +# ------------------------ +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" +ifelse([$1], [], +[#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# 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 2 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, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG], +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) + +# Is the compiler the GNU C compiler? +with_gcc=$_LT_AC_TAGVAR(GCC, $1) + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1) + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext='$shrext' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) + +# Must we lock files when doing compilation ? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) + +# Commands used to build and install a shared archive. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" + +# Set to yes if exported symbols are required. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) + +# The commands to list exported symbols. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) + +# Symbols that must always be exported. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) + +ifelse([$1],[], +[# ### END LIBTOOL CONFIG], +[# ### END LIBTOOL TAG CONFIG: $tagname]) + +__EOF__ + +ifelse([$1],[], [ + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +]) +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + test -f Makefile && make "$ltmain" +fi +])# AC_LIBTOOL_CONFIG + + +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl + +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI + + +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +# --------------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_PROG_NM]) +AC_REQUIRE([AC_OBJEXT]) +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Transform the above into a raw symbol and a C symbol. +symxfrm='\1 \2\3 \3' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris* | sysv5*) + symcode='[[BDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGISTW]]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[[]] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -f conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + + +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) +# --------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= + +AC_MSG_CHECKING([for $compiler option to produce PIC]) + ifelse([$1],[CXX],[ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix4* | aix5*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | kfreebsd*-gnu) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux*) + case $cc_basename in + KCC) + # KAI C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + icpc) + # Intel C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + cxx) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC) + # Rational C++ 2.4.1 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx) + # Digital/Compaq C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + sco*) + case $cc_basename in + CC) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + *) + ;; + esac + ;; + solaris*) + case $cc_basename in + CC) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC) + # Sun C++ 4.x + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc) + # Lucid + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC) + # NonStop-UX NCC 3.20 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + unixware*) + ;; + vxworks*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + newsos6) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + linux*) + case $CC in + icc* | ecc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + ccc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + esac + ;; + + osf3* | osf4* | osf5*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + sco3.2v5*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' + ;; + + solaris*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sunos4*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + uts4*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +case "$host_os" in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" + ;; +esac +]) + + +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) +# ------------------------------------ +# See if the linker supports building shared libraries. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +ifelse([$1],[CXX],[ + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix4* | aix5*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +],[ + runpath_var= + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)= + _LT_AC_TAGVAR(archive_expsym_cmds, $1)= + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown + _LT_AC_TAGVAR(hardcode_automatic, $1)=no + _LT_AC_TAGVAR(module_cmds, $1)= + _LT_AC_TAGVAR(module_expsym_cmds, $1)= + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_AC_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=no + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sunos4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + + # KDE requires run time linking. Make it the default. + aix_use_runtimelinking=yes + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='-qmkshrobj ${wl}-G' + else + shared_flag='-qmkshrobj' + fi + fi + fi + + # Let the compiler handle the export list. + _LT_AC_TAGVAR(always_export_symbols, $1)=no + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds it's shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + # see comment about different semantics on the GNU ld section + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + bsdi4*) + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=no + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + darwin* | rhapsody*) + if test "$GXX" = yes ; then + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + case "$host_os" in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup' + ;; + esac + fi + ;; + esac + lt_int_apple_cc_single_mod=no + output_verbose_link_cmd='echo' + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then + lt_int_apple_cc_single_mod=yes + fi + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' + fi + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + dgux*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + freebsd1*) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | kfreebsd*-gnu) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10* | hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*|ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' + ;; + esac + else + case "$host_cpu" in + hppa*64*|ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + ia64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + ;; + *) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + openbsd*) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + sco3.2v5*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ;; + + solaris*) + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4.2uw2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' + fi + runpath_var='LD_RUN_PATH' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv5*) + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_AC_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) + then + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + else + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) + ;; + esac + fi + ;; +esac +])# AC_LIBTOOL_PROG_LD_SHLIBS + + +# _LT_AC_FILE_LTDLL_C +# ------------------- +# Be careful that the start marker always follows a newline. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include +# #undef WIN32_LEAN_AND_MEAN +# #include +# +# #ifndef __CYGWIN__ +# # ifdef __CYGWIN32__ +# # define __CYGWIN__ __CYGWIN32__ +# # endif +# #endif +# +# #ifdef __cplusplus +# extern "C" { +# #endif +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# #ifdef __cplusplus +# } +# #endif +# +# #ifdef __CYGWIN__ +# #include +# DECLARE_CYGWIN_DLL( DllMain ); +# #endif +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ +])# _LT_AC_FILE_LTDLL_C + + +# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) +# --------------------------------- +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) + + +# old names +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) + +# This is just to silence aclocal about the macro not being used +ifelse([AC_DISABLE_FAST_INSTALL]) + +AC_DEFUN([LT_AC_PROG_GCJ], +[AC_CHECK_TOOL(GCJ, gcj, no) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS) +]) + +AC_DEFUN([LT_AC_PROG_RC], +[AC_CHECK_TOOL(RC, windres, no) +]) + +############################################################ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +############################################################ +# LT_AC_PROG_SED +# -------------- +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +AC_DEFUN([LT_AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && break + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_MSG_RESULT([$SED]) +]) diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..0c4f78e --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,892 @@ +# generated automatically by aclocal 1.10.2 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, +[m4_warning([this file was generated for autoconf 2.63. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.10' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.10.2], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.10.2])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 5 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 13 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.60])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo done +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([acinclude.m4]) diff --git a/build-stamp b/build-stamp new file mode 100644 index 0000000..e69de29 diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..fba8b0b --- /dev/null +++ b/config.h.in @@ -0,0 +1,255 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define if building universal (internal helper macro) */ +#undef AC_APPLE_UNIVERSAL_BUILD + +/* Define to 1 if you have the header file. */ +#undef HAVE_CARBON_CARBON_H + +/* Define if you have the CoreAudio API */ +#undef HAVE_COREAUDIO + +/* Define to 1 if you have the header file. */ +#undef HAVE_CRT_EXTERNS_H + +/* Defines if your system has the crypt function */ +#undef HAVE_CRYPT + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define if you have libjpeg */ +#undef HAVE_LIBJPEG + +/* Define if you have libpng */ +#undef HAVE_LIBPNG + +/* Define if you have a working libpthread (will enable threaded code) */ +#undef HAVE_LIBPTHREAD + +/* Define if you have libz */ +#undef HAVE_LIBZ + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define if your system needs _NSGetEnviron to set up the environment */ +#undef HAVE_NSGETENVIRON + +/* Define if you have res_init */ +#undef HAVE_RES_INIT + +/* Define if you have the res_init prototype */ +#undef HAVE_RES_INIT_PROTO + +/* Define if you have a STL implementation by SGI */ +#undef HAVE_SGI_STL + +/* Define to 1 if you have the `snprintf' function. */ +#undef HAVE_SNPRINTF + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define if you have strlcat */ +#undef HAVE_STRLCAT + +/* Define if you have the strlcat prototype */ +#undef HAVE_STRLCAT_PROTO + +/* Define if you have strlcpy */ +#undef HAVE_STRLCPY + +/* Define if you have the strlcpy prototype */ +#undef HAVE_STRLCPY_PROTO + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_BITYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if you have the `vsnprintf' function. */ +#undef HAVE_VSNPRINTF + +/* Suffix for lib directories */ +#undef KDELIBSUFF + +/* Define a safe value for MAXPATHLEN */ +#undef KDEMAXPATHLEN + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* The size of `char *', as computed by sizeof. */ +#undef SIZEOF_CHAR_P + +/* The size of `int', as computed by sizeof. */ +#undef SIZEOF_INT + +/* The size of `long', as computed by sizeof. */ +#undef SIZEOF_LONG + +/* The size of `short', as computed by sizeof. */ +#undef SIZEOF_SHORT + +/* The size of `size_t', as computed by sizeof. */ +#undef SIZEOF_SIZE_T + +/* The size of `unsigned long', as computed by sizeof. */ +#undef SIZEOF_UNSIGNED_LONG + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Version number of package */ +#undef VERSION + +/* Defined if compiling without arts */ +#undef WITHOUT_ARTS + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif + +/* + * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system + * headers and I'm too lazy to write a configure test as long as only + * unixware is related + */ +#ifdef _UNIXWARE +#define HAVE_BOOLEAN +#endif + + + +/* + * AIX defines FD_SET in terms of bzero, but fails to include + * that defines bzero. + */ + +#if defined(_AIX) +#include +#endif + + + +#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H) +# include +# include +# define environ (*_NSGetEnviron()) +#endif + + + +#if !defined(HAVE_RES_INIT_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +int res_init(void); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_STRLCAT_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +unsigned long strlcat(char*, const char*, unsigned long); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_STRLCPY_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +unsigned long strlcpy(char*, const char*, unsigned long); +#ifdef __cplusplus +} +#endif +#endif + + + +/* + * On HP-UX, the declaration of vsnprintf() is needed every time ! + */ + +#if !defined(HAVE_VSNPRINTF) || defined(hpux) +#if __STDC__ +#include +#include +#else +#include +#endif +#ifdef __cplusplus +extern "C" +#endif +int vsnprintf(char *str, size_t n, char const *fmt, va_list ap); +#ifdef __cplusplus +extern "C" +#endif +int snprintf(char *str, size_t n, char const *fmt, ...); +#endif + + + +#if defined(__SVR4) && !defined(__svr4__) +#define __svr4__ 1 +#endif + + +/* type to use in place of socklen_t if not defined */ +#undef kde_socklen_t + +/* type to use in place of socklen_t if not defined (deprecated, use + kde_socklen_t) */ +#undef ksize_t diff --git a/configure.files b/configure.files new file mode 100644 index 0000000..030bce8 --- /dev/null +++ b/configure.files @@ -0,0 +1,2 @@ +./admin/configure.in.min +configure.in.in diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..d21630c --- /dev/null +++ b/configure.in @@ -0,0 +1,131 @@ +dnl ======================================================= +dnl FILE: ./admin/configure.in.min +dnl ======================================================= + +dnl This file is part of the KDE libraries/packages +dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org) + +dnl This file is free software; you can redistribute it and/or +dnl modify it under the terms of the GNU Library General Public +dnl License as published by the Free Software Foundation; either +dnl version 2 of the License, or (at your option) any later version. + +dnl This library is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl Library General Public License for more details. + +dnl You should have received a copy of the GNU Library General Public License +dnl along with this library; see the file COPYING.LIB. If not, write to +dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +dnl Boston, MA 02110-1301, USA. + +# Original Author was Kalle@kde.org +# I lifted it in some mater. (Stephan Kulow) +# I used much code from Janos Farkas + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(acinclude.m4) dnl a source file from your sub dir + +dnl This is so we can use kde-common +AC_CONFIG_AUX_DIR(admin) + +dnl This ksh/zsh feature conflicts with `cd blah ; pwd` +unset CDPATH + +dnl Checking host/target/build systems, for make, install etc. +AC_CANONICAL_SYSTEM +dnl Perform program name transformation +AC_ARG_PROGRAM + +dnl Automake doc recommends to do this only here. (Janos) +AM_INIT_AUTOMAKE(d3lphin, 0.9) dnl searches for some needed programs + +KDE_SET_PREFIX + +dnl generate the config header +AM_CONFIG_HEADER(config.h) dnl at the distribution this done + +dnl Checks for programs. +AC_CHECK_COMPILERS +AC_ENABLE_SHARED(yes) +AC_ENABLE_STATIC(no) +KDE_PROG_LIBTOOL + +dnl for NLS support. Call them in this order! +dnl WITH_NLS is for the po files +AM_KDE_WITH_NLS + +KDE_USE_QT(3.2.0) +AC_PATH_KDE +dnl ======================================================= +dnl FILE: configure.in.in +dnl ======================================================= + +#MIN_CONFIG(3.2.0) + +dnl PACKAGE set before +AC_C_BIGENDIAN +AC_CHECK_KDEMAXPATHLEN + +KDE_CREATE_SUBDIRSLIST +AC_CONFIG_FILES([ Makefile ]) +AC_CONFIG_FILES([ doc/Makefile ]) +AC_CONFIG_FILES([ doc/en/Makefile ]) +AC_CONFIG_FILES([ po/Makefile ]) +AC_CONFIG_FILES([ src/Makefile ]) +AC_CONFIG_FILES([ src/pics/Makefile ]) +AC_CONFIG_FILES([ src/pics/128x128/Makefile ]) +AC_CONFIG_FILES([ src/pics/16x16/Makefile ]) +AC_CONFIG_FILES([ src/pics/22x22/Makefile ]) +AC_CONFIG_FILES([ src/pics/32x32/Makefile ]) +AC_CONFIG_FILES([ src/pics/48x48/Makefile ]) +AC_CONFIG_FILES([ src/pics/64x64/Makefile ]) +AC_CONFIG_FILES([ src/servicemenus/Makefile ]) +AC_OUTPUT +# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure +if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then + # And if so, warn when they don't match + if test "$kde_libs_prefix" != "$given_prefix"; then + # And if kde doesn't know about the prefix yet + echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null + if test $? -ne 0; then + echo "" + echo "Warning: you chose to install this package in $given_prefix," + echo "but KDE was found in $kde_libs_prefix." + echo "For this to work, you will need to tell KDE about the new prefix, by ensuring" + echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix" + echo "Then restart KDE." + echo "" + fi + fi +fi + +if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then + echo "" + echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility" + echo "was not included. Therefore, GCC symbol visibility support remains disabled." + echo "" + echo "For better performance, consider including the Qt visibility supporting patch" + echo "located at:" + echo "" + echo "http://bugs.kde.org/show_bug.cgi?id=109386" + echo "" + echo "and recompile all of Qt and KDE. Note, this is entirely optional and" + echo "everything will continue to work just fine without it." + echo "" +fi + +if test "$all_tests" = "bad"; then + if test ! "$cache_file" = "/dev/null"; then + echo "" + echo "Please remove the file $cache_file after changing your setup" + echo "so that configure will find the changes next time." + echo "" + fi +else + echo "" + echo "Good - your configure finished. Start make now" + echo "" +fi diff --git a/configure.in.in b/configure.in.in new file mode 100644 index 0000000..1dde264 --- /dev/null +++ b/configure.in.in @@ -0,0 +1,6 @@ +#MIN_CONFIG(3.2.0) + +AM_INIT_AUTOMAKE(d3lphin, 0.9) +AC_C_BIGENDIAN +AC_CHECK_KDEMAXPATHLEN + diff --git a/d3lphin.kdevelop b/d3lphin.kdevelop new file mode 100644 index 0000000..d9505b2 --- /dev/null +++ b/d3lphin.kdevelop @@ -0,0 +1,290 @@ + + + + Marcel Juhnke + marrat@marrat.homelinux.org + 0.9 + KDevKDEAutoProject + C++ + + C++ + Code + Qt + KDE + + . + false + + + kdevbookmarks + kdevsnippet + kdevctags2 + kdevkonsoleview + kdevfilegroups + kdevfilelist + kdevfileselector + kdevfileview + kdevdistpart + kdevopenwith + kdevpartexplorer + kdevquickopen + kdevregexptest + kdevreplace + kdevscripting + kdevfilter + kdevtexttools + kdevtools + + kdevsubversion + d3lphin + + + + + src/d3lphin + default + + + + false + executable + / + + true + + + + false + false + false + + + + + + + + /home/marcel/Desktop/d3lphin/debug/./src + + + + + + + + false + 2 + false + + 0 + false + + + + optimized + kdevgccoptions + kdevgppoptions + kdevg77options + -O2 -g0 + + + + --enable-debug=full + debug + kdevgccoptions + kdevgppoptions + kdevg77options + -O0 -g3 + + + + + + + + + + + + + + + false + false + + + false + *.o,*.lo,CVS + false + + + + + ada + ada_bugs_gcc + bash + bash_bugs + clanlib + w3c-dom-level2-html + fortran_bugs_gcc + gnome1 + gnustep + gtk + gtk_bugs + haskell + haskell_bugs_ghc + java_bugs_gcc + java_bugs_sun + pascal_bugs_fp + php + php_bugs + perl + perl_bugs + python + python_bugs + ruby + ruby_bugs + sdl + w3c-svg + sw + w3c-uaag10 + wxwidgets_bugs + + + qmake User Guide + + + + + libtool + + + true + false + false + true + + + + + + false + true + 10 + + + + + + + + + + + + -f + + -dP + + -f + -u3 -p + + + + + + + false + + + .h + .cpp + true + + + + true + 2 + + + + Doxygen Documentation Collection + d3lphin.tag + + + + + D3lphin + d3lphin + D3lphin + D3LPHIN + Marcel Juhnke + marrat@marrat.homelinux.org + GPL + COPYING + 0.9 + 2007 + /home/marcel/Desktop/d3lphin + + + + KDElibs + + + true + true + true + false + true + true + true + 250 + 400 + 250 + false + 0 + true + true + false + std=_GLIBCXX_STD;__gnu_cxx=std + true + false + true + false + true + true + true + false + .; + false + false + + + true + 3 + /usr/share/qt3 + 3 + EmbeddedKDevDesigner + /usr/bin/qmake-qt3 + + + + + + set + m_,_ + theValue + true + true + + + false + true + Vertical + + + + + + + diff --git a/d3lphin.kdevelop.pcs b/d3lphin.kdevelop.pcs new file mode 100644 index 0000000..a0ac90a Binary files /dev/null and b/d3lphin.kdevelop.pcs differ diff --git a/d3lphin.kdevses b/d3lphin.kdevses new file mode 100644 index 0000000..105dbf0 --- /dev/null +++ b/d3lphin.kdevses @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/d3lphin.tag b/d3lphin.tag new file mode 100644 index 0000000..49baeba --- /dev/null +++ b/d3lphin.tag @@ -0,0 +1,27 @@ + + + + /home/marcel/Desktop/d3lphin/ + /home/marcel/Desktop/d3lphin/ + dir_f3e1e220fa3e0777a536c99f4734fd4a.html + /home/marcel/Desktop/d3lphin/src/ + + + /home/marcel/Desktop/ + /home/marcel/Desktop/ + dir_c6d579f883d8d96509bfff23d0fea1a8.html + /home/marcel/Desktop/d3lphin/ + + + /home/marcel/ + /home/marcel/ + dir_5e5131dca0a3ba03415e99147c2bd315.html + /home/marcel/Desktop/ + + + /home/marcel/Desktop/d3lphin/src/ + /home/marcel/Desktop/d3lphin/src/ + dir_320ee444fb4c81592beaecb34d3ab2cd.html + main.cpp + + diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..1162be9 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,6 @@ +# the SUBDIRS is filled automatically by am_edit. If files are +# in this directory they are installed into the english dir + +KDE_LANG = en +KDE_DOCS = d3lphin +SUBDIRS = $(AUTODIRS) diff --git a/doc/en/Makefile.am b/doc/en/Makefile.am new file mode 100644 index 0000000..1c596cd --- /dev/null +++ b/doc/en/Makefile.am @@ -0,0 +1,2 @@ +KDE_DOCS = d3lphin +KDE_LANG = en diff --git a/doc/en/bookmarkbutton.png b/doc/en/bookmarkbutton.png new file mode 100644 index 0000000..e6a789e Binary files /dev/null and b/doc/en/bookmarkbutton.png differ diff --git a/doc/en/bookmarksidebar.png b/doc/en/bookmarksidebar.png new file mode 100644 index 0000000..9cffb52 Binary files /dev/null and b/doc/en/bookmarksidebar.png differ diff --git a/doc/en/breadcrumb.png b/doc/en/breadcrumb.png new file mode 100644 index 0000000..47ab08c Binary files /dev/null and b/doc/en/breadcrumb.png differ diff --git a/doc/en/browsebutton.png b/doc/en/browsebutton.png new file mode 100644 index 0000000..6de6af2 Binary files /dev/null and b/doc/en/browsebutton.png differ diff --git a/doc/en/configurationwindow.png b/doc/en/configurationwindow.png new file mode 100644 index 0000000..10bef51 Binary files /dev/null and b/doc/en/configurationwindow.png differ diff --git a/doc/en/configurationwindow2.png b/doc/en/configurationwindow2.png new file mode 100644 index 0000000..a9032cd Binary files /dev/null and b/doc/en/configurationwindow2.png differ diff --git a/doc/en/configurationwindow3.png b/doc/en/configurationwindow3.png new file mode 100644 index 0000000..e1e7f49 Binary files /dev/null and b/doc/en/configurationwindow3.png differ diff --git a/doc/en/directorypath.png b/doc/en/directorypath.png new file mode 100644 index 0000000..e6c122c Binary files /dev/null and b/doc/en/directorypath.png differ diff --git a/doc/en/dolphin.png b/doc/en/dolphin.png new file mode 100644 index 0000000..f8a975e Binary files /dev/null and b/doc/en/dolphin.png differ diff --git a/doc/en/hiddenfolder.png b/doc/en/hiddenfolder.png new file mode 100644 index 0000000..8b59340 Binary files /dev/null and b/doc/en/hiddenfolder.png differ diff --git a/doc/en/index.docbook b/doc/en/index.docbook new file mode 100644 index 0000000..426d742 --- /dev/null +++ b/doc/en/index.docbook @@ -0,0 +1,1382 @@ + + + + + + + + + +]> + + + + + + +The &dolphin; Handbook + + + +Peter + +Penz + +
peter.penz@gmx.at
+
+
+ +Orville +Bennett + +
obennett@hartford.edu
+
+
+ +Michael +Austin + +
tuxedup@users.sourceforge.net
+
+
+
+ + + + +2006 +Peter Penz + + +2006 +Orville Bennett +Michael Austin + + + +&FDLNotice; + + + +2006-10-14 +0.7.0 + + + + +&dolphin; is a file manager for &kde; designed with usability as a primary focus. + + + + + + +KDE +Dolphin +Filemanager +nothing else + + +
+ + + + +Introduction + + + + +&dolphin; is a file manager for &kde; which aims to improve usability at the user interface level. +&dolphin; is not intended to be a competitor to &konqueror;, &kde;'s default file manager. &dolphin; +focuses only on being a file manager whereas &konqueror; is a universal viewer of many +file types. This development approach allows for concentrating on optimizing the user interface +for the specific task of file management. + + + +&dolphin; is currently in beta stage, but already provides most features necessary for daily usage. +Please report any problems or feature requests to the &dolphin; author via the bug report dialog. +This is accessible from the +HelpReport Bug... +menu of the application. + + + + +&dolphin; Interface + + + + +&dolphin; Features + +&dolphin; does not represent a wild departure from the &konqueror; file manager interface. There are certain paradigms in use however, which may require some readjustment on the user's part. An attempt is made below to explain these in an effort to provide a more enjoyable experience for our users. + + + +&dolphin; User Interface + + +The default Dolphin interface consists of a (1) menu bar, (2) toolbar, (3) location bar, (4) workspace and (5) status bar. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Screenshot + + + + + + +The location bar displays the path to the current directory. The location bar has two versions. There is the typical line input version which shows the path to the current directory via a string of text e.g. /home/peter/Documents. The second version of the location bar uses the 'bread crumb' display. The bread crumb display makes each folder a link which can be used to immediately go to the entry. The /home/peter/Documents entry in the bread crumb view would become 'Home > peter > Documents' with Home, peter, and Documents being clickable links which are able go to there respective locations. This makes navigation to directories above the current directory easier and more intuitive. It also removes the need for the Up icon to be present in the toolbar. + + + + +The workspace shows the contents of the current directory. The workspace can also be configured to show the contents of a directory with multiple views. More information about the workspace is provided in the following section. + + + +The status bar shows a limited amount of data relating to the file hovered over and the current directory. When a file is hovered over, the status bar shows the file name, the file size and the file type e.g. Jpeg. When no file has been highlighted or hovered over, the status bar shows the amount of files and folders in the current directory. At all times the status bar shows the amount of storage space that has currently been used on the current mount point, as well as the maximum space available on the mount pount e.g. /home/. + + + + +&dolphin; Workspace + +The &dolphin; workspace can display the contents of a directory in a variety of views. Currently there are icons, details and previews modes. + + +The Icons view shows the contents of the directory via the file icon type e.g. an mp3 file will be represented with the icon for an mp3 file. Sub-directories are represented in the form of a folder icon. The folder icon is defined by the &kde; icon theme currently in use, however individual folders can have their icon changed manually if the user wishes. This can be done via the properties dialogue. + + + + +The Details view lists the contents of a directory in alphabetical order and by type. Sub-folders are at the top of the list in alphabetical order, while underneath, the files within the directory are in alphabetical order. + + + +Details are displayed to the right of the files within the directory. The default &dolphin; configuration only displays the size of the file and the date it was last modified. More details can be added via the Configure Dolphin dialogue however. + + + + +The Preview view is similar to the icons view. The difference is that wherever possible previews of the files are shown. This function works for a number of image types including; JPG, PNG, XCF, SVG and numerous others. The previews view is also capable of showing the first 14 lines from text documents. &dolphin; is also capable of displaying a preview of HTML and PDF files in the previews view. It is also possible to modify the size of the previews via the Configure Dolphin dialogue. + + + + +Changing the view of the directory a user is working in is as simple as clicking the icon of the view they wish to use. This will cause the workspace view to change accordingly. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Workspace View Buttons + + + + + + +The workspace in &dolphin; is capable of showing two directories within the same window, known as split workspaces. In order to enable or disable the split workspace mode toggle the icon on the taskbar. Another way to enable or disable the split workspace mode is to use the ViewSplit View menu option. + + + +If this option is enabled then the workspace will split apart. Two seperate workspace areas will be available for use, along with two seperate location bars. Clicking on either workspace will make it the active workspace. If the user toggles the split workspace mode off, then the currently active workspace will remain, while the inactive workspace will close. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin In Split Workspace Mode + + + + + + +&dolphin; is capable of remembering the workspace view on a per-directory basis. For example, if while viewing /home/peter/Pictures/ the user choses to use the previews view, then the next time the user enters that directory, the view will be changed to the previews view. This is especially useful for directories containing mainly images. The feature only works for local directories which the user has read/write permissions to. &dolphin; will also remember the viewing mode it was in when last running e.g. single workspace or split workspace. + + + +Dolphin can also display files and sub-directories that are hidden in the the current directory e.g. files such as .dolphin and sub-directory such as ./kde/ + + + +Hidden files and sub-folders can be distinguished from non-hidden file and sub-folders by their colouring. Hidden files/sub-directories are fainter then non-hidden files/sub-directories. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Showing Hidden Folders/Directories Enabled + + + + + + +To enable the showing of hidden files and sub-directories via the main menu View>Show Hidden Files. + + + +Dolphin is able to sort the contents of a directory in a number of ways. These are; By Name, By Date, By Size and Descending. These only apply to the current directory the user is currently in and do not affect other directories. As with the Views Modes the Sorting order is saved for this directory. + + + +To change the way the directory is sorted, via the Main Menu View>Sort>sorting type (e.g. By Date). + + + + +&dolphin; Sidebar + + +The &dolphin; sidebar has two modes. The first mode is the Bookmarks mode. The second mode is the Information mode. The sidebar can be enabed and disabled via the the menu bar; Views > Sidebar. + + + +The sidebar mode can be changed via the drop down menu at the top. Selecting Bookmakrs will enable the bookmarks mode, while selecting Information will enable the Information mode. + + + +The Bookmarks sidebar mode displays the filesystem bookmarks the user has stored. The bookmarks sidebar mode also allows the user to add more bookamrks, this can be done via right clicking the sidebar. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Showing The Sidebar With The Bookmarks Mode Enabled + + + + + + +The Information sidebar mode also allows the user access to their service menus for a given file type. A service menu entry that is directly under the Actions > ... menu is diaplayed as a single button. However if a service menu entry is in a submenu under the Actions > .... menu e.g. Actions > Amarok, then this is presented as a drop down menu containing the options. + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Showing The Sidebar With The Information Mode Enabled + + + + + + + + + +Using &dolphin; + + +&dolphin; Navigation + + +The main feature of Dolphin that allows navigation of the file system is the work space. Clicking on a sub-directory within the current directory changes to this directory. Clicking on files within the workspace will open the file in the default application that has been assigned to it. + + + +The tool bar is also used for navigating the file system. The tool bar contains two buttons essential for navigating the file system quickly and easily, these are; back and forward. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Toolbar Buttons + + + + + + +Other buttons can be added to the tool bar to further aid navigation or to provide short cuts for functions within Dolphin e.g. deleting a file. + + + +Dolphin continually shows the directory that it is currently viewing the contents of, via the location bar and the title bar. The location bar has two views available. The first is the directory path view. This shows the path to the current directory e.g. /usr/share/apps/dolphin/ + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Displaying The Directory Path View + + + + + + +The second view is the breadcrumb view. This allows the user to move to a directory a number of folders back from the current one. This is achieved via a tab like interface where the name of each previous directory is displayed and can be clicked on to change into. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Displaying The Breadcrumb View + + + + + + +In order to change between the two location bar views, click on the the browse button. This will toggle the view between the directory path view and the bread crumb view. A second way of switching between the directory path view and the breadcrumb view is via View>Navigation Bar>Edit Location or Browse. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Browse Button + + + + + + +With the directory path view the user is able to enter the whole path to the directory they wish to enter. In order to do so, the user can toggle the browse button to the directory path view or alternatively via the menu bar View > Navigation Bar > Browse Location/Browse then enter the path to the directory they wish to enter. The user will notice as they are entering the path, a box will open underneath the address bar showing the content of the folder they are currently heading to. The content of this box will change as they continue to enter the path to the directory, showing the directories and the files beginning with the characters being entered e.g. /usr/share/apps/k would display everything within the directory beginning with the k character. + + + +If the breadcrumb view is enabled then the user is unable to enter the path to the directory. The user must manually navigate the file system by clicking the folders and sub-folders within the directories. + + + +In order to aid the navigation of the file system, Dolphin can use bookmarks. Bookmarks can be set for any location on the file system including virtual directories that do not physically exist, but kde creates for ease of use e.g. trash:/. This in turn means that if the user chooses a bookmark from the list the workspace will move into that directory or virtual location. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Bookmark Button Open + + + + + + +In order to select a bookmark, the location bar must be set to the breadcrumb view. Clicking the image of the home button (as set by the icon theme currently in use) will drop down a list of all the available bookmarks. The &dolphin; sidebar also contains a bookmark list. This can be accessed via switching the the sideba to bookmakrs mode. The user then clicks the desired bookmark to open that directory. By default Dolphin sets bookmarks for; the users home folder /home/usrname/, the Root partition and the system:/ area (location were the user is able to view the storage devices). More bookmarks can be set via the Configure Dolphin dialogue. + + + + + + + + +&dolphin; Storage Media Navigation + + +Dolphin is not restricted to navigating your local file system, it is also capable of navigating Removable Storage Media. In addition to this, Dolphin also has the ability to mount and un-mount storage media on the system. + + + +When in the kde directory for storage Media; system:/media/ the available Storage Media are shown. Typically this is the hard drive(s)/partitions and Floppy Drive. Each device is named according to their name or device type. The root Partition/Drive is named / while the home partition is named /home, the Floppy Disk is named Floppy Drive. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Displaying The System:/Media Directory + + + + + + +If the user has inserted Removable Storage media e.g. a Flash USB disk, then this will be shown. This also applies to CDROM/DVDROM drives. As with the Hard Disks these devices will also be named accordingly, either by there drive name, device type or in the case of CDROMS/DVDROMS by their disk name. + + + +Each device found in this location has the appropriate icon for their device type. However this only applies if the hal daemon is running. + + + +Dolphin can mount devices found in the System:/media/ directory via a number of ways. Firstly right clicking on the device and via the menu Actions>Mount. The second way is by clicking on the device icon. + + + +To un-mount a device right click on the device and via the menu; Actions>Safely Remove. This will then un-mount the device. + + + +To open a mounted device there are two methods. Firstly clicking the mounted device will change into that directory. The second method is by right clicking the device and via the menu Actions>Open Device. + + + + +&dolphin; Configuration + + +In order to configure Dolphin the user needs to access the Dolphin Configuration dialogue. This can be accessed via the menu bar; Settings>Configure Dolphin. + + + +The Dolphin Configuration dialogue consists of three sections; General, View Modes and Bookmarks. Clicking one of these esections will make those options available accordingly. The options available are displayed to the right of the dialogue. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Cnfiguration Window Showing The General Options + + + + + + +The General option allows users to set a number of options for Dolphin, these are; the default home location for the user e.g. /home/Peter, the default view mode (all directories will use this view unless they have already been changed) and wether or not split view is anable by default. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Cnfiguration Window Showing The View Options + + + + + + +The View Modes option differes slightly from the General option in that it has three tabs in the options. The Icons tab allows users to set options to do with the Icons View Mode .e.g icon size. The Details tab allows users to set options relating to the Details View Mode e.g. what information about files are shown. The Previews to allows users to set options relating to the Prevews View Mode e.g. the size of the preview images. + + + + +Here's a screenshot of &dolphin; + + + + + + Dolphin Cnfiguration Window Showing The Bookmark Options + + + + + + +The Bookmarks option allows the user to add, edit and remove Bookmarks that have been created. Note: only bookmarks created by the user may be removed. + + + + +Quick Tips + + +The following are a number of tips to save time when using Dolphin. + + + +Quick Bookmarking + + +To quickly create a bookmark of the directory currently being viewed, right click in the work space and via the menu select Bookmark this folder. The Bookmarking dialogue will open, enter a name for the bookmark along with an icon to represent the bookmark. + + + +Another method is to have the sidebar enabled in the bookmakrs mode. Right clikcing the side bar and selecting 'Add Bookmark...' will open the dialogue to add bookmarks. + + + + +Finding Files + + +Dolphin is capable of searching for files in a filesystem. If Ctrl+f is pressed or via the Tools menu; Tools > Find Files, kfind will open already set up to search within the current directory and any sub-directories contained within. + + + + + +Mounting Storage Media + + +A quick way to mount Storage Media is to click on the device. This will mount and open the device in Dolphin. + + + + +Open A Terminal + + +&dolphin; can open a terminal already in the current directory. This can be done by pressing the F4 button. For example if the user were in /home/Peter/Packages/ and pressed f4 a terminal will open already in the /home/Peter/Packages/ directory or via the Tools menu; Tools > Open Terminal. + + + + +Undo Actions + + +&dolphin; is capable of undoing changes users have made to files. For example if a user sent a file to the Trash, Dolphin can undo this and move it back to the directory it previously belonged in. To undo an action via the menu Edit>Undo(action name)... e.g. Undo rename or by pressing Ctrl+Z + + + + +Renaming A Batch Of Files + + +&dolphin; is capable of renaming a number of files at the same time. Each file will have the file name specified, followed by a number for how many files that have been chosen to rename e.g. Tester 1.png, Tester 2.png, Tester 3.png. This is useful for when you have a number of audio files where you wish to number them via their track number, or for photographs taken from a digital camera. + + + +If a user wishes to rename a batch of files they must first select the files to be renamed. This can be done via dragging the mouse over the files to be renamed, or via holding Ctrl and clicking each file to be renamed. The user must then open the batch-rename dialogue, this, can be done via pressing F2 or via the File menu; File > Rename. + + + +The user must then enter the name they wish to give the filEs. The # character must also be present within the name (failure to include the # key will result in an error as this indicates where the file number should be sequentially increased for each file.) The files will then be renamed with a number present within the file name. + + + + +Comparing A Selection Of Files + + +&dolphin; is capable of comparing a selection of files to see the differences between them. For a user to be able to compare files then the Kompare application must be installed. &dolphin; can only compare the files that Kompare is capable on analyzing. + + + +If a user wishes to compare a selection of files, then first they must select the files to be compared. Then launch the Kompare application via the Tools menu; Tools > Compare Files. Kompare will then open showing the differences between the files. + + + + +Filter A Selection Of Files + + +&dolphin; is capable of filtering a selection of files within the workspace via a text string. For example if a user wish to filter all of the MP3 files within a directory, they could filter for .mp3. Tis would then filter out all of the files that did not have .mp3 within their file name. + + + +If a user wishes to filter a selection of files this can be done via the filter bar. The user then enters the text they wish to filter for within that directory. To enable the filter bar the user must press either the '/' key or via the Menu Bar; Tools > Show Filter Bar. To disable the filter bar the user must press either the 'Esc' Key, or via the Menu Bar; Tools > Show Filter Bar. + + + + + + + +Command Reference + + + + +The main &dolphin; window + + +The File Menu + + + + + + +&Ctrl;N + +File +New + +Creates a new document. + + + + + +F2 + +File +Rename + +Renames the currently selected document(s). + + + + + +Delete + +File +Move to Trash + +Moves the currently selected file(s) to the trash. + + + + + + +Shift+Delete + +File +Delete + +Permanently deletes the currently selected file(s). The files are not moved to the trash. + + + + + +Alt+Returm + +File +Properties + +Shows the properties dialogue for the currently selected file(s). + + + + + +Ctrl+Q + +File +Quit + +Exits &dolphin;. + + + + + + + +The Edit Menu + + + + + + +Ctrl+Z + +Edit +Undo + +Undoes the last action performed by &dolphin;. + + + + + +Ctrl+Shift+Z + +Edit +Redo + +Redoes the last action previouly undone. + + + + + +Ctrl+X + +Edit +Cut + +Cuts the currently selected file(s). + + + + + +Ctrl+C + +Edit +Cut + +Copies the currently selected file(s). + + + + + +Ctrl+V + +Edit +Paste + +Pastes the currently copied/cut files to the current directory. + + + + + +Ctrl+A + +Edit +Select All + +Selects all files and folders in the current directory. + + + + + +Ctrl+Shift+A + +Edit +Invert Selection + +Inverts the currently selected files e.g. if you select ten files out of twenty, then the selected ten files will be swapped for the un-selected ten files. (If you have a better way of phrasing this please let me know as I am a little stuck here). + + + + + + +The View Menu + + + + + + +Ctrl++ + +View +Zoom In + +Increases the size of icons in the workspace. + + + + + +Ctrl+- + +View +Zoom Out + +Decreases the size of icons in the workspace. + + + + + +Ctrl+1 Ctrl+2 Ctrl+3 + +View +View Mode... + +Changes the workspace view; Icons, Details, Previews. + + + + +View +Sort... + +Changes the order in white files within a directory are sorted and wether they are descending; By Name, By Size, By Date | Descending. + + + + + +Alt+. + +View +Show Hidden Files + +Shows all the hidden files and sud-directories within the current directory. + + + + + +F10 + +View +Split View + +Enables and disables the split view workspace mode. + + + + + +F5 + +View +Reload + +Reloads the current directory. + + + + + +F5 + +View +Stop + +Stops loading/reading the contents of the current directory. + + + + + +Ctrl+L Ctrl+B + +View +Navigation Bar... + +Changes the address bar between the two modes; the line input mode and the breadcrumb mode. + + + + + +F9 + +View +Sidebar + +Enables and disables the sidebar. + + + + +View +Adjust View Proprties... + +Opens the view properties dialogue. + + + + + + + +The Go Menu + + + + + + +Alt+Up + +Go +Up + +Changes to the directory above the current directory. + + + + + +Backspace + +Go +Back + +Changes to the previously viewed directory. + + + + + +Alt+Right + +Go +Forward + +Changes to the most recently viewed directory. + + + + + +Alt+Home + +Go +Home + +Changes to the users home directory e.g. /home/Peter/. + + + + + + +The Tools Menu + + + + + + +F4 + +Tools +Open Terminal + +Opens a terminal already within the current directory. + + + + + +Ctrl+F + +Tools +Find File... + +Opens Kfind already within the current directory. + + + + + +Ctrl+F + +Tools +Show Filter Bar + +Enables and disables the filter bar. + + + + + +/ + +Tools +Show Filter Bar + +Enables and disables the filter bar. + + + + +Tools +Compare Files + +Compare the currently selected files with Kompare. + + + + + + + +The Settings Menu + + + + + + +/ + +Settings +Hide Toolbar + +Hides and Shows the toolbar. + + + + +Settings +Configure Shortcuts... + +Opens the shortcut configuration dialogue. + + + + +Settings +Configure Toolbars... + +Opens the toolbar configuration dialogue. + + + + +Settings +Configure Dolphin... + +Opens the &dolphin; configuration dialogue. + + + + + + +The Help Menu + + + + + + + +&help.menu.documentation; + + + + + + + + + +Frequently asked Questions + + + + + + +How do I add my own custom service menus to &dolphin;? + + + +Dolphin can use the majority of service menus created for Konqueror, however &dolphin; does impose one limitation on the service menus: Service menu entries that add them selves to the top level of the context menu will automatically be placed below the Actions sub-menu. This prevents that the context menu will get crowded. + + + +To add a custom service menu to &dolphin; save the service menu to the &dolphin; service menu directory, this can be found in /home/house/.kde/share/apps/dolphin/servicemenus/. If the servicemenus sub-directory does not exist in the &dolphin; directory, then create the sub-directory and save the service menu to that directory. The next time the user launch &dolphin; the service menu will be available. + + + + + + +How do I make Dolphin my default file manager + + + +To make &dolphin; the default file manager for &kde; from the &kde; control centre open the File Associations section via; KDE Components>File Associations. If the user adds &dolphin; to the list of applications for the directory mime type and make it the first choice, then &dolphin; will become the default application to open any directory with. The directory mime type can be found by expanding the inode section of Known Types. + + + +To make &dolphin; the default file manager for the virtual directories &kde; creates e.g. system:/ then again in the File Associations section of the control centre expand the inode section of Known Types. Under the system_directory mime type, add &dolphin; to the list of applications, however instead of choosing &dolphin; from the kmenu, type the following in to the text box at the top; dolphin %u The virtual directories created by &kde; will then be opened by &dolphin; as default. + + + + + + + + + +Miscellaneous Questions + + + + +Does Dolphin intended to replace Konqueror? + + + +&dolphin; is not intended to be a competitor to Konqueror: Konqueror acts as universal viewer being able to show HTML pages, text documents, directories and a lot more, whereas &dolphin; focuses on being only a file manager. This approach allows to optimize the user interface for the task of file management. + + + + + + +Will Dolphin be ported to Kde4? + + + +Development of &dolphin; for Kde4 is scheduled to begin in December (2006). These are just intial ideas floating around at the moment between the developers. By the time the first alpha release of Kde4 is released, then &dolphin; devlopment should be well underway. + + + + + + +How can I get involved with the development of Dolphin? + + + +The easiest way to get involved with &dolphin; is to drop the developers an email. If you email Peter Penz (Lead Developer/Project Leader), what you can do, how much time you can devote etc and he will let you know what you can do in the project. If you wish to contribute the documentation email Michael Austin (Documentation Leader). He can then fill you in on the situation e.g. what needs to be added/finished, the procedure for submitting documentation. + + +The email addresses of Peter Penz and Michael Austin can be found on the main page of the documentation, or in the Credits section. + + + + + + +Where do I submit bug reports to? + + + +Bug reports should only be submitted for release versions of &dolphin;, please do not submit bug reports for the Subversion release of &dolphin; as this is expected to break due to it's constant development. + + +The official channel for submitting bug reports is via the &dolphin; tracker found at the &dolphin; Sourceforge page. Alternatively bug reports can be emailed to Peter Penz (email address is found on the main page or the credits section). + + +The &dolphin; bug tracker can be found here. + + + + + + +Where do I submit feature requests to? + + + +The official channel for submitting feature requests is via the &dolphin; tracker. Alternatively feature requests can be emailed to Peter Penz (email address is found on the main page or the credits section). + + + +As with the bug tracker, the feature request tracker can be found here below the link for the bug tracker. + + + + + + + + + + + + + + +Credits and License + + +&dolphin; + + +Program copyright 2005,2006 Peter Penz peter.penz@gmx.at + + +Contributors: + +Cvetoslav Ludmiloff ludmiloff@gmail.com +Stefan Monov logixoul@gmail.com +Michael Austin tuxedup@users.sourceforge.net +Orville Bennett obennett@hartford.edu + + + + +Documentation copyright 2005 Peter Penz peter.penz@gmx.at + + +Documentation copyright 2006 Orville Bennett obennett@hartford.edu + + +Documentation copyright 2006 Michael Austin tuxedup@users.sourceforge.net + + + + +&underFDL; + +&underGPL; + + + + +Installation + + +How to obtain &dolphin; + + +&dolphin; can be obtained from the &dolphin; home page. + + + +&dolphin; can also be found on the kde-apps.org website. + + + +The &dolphin; Sourceforge page also hosts the current release version, as well as the development version found on the &dolphin; Subversion Repository. +The release version of&dolphin; can be found on it's Sourceforge page. + + + +The development version of &dolphin; can be found at it's Subversion Repository. + + + + +Requirements + + +In order to successfully use &dolphin; you need to at least have kdebase and kdelibs from &kde; 3.5 installed. &dolphin; may work on older +versions of &kde;, however not all functions offered by &dolphin; may work. + + + +In order to compile &dolphin; you will also require libqt2-mt-dev, libx11-dev, kdebase-dev, zlibg-dev and gcc. + + + +Other &kde; libraries may also be required for some advanced features. + + + + + + +Compilation and Installation + + + + + +&install.compile.documentation; + + + + + +&documentation.index; +
+ + + + + diff --git a/doc/en/informationsidebar.png b/doc/en/informationsidebar.png new file mode 100644 index 0000000..4adc631 Binary files /dev/null and b/doc/en/informationsidebar.png differ diff --git a/doc/en/split.png b/doc/en/split.png new file mode 100644 index 0000000..c49de0f Binary files /dev/null and b/doc/en/split.png differ diff --git a/doc/en/systemmediadirectory.png b/doc/en/systemmediadirectory.png new file mode 100644 index 0000000..9023323 Binary files /dev/null and b/doc/en/systemmediadirectory.png differ diff --git a/doc/en/toolbarbuttons.png b/doc/en/toolbarbuttons.png new file mode 100644 index 0000000..c7bf495 Binary files /dev/null and b/doc/en/toolbarbuttons.png differ diff --git a/doc/en/workspacebuttons.png b/doc/en/workspacebuttons.png new file mode 100644 index 0000000..7b54351 Binary files /dev/null and b/doc/en/workspacebuttons.png differ diff --git a/po/Makefile.am b/po/Makefile.am new file mode 100644 index 0000000..0fa209c --- /dev/null +++ b/po/Makefile.am @@ -0,0 +1 @@ +POFILES = AUTO diff --git a/po/d3lphin.po b/po/d3lphin.po new file mode 100644 index 0000000..f309048 --- /dev/null +++ b/po/d3lphin.po @@ -0,0 +1,745 @@ +# translation of dolphin.po to +# This file is put in the public domain. +# +# Peter Penz , 2006. +msgid "" +msgstr "" +"Project-Id-Version: dolphin\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-28 22:10+0100\n" +"PO-Revision-Date: 2006-03-04 12:13+0100\n" +"Last-Translator: Peter Penz \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.2\n" + +#: _translatorinfo.cpp:1 +#, fuzzy +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "Peter Penz" + +#: _translatorinfo.cpp:3 +#, fuzzy +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "peter.penz@gmx.at" + +#: bookmarkssettingspage.cpp:57 +msgid "Icon" +msgstr "" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "" + +#: bookmarkssettingspage.cpp:59 +msgid "Location" +msgstr "" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "" + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "" + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "" + +#: bookmarkssidebarpage.cpp:110 +msgid "Add Bookmark..." +msgstr "" + +#: bookmarkssidebarpage.cpp:113 +msgid "Insert Bookmark..." +msgstr "" + +#: bookmarkssidebarpage.cpp:125 +msgid "Insert Bookmark" +msgstr "" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "Spalten " + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "Datum " + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "Rechte " + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "EigentĂŒmer " + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "Gruppe" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "" + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "" + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "" + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "" + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "" + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "" + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "" + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "" + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "" + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "" + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "" + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "" + +#: dolphin.cpp:1030 +msgid "Move to trash operation completed." +msgstr "" + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "" + +#: dolphin.cpp:1108 +msgid "Network" +msgstr "" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "" + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "" + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "" + +#: dolphin.cpp:1253 +msgid "By Name" +msgstr "" + +#: dolphin.cpp:1258 +#, fuzzy +msgid "By Size" +msgstr "GrĂ¶ĂŸe" + +#: dolphin.cpp:1263 +#, fuzzy +msgid "By Date" +msgstr "Datum " + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "" + +#: dolphin.cpp:1313 +msgid "Open Terminal" +msgstr "" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "" + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "" + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "" + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +msgid "Add folder as bookmark" +msgstr "" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "" + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "" + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "" + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "" + +#: dolphinview.cpp:220 +msgid "The new item name is invalid." +msgstr "" + +#: dolphinview.cpp:231 +msgid "Renaming items..." +msgstr "" + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "" + +#: dolphinview.cpp:251 +msgid "Renaming failed (item '%1' already exists)." +msgstr "" + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "" + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "" + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "" + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "" + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "" + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "" + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "" + +#: dolphinview.cpp:994 +msgid "1 Folder selected" +msgstr "" + +#: dolphinview.cpp:997 +msgid "%1 Folders selected" +msgstr "" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "" + +#: editbookmarkdialog.cpp:72 +msgid "Icon:" +msgstr "" + +#: editbookmarkdialog.cpp:80 +msgid "Name:" +msgstr "" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +msgid "Location:" +msgstr "" + +#: filterbar.cpp:44 +msgid "Filter:" +msgstr "" + +#: generalsettingspage.cpp:62 +msgid "Home URL" +msgstr "" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "" + +#: generalsettingspage.cpp:88 +msgid "Default View Mode" +msgstr "" + +#: generalsettingspage.cpp:103 +msgid "Start with split view" +msgstr "" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "" + +#: infosidebarpage.cpp:163 +msgid "%1 items selected" +msgstr "" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "" + +#: infosidebarpage.cpp:289 +#, fuzzy +msgid "Size:" +msgstr "GrĂ¶ĂŸe" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "" + +#: itemeffectsmanager.cpp:185 +msgid "%1 (Folder)" +msgstr "" + +#: main.cpp:31 +msgid "Document to open" +msgstr "" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "" + +#: main.cpp:40 +msgid "File Manager" +msgstr "" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "" + +#: main.cpp:48 main.cpp:49 +msgid "Documentation" +msgstr "" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "" + +#: renamedialog.cpp:30 +msgid "Rename Items" +msgstr "" + +#: renamedialog.cpp:39 +msgid "Rename the %1 selected items to:" +msgstr "" + +#: renamedialog.cpp:43 +msgid "New name #" +msgstr "" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "" + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "" + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "" + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "" + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "" + +#: undomanager.cpp:347 +msgid "Link" +msgstr "" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "" + +#: urlnavigator.cpp:428 +msgid "Custom Path" +msgstr "" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "" + +#: viewpropertiesdialog.cpp:70 +msgid "Sorting:" +msgstr "" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "" + +#: viewpropertiesdialog.cpp:210 +msgid "" +"The view properties of all folders will be replaced. Do you want to continue?" +msgstr "" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "" + +msgid "Left Sidebar" +msgstr "" + +msgid "Right Sidebar" +msgstr "" + +msgid "Save view properties for each folder" +msgstr "" \ No newline at end of file diff --git a/po/de.po b/po/de.po new file mode 100644 index 0000000..e11d7eb --- /dev/null +++ b/po/de.po @@ -0,0 +1,746 @@ +# translation of de.po to Deutsch +# translation of dolphin.po to +# This file is put in the public domain. +# +# Peter Penz , 2006. +# Jannick Kuhr , 2007. +# Marcel Juhnke , 2007. +msgid "" +msgstr "" +"Project-Id-Version: de\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-28 22:10+0100\n" +"PO-Revision-Date: 2007-03-23 23:00+0100\n" +"Last-Translator: Marcel Juhnke \n" +"Language-Team: Deutsch\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#: _translatorinfo.cpp:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "Peter Penz" + +#: _translatorinfo.cpp:3 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "peter.penz@gmx.at" + +#: bookmarkssettingspage.cpp:57 +msgid "Icon" +msgstr "Symbole" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "Name" + +#: bookmarkssettingspage.cpp:59 +msgid "Location" +msgstr "Aktionen" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "HinzufĂŒgen ..." + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "Bearbeiten ..." + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "Nach oben" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "Nach unten" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "Lesezeichen hinzufĂŒgen" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "Neues Lesezeichen" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "Lesezeichen bearbeiten" + +#: bookmarkssidebarpage.cpp:110 +msgid "Add Bookmark..." +msgstr "Lesezeichen hinzufĂŒgen ..." + +#: bookmarkssidebarpage.cpp:113 +msgid "Insert Bookmark..." +msgstr "Lesezeichen einfĂŒgen ..." + +#: bookmarkssidebarpage.cpp:125 +msgid "Insert Bookmark" +msgstr "Lesezeichen einfĂŒgen" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "Spalten" + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "Datum" + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "Berechtigungen" + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "EigentĂŒmer" + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "Gruppe" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "SymbolgrĂ¶ĂŸe" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "Klein" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "Mittel" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "Groß" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "Text" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "Schriftfamilie:" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "SchriftgrĂ¶ĂŸe:" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "An diese Stelle &verschieben" + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "An diese Stelle kopieren" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "Hiermit verknĂŒpfen" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "Escape" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "Neuer Ordner" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "Ordnername eingeben:" + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "Ordner %1 angelegt." + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "Ein Ordner mit dem Namen %1 ist bereits vorhanden." + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "Das Anlegen von Ordner %1 ist fehlgeschlagen." + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "Konnte Datei nicht anlegen." + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "Eine Datei mit dem Namen %1 ist bereits vorhanden." + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "Datei %1 wurde angelegt." + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "Das Anlegen der Datei %1 ist fehlgeschlagen." + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "Wollen sie wirklich die %1 selektierten Objekte löschen?" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "Wollen sie wirklich '%1' löschen?" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "Löschoperation wurde ausgefĂŒhrt." + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "Eine Datei einfĂŒgen" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "%1 Dateien einfĂŒgen" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "Kopieroperation wurde ausgefĂŒhrt." + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "Verschiebeoperation wurde ausgefĂŒhrt." + +#: dolphin.cpp:1030 +msgid "Move to trash operation completed." +msgstr "Verschiebeoperation wurde ausgefĂŒhrt." + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "Startverzeichnis" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "Speichermedien" + +#: dolphin.cpp:1108 +msgid "Network" +msgstr "Netzwerk" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "Hauptverzeichnis" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "MĂŒlleimer" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "Ordner ..." + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "Umbenennen" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "In den MĂŒlleimer verschieben" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "E&igenschaften" + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "Auswahl umkehren" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "Symbole" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "Details" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "Vorschau" + +#: dolphin.cpp:1253 +msgid "By Name" +msgstr "nach Name" + +#: dolphin.cpp:1258 +msgid "By Size" +msgstr "nach GrĂ¶ĂŸe" + +#: dolphin.cpp:1263 +msgid "By Date" +msgstr "nach Datum" + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "Absteigend" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "Versteckte Dateien anzeigen" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "Ansicht teilen" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "Pfad bearbeiten" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "Navigieren" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "Seitenleiste" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "Ansichtseigenschaften anpassen ..." + +#: dolphin.cpp:1313 +msgid "Open Terminal" +msgstr "Konsole öffnen" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "Datei suchen ..." + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "Filterleiste anzeigen" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "Dateien vergleichen" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "Ansichtseigenschaften werden aktualisiert ..." + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "Neu erstellen" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "Ansichtsmodus" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "Lesezeichen fĂŒr diesen Ordner hinzufĂŒgen" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "Eigenschaften ..." + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +msgid "Add folder as bookmark" +msgstr "Ordner als Lesezeichen hinzufĂŒgen" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "S&onstige ..." + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "Öffnen mit" + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "Öffnen mit ..." + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "Aktionen" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "Dolphin-Einstellungen" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "Allgemein" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "Ansichten" + +#: dolphinview.cpp:220 +msgid "The new item name is invalid." +msgstr "Der neue Elementname ist ungĂŒltig." + +#: dolphinview.cpp:231 +msgid "Renaming items..." +msgstr "Elemente werden umbenannt ..." + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "Umbenennen beendet." + +#: dolphinview.cpp:251 +msgid "Renaming failed (item '%1' already exists)." +msgstr "Umbenennung fehlgeschlagen (Element '%1' existiert bereits)." + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "Datei bereits vorhanden" + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "Datei '%1' wurde umbenannt in '%2'." + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "Das Umbenennen der Datei '%1' nach '%2' ist fehlgeschlagen." + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "Der Pfad ist leer." + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "Der Pfad '%1' ist ungĂŒltig." + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "Ordner wird geladen ..." + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "Ein Element" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "%1 Elemente" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "Ein Ordner" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "%1 Ordner" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "Eine Datei" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "%1 Dateien" + +#: dolphinview.cpp:994 +msgid "1 Folder selected" +msgstr "Ein Ordner ausgewĂ€hlt" + +#: dolphinview.cpp:997 +msgid "%1 Folders selected" +msgstr "%1 Ordner ausgewĂ€hlt" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "Eine Datei ausgewĂ€hlt (%1)" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "%1 Dateien ausgewĂ€hlt (%1)" + +#: editbookmarkdialog.cpp:72 +msgid "Icon:" +msgstr "Symbole:" + +#: editbookmarkdialog.cpp:80 +msgid "Name:" +msgstr "Name:" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +msgid "Location:" +msgstr "Pfad:" + +#: filterbar.cpp:44 +msgid "Filter:" +msgstr "Filter:" + +#: generalsettingspage.cpp:62 +msgid "Home URL" +msgstr "Startseite" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "Aktuellen Pfad verwenden" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "Standardpfad verwenden" + +#: generalsettingspage.cpp:88 +msgid "Default View Mode" +msgstr "Standard-Ansichtsmodus" + +#: generalsettingspage.cpp:103 +msgid "Start with split view" +msgstr "Mit geteilter Ansicht starten" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "Mit editierbarer Navigationsleiste starten" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "VorschaugrĂ¶ĂŸe" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "Zeilenanzahl:" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "Textbreite:" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "Gitter" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "Anordnung:" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "Links nach rechts" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "Oben nach unten" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "Gitterabstand:" + +#: infosidebarpage.cpp:163 +msgid "%1 items selected" +msgstr "%1 Elemente ausgewĂ€hlt" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "Typ:" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "Ordner" + +#: infosidebarpage.cpp:289 +msgid "Size:" +msgstr "GrĂ¶ĂŸe:" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "GeĂ€ndert:" + +#: itemeffectsmanager.cpp:185 +msgid "%1 (Folder)" +msgstr "%1 Ordner" + +#: main.cpp:31 +msgid "Document to open" +msgstr "Zu öffnendes Dokument" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "Dolphin" + +#: main.cpp:40 +msgid "File Manager" +msgstr "Dateimanager" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "Betreuer und Entwickler" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "Entwickler" + +#: main.cpp:48 main.cpp:49 +msgid "Documentation" +msgstr "Dokumentation" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "... fĂŒr den großartigen Support und die tollen Patches" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "... fĂŒr ihre Patches" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "... fĂŒr ihre Übersetzungen" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "Sortieren" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "Navigationsleiste" + +#: renamedialog.cpp:30 +msgid "Rename Items" +msgstr "Elemente umbenennen" + +#: renamedialog.cpp:39 +msgid "Rename the %1 selected items to:" +msgstr "Die %1 ausgewĂ€hlten Elemente werden umbenannt auf:" + +#: renamedialog.cpp:43 +msgid "New name #" +msgstr "Neuer Name #" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "(# wird ersetzt durch aufsteigende Nummern)" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "%1% von %2 belegt" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "GrĂ¶ĂŸe wird abgefragt ..." + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "RĂŒckgĂ€ngig: %1" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "RĂŒckgĂ€ngigoperation wird ausgefĂŒhrt ..." + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "RĂŒckgĂ€ngigoperation ausgefĂŒhrt." + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "Wiederherstellen: %1" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "Wiederherstellungsoperation wird ausgefĂŒhrt ..." + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "Wiederherstellungsoperation ausgefĂŒhrt." + +#: undomanager.cpp:347 +msgid "Link" +msgstr "VerknĂŒpfung" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "Neuen Ordner anlegen" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "Neue Datei anlegen" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "Navigieren (Strg+B)" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "Pfad editieren (Strg+L)" + +#: urlnavigator.cpp:428 +msgid "Custom Path" +msgstr "Benutzerdefinierter Pfad" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "Ansichtseigenschaften" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "Ansichtsmodus:" + +#: viewpropertiesdialog.cpp:70 +msgid "Sorting:" +msgstr "Sortierspalte:" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "Sortierreihenfolge:" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "Aufsteigend" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "Versteckte Dateien anzeigen" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "Ansichteigenschaften zuweisen an:" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "Aktuellen Ordner" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "Aktuellen Ordner inklusive aller Unterordner" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "Alle Ordner" + +#: viewpropertiesdialog.cpp:210 +msgid "The view properties of all folders will be replaced. Do you want to continue?" +msgstr "" +"Die Ansichtseigenschaften aller Unterordner werden ersetzt. Wollen Sie " +"fortsetzen?" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "" +"Die Ansichtseigenschaften aller Unterordner werden ersetzt. Wollen Sie " +"fortsetzen?" + +msgid "Left Sidebar" +msgstr "Linke Seitenleiste" + +msgid "Right Sidebar" +msgstr "Rechte Seitenleiste" + +msgid "Save view properties for each folder" +msgstr "Ansichtsoptionen fĂŒr jeden Ordner einzeln speichern" \ No newline at end of file diff --git a/po/el.po b/po/el.po new file mode 100644 index 0000000..bc80a9e --- /dev/null +++ b/po/el.po @@ -0,0 +1,743 @@ +# translation of el.po to Greek +# translation of dolphin.po to +# This file is put in the public domain. +# +# Peter Penz , 2006. +# Antonios Dimopoulos , 2007. +msgid "" +msgstr "" +"Project-Id-Version: el\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-28 22:10+0100\n" +"PO-Revision-Date: 2007-07-31 02:10+0300\n" +"Last-Translator: Antonios Dimopoulos \n" +"Language-Team: Greek\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#: _translatorinfo.cpp:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "Dimopoulos Antonios" + +#: _translatorinfo.cpp:3 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "antoniosdimopoulos@gmail.com" + +#: bookmarkssettingspage.cpp:57 +msgid "Icon" +msgstr "ΕÎčÎșÎżÎœÎŻÎŽÎčÎż" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "ÎŒÎœÎżÎŒÎ±" + +#: bookmarkssettingspage.cpp:59 +msgid "Location" +msgstr "Î€ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ±" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "Î ÏÎżÏƒÎžÎźÎșη..." + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "Î•Ï€Î”ÎŸÎ”ÏÎłÎ±ÏƒÎŻÎ±..." + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "ΜΔταÎșÎŻÎœÎ·ÏƒÎ· Î ÎŹÎœÏ‰" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "ΜΔταÎșÎŻÎœÎ·ÏƒÎ· ÎšÎŹÏ„Ï‰" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "Î ÏÎżÏƒÎžÎźÎșη ΣΔλÎčΎοΎΔίÎșτη" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "ÎÎ­ÎżÏ‚ σΔλÎčΎοΎΔίÎșτης" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "Î•Ï€Î”ÎŸÎ”ÏÎłÎ±ÏƒÎŻÎ± ΣΔλÎčΎοΎΔίÎșτη" + +#: bookmarkssidebarpage.cpp:110 +msgid "Add Bookmark..." +msgstr "Î ÏÎżÏƒÎžÎźÎșη ΣΔλÎčΎοΎΔίÎșτη..." + +#: bookmarkssidebarpage.cpp:113 +msgid "Insert Bookmark..." +msgstr "ΕÎčÏƒÎ±ÎłÏ‰ÎłÎź ΣΔλÎčΎοΎΔίÎșτη..." + +#: bookmarkssidebarpage.cpp:125 +msgid "Insert Bookmark" +msgstr "ΕÎčÏƒÎ±ÎłÏ‰ÎłÎź ΣΔλÎčΎοΎΔίÎșτη" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "ÎŁÏ„ÎźÎ»Î”Ï‚" + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "Î—ÎŒÎ”ÏÎżÎŒÎ·ÎœÎŻÎ±" + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "ΆΎΔÎčΔς" + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "ΙήÎčÎżÎșÏ„ÎźÏ„Î·Ï‚" + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "ÎŸÎŒÎŹÎŽÎ±" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "ÎœÎ­ÎłÎ”ÎžÎżÏ‚ ΕÎčÎșÎżÎœÎčÎŽÎŻÎżÏ…" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "ΜÎčÎșρό" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "ÎœÎ”ÏƒÎ±ÎŻÎż" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "ÎœÎ”ÎłÎŹÎ»Îż" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "ÎšÎ”ÎŻÎŒÎ”ÎœÎż" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "Î€ÏÏ€ÎżÏ‚ ÎłÏÎ±ÎŒÎŒÎ±Ï„ÎżÏƒÎ”ÎčÏÎŹÏ‚:" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "ÎœÎ­ÎłÎ”ÎžÎżÏ‚ ÎłÏÎ±ÎŒÎŒÎ±Ï„ÎżÏƒÎ”ÎčÏÎŹÏ‚:" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "&ΜΔταÎșÎŻÎœÎ·ÏƒÎ· ΕΎώ" + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "&ΑΜτÎčÎłÏÎ±Ï†Îź ΕΎώ" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "&ÎŁÏÎœÎŽÎ”ÏƒÎŒÎżÏ‚ ΕΎώ" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "Escape" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "ÎÎ­ÎżÏ‚ ΊΏÎșÎ”Î»ÎżÏ‚" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "ΕÎčÏƒÎŹÎłÎ”Ï„Î” Ï„Îż ÏŒÎœÎżÎŒÎ± φαÎșÎ­Î»ÎżÏ…:" + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "Ο Ï†ÎŹÎșÎ”Î»ÎżÏ‚ %1 ΎηΌÎčÎżÏ…ÏÎłÎźÎžÎ·ÎșΔ." + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "ΈΜας Ï†ÎŹÎșÎ”Î»ÎżÏ‚ ΌΔ Ï„Îż ÏŒÎœÎżÎŒÎ± %1 Ï…Ï€ÎŹÏÏ‡Î”Îč ΟΎη." + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "Η ΎηΌÎčÎżÏ…ÏÎłÎŻÎ± Ï„ÎżÏ… φαÎșÎ­Î»ÎżÏ… %1 απέτυχΔ." + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "ΑΎύΜατη η ΎηΌÎčÎżÏ…ÏÎłÎŻÎ± Ï„ÎżÏ… Î±ÏÏ‡Î”ÎŻÎżÏ…." + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "ΈΜα Î±ÏÏ‡Î”ÎŻÎż ΌΔ Ï„Îż ÏŒÎœÎżÎŒÎ± %1 Ï…Ï€ÎŹÏÏ‡Î”Îč ΟΎη." + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "΀ο Î±ÏÏ‡Î”ÎŻÎż %1 ΎηΌÎčÎżÏ…ÏÎłÎźÎžÎ·ÎșΔ." + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "Η ΎηΌÎčÎżÏ…ÏÎłÎŻÎ± Ï„ÎżÏ… Î±ÏÏ‡Î”ÎŻÎżÏ… %1 απέτυχΔ." + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "ÎŁÎŻÎłÎżÏ…ÏÎ± ΞέλΔτΔ Μα ÎŽÎčÎ±ÎłÏÎŹÏˆÎ”Ï„Î” τα %1 ΔπÎčÎ»Î”ÎłÎŒÎ­ÎœÎ± αΜτÎčÎșÎ”ÎŻÎŒÎ”ÎœÎ±;" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "ÎŁÎŻÎłÎżÏ…ÏÎ± ΞέλΔτΔ Μα ÎŽÎčÎ±ÎłÏÎŹÏˆÎ”Ï„Î” Ï„Îż %1 ;" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "Η ÎŽÎčαΎÎčÎșÎ±ÏƒÎŻÎ± ÎŽÎčÎ±ÎłÏÎ±Ï†ÎźÏ‚ ολοÎșληρώΞηÎșΔ." + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "ΕπÎčÎșόλληση 1 Î‘ÏÏ‡Î”ÎŻÎżÏ…" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "ΕπÎčÎșόλληση %1 Î‘ÏÏ‡Î”ÎŻÏ‰Îœ" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "Η ÎŽÎčαΎÎčÎșÎ±ÏƒÎŻÎ± αΜτÎčÎłÏÎ±Ï†ÎźÏ‚ ολοÎșληρώΞηÎșΔ." + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "Η ÎŽÎčαΎÎčÎșÎ±ÏƒÎŻÎ± ΌΔταÎșÎŻÎœÎ·ÏƒÎ·Ï‚ ολοÎșληρώΞηÎșΔ." + +#: dolphin.cpp:1030 +msgid "Move to trash operation completed." +msgstr "Η ÎŽÎčαΎÎčÎșÎ±ÏƒÎŻÎ± ΌΔταÎșÎŻÎœÎ·ÏƒÎ·Ï‚ ÏƒÏ„ÎżÎœ ÎșÎŹÎŽÎż ολοÎșληρώΞηÎșΔ." + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "Î ÏÎżÏƒÏ‰Ï€ÎčÎșός ΊΏÎșÎ”Î»ÎżÏ‚" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "Μέσα Î‘Ï€ÎżÎžÎźÎșΔυσης" + +#: dolphin.cpp:1108 +msgid "Network" +msgstr "ΔίÎșÏ„Ï…Îż" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "ΑρχÎčÎșός ΊΏÎșÎ”Î»ÎżÏ‚" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "Î‘Ï€ÎżÏÏÎŻÎŒÎ±Ï„Î±" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "ΊΏÎșÎ”Î»ÎżÏ‚..." + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "ÎœÎ”Ï„ÎżÎœÎżÎŒÎ±ÏƒÎŻÎ±" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "ΜΔταÎșÎŻÎœÎ·ÏƒÎ· ÏƒÏ„ÎżÎœ Κάήο" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "&ΙήÎčότητΔς" + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "ΑΜτÎčÏƒÏ„ÏÎżÏ†Îź ΕπÎčÎ»ÎżÎłÎźÏ‚" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "ΕÎčÎșÎżÎœÎŻÎŽÎčα" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "Î›Î”Ï€Ï„ÎżÎŒÎ­ÏÎ”ÎčΔς" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "Î ÏÎżÎ”Ï€ÎčσÎșÎżÏ€ÎŻÏƒÎ”Îčς" + +#: dolphin.cpp:1253 +msgid "By Name" +msgstr "ÎšÎ±Ï„ÎŹ ÎŒÎœÎżÎŒÎ±" + +#: dolphin.cpp:1258 +msgid "By Size" +msgstr "ÎšÎ±Ï„ÎŹ ÎœÎ­ÎłÎ”ÎžÎżÏ‚" + +#: dolphin.cpp:1263 +msgid "By Date" +msgstr "ÎšÎ±Ï„ÎŹ Î—ÎŒÎ”ÏÎżÎŒÎ·ÎœÎŻÎ±" + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "ÎŠÎžÎŻÎœÎżÏ…ÏƒÎ±" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "Î•ÎŒÏ†ÎŹÎœÎčση ΚρυφώΜ Î‘ÏÏ‡Î”ÎŻÏ‰Îœ" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "ΔÎčÎ±ÎŻÏÎ”ÏƒÎ· Î ÏÎżÎČÎżÎ»ÎźÏ‚" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "Î•Ï€Î”ÎŸÎ”ÏÎłÎ±ÏƒÎŻÎ± Î€ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ±Ï‚" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "Î‘ÎœÎ±Î¶ÎźÏ„Î·ÏƒÎ·" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "Î Î»Î±ÏŠÎœÎź ÎœÏ€ÎŹÏÎ±" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "ÎĄÏÎžÎŒÎčση ΙήÎčÎżÏ„ÎźÏ„Ï‰Îœ Î ÏÎżÎČÎżÎ»ÎźÏ‚..." + +#: dolphin.cpp:1313 +msgid "Open Terminal" +msgstr "Î†ÎœÎżÎčÎłÎŒÎ± ΀ΔρΌατÎčÎșÎżÏ" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "ΕύρΔση Î‘ÏÏ‡Î”ÎŻÎżÏ…..." + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "Î•ÎŒÏ†ÎŹÎœÎčση Î“ÏÎ±ÎŒÎŒÎźÏ‚ ÎŠÎŻÎ»Ï„ÏÎżÏ…" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "ÎŁÏÎłÎșρÎčση Î‘ÏÏ‡Î”ÎŻÏ‰Îœ" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "ΕΜηΌέρωση ÎčÎŽÎčÎżÏ„ÎźÏ„Ï‰Îœ Ï€ÏÎżÎČÎżÎ»ÎźÏ‚..." + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± ÎÎ­ÎżÏ…" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "Î€ÏÏŒÏ€ÎżÏ‚ Î ÏÎżÎČÎżÎ»ÎźÏ‚" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "Î ÏÎżÏƒÎžÎźÎșη ÏƒÏ„ÎżÏ…Ï‚ σΔλÎčΎοΎΔίÎșτΔς" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "ΙήÎčότητΔς..." + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +msgid "Add folder as bookmark" +msgstr "Î ÏÎżÏƒÎžÎźÎșη φαÎșÎ­Î»ÎżÏ… ως σΔλÎčΎοΎΔίÎșτης" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "Ά&λλα..." + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "Î†ÎœÎżÎčÎłÎŒÎ± ΜΔ" + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "Î†ÎœÎżÎčÎłÎŒÎ± ΜΔ..." + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "Î•ÎœÎ­ÏÎłÎ”ÎčΔς" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "ÎĄÏ…ÎžÎŒÎŻÏƒÎ”Îčς Ï„ÎżÏ… Dolphin" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "ΓΔΜÎčÎșές" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "Î ÏÎżÎČολΟ" + +#: dolphinview.cpp:220 +msgid "The new item name is invalid." +msgstr "΀ο ÏŒÎœÎżÎŒÎ± Ï„ÎżÏ… ÎœÎ­ÎżÏ… αΜτÎčÎșΔÎčÎŒÎ­ÎœÎżÏ… Î”ÎŻÎœÎ±Îč Όη Î±Ï€ÎżÎŽÎ”Îșτό." + +#: dolphinview.cpp:231 +msgid "Renaming items..." +msgstr "ÎœÎ”Ï„ÎżÎœÎżÎŒÎ±ÏƒÎŻÎ± αΜτÎčÎșΔÎčΌέΜωΜ..." + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "Η ÎŒÎ”Ï„ÎżÎœÎżÎŒÎ±ÏƒÎŻÎ± ολοÎșληρώΞηÎșΔ." + +#: dolphinview.cpp:251 +msgid "Renaming failed (item '%1' already exists)." +msgstr "Η ÎŒÎ”Ï„ÎżÎœÎżÎŒÎ±ÏƒÎŻÎ± απέτυχΔ (Ï„Îż αΜτÎčÎșÎ”ÎŻÎŒÎ”ÎœÎż %1 Ï…Ï€ÎŹÏÏ‡Î”Îč ΟΎη)." + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "΀ο Î‘ÏÏ‡Î”ÎŻÎż Î„Ï€ÎŹÏÏ‡Î”Îč ΉΎη" + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "΀ο Î±ÏÏ‡Î”ÎŻÎż %1 ÎŒÎ”Ï„ÎżÎœÎżÎŒÎŹÏƒÏ„Î·ÎșΔ σΔ %2 ." + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "Η ÎŒÎ”Ï„ÎżÎœÎżÎŒÎ±ÏƒÎŻÎ± Ï„ÎżÏ… Î±ÏÏ‡Î”ÎŻÎżÏ… από %1 σΔ %2 απέτυχΔ." + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "Η Ï„ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ± Î”ÎŻÎœÎ±Îč ΏΎΔÎčα." + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "Η Ï„ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ± %1 Î”ÎŻÎœÎ±Îč λαΜΞασΌέΜη." + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "Ίόρτωση φαÎșÎ­Î»ÎżÏ…..." + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "1 ΑΜτÎčÎșÎ”ÎŻÎŒÎ”ÎœÎż" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "%1 ΑΜτÎčÎșÎ”ÎŻÎŒÎ”ÎœÎ±" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "1 ΊΏÎșÎ”Î»ÎżÏ‚" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "%1 ΊΏÎșΔλοÎč" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "1 Î‘ÏÏ‡Î”ÎŻÎż" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "%1 Î‘ÏÏ‡Î”ÎŻÎ±" + +#: dolphinview.cpp:994 +msgid "1 Folder selected" +msgstr "1 ΊΏÎșÎ”Î»ÎżÏ‚ ΔπÎčλέχΞηÎșΔ" + +#: dolphinview.cpp:997 +msgid "%1 Folders selected" +msgstr "%1 ΊΏÎșΔλοÎč ΔπÎčλέχΞηÎșαΜ" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "1 Î‘ÏÏ‡Î”ÎŻÎż ΔπÎčλέχΞηÎșΔ (%1)" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "%1 Î‘ÏÏ‡Î”ÎŻÎ± ΔπÎčλέχΞηÎșαΜ (%1)" + +#: editbookmarkdialog.cpp:72 +msgid "Icon:" +msgstr "ΕÎčÎșÎżÎœÎŻÎŽÎčÎż:" + +#: editbookmarkdialog.cpp:80 +msgid "Name:" +msgstr "ÎŒÎœÎżÎŒÎ±:" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +msgid "Location:" +msgstr "Î€ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ±:" + +#: filterbar.cpp:44 +msgid "Filter:" +msgstr "ÎŠÎŻÎ»Ï„ÏÎż:" + +#: generalsettingspage.cpp:62 +msgid "Home URL" +msgstr "ΑρχÎčÎșÎź Î€ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ±" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "Î§ÏÎźÏƒÎ· Ï„ÏÎ­Ï‡ÎżÏ…ÏƒÎ±Ï‚ Ï„ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ±Ï‚" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "Î§ÏÎźÏƒÎ· Ï€ÏÎżÎșÎ±ÎžÎżÏÎčσΌέΜης Ï„ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ±Ï‚" + +#: generalsettingspage.cpp:88 +msgid "Default View Mode" +msgstr "Î ÏÎżÎșÎ±ÎžÎżÏÎčÏƒÎŒÎ­ÎœÎżÏ‚ Î€ÏÏŒÏ€ÎżÏ‚ Î ÏÎżÎČÎżÎ»ÎźÏ‚" + +#: generalsettingspage.cpp:103 +msgid "Start with split view" +msgstr "ΕÎșÎșÎŻÎœÎ·ÏƒÎ· ΌΔ ÎŽÎčαÎčρΔΌέΜη Ï€ÏÎżÎČολΟ" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "ΕÎșÎșÎŻÎœÎ·ÏƒÎ· ΌΔ Î”Ï€Î”ÎŸÎ”ÏÎłÎŹÏƒÎčΌη ÎłÏÎ±ÎŒÎŒÎź Ï„ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ±Ï‚" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "ÎœÎ­ÎłÎ”ÎžÎżÏ‚ Î ÏÎżÎ”Ï€ÎčσÎșόπÎčσης" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "ΑρÎčΞΌός ÎłÏÎ±ÎŒÎŒÏŽÎœ:" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "Î Î»ÎŹÏ„ÎżÏ‚ ÎșΔÎčÎŒÎ­ÎœÎżÏ…" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "Î Î»Î­ÎłÎŒÎ±" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "ΔÎčΔυΞέτηση:" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "Από αρÎčÏƒÏ„Î”ÏÎŹ στα ΎΔΟÎčÎŹ" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "Από Ï€ÎŹÎœÏ‰ Ï€ÏÎżÏ‚ τα ÎșÎŹÏ„Ï‰" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "ΔÎčÎŹÏƒÏ„Î·ÎŒÎ± Ï€Î»Î­ÎłÎŒÎ±Ï„ÎżÏ‚:" + +#: infosidebarpage.cpp:163 +msgid "%1 items selected" +msgstr "%1 αΜτÎčÎșÎ”ÎŻÎŒÎ”ÎœÎ± ΔπÎčλέχΞηÎșαΜ" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "Î€ÏÏ€ÎżÏ‚:" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "ΊΏÎșÎ”Î»ÎżÏ‚" + +#: infosidebarpage.cpp:289 +msgid "Size:" +msgstr "ÎœÎ­ÎłÎ”ÎžÎżÏ‚:" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "Î€ÏÎżÏ€ÎżÏ€ÎżÎčÎ·ÎŒÎ­ÎœÎż:" + +#: itemeffectsmanager.cpp:185 +msgid "%1 (Folder)" +msgstr "%1 (ΊΏÎșÎ”Î»ÎżÏ‚)" + +#: main.cpp:31 +msgid "Document to open" +msgstr "ÎˆÎłÎłÏÎ±Ï†Îż Ï€ÏÎżÏ‚ ÎŹÎœÎżÎčÎłÎŒÎ±" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "Dolphin" + +#: main.cpp:40 +msgid "File Manager" +msgstr "ΔÎčαχΔÎčρÎčÏƒÏ„ÎźÏ‚ Î‘ÏÏ‡Î”ÎŻÏ‰Îœ" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "ÎŁÏ…ÎœÏ„Î·ÏÎ·Ï„ÎźÏ‚ ÎșαÎč Ï€ÏÎżÎłÏÎ±ÎŒÎŒÎ±Ï„ÎčÏƒÏ„ÎźÏ‚" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "Î ÏÎżÎłÏÎ±ÎŒÎŒÎ±Ï„ÎčÏƒÏ„ÎźÏ‚" + +#: main.cpp:48 main.cpp:49 +msgid "Documentation" +msgstr "΀ΔÎșÎŒÎ·ÏÎŻÏ‰ÏƒÎ·" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "... ÎłÎčα τηΜ ÎŒÎ”ÎłÎŹÎ»Î· Ï…Ï€ÎżÏƒÏ„ÎźÏÎčΟη ÎșαÎč τα ΔΟαÎčρΔτÎčÎșÎŹ patches Ï„ÎżÏ…Ï‚" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "... ÎłÎčα τα patches Ï„ÎżÏ…Ï‚" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "... ÎłÎčα τÎčς ÎŒÎ”Ï„Î±ÎłÎ»Ï‰Ï„Ï„ÎŻÏƒÎ”Îčς Ï„ÎżÏ…Ï‚" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "΀αΟÎčΜόΌηση" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "Î“ÏÎ±ÎŒÎŒÎź Î€ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ±Ï‚" + +#: renamedialog.cpp:30 +msgid "Rename Items" +msgstr "ÎœÎ”Ï„ÎżÎœÎżÎŒÎ±ÏƒÎŻÎ± ΑΜτÎčÎșΔÎčΌέΜωΜ" + +#: renamedialog.cpp:39 +msgid "Rename the %1 selected items to:" +msgstr "ÎœÎ”Ï„ÎżÎœÎżÎŒÎ±ÏƒÎŻÎ± τωΜ %1 ΔπÎčÎ»Î”ÎłÎŒÎ­ÎœÏ‰Îœ αΜτÎčÎșÎ”ÎŻÎŒÎ”ÎœÏ‰Îœ σΔ:" + +#: renamedialog.cpp:43 +msgid "New name #" +msgstr "Νέο ÏŒÎœÎżÎŒÎ± #" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "(η # Ξα αΜτÎčÎșÎ±Ï„Î±ÏƒÏ„Î±ÎžÎ”ÎŻ από Î±ÏÎŸÎżÎœÏ„Î”Ï‚ αρÎčÎžÎŒÎżÏÏ‚)" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "χρησÎčÎŒÎżÏ€ÎżÎčÎ”ÎŻÏ„Î±Îč Ï„Îż %1 από %2" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "Î›ÎźÏˆÎ· ÎŒÎ”ÎłÎ­ÎžÎżÏ…Ï‚..." + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "Î‘ÎœÎ±ÎŻÏÎ”ÏƒÎ·: %1" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "ΕÎșτέλΔση Î±ÎœÎ±ÎŻÏÎ”ÏƒÎ·Ï‚..." + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "Η Î±ÎœÎ±ÎŻÏÎ”ÏƒÎ· ολοÎșληρώΞηÎșΔ" + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "ΑÎșύρωση Î±ÎœÎ±ÎŻÏÎ”ÏƒÎ·Ï‚: %1" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "ΕÎșτέλΔση αÎșύρωσης Î±ÎœÎ±ÎŻÏÎ”ÏƒÎ·Ï‚..." + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "Η αÎșύρωση Î±ÎœÎ±ÎŻÏÎ”ÏƒÎ·Ï‚ ολοÎșληρώΞηÎșΔ." + +#: undomanager.cpp:347 +msgid "Link" +msgstr "ÎŁÏÎœÎŽÎ”ÏƒÎŒÎżÏ‚" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± ÎÎ­ÎżÏ… ΊαÎșÎ­Î»ÎżÏ…" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± ÎÎ­ÎżÏ… Î‘ÏÏ‡Î”ÎŻÎżÏ…" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "Î‘ÎœÎ±Î¶ÎźÏ„Î·ÏƒÎ· (Ctrl+B, Escape)" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "Î•Ï€Î”ÎŸÎ”ÏÎłÎ±ÏƒÎŻÎ± Î€ÎżÏ€ÎżÎžÎ”ÏƒÎŻÎ±Ï‚ (Ctrl+L)" + +#: urlnavigator.cpp:428 +#, fuzzy +msgid "Custom Path" +msgstr "Î ÏÎżÏƒÏ‰Ï€ÎčÎșÎź ΔÎčÎ±ÎŽÏÎżÎŒÎź" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "Î ÏÎżÎČολΟ ΙήÎčÎżÏ„ÎźÏ„Ï‰Îœ" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "Î€ÏÏŒÏ€ÎżÏ‚ Ï€ÏÎżÎČÎżÎ»ÎźÏ‚:" + +#: viewpropertiesdialog.cpp:70 +msgid "Sorting:" +msgstr "΀αΟÎčΜόΌηση:" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "ΣΔÎčÏÎŹ ταΟÎčΜόΌησης:" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "Î‘ÏÎŸÎżÏ…ÏƒÎ±" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "Î•ÎŒÏ†ÎŹÎœÎčση ÎșρυφώΜ Î±ÏÏ‡Î”ÎŻÏ‰Îœ" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "Î•Ï†Î±ÏÎŒÎżÎłÎź τωΜ ÎčÎŽÎčÎżÏ„ÎźÏ„Ï‰Îœ Ï€ÏÎżÎČÎżÎ»ÎźÏ‚ σΔ:" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "Î€ÏÎ­Ï‡ÎżÎœÏ„Î± Ï†ÎŹÎșΔλο" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "Î€ÏÎ­Ï‡ÎżÎœÏ„Î± Ï†ÎŹÎșΔλο συΌπΔρÎčλαΌÎČÎ±ÎœÎżÎŒÎ­ÎœÏ‰Îœ όλωΜ τωΜ Ï…Ï€ÎżÏ†Î±ÎșέλωΜ" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "ÎŒÎ»ÎżÏ…Ï‚ Ï„ÎżÏ…Ï‚ Ï†ÎŹÎșÎ”Î»ÎżÏ…Ï‚" + +#: viewpropertiesdialog.cpp:210 +msgid "The view properties of all folders will be replaced. Do you want to continue?" +msgstr "ΟÎč ÎčÎŽÎčότητΔς Ï€ÏÎżÎČÎżÎ»ÎźÏ‚ όλωΜ τωΜ φαÎșέλωΜ Ξα αΜτÎčÎșÎ±Ï„Î±ÏƒÏ„Î±ÎžÎżÏÎœ. ΘέλΔτΔ Μα ÏƒÏ…ÎœÎ”Ï‡ÎŻÏƒÎ”Ï„Î”;" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "ΟÎč ÎčÎŽÎčότητΔς Ï€ÏÎżÎČÎżÎ»ÎźÏ‚ όλωΜ τωΜ Ï…Ï€ÎżÏ†Î±ÎșέλωΜ Ξα αΜτÎčÎșÎ±Ï„Î±ÏƒÏ„Î±ÎžÎżÏÎœ. ΘέλΔτΔ Μα ÏƒÏ…ÎœÎ”Ï‡ÎŻÏƒÎ”Ï„Î”;" + +msgid "Left Sidebar" +msgstr "ΑρÎčÏƒÏ„Î”ÏÎź Î Î»Î±ÏŠÎœÎź ÎœÏ€ÎŹÏÎ±" + +msgid "Right Sidebar" +msgstr "ΔΔΟÎčÎŹ Î Î»Î±ÏŠÎœÎź ÎœÏ€ÎŹÏÎ±" + +msgid "Save view properties for each folder" +msgstr "Î‘Ï€ÎżÎžÎźÎșΔυση ÎčÎŽÎčÎżÏ„ÎźÏ„Ï‰Îœ Ï€ÏÎżÎČÎżÎ»ÎźÏ‚ ÎłÎčα ÎșΏΞΔ Ï†ÎŹÎșΔλο" + diff --git a/po/es.po b/po/es.po new file mode 100644 index 0000000..fd02b06 --- /dev/null +++ b/po/es.po @@ -0,0 +1,779 @@ +# translation of es.po to +# This file is put in the public domain. +# +# Nestor Diaz , 2006. +msgid "" +msgstr "" +"Project-Id-Version: es\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-28 22:10+0100\n" +"PO-Revision-Date: 2006-06-15 20:21+0200\n" +"Last-Translator: Nestor Diaz \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.2\n" + +#: _translatorinfo.cpp:1 +#, fuzzy +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "" +"_: NOMBRE DE LOS TRADUCTORES\n" +"NĂ©stor DĂ­az,Nestor Diaz" + +#: _translatorinfo.cpp:3 +#, fuzzy +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "" +"_: EMAIL DE LOS TRADUCTORES\n" +"n3storm@grupoikusnet.com,nestordiaz@equusdigital.com" + +#: bookmarkssettingspage.cpp:57 +#, fuzzy +msgid "Icon" +msgstr "Iconos" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "Nombre" + +#: bookmarkssettingspage.cpp:59 +#, fuzzy +msgid "Location" +msgstr "Acciones" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "" + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "" + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "" + +#: bookmarkssidebarpage.cpp:110 +msgid "Add Bookmark..." +msgstr "" + +#: bookmarkssidebarpage.cpp:113 +msgid "Insert Bookmark..." +msgstr "" + +#: bookmarkssidebarpage.cpp:125 +msgid "Insert Bookmark" +msgstr "" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "Columnas" + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "Fecha" + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "Permisos" + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "Propietario" + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "Grupo" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "Tamaño de icono" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "Pequeño" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "Mediano" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "Grande" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "Texto" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "Familia de fuentes:" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "Tamaño de fuente:" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "&Mover aquĂ­" + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "&Copiar aquĂ­" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "&Enlazar aquĂ­" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "Escape" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "Nueva Carpeta" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "Introduzca nombre de la carpeta:" + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "Carpeta creado %1." + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "Una carpeta llamada %1 ya existe." + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "La creaciĂłn de la carpeta %1 ha fallado." + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "No se pudo crear el fichero." + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "Un fichero %1 ya existe." + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "Fichero %1 creado." + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "La creaciĂłn de lfichero %1 ha fallado." + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "ÂżRealmente desea borrar los %1 ficheros seleccionados?" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "ÂżRealmente desea borrar '%1'?" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "OperaciĂłn de borrado completada." + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "Pegar 1 fichero" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "Pegar %1 ficheros" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "OperaciĂłn de pegado completada." + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "OperaciĂłn de mover completada." + +#: dolphin.cpp:1030 +#, fuzzy +msgid "Move to trash operation completed." +msgstr "OperaciĂłn de mover completada." + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "" + +#: dolphin.cpp:1108 +msgid "Network" +msgstr "" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "Carpeta..." + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "Renombrar" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "Mover a la Papelera" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "Prop&iedades" + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "Invertir la selecciĂłn" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "Iconos" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "Detalles" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "PrevisualizaciĂłn" + +#: dolphin.cpp:1253 +#, fuzzy +msgid "By Name" +msgstr "Nombre" + +#: dolphin.cpp:1258 +#, fuzzy +msgid "By Size" +msgstr "Tamaño" + +#: dolphin.cpp:1263 +#, fuzzy +msgid "By Date" +msgstr "Fecha" + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "Descendente" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "Mostrar archivos ocultos" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "Dividir la vista" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "Ajustar propiedades de la vista" + +#: dolphin.cpp:1313 +#, fuzzy +msgid "Open Terminal" +msgstr "General" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "" + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "Actualizar propiedades de la vista" + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "Crear nuevo" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "Modo de vista" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "Propiedades..." + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +msgid "Add folder as bookmark" +msgstr "" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "&Otros" + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "Abrir con" + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "Abrir con..." + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "Acciones" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "Preferencias de Dolphin" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "General" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "Modos de vista" + +#: dolphinview.cpp:220 +msgid "The new item name is invalid." +msgstr "" + +#: dolphinview.cpp:231 +msgid "Renaming items..." +msgstr "" + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "" + +#: dolphinview.cpp:251 +#, fuzzy +msgid "Renaming failed (item '%1' already exists)." +msgstr "Un fichero %1 ya existe." + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "El archivo ya existe" + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "Archivo '%1' remobrado a '%2'." + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "El renombrado de archivo '%1' a '%2' ha fallado." + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "" + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "" + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "Cargando carpeta..." + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "1 Elemento" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "%1 Elementos" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "1 Carpeta" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "%1 Carpetas" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "1 Archivo" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "%1 Archivos" + +#: dolphinview.cpp:994 +#, fuzzy +msgid "1 Folder selected" +msgstr "%1 Carpetas" + +#: dolphinview.cpp:997 +#, fuzzy +msgid "%1 Folders selected" +msgstr "%1 Carpetas" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "" + +#: editbookmarkdialog.cpp:72 +#, fuzzy +msgid "Icon:" +msgstr "Iconos" + +#: editbookmarkdialog.cpp:80 +#, fuzzy +msgid "Name:" +msgstr "Nombre" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +#, fuzzy +msgid "Location:" +msgstr "Acciones" + +#: filterbar.cpp:44 +#, fuzzy +msgid "Filter:" +msgstr "1 Archivo" + +#: generalsettingspage.cpp:62 +msgid "Home URL" +msgstr "" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "" + +#: generalsettingspage.cpp:88 +#, fuzzy +msgid "Default View Mode" +msgstr "Modo de vista" + +#: generalsettingspage.cpp:103 +#, fuzzy +msgid "Start with split view" +msgstr "Dividir la vista" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "Tamaño de previsualizaciĂłn" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "NĂșmero de lĂ­neas:" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "Ancho texto:" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "Rejilla" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "Ordenamiento:" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "Izquierda a derecha" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "De arriba a abajo" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "Espaciado de la rejilla:" + +#: infosidebarpage.cpp:163 +#, fuzzy +msgid "%1 items selected" +msgstr "%1 Carpetas" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "" + +#: infosidebarpage.cpp:289 +#, fuzzy +msgid "Size:" +msgstr "Tamaño" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "" + +#: itemeffectsmanager.cpp:185 +#, fuzzy +msgid "%1 (Folder)" +msgstr "%1 Carpetas" + +#: main.cpp:31 +msgid "Document to open" +msgstr "Documento a abrir" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "Dolphin" + +#: main.cpp:40 +msgid "File Manager" +msgstr "" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "" + +#: main.cpp:48 main.cpp:49 +#, fuzzy +msgid "Documentation" +msgstr "Documento a abrir" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "" + +#: renamedialog.cpp:30 +#, fuzzy +msgid "Rename Items" +msgstr "Renombrar" + +#: renamedialog.cpp:39 +#, fuzzy +msgid "Rename the %1 selected items to:" +msgstr "ÂżRealmente desea borrar los %1 ficheros seleccionados?" + +#: renamedialog.cpp:43 +#, fuzzy +msgid "New name #" +msgstr "Renombrar" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "" + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "Deshacer: %1" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "Ejecutando operaciĂłn de deshacer..." + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "OperaciĂłn de deshacer ejecutada." + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "Rehacer: %1" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "Ejecutando operaciĂłn de rehacer..." + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "OperaciĂłn de rehacer ejecutada." + +#: undomanager.cpp:347 +msgid "Link" +msgstr "Enlace" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "Crear Nueva Carpeta" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "Crear Nuevo Archivo" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "" + +#: urlnavigator.cpp:428 +msgid "Custom Path" +msgstr "" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "Ver Propiedades" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "Modo de Vista:" + +#: viewpropertiesdialog.cpp:70 +#, fuzzy +msgid "Sorting:" +msgstr "Ordenar columna:" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "OrdenaciĂłn:" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "Ascendente" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "Mostrar archivos ocultos" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "Aplicar propiedades de vista a:" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "Carpeta actual" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "Carpeta actual incluĂ­das todas las subcarpetas" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "Todas las carpetas" + +#: viewpropertiesdialog.cpp:210 +#, fuzzy +msgid "" +"The view properties of all folders will be replaced. Do you want to continue?" +msgstr "" +"Las propiedades de la vista de todas las subcarpetas serĂĄ reemplazada. " +"ÂżDesea continuar?" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "" +"Las propiedades de la vista de todas las subcarpetas serĂĄ reemplazada. " +"ÂżDesea continuar?" + +#, fuzzy +#~ msgid "Unknown size" +#~ msgstr "Tamaño de fuente:" + +#~ msgid "Sort column:" +#~ msgstr "Ordenar columna:" + +#~ msgid "A KDE Application" +#~ msgstr "Una apliaciĂłn KDE" + +#~ msgid "Edit path with keyboard" +#~ msgstr "Editar la ruta con el teclado" diff --git a/po/et.po b/po/et.po new file mode 100644 index 0000000..cda7952 --- /dev/null +++ b/po/et.po @@ -0,0 +1,732 @@ +# translation of et.po to Estonian +# This file is put in the public domain. +# +# Ain Vagula , 2006. +msgid "" +msgstr "" +"Project-Id-Version: et\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-28 22:10+0100\n" +"PO-Revision-Date: 2006-12-23 23:17+0200\n" +"Last-Translator: Ain Vagula \n" +"Language-Team: Estonian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: _translatorinfo.cpp:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "Ain Vagula" + +#: _translatorinfo.cpp:3 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "avagula@gmail.com" + +#: bookmarkssettingspage.cpp:57 +msgid "Icon" +msgstr "Ikoon" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "Nimi" + +#: bookmarkssettingspage.cpp:59 +msgid "Location" +msgstr "Asukoht" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "Lisa..." + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "Redigeeri..." + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "Liiguta ĂŒles" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "Liiguta alla" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "Lisa jĂ€rjehoidja" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "Uus jĂ€rjehoidja" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "Muuda jĂ€rjehoidjaid" + +#: bookmarkssidebarpage.cpp:110 +msgid "Add Bookmark..." +msgstr "Lisa jĂ€rjehoidja..." + +#: bookmarkssidebarpage.cpp:113 +msgid "Insert Bookmark..." +msgstr "Lisa jĂ€rjehoidja..." + +#: bookmarkssidebarpage.cpp:125 +msgid "Insert Bookmark" +msgstr "Lisa jĂ€rjehoidja" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "Veerud" + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "KuupĂ€ev" + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "Õigused" + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "Omanik" + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "RĂŒhm" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "Ikooni suurus" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "VĂ€ike" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "Keskmine" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "Suur" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "Tekst" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "Fondipere:" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "Fondi suurus:" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "&Liiguta siia" + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "&Kopeeri siia" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "&Lingi siia" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "Katkesta" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "Uus kataloog" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "Sisesta kataloogi nimi:" + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "Loodi kataloog %1." + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "Kataloog nimega %1 eksisteerib juba." + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "Kataloogi %1 loomine nurjus." + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "Faili ei Ă”nnestunud luua." + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "Fail nimega %1 eksisteerib juba." + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "Loodi fail %1." + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "Faili %1 loomine nurjus." + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "Soovid sa tĂ”esti kustutada %1 valitud elementi?" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "Kas tĂ”esti kustutada '%1'?" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "Kustutamine on lĂ”petatud." + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "1 faili asetamine" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "%1 faili asetamine" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "Kopeerimine on lĂ”petatud." + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "Liigutamine on lĂ”petatud." + +#: dolphin.cpp:1030 +msgid "Move to trash operation completed." +msgstr "PrĂŒgikasti liigutamine on lĂ”petatud." + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "Kodu" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "Andmekandja" + +#: dolphin.cpp:1108 +msgid "Network" +msgstr "VĂ”rk" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "Juurkataloog" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "PrĂŒgikast" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "Kataloog..." + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "Muuda nime" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "Liiguta prĂŒgikasti" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "Oma&dused" + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "Muuda valik vastupidiseks" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "Ikoonid" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "Üksikasjad" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "Eelvaatlus" + +#: dolphin.cpp:1253 +msgid "By Name" +msgstr "Nime jĂ€rgi" + +#: dolphin.cpp:1258 +msgid "By Size" +msgstr "Suuruse jĂ€rgi" + +#: dolphin.cpp:1263 +msgid "By Date" +msgstr "KuupĂ€eva jĂ€rgi" + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "Kahanev" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "Peidetud failide nĂ€itamine" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "Vaate tĂŒkeldamine" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "Asukoha redigeerimine" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "Lehitse" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "KĂŒlgriba" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "Vaate omaduste kohandamine..." + +#: dolphin.cpp:1313 +msgid "Open Terminal" +msgstr "Ava terminal" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "Otsi faili..." + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "Filtririba kuvamine" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "VĂ”rdle faile" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "Vaate omaduste uuendamine..." + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "Loo uus" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "VaatereĆŸiim" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "Lisa kataloog jĂ€rjehoidjatesse" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "Omadused..." + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +msgid "Add folder as bookmark" +msgstr "Lisa kataloog jĂ€rjehoidjana" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "&Muu..." + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "Ava kasutades" + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "Ava kasutades..." + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "Toimingud" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "Dolphini eelistused" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "Üldine" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "VaatereĆŸiimid" + +#: dolphinview.cpp:220 +msgid "The new item name is invalid." +msgstr "Uue elemendi nimi on vigane." + +#: dolphinview.cpp:231 +msgid "Renaming items..." +msgstr "Elementide nimede muutmine..." + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "Nimede muutmine on lĂ”petatud." + +#: dolphinview.cpp:251 +msgid "Renaming failed (item '%1' already exists)." +msgstr "Nime muutmine nurjus (element '%1' on juba olemas)." + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "Fail on juba olemas" + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "Faili '%1' uus nimi on '%2'." + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "Failile '%1' nime '%2' omistamine nurjus." + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "Asukoht on tĂŒhi." + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "Asukoht '%1' on vigane." + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "Kataloogi laadimine..." + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "1 element" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "%1 elementi" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "1 kataloog" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "%1 kataloogi" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "1 fail" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "%1 faili" + +#: dolphinview.cpp:994 +msgid "1 Folder selected" +msgstr "1 kataloog on valitud" + +#: dolphinview.cpp:997 +msgid "%1 Folders selected" +msgstr "%1 kataloogi on valitud" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "1 fail on valitud (%1)" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "%1 faili on valitud (%1)" + +#: editbookmarkdialog.cpp:72 +msgid "Icon:" +msgstr "Ikoon:" + +#: editbookmarkdialog.cpp:80 +msgid "Name:" +msgstr "Nimi:" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +msgid "Location:" +msgstr "Asukoht:" + +#: filterbar.cpp:44 +msgid "Filter:" +msgstr "Filter:" + +#: generalsettingspage.cpp:62 +msgid "Home URL" +msgstr "Kodulehe URL" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "Praeguse asukoha kasutamine" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "Vaikimisi asukoha kasutamine" + +#: generalsettingspage.cpp:88 +msgid "Default View Mode" +msgstr "Vaikimisi vaatereĆŸiim" + +#: generalsettingspage.cpp:103 +msgid "Start with split view" +msgstr "KĂ€ivitatakse tĂŒkeldatud vaates" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "KĂ€ivitatakse redigeeritava navigeerimisribaga" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "Eelvaate suurus" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "Ridade arv:" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "Teksti laius:" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "AlusvĂ”rk" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "Korraldus:" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "Paremalt vasakule" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "Ülevalt alla" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "AlusvĂ”rgu samm:" + +#: infosidebarpage.cpp:163 +msgid "%1 items selected" +msgstr "%1 elementi on valitud" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "TĂŒĂŒp:" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "Kataloog" + +#: infosidebarpage.cpp:289 +msgid "Size:" +msgstr "Suurus:" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "Muudetud:" + +#: itemeffectsmanager.cpp:185 +msgid "%1 (Folder)" +msgstr "%1 (kataloog)" + +#: main.cpp:31 +msgid "Document to open" +msgstr "Avatav dokument" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "Dolphin" + +#: main.cpp:40 +msgid "File Manager" +msgstr "Failihaldur" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "Hooldaja ja arendaja" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "Arendaja" + +#: main.cpp:48 main.cpp:49 +msgid "Documentation" +msgstr "Dokumentatsioon" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "... suurepĂ€rase toe ja paikade jaoks" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "... paikade jaoks" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "... tĂ”lgete jaoks" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "Sordi" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "Navigeerimisriba" + +#: renamedialog.cpp:30 +msgid "Rename Items" +msgstr "Elementide nimede muutmine" + +#: renamedialog.cpp:39 +msgid "Rename the %1 selected items to:" +msgstr "%1 valitud elemendi uus nimi:" + +#: renamedialog.cpp:43 +msgid "New name #" +msgstr "Uus nimi #" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "(# asendatakse kasvavate arvudega)" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "%1% %2-st kasutusel" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "Suuruse tuvastamine..." + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "VĂ”ta tagasi: %1" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "TĂŒhistamise rakendamine..." + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "TĂŒhistamine rakendatud." + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "Tee uuesti: %1" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "Taastamise rakendamine..." + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "Taastamine rakendatud." + +#: undomanager.cpp:347 +msgid "Link" +msgstr "Viit" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "Loo uus kataloog" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "Loo uus fail" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "Lehitse (Ctrl+B, Esc)" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "Redigeeri asukohta (Ctrl+L)" + +#: urlnavigator.cpp:428 +msgid "Custom Path" +msgstr "Muu asukoht" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "Vaate omadused" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "VaatereĆŸiim:" + +#: viewpropertiesdialog.cpp:70 +msgid "Sorting:" +msgstr "Sortimine:" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "SortimisjĂ€rjestus:" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "Kasvav" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "NĂ€idatakse peidetud faile" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "Vaate omaduste rakendamine:" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "Aktiivne kataloog" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "Aktiivne kataloog koos alamkataloogidega" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "KĂ”ik kataloogid" + +#: viewpropertiesdialog.cpp:210 +msgid "The view properties of all folders will be replaced. Do you want to continue?" +msgstr "KĂ”ikide kataloogide vaate omadused asendatakse. Kas soovid jĂ€tkata?" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "KĂ”ikide alamkataloogide vaate omadused asendatakse. Kas soovid jĂ€tkata?" + diff --git a/po/fr.po b/po/fr.po new file mode 100644 index 0000000..7bab1b5 --- /dev/null +++ b/po/fr.po @@ -0,0 +1,754 @@ +# translation of fr.po to Français +# This file is put in the public domain. +# +# Peter Penz , 2006. +msgid "" +msgstr "" +"Project-Id-Version: fr\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-28 22:10+0100\n" +"PO-Revision-Date: 2006-10-14 16:48+0200\n" +"Last-Translator: Stephane Lesimple \n" +"Language-Team: Français \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#: _translatorinfo.cpp:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "StĂ©phane Lesimple, Patrice Tremblay" + +#: _translatorinfo.cpp:3 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "speed47@speed47.net, tremblaypatrice@yahoo.fr" + +#: bookmarkssettingspage.cpp:57 +msgid "Icon" +msgstr "IcĂŽne" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "Nom" + +#: bookmarkssettingspage.cpp:59 +msgid "Location" +msgstr "Emplacement" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "Ajouter..." + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "Modifier..." + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "Monter" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "Descendre" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "Ajouter un signet" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "Nouveau signet" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "Modifier un signet" + +#: bookmarkssidebarpage.cpp:110 +#, fuzzy +msgid "Add Bookmark..." +msgstr "Ajouter un signet" + +#: bookmarkssidebarpage.cpp:113 +#, fuzzy +msgid "Insert Bookmark..." +msgstr "Modifier un signet" + +#: bookmarkssidebarpage.cpp:125 +#, fuzzy +msgid "Insert Bookmark" +msgstr "Modifier un signet" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "Colonnes" + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "Date" + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "Permissions" + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "PropriĂ©taire" + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "Groupe" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "Dimension des icĂŽnes" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "Petit" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "Moyen" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "Grand" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "Texte" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "Famille de polices :" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "Taille de la police :" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "&DĂ©placer ici" + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "&Copier ici" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "&Lier ici" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "Echap" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "Nouveau dossier" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "Entrer le nom du dossier:" + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "Dossier %1 crĂ©Ă©." + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "Un dossier nommĂ© %1 existe dĂ©jĂ ." + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "La crĂ©ation du dossier %1 a Ă©chouĂ©." + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "Erreur de crĂ©ation du fichier." + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "Un fichier nommĂ© %1 existe dĂ©jĂ ." + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "Fichier %1 crĂ©Ă©." + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "La crĂ©ation du fichier %1 a Ă©chouĂ©." + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "Voulez-vous vraiment supprimer les %1 objets sĂ©lectionnĂ©s ?" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "Voulez-vous vraiment supprimer '%1' ?" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "OpĂ©ration de suppression terminĂ©e." + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "Coller 1 fichier" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "Coller %1 fichiers" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "OpĂ©ration de copie terminĂ©e." + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "OpĂ©ration de dĂ©placement terminĂ©e." + +#: dolphin.cpp:1030 +msgid "Move to trash operation completed." +msgstr "OpĂ©ration de dĂ©placement vers la corbeille terminĂ©e." + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "Dossier personnel" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "MĂ©dia de stockage" + +#: dolphin.cpp:1108 +msgid "Network" +msgstr "RĂ©seau" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "Racine" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "Dossier..." + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "Renommer" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "Mettre Ă  la corbeille" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "Propr&iĂ©tĂ©s" + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "Inverser la sĂ©lection" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "IcĂŽnes" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "DĂ©tails" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "Aperçus" + +#: dolphin.cpp:1253 +msgid "By Name" +msgstr "Par Nom" + +#: dolphin.cpp:1258 +msgid "By Size" +msgstr "Par Taille" + +#: dolphin.cpp:1263 +msgid "By Date" +msgstr "Par Date" + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "Descendant" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "Afficher les fichiers cachĂ©s" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "Vue sĂ©parĂ©e" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "Modifier l'emplacement" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "Parcourir" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "Ajuster les propriĂ©tĂ©s d'affichage..." + +#: dolphin.cpp:1313 +msgid "Open Terminal" +msgstr "Ouvrir un terminal" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "Chercher un fichier..." + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "Comparer des fichiers" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "Mise-Ă -jour des propriĂ©tĂ©s de la vue..." + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "CrĂ©er un nouveau" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "Type d'affichage" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "Ajouter un signet" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "PropriĂ©tĂ©s..." + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +msgid "Add folder as bookmark" +msgstr "Ajouter le dossier comme signet" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "&Autre..." + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "Ouvrir avec" + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "Ouvrir avec..." + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "Actions" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "PrĂ©fĂ©rences de Dolphin" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "GĂ©nĂ©ral" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "Types d'affichage" + +#: dolphinview.cpp:220 +#, fuzzy +msgid "The new item name is invalid." +msgstr "L'emplacement '%1' est invalide." + +#: dolphinview.cpp:231 +#, fuzzy +msgid "Renaming items..." +msgstr "RĂ©cupĂ©ration de la taille..." + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "" + +#: dolphinview.cpp:251 +#, fuzzy +msgid "Renaming failed (item '%1' already exists)." +msgstr "Un fichier nommĂ© %1 existe dĂ©jĂ ." + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "Le fichier existe dĂ©jĂ " + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "Fichier '%1' renommĂ© en '%2'." + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "Echec du renommage du fichier '%1' en '%2'." + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "L'emplacement est vide." + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "L'emplacement '%1' est invalide." + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "Chargement du dossier..." + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "1 objet" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "%1 objets" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "1 dossier" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "%1 dossiers" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "1 fichier" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "%1 fichiers" + +#: dolphinview.cpp:994 +msgid "1 Folder selected" +msgstr "1 dossier sĂ©lectionĂ©" + +#: dolphinview.cpp:997 +msgid "%1 Folders selected" +msgstr "%1 dossiers sĂ©lectionnĂ©s" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "1 fichier sĂ©lectionnĂ© (%1)" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "%1 fichiers sĂ©lectionnĂ©s (%1)" + +#: editbookmarkdialog.cpp:72 +msgid "Icon:" +msgstr "IcĂŽne :" + +#: editbookmarkdialog.cpp:80 +msgid "Name:" +msgstr "Nom :" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +msgid "Location:" +msgstr "Emplacement:" + +#: filterbar.cpp:44 +#, fuzzy +msgid "Filter:" +msgstr "1 fichier" + +#: generalsettingspage.cpp:62 +msgid "Home URL" +msgstr "Emplacement de dĂ©marrage" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "Utiliser l'emplacement actuel" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "Utiliser l'emplacement par dĂ©faut" + +#: generalsettingspage.cpp:88 +msgid "Default View Mode" +msgstr "Type d'affichage par dĂ©faut" + +#: generalsettingspage.cpp:103 +msgid "Start with split view" +msgstr "DĂ©marrer avec deux vues sĂ©parĂ©es" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "DĂ©marrer avec la barre de navigation" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "Taille de l'aperçu" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "Nombre de lignes :" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "Largeur du texte :" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "Grille" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "Arrangement :" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "De gauche Ă  droite" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "Du haut vers le bas" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "Espacement de la grille :" + +#: infosidebarpage.cpp:163 +#, fuzzy +msgid "%1 items selected" +msgstr "%1 dossiers sĂ©lectionnĂ©s" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "" + +#: infosidebarpage.cpp:289 +#, fuzzy +msgid "Size:" +msgstr "Par Taille" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "" + +#: itemeffectsmanager.cpp:185 +msgid "%1 (Folder)" +msgstr "%1 (Dossier)" + +#: main.cpp:31 +msgid "Document to open" +msgstr "Document Ă  ouvrir" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "Dolphin" + +#: main.cpp:40 +msgid "File Manager" +msgstr "Gestionnaire de fichiers" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "Mainteneur et dĂ©veloppeur" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "DĂ©veloppeur" + +#: main.cpp:48 main.cpp:49 +#, fuzzy +msgid "Documentation" +msgstr "Document Ă  ouvrir" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "Trier" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "Barre de navigation" + +#: renamedialog.cpp:30 +#, fuzzy +msgid "Rename Items" +msgstr "Renommer" + +#: renamedialog.cpp:39 +#, fuzzy +msgid "Rename the %1 selected items to:" +msgstr "Voulez-vous vraiment supprimer les %1 objets sĂ©lectionnĂ©s ?" + +#: renamedialog.cpp:43 +#, fuzzy +msgid "New name #" +msgstr "Renommer" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "%1% sur %2 utilisĂ©s" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "RĂ©cupĂ©ration de la taille..." + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "Annuler : %1" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "Annulation en cours..." + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "Annulation effectuĂ©e." + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "Refaire : %1" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "RĂ©-effectue..." + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "OpĂ©ration rĂ©-effectuĂ©e." + +#: undomanager.cpp:347 +msgid "Link" +msgstr "Lien" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "CrĂ©er un nouveau dossier" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "CrĂ©er un nouveau fichier" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "Parcourir (Ctrl+B, Echap)" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "Modifier l'emplacement (Ctrl+L)" + +#: urlnavigator.cpp:428 +msgid "Custom Path" +msgstr "" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "Voir PropriĂ©tĂ©s" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "Type d'affichage :" + +#: viewpropertiesdialog.cpp:70 +msgid "Sorting:" +msgstr "Tri :" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "Ordre de tri :" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "Ascendant" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "Afficher les fichiers cachĂ©s" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "Appliquer les propriĂ©tĂ©s d'affichage Ă  :" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "Dossier actuel" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "Dossier actuel et ses sous-dossiers" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "Tout les dossiers" + +#: viewpropertiesdialog.cpp:210 +msgid "" +"The view properties of all folders will be replaced. Do you want to continue?" +msgstr "" +"Les propriĂ©tĂ©s d'affichage de tous les dossiers vont ĂȘtre remplacĂ©s. Voulez-" +"vous continuer ?" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "" +"Les propriĂ©tĂ©s d'affichage de tous les sous-dossiers vont ĂȘtre remplacĂ©s. " +"Voulez-vous continuer ?" + +#~ msgid "Remove..." +#~ msgstr "Supprimer..." + +#~ msgid "Unknown size" +#~ msgstr "Taille inconnue" diff --git a/po/he.po b/po/he.po new file mode 100644 index 0000000..09207d7 --- /dev/null +++ b/po/he.po @@ -0,0 +1,753 @@ +# translation of he.po to Hebrew +# This file is put in the public domain. +# +# itai alter , 2006. +msgid "" +msgstr "" +"Project-Id-Version: he\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-28 22:10+0100\n" +"PO-Revision-Date: 2006-10-21 04:36+0200\n" +"Last-Translator: itai alter \n" +"Language-Team: Hebrew \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.2\n" + +#: _translatorinfo.cpp:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "ŚŚ™ŚȘŚ™ ŚŚœŚȘŚš - itai alter" + +#: _translatorinfo.cpp:3 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "itaialter@gmail.com" + +#: bookmarkssettingspage.cpp:57 +msgid "Icon" +msgstr "ŚŚ™Ś™Ś§Ś•ŚŸ" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "Ś©Ś" + +#: bookmarkssettingspage.cpp:59 +msgid "Location" +msgstr "ŚžŚ™Ś§Ś•Ś" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "Ś”Ś•ŚĄŚŁ..." + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "ŚąŚšŚ•Śš..." + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "Ś”Ś–Ś– ŚžŚąŚœŚ”" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "Ś”Ś–Ś– ŚžŚ˜Ś”" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "Ś”Ś•ŚĄŚŁ ŚĄŚ™ŚžŚ Ś™Ś™Ś”" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "ŚĄŚ™ŚžŚ Ś™Ś™Ś” Ś—Ś“Ś©Ś”" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "ŚąŚšŚ•Śš ŚĄŚ™ŚžŚ Ś™Ś™Ś”" + +#: bookmarkssidebarpage.cpp:110 +#, fuzzy +msgid "Add Bookmark..." +msgstr "Ś”Ś•ŚĄŚŁ ŚĄŚ™ŚžŚ Ś™Ś™Ś”" + +#: bookmarkssidebarpage.cpp:113 +#, fuzzy +msgid "Insert Bookmark..." +msgstr "ŚąŚšŚ•Śš ŚĄŚ™ŚžŚ Ś™Ś™Ś”" + +#: bookmarkssidebarpage.cpp:125 +#, fuzzy +msgid "Insert Bookmark" +msgstr "ŚąŚšŚ•Śš ŚĄŚ™ŚžŚ Ś™Ś™Ś”" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "ŚąŚžŚ•Ś“Ś•ŚȘ" + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "ŚȘŚŚšŚ™Śš" + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "Ś”ŚšŚ©ŚŚ•ŚȘ" + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "Ś‘ŚąŚœŚ™Ś" + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "Ś§Ś‘Ś•ŚŠŚ”" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "Ś’Ś•Ś“Śœ ŚŚ™Ś™Ś§Ś•ŚŸ" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "Ś§Ś˜ŚŸ" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "Ś‘Ś™Ś Ś•Ś Ś™" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "Ś’Ś“Ś•Śœ" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "Ś˜Ś§ŚĄŚ˜" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "ŚžŚ©Ś€Ś—ŚȘ Ś’Ś•Ś€ŚŸ" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "Ś’Ś•Ś“Śœ Ś’Ś•Ś€ŚŸ" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "&Ś”Ś–Ś– ŚœŚ›ŚŚŸ " + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "&Ś”ŚąŚȘŚ§ ŚœŚ›ŚŚŸ" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "&ŚŠŚ•Śš Ś§Ś™Ś©Ś•Śš Ś›ŚŚŸ" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "Escape" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "ŚȘŚ™Ś§Ś™Ś™Ś” Ś—Ś“Ś©Ś”" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "Ś”Ś›Ś ŚĄ Ś©Ś ŚȘŚ™Ś§Ś™Ś™Ś”: " + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "Ś Ś•ŚŠŚšŚ” ŚȘŚ™Ś§Ś™Ś™Ś” %1" + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "ŚȘŚ™Ś§Ś™Ś™Ś” Ś‘Ś©Ś %1 Ś›Ś‘Śš Ś§Ś™Ś™ŚžŚȘ" + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "Ś™ŚŠŚ™ŚšŚȘ ŚȘŚ™Ś§Ś™Ś™Ś” %1 Ś Ś›Ś©ŚœŚ”" + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "Ś Ś›Ś©ŚœŚ” Ś™ŚŠŚ™ŚšŚȘ Ś”Ś§Ś•Ś‘Ś„" + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "Ś§Ś•Ś‘Ś„ Ś‘Ś©Ś %1 Ś›Ś‘Śš Ś§Ś™Ś™Ś" + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "Ś Ś•ŚŠŚš Ś§Ś•Ś‘Ś„ %1 " + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "Ś™ŚŠŚ™ŚšŚȘ Ś§Ś•Ś‘Ś„ %1 Ś Ś›Ś©ŚœŚ”" + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "Ś”ŚŚ Ś‘ŚŚžŚȘ Ś‘ŚšŚŠŚ•Ś Śš ŚœŚžŚ—Ś•Ś§ ŚŚȘ %1 Ś”Ś€ŚšŚ™Ś˜Ś™Ś Ś”ŚžŚĄŚ•ŚžŚ Ś™Ś?" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "Ś”ŚŚ Ś‘ŚŚžŚȘ Ś‘ŚšŚŠŚ•Ś Śš ŚœŚžŚ—Ś•Ś§ ŚŚȘ '%1'?" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "Ś€ŚąŚ•ŚœŚȘ Ś”ŚžŚ—Ś™Ś§Ś” Ś”Ś•Ś©ŚœŚžŚ”" + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "Ś”ŚąŚȘŚ§ Ś§Ś•Ś‘Ś„ ŚŚ—Ś“" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "Ś”ŚąŚȘŚ§ %1 Ś§Ś‘ŚŠŚ™Ś" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "Ś€ŚąŚ•ŚœŚȘ Ś”Ś”ŚąŚȘŚ§Ś” Ś”Ś•Ś©ŚœŚžŚ”" + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "Ś€ŚąŚ•ŚœŚȘ Ś”Ś”ŚąŚ‘ŚšŚ” Ś”Ś•Ś©ŚœŚžŚ”" + +#: dolphin.cpp:1030 +msgid "Move to trash operation completed." +msgstr "Ś”Ś”ŚąŚ‘ŚšŚ” ŚœŚ€Ś— Ś”ŚŚ©Ś€Ś” Ś”Ś•Ś©ŚœŚžŚ”" + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "Ś‘Ś™ŚȘ" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "" + +#: dolphin.cpp:1108 +#, fuzzy +msgid "Network" +msgstr "ŚĄŚ™ŚžŚ Ś™Ś™Ś” Ś—Ś“Ś©Ś”" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "ŚȘŚ™Ś§Ś™Ś™Ś”..." + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "Ś©Ś Ś” Ś©Ś" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "Ś”ŚąŚ‘Śš ŚœŚ€Ś— Ś”ŚŚ©Ś€Ś”" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "ŚžŚŚ€Ś™Ś™Ś Ś™Ś" + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "Ś”Ś€Ś•Śš Ś‘Ś—Ś™ŚšŚ”" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "ŚŚ™Ś™Ś§Ś•Ś Ś™Ś" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "Ś€ŚšŚ˜Ś™Ś" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "ŚȘŚŠŚ•Ś’Ś” ŚžŚ§Ś“Ś™ŚžŚ”" + +#: dolphin.cpp:1253 +msgid "By Name" +msgstr "ŚœŚ€Ś™ Ś©Ś" + +#: dolphin.cpp:1258 +msgid "By Size" +msgstr "ŚœŚ€Ś™ Ś’Ś•Ś“Śœ" + +#: dolphin.cpp:1263 +msgid "By Date" +msgstr "ŚœŚ€Ś™ ŚȘŚŚšŚ™Śš" + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "Ś™Ś•ŚšŚ“" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "Ś”ŚšŚŚ” Ś§Ś‘ŚŠŚ™Ś Ś—Ś‘Ś•Ś™Ś™Ś" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "ŚžŚšŚŚ” ŚžŚ€Ś•ŚŠŚœ" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "ŚąŚšŚ•Śš ŚžŚ™Ś§Ś•Ś" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "ŚąŚ™Ś™ŚŸ" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "Ś”ŚȘŚŚ ŚžŚŚ€Ś™Ś™Ś Ś™ ŚžŚšŚŚ”" + +#: dolphin.cpp:1313 +msgid "Open Terminal" +msgstr "Ś€ŚȘŚ— Ś˜ŚšŚžŚ™Ś Śœ" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "ŚžŚŠŚ Ś§Ś•Ś‘Ś„..." + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "Ś”Ś©Ś•Ś•Ś” Ś‘Ś™ŚŸ Ś§Ś‘ŚŠŚ™Ś" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "ŚžŚąŚ“Ś›ŚŸ ŚžŚŚ€Ś™Ś™Ś Ś™ ŚžŚšŚŚ”" + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "ŚŠŚ•Śš Ś—Ś“Ś©" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "ŚžŚŠŚ‘ ŚžŚšŚŚ”" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "ŚĄŚžŚŸ ŚŚȘ Ś”ŚȘŚ™Ś§Ś™Ś™Ś” Ś”Ś Ś•Ś›Ś—Ś™ŚȘ" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "ŚžŚŚ€Ś™Ś™Ś Ś™Ś..." + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +msgid "Add folder as bookmark" +msgstr "Ś”Ś•ŚĄŚŁ ŚȘŚ™Ś§Ś™Ś™Ś” Ś›ŚĄŚ™ŚžŚ Ś™Ś™Ś”" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "&ŚŚ—Śš..." + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "Ś€ŚȘŚ— Ś‘ŚŚžŚŠŚąŚ•ŚȘ..." + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "Ś€ŚȘŚ— Ś‘ŚŚžŚŠŚąŚ•ŚȘ..." + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "Ś€ŚąŚ•ŚœŚ•ŚȘ" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "Ś”Ś’Ś“ŚšŚ•ŚȘ Ś“Ś•ŚœŚ€Ś™ŚŸ" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "Ś›ŚœŚœŚ™" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "ŚžŚŠŚ‘Ś™ ŚžŚšŚŚ”" + +#: dolphinview.cpp:220 +#, fuzzy +msgid "The new item name is invalid." +msgstr "Ś”ŚžŚ™Ś§Ś•Ś '%1' ŚŚ™Ś Ś• Ś–ŚžŚ™ŚŸ" + +#: dolphinview.cpp:231 +msgid "Renaming items..." +msgstr "" + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "" + +#: dolphinview.cpp:251 +#, fuzzy +msgid "Renaming failed (item '%1' already exists)." +msgstr "Ś§Ś•Ś‘Ś„ Ś‘Ś©Ś %1 Ś›Ś‘Śš Ś§Ś™Ś™Ś" + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "Ś”Ś§Ś•Ś‘Ś„ Ś›Ś‘Śš Ś§Ś™Ś™Ś" + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "Ś©Ś Ś§Ś•Ś‘Ś„ Ś©Ś•Ś Ś” Śž-'%1' Śœ-%2'" + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "Ś©Ś™Ś Ś•Ś™ Ś©Ś Ś”Ś§Ś•Ś‘Ś„ Śž-'%1' Śœ-'%2' Ś Ś›Ś©Śœ" + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "Ś”ŚžŚ™Ś§Ś•Ś ŚšŚ™Ś§" + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "Ś”ŚžŚ™Ś§Ś•Ś '%1' ŚŚ™Ś Ś• Ś–ŚžŚ™ŚŸ" + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "Ś˜Ś•ŚąŚŸ ŚĄŚ€ŚšŚ™Ś™Ś”..." + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "Ś€ŚšŚ™Ś˜ ŚŚ—Ś“" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "%1 Ś€ŚšŚ™Ś˜Ś™Ś" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "ŚȘŚ™Ś§Ś™Ś™Ś” ŚŚ—ŚȘ" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "%1 ŚȘŚ™Ś§Ś™Ś•ŚȘ" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "Ś§Ś•Ś‘Ś„ ŚŚ—Ś“" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "%1 Ś§Ś‘ŚŠŚ™Ś" + +#: dolphinview.cpp:994 +#, fuzzy +msgid "1 Folder selected" +msgstr "%1 ŚȘŚ™Ś§Ś™Ś•ŚȘ" + +#: dolphinview.cpp:997 +#, fuzzy +msgid "%1 Folders selected" +msgstr "%1 ŚȘŚ™Ś§Ś™Ś•ŚȘ" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "" + +#: editbookmarkdialog.cpp:72 +msgid "Icon:" +msgstr "ŚŚ™Ś™Ś§Ś•ŚŸ:" + +#: editbookmarkdialog.cpp:80 +msgid "Name:" +msgstr "Ś©Ś:" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +msgid "Location:" +msgstr "ŚžŚ™Ś§Ś•Ś:" + +#: filterbar.cpp:44 +#, fuzzy +msgid "Filter:" +msgstr "Ś§Ś•Ś‘Ś„ ŚŚ—Ś“" + +#: generalsettingspage.cpp:62 +#, fuzzy +msgid "Home URL" +msgstr "Ś‘Ś™ŚȘ" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "Ś”Ś©ŚȘŚžŚ© Ś‘ŚžŚ™Ś§Ś•Ś Ś”Ś Ś•Ś›Ś—Ś™" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "Ś”Ś©ŚȘŚžŚ© Ś‘ŚžŚ™Ś§Ś•Ś Ś‘ŚšŚ™ŚšŚȘ Ś”ŚžŚ—Ś“Śœ" + +#: generalsettingspage.cpp:88 +msgid "Default View Mode" +msgstr "ŚžŚŠŚ‘ ŚžŚšŚŚ” Ś‘ŚšŚ™ŚšŚȘ ŚžŚ—Ś“Śœ" + +#: generalsettingspage.cpp:103 +#, fuzzy +msgid "Start with split view" +msgstr "ŚžŚšŚŚ” ŚžŚ€Ś•ŚŠŚœ" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "Ś’Ś•Ś“Śœ ŚȘŚŠŚ•Ś’Ś” ŚžŚ§Ś“Ś™ŚžŚ”" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "ŚžŚĄŚ€Śš Ś©Ś•ŚšŚ•ŚȘ:" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "ŚšŚ•Ś—Ś‘ Ś˜Ś§ŚĄŚ˜:" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "ŚšŚ©ŚȘ (Ś’ŚšŚ™Ś“)" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "ŚĄŚ™Ś“Ś•Śš" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "ŚžŚ©ŚžŚŚœ ŚœŚ™ŚžŚ™ŚŸ" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "ŚžŚœŚžŚąŚœŚ” ŚœŚžŚ˜Ś”" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "ŚšŚ™Ś•Ś•Ś— ŚšŚ©ŚȘ" + +#: infosidebarpage.cpp:163 +msgid "%1 items selected" +msgstr "" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "" + +#: infosidebarpage.cpp:289 +#, fuzzy +msgid "Size:" +msgstr "Ś’Ś•Ś“Śœ" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "" + +#: itemeffectsmanager.cpp:185 +msgid "%1 (Folder)" +msgstr "%1 (ŚȘŚ™Ś§Ś™Ś™Ś”)" + +#: main.cpp:31 +msgid "Document to open" +msgstr "ŚžŚĄŚžŚš ŚœŚ€ŚȘŚ™Ś—Ś”" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "Ś“Ś•ŚœŚ€Ś™ŚŸ" + +#: main.cpp:40 +msgid "File Manager" +msgstr "ŚžŚ Ś”Śœ Ś§Ś‘ŚŠŚ™Ś" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "" + +#: main.cpp:48 main.cpp:49 +#, fuzzy +msgid "Documentation" +msgstr "ŚžŚĄŚžŚš ŚœŚ€ŚȘŚ™Ś—Ś”" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "ŚžŚ™Ś•ŚŸ" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "ŚĄŚšŚ’Śœ Ś Ś™Ś•Ś•Ś˜" + +#: renamedialog.cpp:30 +#, fuzzy +msgid "Rename Items" +msgstr "Ś©Ś Ś” Ś©Ś" + +#: renamedialog.cpp:39 +#, fuzzy +msgid "Rename the %1 selected items to:" +msgstr "Ś”ŚŚ Ś‘ŚŚžŚȘ Ś‘ŚšŚŠŚ•Ś Śš ŚœŚžŚ—Ś•Ś§ ŚŚȘ %1 Ś”Ś€ŚšŚ™Ś˜Ś™Ś Ś”ŚžŚĄŚ•ŚžŚ Ś™Ś?" + +#: renamedialog.cpp:43 +#, fuzzy +msgid "New name #" +msgstr "Ś©Ś Ś” Ś©Ś" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "" + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "Ś‘Ś˜Śœ: %1" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "ŚžŚ‘ŚŠŚą Ś€ŚąŚ•ŚœŚȘ Ś‘Ś™Ś˜Ś•Śœ..." + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "Ś‘Ś•ŚŠŚąŚ” Ś€ŚąŚ•ŚœŚȘ Ś‘Ś™Ś˜Ś•Śœ" + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "Ś—Ś–Ś•Śš ŚąŚœ: %1" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "ŚžŚ‘ŚŠŚą Ś€ŚąŚ•ŚœŚȘ Ś—Ś–ŚšŚ” ŚąŚœ" + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "Ś‘Ś•ŚŠŚąŚ” Ś€ŚąŚ•ŚœŚȘ Ś—Ś–ŚšŚ” ŚąŚœ" + +#: undomanager.cpp:347 +msgid "Link" +msgstr "Ś§Ś™Ś©Ś•Śš" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "ŚŠŚ•Śš ŚȘŚ™Ś§Ś™Ś™Ś” Ś—Ś“Ś©Ś”" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "ŚŠŚ•Śš Ś§Ś•Ś‘Ś„ Ś—Ś“Ś©" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "ŚąŚ™Ś™ŚŸ (Ctrl+B, Escape)" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "ŚąŚšŚ•Śš ŚžŚ™Ś§Ś•Ś (Ctrl+L)" + +#: urlnavigator.cpp:428 +msgid "Custom Path" +msgstr "" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "Ś”ŚšŚŚ” ŚžŚŚ€Ś™Ś™Ś Ś™Ś" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "ŚžŚŠŚ‘ ŚžŚšŚŚ”:" + +#: viewpropertiesdialog.cpp:70 +msgid "Sorting:" +msgstr "ŚžŚ™Ś•ŚŸ:" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "ŚĄŚ“Śš ŚžŚ™Ś•ŚŸ" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "ŚąŚ•ŚœŚ”" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "Ś”ŚšŚŚ” Ś§Ś‘ŚŠŚ™Ś Ś—Ś‘Ś•Ś™Ś™Ś" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "Ś”Ś—Śœ ŚžŚŚ€Ś™Ś™Ś Ś™ ŚžŚšŚŚ” Śœ:" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "ŚȘŚ™Ś§Ś™Ś™Ś” Ś Ś•Ś›Ś—Ś™ŚȘ" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "ŚȘŚ™Ś§Ś™Ś™Ś” Ś Ś•Ś›Ś—Ś™ŚȘ Ś•Ś›Śœ ŚȘŚȘ-Ś”ŚȘŚ™Ś§Ś™Ś•ŚȘ" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "Ś›Śœ Ś”ŚȘŚ™Ś§Ś™Ś•ŚȘ" + +#: viewpropertiesdialog.cpp:210 +msgid "" +"The view properties of all folders will be replaced. Do you want to continue?" +msgstr "ŚžŚŚ€Ś™Ś™Ś Ś™ Ś”ŚžŚšŚŚ” Ś©Śœ Ś›Śœ Ś”ŚȘŚ™Ś§Ś™Ś•ŚȘ Ś™Ś•Ś—ŚœŚ€Ś•. Ś”ŚŚ ŚœŚ”ŚžŚ©Ś™Śš?" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "ŚžŚŚ€Ś™Ś™Ś Ś™ Ś”ŚžŚšŚŚ” Ś©Śœ Ś›Śœ ŚȘŚȘ-Ś”ŚȘŚ™Ś§Ś™Ś•ŚȘ Ś™Ś•Ś—ŚœŚ€Ś•. Ś”ŚŚ ŚœŚ”ŚžŚ©Ś™Śš?" + +#~ msgid "Remove..." +#~ msgstr "Ś”ŚĄŚš..." + +#~ msgid "Sort column:" +#~ msgstr "ŚžŚ™Ś™ŚŸ ŚąŚžŚ•Ś“Ś”" diff --git a/po/it.po b/po/it.po new file mode 100644 index 0000000..9bfc9f8 --- /dev/null +++ b/po/it.po @@ -0,0 +1,755 @@ +# translation of it.po to +# translation of dolphin.po to +# This file is put in the public domain. +# +# Peter Penz , 2006. +# Stefano , 2006. +msgid "" +msgstr "" +"Project-Id-Version: it\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-28 22:10+0100\n" +"PO-Revision-Date: 2006-10-16 23:11+0200\n" +"Last-Translator: Stefano \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#: _translatorinfo.cpp:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "Stefano Faraone" + +#: _translatorinfo.cpp:3 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "xgotux@gmail.com" + +#: bookmarkssettingspage.cpp:57 +msgid "Icon" +msgstr "Icona" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "Nome" + +#: bookmarkssettingspage.cpp:59 +msgid "Location" +msgstr "Locazione" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "Aggiungi..." + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "Modifica..." + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "Sposta su" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "Sposta giu" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "Aggiungi segnalibro" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "Nuovo segnalibro" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "Modifica segnalibri" + +#: bookmarkssidebarpage.cpp:110 +#, fuzzy +msgid "Add Bookmark..." +msgstr "Aggiungi segnalibro" + +#: bookmarkssidebarpage.cpp:113 +#, fuzzy +msgid "Insert Bookmark..." +msgstr "Modifica segnalibri" + +#: bookmarkssidebarpage.cpp:125 +#, fuzzy +msgid "Insert Bookmark" +msgstr "Modifica segnalibri" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "Colonne" + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "Data" + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "Permessi" + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "Proprietario" + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "Gruppo" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "Dimensione icone" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "Piccole" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "Medie" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "Grandi" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "Testo" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "Carattere" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "Dimensione carattere" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "&Sposta qui" + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "&Copia qui" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "&Collega qui" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "Esci" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "Nuova cartella" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "Inserisci il nome della cartella" + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "Cartella %1 creata" + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "Una cartella con il nome %1 esiste giĂ ." + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "Creazione della cartella %1 fallita." + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "Non Ăš possibile creare il file." + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "Un file con il nome %1 esiste giĂ ." + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "Il file %1 Ăš stato creato." + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "Creazione del file %1 fallita." + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "Vuoi veramente eliminare i %1 oggetti selezionati?" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "Vuoi veramente eliminare %1?" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "Eliminazione completata." + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "Incolla 1 file" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "Incolla %1 file" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "Copia completata." + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "Spostamento completato." + +#: dolphin.cpp:1030 +msgid "Move to trash operation completed." +msgstr "Cestinatura completata." + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "Home" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "" + +#: dolphin.cpp:1108 +#, fuzzy +msgid "Network" +msgstr "Nuovo segnalibro" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "Cartella..." + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "Rinomina" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "Sposta nel cestino" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "Propr&ietĂ " + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "Inverti selezione" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "Icone" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "Dettagli" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "Anteprima" + +#: dolphin.cpp:1253 +msgid "By Name" +msgstr "Per nome" + +#: dolphin.cpp:1258 +msgid "By Size" +msgstr "Per dimensione" + +#: dolphin.cpp:1263 +msgid "By Date" +msgstr "Per data" + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "Discendente" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "Mostra i file nascosti" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "Dividi la vista" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "Modifica la locazione" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "Esplora" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "Imposta la visualizzazione" + +#: dolphin.cpp:1313 +msgid "Open Terminal" +msgstr "Apri un terminale" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "Cerca..." + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "Compara i file" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "Aggiornamento proprietĂ  visualizzazione" + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "Crea nuovo" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "Vista" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "Aggiungi ai segnalibri" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "ProprietĂ " + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +#, fuzzy +msgid "Add folder as bookmark" +msgstr "Aggiungi segnalibro" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "&Altro" + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "Apri con" + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "Apri con..." + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "Azioni" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "Preferenze Dolphin" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "Generale" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "Vista" + +#: dolphinview.cpp:220 +#, fuzzy +msgid "The new item name is invalid." +msgstr "La locazione %1 non Ăš valida" + +#: dolphinview.cpp:231 +#, fuzzy +msgid "Renaming items..." +msgstr "Calcolo dimensioni..." + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "" + +#: dolphinview.cpp:251 +#, fuzzy +msgid "Renaming failed (item '%1' already exists)." +msgstr "Un file con il nome %1 esiste giĂ ." + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "Il file esiste giĂ " + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "Rinomino il file %1 a %2" + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "Processo fallito" + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "La locazione Ăš vuota" + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "La locazione %1 non Ăš valida" + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "Carico l' indirizzo" + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "1 elemento" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "%1 elementi" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "1 cartella" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "%1 cartelle" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "1 file" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "%1 file" + +#: dolphinview.cpp:994 +msgid "1 Folder selected" +msgstr "1 Cartella selezionata" + +#: dolphinview.cpp:997 +msgid "%1 Folders selected" +msgstr "%1 Cartelle selezionate" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "1 File selezionato (%1)" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "%1 File selezionati (%1)" + +#: editbookmarkdialog.cpp:72 +msgid "Icon:" +msgstr "Icona:" + +#: editbookmarkdialog.cpp:80 +msgid "Name:" +msgstr "Nome:" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +msgid "Location:" +msgstr "Locazione:" + +#: filterbar.cpp:44 +#, fuzzy +msgid "Filter:" +msgstr "1 file" + +#: generalsettingspage.cpp:62 +#, fuzzy +msgid "Home URL" +msgstr "Home" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "Usa la locazione corrente" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "Usa la locazione standard" + +#: generalsettingspage.cpp:88 +msgid "Default View Mode" +msgstr "Vista standard" + +#: generalsettingspage.cpp:103 +msgid "Start with split view" +msgstr "Avvia con la finestra divisa" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "Avvia con la barra degli indirizzi editabile" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "Dimensioni anteprima" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "Numero di linee" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "Larghezza testo:" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "Griglia" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "Allineamento:" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "Da sinistra a destra" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "Dall 'alto in basso" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "Spaziatura griglia" + +#: infosidebarpage.cpp:163 +#, fuzzy +msgid "%1 items selected" +msgstr "%1 Cartelle selezionate" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "" + +#: infosidebarpage.cpp:289 +#, fuzzy +msgid "Size:" +msgstr "Per dimensione" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "" + +#: itemeffectsmanager.cpp:185 +msgid "%1 (Folder)" +msgstr "%1 (Cartella)" + +#: main.cpp:31 +msgid "Document to open" +msgstr "Documento da aprire" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "" + +#: main.cpp:40 +msgid "File Manager" +msgstr "" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "" + +#: main.cpp:48 main.cpp:49 +#, fuzzy +msgid "Documentation" +msgstr "Documento da aprire" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "Disponi" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "Barra di navigazione" + +#: renamedialog.cpp:30 +#, fuzzy +msgid "Rename Items" +msgstr "Rinomina" + +#: renamedialog.cpp:39 +#, fuzzy +msgid "Rename the %1 selected items to:" +msgstr "Vuoi veramente eliminare i %1 oggetti selezionati?" + +#: renamedialog.cpp:43 +#, fuzzy +msgid "New name #" +msgstr "Rinomina" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "%1% di %2 usati" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "Calcolo dimensioni..." + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "Annulla:%1" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "Annullamento in corso..." + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "Annullamento completato." + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "Rifai:%1" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "Operazione in corso..." + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "Operazione completata." + +#: undomanager.cpp:347 +msgid "Link" +msgstr "Collegamento" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "Crea una nuova cartella" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "Crea un nuovo file" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "Esplora (Ctrl+B, Escape)" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "Modifica la locazione (Ctrl+L)" + +#: urlnavigator.cpp:428 +msgid "Custom Path" +msgstr "" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "ProprietĂ  vista" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "Modo vista" + +#: viewpropertiesdialog.cpp:70 +msgid "Sorting:" +msgstr "Disposizione:" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "Ordinamento" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "Ascendente" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "Mostra i file nascosti" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "Applica le proprietĂ  vista a:" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "Cartella corrente" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "Cartella corrente incluse tutte le sottocartelle" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "Tutte le cartelle" + +#: viewpropertiesdialog.cpp:210 +msgid "" +"The view properties of all folders will be replaced. Do you want to continue?" +msgstr "Le proprietĂ  vista saranno sovrascritte. Vuoi continuare?" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "Le proprietĂ  vista saranno sovrascritte. Vuoi continuare?" + +#~ msgid "Remove..." +#~ msgstr "Rimuovi..." + +#~ msgid "Unknown size" +#~ msgstr "Dimensione sconosciuta" diff --git a/po/pl.po b/po/pl.po new file mode 100644 index 0000000..c03aa9c --- /dev/null +++ b/po/pl.po @@ -0,0 +1,738 @@ +# SOME DESCRIPTIVE TITLE. +# This file is put in the public domain. +# FIRST AUTHOR , YEAR. +# + +msgid "" +msgstr "" +"Project-Id-Version: dolphin-0.8\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-02-06 20:39-0500\n" +"PO-Revision-Date: 2004-08-08 19:39+0200\n" +"Last-Translator: Piotr MaliƄski \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: _translatorinfo.cpp:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "Piotr MaliƄski" + +#: _translatorinfo.cpp:3 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "riklaunim@gmail.com" + +#: bookmarkssettingspage.cpp:57 +msgid "Icon" +msgstr "Ikona" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "Nazwa" + +#: bookmarkssettingspage.cpp:59 +msgid "Location" +msgstr "PoƂoĆŒenie" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "Dodaj..." + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "Edytuj..." + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "W gĂłrę" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "W dóƂ" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "Dodaj ZakƂadkę" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "Nowa ZakƂadka" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "Edytuj ZakƂadki" + +#: bookmarkssidebarpage.cpp:110 +msgid "Add Bookmark..." +msgstr "Dodaj ZakƂadkę..." + +#: bookmarkssidebarpage.cpp:113 +msgid "Insert Bookmark..." +msgstr "Wstaw ZakƂadkę..." + +#: bookmarkssidebarpage.cpp:125 +msgid "Insert Bookmark" +msgstr "Wstaw ZakƂadkę" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "Kolumny" + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "Data" + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "Uprawnienia" + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "WƂaƛciciel" + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "Grupa" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "Rozmiar Ikony" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "MaƂa" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "ƚrednia" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "DuĆŒa" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "Tekst" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "Czcionki:" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "Rozmiar czcionki:" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "&Przenieƛ Tutaj" + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "&Skopiuj Tutaj" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "&Linkuj Tutaj" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "WyjdĆș" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "Nowy Folder" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "Podaj nazwę:" + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "Stworzono folder %1." + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "Folder o nazwie %1 juĆŒ istnieje" + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "BƂąd tworzenia foldera %1." + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "Nie mogę utworzyć pliku" + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "Plik o nazwie %1 juĆŒ istnieje" + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "Stworzono plik %1." + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "Tworzenie pliku %1 nie udaƂo się." + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "Czy na pewno chcesz usunąć zaznaczone elementy (%1) ?" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "Skasować '%1' ?" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "Kasowanie zakoƄczone" + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "Wklej 1 Plik" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "Wklej %1 PlikĂłw" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "Kopiowanie zakoƄczone." + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "Przenoszenie zakoƄczone." + +#: dolphin.cpp:1030 +msgid "Move to trash operation completed." +msgstr "Przenoszenie do kosza zakoƄczone" + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "MĂłj Folder" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "Noƛniki" + +#: dolphin.cpp:1108 +msgid "Network" +msgstr "Sieć" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "Folder GƂówny" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "Kosz" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "Folder..." + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "ZmieƄ Nazwę" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "Przenieƛ do Kosza" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "&WƂaƛciwoƛci" + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "Odwróć Zaznaczenie" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "Ikony" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "SzczegóƂy" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "Podgląd" + +#: dolphin.cpp:1253 +msgid "By Name" +msgstr "Wg. Nazwy" + +#: dolphin.cpp:1258 +msgid "By Size" +msgstr "Wg. Rozmiaru" + +#: dolphin.cpp:1263 +msgid "By Date" +msgstr "Wg. Daty" + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "Malejąco" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "PokaĆŒ Ukryte Pliki" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "Podziel Widok" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "Edytuj PoƂoĆŒenie" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "Przeglądaj" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "Pasek Boczny" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "Dostosuj WƂaƛciwoƛci Widoku..." + +#: dolphin.cpp:1313 +msgid "Open Terminal" +msgstr "OtwĂłrz Terminal" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "ZnajdĆș Plik..." + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "PokaĆŒ Pasek Filtru" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "PorĂłwnaj Pliki" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "Aktualizuję ustawienia widoku..." + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "StwĂłrz Nowe" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "Tryb Widoku" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "Dodaj Folder do ZakƂadek" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "WƂaƛciwoƛci..." + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +msgid "Add folder as bookmark" +msgstr "Dodaj folder jako zakƂadkę" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "&Inne..." + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "OtwĂłrz za pomocą" + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "OtwĂłrz za pomocą..." + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "Akcje" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "Preferencje" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "OgĂłlne" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "Tryby Widoku" + +#: dolphinview.cpp:220 +msgid "The new item name is invalid." +msgstr "Nazwa nowego elementu jest niepoprawna" + +#: dolphinview.cpp:231 +msgid "Renaming items..." +msgstr "Zmieniam nazwy..." + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "Zmienianie zakoƄczone." + +#: dolphinview.cpp:251 +msgid "Renaming failed (item '%1' already exists)." +msgstr "Zmiana nazwy nie udaƂa się ('%1' juĆŒ istnieje)." + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "Plik juĆŒ istnieje" + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "Zmieniono nazwę '%1' na '%2'." + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "BƂąd zmiany nazwy pliku '%1' na '%2'." + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "Pusta lokacja." + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "BƂędna lokacja '%1'" + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "Ɓaduję folder..." + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "1 Element" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "%1 ElementĂłw" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "1 Folder" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "%1 FolderĂłw" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "1 Plik" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "%1 PlikĂłw" + +#: dolphinview.cpp:994 +msgid "1 Folder selected" +msgstr "1 Folder zaznaczony" + +#: dolphinview.cpp:997 +msgid "%1 Folders selected" +msgstr "%1 zaznaczonych FolderĂłw" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "1 Plik zaznaczony (%1)" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "%1 zaznaczonych PlikĂłw (%1)" + +#: editbookmarkdialog.cpp:72 +msgid "Icon:" +msgstr "Ikona:" + +#: editbookmarkdialog.cpp:80 +msgid "Name:" +msgstr "Nazwa:" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +msgid "Location:" +msgstr "Lokacja:" + +#: filterbar.cpp:44 +msgid "Filter:" +msgstr "Filtr:" + +#: generalsettingspage.cpp:62 +msgid "Home URL" +msgstr "URL Folderu UĆŒytkownika" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "UĆŒyj bierzącej lokacji" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "UĆŒyj domyƛlnej lokacji" + +#: generalsettingspage.cpp:88 +msgid "Default View Mode" +msgstr "Domyƛlny tryb widoku" + +#: generalsettingspage.cpp:103 +msgid "Start with split view" +msgstr "Startuj z widokiem podzielonym" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "Startuj z edytowalnym paskiem lokacji" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "Rozmiar Podglądu" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "Liczba linii:" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "DƂugoƛć tekstu:" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "Siatka" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "Rozmieszczenie:" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "Od lewa do prawa" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "Od gĂłry do doƂu" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "Odstęp siatki:" + +#: infosidebarpage.cpp:163 +msgid "%1 items selected" +msgstr "%1 zaznaczonych elementĂłw" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "Typ:" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "Folder" + +#: infosidebarpage.cpp:289 +msgid "Size:" +msgstr "Rozmiar:" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "Modyfikacja:" + +#: itemeffectsmanager.cpp:185 +msgid "%1 (Folder)" +msgstr "%1 (Folder)" + +#: main.cpp:31 +msgid "Document to open" +msgstr "Dokument do otwarcia" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "Dolphin" + +#: main.cpp:40 +msgid "File Manager" +msgstr "MenadĆŒer PlikĂłw" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "TwĂłrca" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "Programista" + +#: main.cpp:48 main.cpp:49 +msgid "Documentation" +msgstr "Dokumentacja" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "... za ƛwietne wsparcie i wspaniaƂa Ƃatki" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "... za ich Ƃatki" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "... za ich tƂumaczenia" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "Sortuj" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "Pasek Nawigacyjny" + +#: renamedialog.cpp:30 +msgid "Rename Items" +msgstr "ZmieƄ Nazwy" + +#: renamedialog.cpp:39 +msgid "Rename the %1 selected items to:" +msgstr "ZmieƄ nazwy %1 elementĂłw na:" + +#: renamedialog.cpp:43 +msgid "New name #" +msgstr "Nowa nazwa #" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "(# zostanie zastąpione rosnącymi liczbami)" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "%1% z %2 uĆŒywane" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "Okreƛlam rozmiar..." + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "Cofnij: %1" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "Cofam..." + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "Cofnięto akcję." + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "PowtĂłrz: %1" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "Powtarzam..." + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "PowtĂłrzono operację." + +#: undomanager.cpp:347 +msgid "Link" +msgstr "Odnoƛnik" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "StwĂłrz Nowy Folder" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "StwĂłrz Nowy Plik" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "Przeglądaj (Ctrl+B, Escape)" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "Edytuj lokację (Ctrl+L)" + +#: urlnavigator.cpp:428 +msgid "Custom Path" +msgstr "WƂasna ƚcieĆŒka" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "WƂaƛciwoƛci Widoku" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "Tryb Widoku:" + +#: viewpropertiesdialog.cpp:70 +msgid "Sorting:" +msgstr "Sortowanie:" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "Kolejnoƛć Sortowania:" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "Malejąco" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "PokaĆŒ ukryte pliki" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "Zastosuj ustawienia widoku do:" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "Bierzący folder" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "Bierzący folder i wszystkie podfoldery" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "Wszystkie foldery" + +#: viewpropertiesdialog.cpp:210 +msgid "" +"The view properties of all folders will be replaced. Do you want to continue?" +msgstr "WƂaƛciwoƛci widoku wszystkich folderĂłw zostaną zmienione. Kontynuować?" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "" +"WƂaƛciwoƛci widoku wszystkich podfolderĂłw zostaną zmienione. Kontynuować?" + +#~ msgid "Remove..." +#~ msgstr "UsuƄ..." + +#~ msgid "Unknown size" +#~ msgstr "Nieznany rozmiar" diff --git a/po/ru.po b/po/ru.po new file mode 100644 index 0000000..62a03c3 --- /dev/null +++ b/po/ru.po @@ -0,0 +1,733 @@ +# translation of ru.po to Russian +# This file is put in the public domain. +# +# ИĐČĐ°Đœ Đ‘ĐŸĐ±Ń€ĐŸĐČ , 2006. +# Igor Stepin , 2007. +msgid "" +msgstr "" +"Project-Id-Version: ru\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-28 22:10+0100\n" +"PO-Revision-Date: 2007-02-10 18:04+0400\n" +"Last-Translator: Igor Stepin \n" +"Language-Team: Russian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: _translatorinfo.cpp:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "ИĐČĐ°Đœ Đ‘ĐŸĐ±Ń€ĐŸĐČ, Đ˜ĐłĐŸŃ€ŃŒ ĐĄŃ‚Đ”ĐżĐžĐœ" + +#: _translatorinfo.cpp:3 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "ibobrik@gmail.com, igor_for_os@stepin.name" + +#: bookmarkssettingspage.cpp:57 +msgid "Icon" +msgstr "Đ—ĐœĐ°Ń‡ĐŸĐș" + +#: bookmarkssettingspage.cpp:58 +msgid "Name" +msgstr "Đ˜ĐŒŃ" + +#: bookmarkssettingspage.cpp:59 +msgid "Location" +msgstr "Путь" + +#: bookmarkssettingspage.cpp:76 +msgid "Add..." +msgstr "Đ”ĐŸĐ±Đ°ĐČоть..." + +#: bookmarkssettingspage.cpp:81 bookmarkssidebarpage.cpp:114 +msgid "Edit..." +msgstr "РДЎаĐșŃ‚ĐžŃ€ĐŸĐČать..." + +#: bookmarkssettingspage.cpp:91 +msgid "Move Up" +msgstr "ĐŸĐ”Ń€Đ”ĐŒĐ”ŃŃ‚ĐžŃ‚ŃŒ ĐČŃ‹ŃˆĐ”" + +#: bookmarkssettingspage.cpp:96 +msgid "Move Down" +msgstr "ĐŸĐ”Ń€Đ”ĐŒĐ”ŃŃ‚ĐžŃ‚ŃŒ ĐœĐžĐ¶Đ”" + +#: bookmarkssettingspage.cpp:196 bookmarkssidebarpage.cpp:170 +msgid "Add Bookmark" +msgstr "Đ”ĐŸĐ±Đ°ĐČоть Đ·Đ°ĐșлаЎĐșу" + +#: bookmarkssettingspage.cpp:197 +msgid "New bookmark" +msgstr "ĐĐŸĐČая Đ·Đ°ĐșлаЎĐșĐ°" + +#: bookmarkssettingspage.cpp:224 bookmarkssidebarpage.cpp:149 +msgid "Edit Bookmark" +msgstr "РДЎаĐșŃ‚ĐžŃ€ĐŸĐČать Đ·Đ°ĐșлаЎĐșĐž" + +#: bookmarkssidebarpage.cpp:110 +msgid "Add Bookmark..." +msgstr "Đ”ĐŸĐ±Đ°ĐČоть Đ·Đ°ĐșлаЎĐșу..." + +#: bookmarkssidebarpage.cpp:113 +msgid "Insert Bookmark..." +msgstr "Đ”ĐŸĐ±Đ°ĐČоть Đ·Đ°ĐșлаЎĐșу..." + +#: bookmarkssidebarpage.cpp:125 +msgid "Insert Bookmark" +msgstr "Đ”ĐŸĐ±Đ°ĐČоть Đ·Đ°ĐșлаЎĐșу" + +#: detailsviewsettingspage.cpp:60 +msgid "Columns" +msgstr "ĐĄŃ‚ĐŸĐ»Đ±Ń†Ń‹" + +#: detailsviewsettingspage.cpp:65 +msgid "Date" +msgstr "Дата" + +#: detailsviewsettingspage.cpp:68 +msgid "Permissions" +msgstr "ПраĐČĐ°" + +#: detailsviewsettingspage.cpp:71 +msgid "Owner" +msgstr "ВлаЎДлДц" + +#: detailsviewsettingspage.cpp:74 +msgid "Group" +msgstr "Группа" + +#: detailsviewsettingspage.cpp:78 iconsviewsettingspage.cpp:69 +msgid "Icon Size" +msgstr "Đ Đ°Đ·ĐŒĐ”Ń€ Đ·ĐœĐ°Ń‡ĐșĐ°" + +#: detailsviewsettingspage.cpp:81 iconsviewsettingspage.cpp:77 +#: iconsviewsettingspage.cpp:99 iconsviewsettingspage.cpp:133 +#: iconsviewsettingspage.cpp:150 +msgid "Small" +msgstr "ĐœĐ°Đ»Đ”ĐœŃŒĐșОД" + +#: detailsviewsettingspage.cpp:82 iconsviewsettingspage.cpp:134 +#: iconsviewsettingspage.cpp:151 +msgid "Medium" +msgstr "ĐĄŃ€Đ”ĐŽĐœĐžĐ”" + +#: detailsviewsettingspage.cpp:83 iconsviewsettingspage.cpp:83 +#: iconsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:135 +#: iconsviewsettingspage.cpp:152 +msgid "Large" +msgstr "Đ‘ĐŸĐ»ŃŒŃˆĐžĐ”" + +#: detailsviewsettingspage.cpp:105 iconsviewsettingspage.cpp:115 +msgid "Text" +msgstr "йДĐșст" + +#: detailsviewsettingspage.cpp:109 iconsviewsettingspage.cpp:119 +msgid "Font family:" +msgstr "йрофт:" + +#: detailsviewsettingspage.cpp:113 iconsviewsettingspage.cpp:123 +msgid "Font size:" +msgstr "Đ Đ°Đ·ĐŒĐ”Ń€ шрофта:" + +#: dolphin.cpp:127 +msgid "&Move Here" +msgstr "&ĐŸĐ”Ń€Đ”ĐŒĐ”ŃŃ‚ĐžŃ‚ŃŒ сюЮа" + +#: dolphin.cpp:128 +msgid "&Copy Here" +msgstr "&ĐšĐŸĐżĐžŃ€ĐŸĐČать сюЮа" + +#: dolphin.cpp:129 +msgid "&Link Here" +msgstr "&ĐĄĐŸĐ·ĐŽĐ°Ń‚ŃŒ ссылĐșу" + +#: dolphin.cpp:132 +msgid "Escape" +msgstr "Đ’Ń‹Ń…ĐŸĐŽ" + +#: dolphin.cpp:351 dolphin.cpp:353 dolphin.cpp:357 +msgid "New Folder" +msgstr "ĐĄĐŸĐ·ĐŽĐ°Ń‚ŃŒ папĐșу" + +#: dolphin.cpp:358 +msgid "Enter folder name:" +msgstr "ВĐČДЎОтД ĐœĐ°Đ·ĐČĐ°ĐœĐžĐ” папĐșĐž:" + +#: dolphin.cpp:383 +msgid "Created folder %1." +msgstr "ĐĄĐŸĐ·ĐŽĐ°ĐœĐ° папĐșĐ° %1." + +#: dolphin.cpp:393 +msgid "A folder named %1 already exists." +msgstr "ПапĐșĐ° %1 ужД ŃŃƒŃ‰Đ”ŃŃ‚ĐČŃƒĐ”Ń‚." + +#: dolphin.cpp:397 +msgid "Creating of folder %1 failed." +msgstr "ĐĄĐŸĐ·ĐŽĐ°Ń‚ŃŒ папĐșу %1 ĐœĐ” ŃƒĐŽĐ°Đ»ĐŸŃŃŒ." + +#: dolphin.cpp:434 +msgid "Could not create file." +msgstr "ĐĐ”ĐČĐŸĐ·ĐŒĐŸĐ¶ĐœĐŸ ŃĐŸĐ·ĐŽĐ°Ń‚ŃŒ фаĐčĐ»." + +#: dolphin.cpp:478 +msgid "A file named %1 already exists." +msgstr "ЀаĐčĐ» %1 ужД ŃŃƒŃ‰Đ”ŃŃ‚ĐČŃƒĐ”Ń‚." + +#: dolphin.cpp:488 +msgid "Created file %1." +msgstr "ĐĄĐŸĐ·ĐŽĐ°Đœ фаĐčĐ» %1." + +#: dolphin.cpp:498 +msgid "Creating of file %1 failed." +msgstr "ĐĄĐŸĐ·ĐŽĐ°ĐœĐžĐ” фаĐčла %1 Đ·Đ°ĐČĐ”Ń€ŃˆĐžĐ»ĐŸŃŃŒ ĐœĐ”ŃƒĐŽĐ°Ń‡Đ”Đč." + +#: dolphin.cpp:527 +msgid "Do you really want to delete the %1 selected items?" +msgstr "Вы ĐŽĐ”ĐčстĐČĐžŃ‚Đ”Đ»ŃŒĐœĐŸ Ń…ĐŸŃ‚ĐžŃ‚Đ” ŃƒĐŽĐ°Đ»ĐžŃ‚ŃŒ %1 ŃĐ»Đ”ĐŒĐ”ĐœŃ‚ĐŸĐČ?" + +#: dolphin.cpp:531 +msgid "Do you really want to delete '%1'?" +msgstr "Вы ĐŽĐ”ĐčстĐČĐžŃ‚Đ”Đ»ŃŒĐœĐŸ Ń…ĐŸŃ‚ĐžŃ‚Đ” ŃƒĐŽĐ°Đ»ĐžŃ‚ŃŒ %1?" + +#: dolphin.cpp:582 +msgid "Delete operation completed." +msgstr "ĐŁĐŽĐ°Đ»Đ”ĐœĐžĐ” Đ·Đ°ĐČĐ”Ń€ŃˆĐ”ĐœĐŸ." + +#: dolphin.cpp:700 +msgid "Paste 1 File" +msgstr "ВстаĐČоть 1 фаĐčĐ»" + +#: dolphin.cpp:703 +msgid "Paste %1 Files" +msgstr "ВстаĐČоть %1 фаĐčĐ»ĐŸĐČ" + +#: dolphin.cpp:1022 +msgid "Copy operation completed." +msgstr "ĐžĐżĐ”Ń€Đ°Ń†ĐžŃ ĐșĐŸĐżĐžŃ€ĐŸĐČĐ°ĐœĐžŃ Đ·Đ°ĐČĐ”Ń€ŃˆĐ”ĐœĐ°." + +#: dolphin.cpp:1026 +msgid "Move operation completed." +msgstr "ĐžĐżĐ”Ń€Đ°Ń†ĐžŃ ĐżĐ”Ń€Đ”ĐŒĐ”Ń‰Đ”ĐœĐžŃ Đ·Đ°ĐČĐ”Ń€ŃˆĐ”ĐœĐ°." + +#: dolphin.cpp:1030 +msgid "Move to trash operation completed." +msgstr "ĐžĐżĐ”Ń€Đ°Ń†ĐžŃ ĐżĐ”Ń€Đ”ĐŒĐ”Ń‰Đ”ĐœĐžŃ ĐČ ĐșĐŸŃ€Đ·ĐžĐœŃƒ Đ·Đ°ĐČĐ”Ń€ŃˆĐ”ĐœĐ°." + +#: dolphin.cpp:1106 +msgid "Home" +msgstr "Đ”ĐŸĐŒĐŸĐč" + +#: dolphin.cpp:1107 +msgid "Storage Media" +msgstr "ĐŁŃŃ‚Ń€ĐŸĐčстĐČĐ° Ń…Ń€Đ°ĐœĐ”ĐœĐžŃ ĐŽĐ°ĐœĐœŃ‹Ń…" + +#: dolphin.cpp:1108 +msgid "Network" +msgstr "ĐĄĐ”Ń‚ŃŒ" + +#: dolphin.cpp:1109 +msgid "Root" +msgstr "ĐšĐŸŃ€Đ”ĐœŃŒ" + +#: dolphin.cpp:1110 +msgid "Trash" +msgstr "ĐšĐŸŃ€Đ·ĐžĐœĐ°" + +#: dolphin.cpp:1171 +msgid "Folder..." +msgstr "ПапĐșу..." + +#: dolphin.cpp:1176 renamedialog.cpp:33 undomanager.cpp:348 +msgid "Rename" +msgstr "ĐŸĐ”Ń€Đ”ĐžĐŒĐ”ĐœĐŸĐČать" + +#: dolphin.cpp:1180 undomanager.cpp:349 +msgid "Move to Trash" +msgstr "ĐŸĐ”Ń€Đ”ĐŒĐ”ŃŃ‚ĐžŃ‚ŃŒ ĐČ ĐșĐŸŃ€Đ·ĐžĐœŃƒ" + +#: dolphin.cpp:1190 +msgid "Propert&ies" +msgstr "Наст&Ń€ĐŸĐčĐșĐž" + +#: dolphin.cpp:1222 +msgid "Invert Selection" +msgstr "Đ˜ĐœĐČĐ”Ń€Ń‚ĐžŃ€ĐŸĐČать ĐČŃ‹ĐŽĐ”Đ»Đ”ĐœĐžĐ”" + +#: dolphin.cpp:1235 generalsettingspage.cpp:92 viewpropertiesdialog.cpp:64 +#: viewsettingspage.cpp:42 +msgid "Icons" +msgstr "Đ—ĐœĐ°Ń‡ĐșĐž" + +#: dolphin.cpp:1241 generalsettingspage.cpp:93 viewpropertiesdialog.cpp:65 +#: viewsettingspage.cpp:46 +msgid "Details" +msgstr "ДДталО" + +#: dolphin.cpp:1247 generalsettingspage.cpp:94 viewpropertiesdialog.cpp:66 +#: viewsettingspage.cpp:50 +msgid "Previews" +msgstr "ĐŸŃ€Đ”ĐŽĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€" + +#: dolphin.cpp:1253 +msgid "By Name" +msgstr "ĐŸĐŸ ĐžĐŒĐ”ĐœĐž" + +#: dolphin.cpp:1258 +msgid "By Size" +msgstr "ĐŸĐŸ Ń€Đ°Đ·ĐŒĐ”Ń€Ńƒ" + +#: dolphin.cpp:1263 +msgid "By Date" +msgstr "ĐŸĐŸ ĐŽĐ°Ń‚Đ”" + +#: dolphin.cpp:1268 viewpropertiesdialog.cpp:87 +msgid "Descending" +msgstr "В ĐżĐŸŃ€ŃĐŽĐșĐ” ŃƒĐ±Ń‹ĐČĐ°ĐœĐžŃ" + +#: dolphin.cpp:1271 +msgid "Show Hidden Files" +msgstr "ĐŸĐŸĐșĐ°Đ·Ń‹ĐČать сĐșрытыД фаĐčлы" + +#: dolphin.cpp:1275 +msgid "Split View" +msgstr "Đ Đ°Đ·ĐŽĐ”Đ»ĐžŃ‚ŃŒ ĐŸĐșĐœĐŸ" + +#: dolphin.cpp:1290 +msgid "Edit Location" +msgstr "Đ˜Đ·ĐŒĐ”ĐœĐ”ĐœĐžĐ” путо" + +#: dolphin.cpp:1294 +msgid "Browse" +msgstr "ĐžĐ±Đ·ĐŸŃ€" + +#: dolphin.cpp:1298 +msgid "Sidebar" +msgstr "Đ‘ĐŸĐșĐŸĐČая ĐżĐ°ĐœĐ”Đ»ŃŒ" + +#: dolphin.cpp:1302 +msgid "Adjust View Properties..." +msgstr "ĐŸĐ°Ń€Đ°ĐŒĐ”Ń‚Ń€Ń‹ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ°..." + +#: dolphin.cpp:1313 +msgid "Open Terminal" +msgstr "ОтĐșрыть Ń‚Đ”Ń€ĐŒĐžĐœĐ°Đ»" + +#: dolphin.cpp:1318 +msgid "Find File..." +msgstr "НаĐčто фаĐčĐ»..." + +#: dolphin.cpp:1323 +msgid "Show Filter Bar" +msgstr "ĐŸĐŸĐșĐ°Đ·Đ°Ń‚ŃŒ ĐżĐ°ĐœĐ”Đ»ŃŒ Ń„ĐžĐ»ŃŒŃ‚Ń€Đ°Ń†ĐžĐž" + +#: dolphin.cpp:1327 +msgid "Compare Files" +msgstr "СраĐČĐœĐžŃ‚ŃŒ фаĐčлы" + +#: dolphin.cpp:1554 +msgid "Updating view properties..." +msgstr "ĐžĐ±ĐœĐŸĐČĐ»Đ”ĐœĐžĐ” ĐżĐ°Ń€Đ°ĐŒĐ”Ń‚Ń€ĐŸĐČ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ°..." + +#. i18n: file ./dolphinui.rc line 6 +#: dolphincontextmenu.cpp:121 rc.cpp:3 +#, no-c-format +msgid "Create New" +msgstr "ĐĄĐŸĐ·ĐŽĐ°Ń‚ŃŒ" + +#. i18n: file ./dolphinui.rc line 24 +#: dolphincontextmenu.cpp:139 rc.cpp:6 +#, no-c-format +msgid "View Mode" +msgstr "Đ Đ”Đ¶ĐžĐŒ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ°" + +#: dolphincontextmenu.cpp:142 dolphincontextmenu.cpp:211 +msgid "Bookmark this folder" +msgstr "Đ”ĐŸĐ±Đ°ĐČоть папĐșу ĐČ Đ·Đ°ĐșлаЎĐșĐž" + +#: dolphincontextmenu.cpp:145 +msgid "Properties..." +msgstr "ĐŸĐ°Ń€Đ°ĐŒĐ”Ń‚Ń€Ń‹..." + +#: dolphincontextmenu.cpp:153 dolphincontextmenu.cpp:233 +msgid "Add folder as bookmark" +msgstr "Đ”ĐŸĐ±Đ°ĐČоть папĐșу ĐșĐ°Đș Đ·Đ°ĐșлаЎĐșу" + +#: dolphincontextmenu.cpp:310 +msgid "&Other..." +msgstr "&Đ Đ°Đ·ĐœĐŸĐ”..." + +#: dolphincontextmenu.cpp:311 +msgid "Open With" +msgstr "ОтĐșрыть с ĐżĐŸĐŒĐŸŃ‰ŃŒŃŽ" + +#: dolphincontextmenu.cpp:317 dolphincontextmenu.cpp:324 +msgid "Open With..." +msgstr "ОтĐșрыть с ĐżĐŸĐŒĐŸŃ‰ŃŒŃŽ..." + +#: dolphincontextmenu.cpp:456 +msgid "Actions" +msgstr "ДДĐčстĐČоя" + +#: dolphinsettingsdialog.cpp:30 +msgid "Dolphin Preferences" +msgstr "ĐĐ°ŃŃ‚Ń€ĐŸĐčĐșĐž Dolphin" + +#: dolphinsettingsdialog.cpp:34 +msgid "General" +msgstr "ĐžŃĐœĐŸĐČĐœŃ‹Đ”" + +#: dolphinsettingsdialog.cpp:40 +msgid "View Modes" +msgstr "Đ Đ”Đ¶ĐžĐŒŃ‹ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ°" + +#: dolphinview.cpp:220 +msgid "The new item name is invalid." +msgstr "Đ˜ĐŒŃ ŃĐ»Đ”ĐŒĐ”ĐœŃ‚Đ° ĐœĐ” ĐŽĐŸĐ»Đ¶ĐœĐŸ Đ±Ń‹Ń‚ŃŒ ĐżŃƒŃŃ‚Ń‹ĐŒ." + +#: dolphinview.cpp:231 +msgid "Renaming items..." +msgstr "ĐŸĐ”Ń€Đ”ĐžĐŒĐ”ĐœĐŸĐČĐ°ĐœĐžĐ” ŃĐ»Đ”ĐŒĐ”ĐœŃ‚ĐŸĐČ..." + +#: dolphinview.cpp:232 +msgid "Renaming finished." +msgstr "ĐŸĐ”Ń€Đ”ĐžĐŒĐ”ĐœĐŸĐČĐ°ĐœĐžĐ” Đ·Đ°ĐČĐ”Ń€ŃˆĐ”ĐœĐŸ." + +#: dolphinview.cpp:251 +msgid "Renaming failed (item '%1' already exists)." +msgstr "ĐŸĐ”Ń€Đ”ĐžĐŒĐ”ĐœĐŸĐČĐ°ĐœĐžĐ” ĐœĐ” ŃƒĐŽĐ°Đ»ĐŸŃŃŒ (фаĐčĐ» %1 ужД ŃŃƒŃ‰Đ”ŃŃ‚ĐČŃƒĐ”Ń‚)." + +#: dolphinview.cpp:548 +msgid "File Already Exists" +msgstr "ЀаĐčĐ» ужД ŃŃƒŃ‰Đ”ŃŃ‚ĐČŃƒĐ”Ń‚" + +#: dolphinview.cpp:578 +msgid "Renamed file '%1' to '%2'." +msgstr "ЀаĐčĐ» '%1' ĐżĐ”Ń€Đ”ĐžĐŒĐ”ĐœĐŸĐČĐ°Đœ ĐČ '%2'." + +#: dolphinview.cpp:585 +msgid "Renaming of file '%1' to '%2' failed." +msgstr "ЀаĐčĐ» '%1' ĐœĐ” ŃƒĐŽĐ°Đ»ĐŸŃŃŒ ĐżĐ”Ń€Đ”ĐžĐŒĐ”ĐœĐŸĐČать ĐČ '%2'." + +#: dolphinview.cpp:909 +msgid "The location is empty." +msgstr "Путь пуст" + +#: dolphinview.cpp:912 +msgid "The location '%1' is invalid." +msgstr "Путь '%1' ĐœĐ”ĐČĐ”Ń€Đ”Đœ." + +#: dolphinview.cpp:923 dolphinview.cpp:925 +msgid "Loading directory..." +msgstr "Đ—Đ°ĐłŃ€ŃƒĐ·ĐșĐ° папĐșĐž..." + +#: dolphinview.cpp:942 +msgid "1 Item" +msgstr "1 ŃĐ»Đ”ĐŒĐ”ĐœŃ‚" + +#: dolphinview.cpp:945 +msgid "%1 Items" +msgstr "%1 ŃĐ»Đ”ĐŒĐ”ĐœŃ‚ĐŸĐČ" + +#: dolphinview.cpp:951 +msgid "1 Folder" +msgstr "1 папĐșĐ°" + +#: dolphinview.cpp:954 +msgid "%1 Folders" +msgstr "%1 ĐżĐ°ĐżĐŸĐș" + +#: dolphinview.cpp:960 +msgid "1 File" +msgstr "1 фаĐčĐ»" + +#: dolphinview.cpp:963 +msgid "%1 Files" +msgstr "%1 фаĐčĐ»ĐŸĐČ" + +#: dolphinview.cpp:994 +msgid "1 Folder selected" +msgstr "1 папĐșĐ° ĐČŃ‹Đ±Ń€Đ°ĐœĐ°" + +#: dolphinview.cpp:997 +msgid "%1 Folders selected" +msgstr "%1 ĐżĐ°ĐżĐŸĐș ĐČŃ‹Đ±Ń€Đ°ĐœĐŸ" + +#: dolphinview.cpp:1006 +msgid "1 File selected (%1)" +msgstr "1 фаĐčĐ» ĐČŃ‹Đ±Ń€Đ°Đœ (%1)" + +#: dolphinview.cpp:1009 +msgid "%1 Files selected (%1)" +msgstr "%1 фаĐčĐ»ĐŸĐČ ĐČŃ‹Đ±Ń€Đ°ĐœĐŸ (%1)" + +#: editbookmarkdialog.cpp:72 +msgid "Icon:" +msgstr "Đ—ĐœĐ°Ń‡ĐŸĐș:" + +#: editbookmarkdialog.cpp:80 +msgid "Name:" +msgstr "Đ˜ĐŒŃ:" + +#: editbookmarkdialog.cpp:86 generalsettingspage.cpp:70 +msgid "Location:" +msgstr "Путь:" + +#: filterbar.cpp:44 +msgid "Filter:" +msgstr "Đ€ĐžĐ»ŃŒŃ‚Ń€:" + +#: generalsettingspage.cpp:62 +msgid "Home URL" +msgstr "Đ”ĐŸĐŒĐ°ŃˆĐœĐžĐč путь" + +#: generalsettingspage.cpp:80 +msgid "Use current location" +msgstr "Đ˜ŃĐżĐŸĐ»ŃŒĐ·ĐŸĐČать Ń‚Đ”ĐșущоĐč путь" + +#: generalsettingspage.cpp:83 +msgid "Use default location" +msgstr "Đ˜ŃĐżĐŸĐ»ŃŒĐ·ĐŸĐČать ŃŃ‚Đ°ĐœĐŽĐ°Ń€Ń‚ĐœŃ‹Đč путь" + +#: generalsettingspage.cpp:88 +msgid "Default View Mode" +msgstr "ĐĄŃ‚Đ°ĐœĐŽĐ°Ń€Ń‚ĐœŃ‹Đč Ń€Đ”Đ¶ĐžĐŒ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ°" + +#: generalsettingspage.cpp:103 +msgid "Start with split view" +msgstr "ЗапусĐșать ĐČ Ń€Đ”Đ¶ĐžĐŒĐ” Ń€Đ°Đ·ĐŽĐ”Đ»Đ”ĐœĐœĐŸĐłĐŸ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ°" + +#: generalsettingspage.cpp:107 +msgid "Start with editable navigation bar" +msgstr "ĐĄŃ‚Đ°Ń€Ń‚ĐŸĐČать с рДЎаĐșŃ‚ĐžŃ€ŃƒĐ”ĐŒĐŸĐč ŃŃ‚Ń€ĐŸĐșĐŸĐč путо" + +#: iconsviewsettingspage.cpp:93 +msgid "Preview Size" +msgstr "Đ Đ°Đ·ĐŒĐ”Ń€ ĐżŃ€Đ”ĐŽĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ°" + +#: iconsviewsettingspage.cpp:127 +msgid "Number of lines:" +msgstr "ĐšĐŸĐ»ĐžŃ‡Đ”ŃŃ‚ĐČĐŸ Đ»ĐžĐœĐžĐč:" + +#: iconsviewsettingspage.cpp:131 +msgid "Text width:" +msgstr "ĐšĐžŃ€ĐžĐœĐ° Ń‚Đ”Đșста:" + +#: iconsviewsettingspage.cpp:137 +msgid "Grid" +msgstr "ХДтĐșĐ°" + +#: iconsviewsettingspage.cpp:142 +msgid "Arrangement:" +msgstr "Đ Đ°ŃĐżĐŸĐ»ĐŸĐ¶Đ”ĐœĐžĐ”:" + +#: iconsviewsettingspage.cpp:144 +msgid "Left to right" +msgstr "ХлДĐČĐ° ĐœĐ°ĐżŃ€Đ°ĐČĐŸ" + +#: iconsviewsettingspage.cpp:145 +msgid "Top to bottom" +msgstr "ĐĄĐČĐ”Ń€Ń…Ńƒ ĐČĐœĐžĐ·" + +#: iconsviewsettingspage.cpp:148 +msgid "Grid spacing:" +msgstr "Каг сДтĐșĐž" + +#: infosidebarpage.cpp:163 +msgid "%1 items selected" +msgstr "%1 ŃĐ»Đ”ĐŒĐ”ĐœŃ‚ĐŸĐČ ĐČŃ‹Đ±Ń€Đ°ĐœĐŸ" + +#: infosidebarpage.cpp:283 infosidebarpage.cpp:286 +msgid "Type:" +msgstr "йОп:" + +#: infosidebarpage.cpp:283 +msgid "Directory" +msgstr "ПапĐșĐ°" + +#: infosidebarpage.cpp:289 +msgid "Size:" +msgstr "Đ Đ°Đ·ĐŒĐ”Ń€:" + +#: infosidebarpage.cpp:290 +msgid "Modified:" +msgstr "Đ˜Đ·ĐŒĐ”ĐœŃ‘Đœ:" + +#: itemeffectsmanager.cpp:185 +msgid "%1 (Folder)" +msgstr "%1 (папĐșĐ°)" + +#: main.cpp:31 +msgid "Document to open" +msgstr "Đ”ĐŸĐșŃƒĐŒĐ”ĐœŃ‚ ĐŽĐ»Ń ĐŸŃ‚Đșрытоя" + +#: main.cpp:38 +msgid "Dolphin" +msgstr "Dolphin" + +#: main.cpp:40 +msgid "File Manager" +msgstr "ЀаĐčĐ»ĐŸĐČыĐč ĐŒĐ”ĐœĐ”ĐŽĐ¶Đ”Ń€" + +#: main.cpp:45 +msgid "Maintainer and developer" +msgstr "ĐĄĐŸĐ·ĐŽĐ°Ń‚Đ”Đ»ŃŒ Đž Ń€Đ°Đ·Ń€Đ°Đ±ĐŸŃ‚Ń‡ĐžĐș" + +#: main.cpp:46 main.cpp:47 +msgid "Developer" +msgstr "Đ Đ°Đ·Ń€Đ°Đ±ĐŸŃ‚Ń‡ĐžĐș" + +#: main.cpp:48 main.cpp:49 +msgid "Documentation" +msgstr "Đ”ĐŸĐșŃƒĐŒĐ”ĐœŃ‚Đ°Ń†ĐžŃ" + +#: main.cpp:50 +msgid "... for the great support and the amazing patches" +msgstr "... Đ·Đ° ĐČДлОĐșĐŸĐ»Đ”ĐżĐœŃƒŃŽ ĐżĐŸĐŽĐŽĐ”Ń€Đ¶Đșу Đž ĐžĐ·ŃƒĐŒĐžŃ‚Đ”Đ»ŃŒĐœŃ‹Đ” оспраĐČĐ»Đ”ĐœĐžŃ" + +#: main.cpp:51 +msgid "... for their patches" +msgstr "... Đ·Đ° ох ĐŽĐŸŃ€Đ°Đ±ĐŸŃ‚ĐșĐž" + +#: main.cpp:53 +msgid "... for their translations" +msgstr "... Đ·Đ° ох пДрДĐČĐŸĐŽŃ‹" + +#. i18n: file ./dolphinui.rc line 30 +#: rc.cpp:9 +#, no-c-format +msgid "Sort" +msgstr "ĐĄĐŸŃ€Ń‚ĐžŃ€ĐŸĐČать" + +#. i18n: file ./dolphinui.rc line 44 +#: rc.cpp:12 +#, no-c-format +msgid "Navigation Bar" +msgstr "ĐĄŃ‚Ń€ĐŸĐșĐ° путо" + +#: renamedialog.cpp:30 +msgid "Rename Items" +msgstr "ĐŸĐ”Ń€Đ”ĐžĐŒĐ”ĐœĐŸĐČать" + +#: renamedialog.cpp:39 +msgid "Rename the %1 selected items to:" +msgstr "ĐŸĐ”Ń€Đ”ĐžĐŒĐ”ĐœĐŸĐČать %1 ĐČŃ‹ĐŽĐ”Đ»Đ”ĐœĐœŃ‹Ń… ŃĐ»Đ”ĐŒĐ”ĐœŃ‚ĐŸĐČ ĐČ:" + +#: renamedialog.cpp:43 +msgid "New name #" +msgstr "ĐĐŸĐČĐŸĐ” ĐžĐŒŃ #" + +#: renamedialog.cpp:68 +msgid "(# will be replaced by ascending numbers)" +msgstr "(# Đ±ŃƒĐŽĐ”Ń‚ Đ·Đ°ĐŒĐ”ĐœĐ”Đœ Ń‡ĐžŃĐ»Đ°ĐŒĐž ĐżĐŸ ĐČĐŸĐ·Ń€Đ°ŃŃ‚Đ°ĐœĐžŃŽ)" + +#: statusbarspaceinfo.cpp:92 +msgid "%1% of %2 used" +msgstr "%1% Оз %2 ĐžŃĐżĐŸĐ»ŃŒĐ·ĐŸĐČĐ°ĐœĐŸ" + +#: statusbarspaceinfo.cpp:98 +msgid "Getting size..." +msgstr "ĐŸĐŸĐ»ŃƒŃ‡Đ”ĐœĐžĐ” Ń€Đ°Đ·ĐŒĐ”Ń€Đ°..." + +#: undomanager.cpp:87 undomanager.cpp:135 undomanager.cpp:251 +msgid "Undo: %1" +msgstr "ĐžŃ‚ĐŒĐ”ĐœĐžŃ‚ŃŒ: %1" + +#: undomanager.cpp:123 +msgid "Executing undo operation..." +msgstr "Đ’Ń‹ĐżĐŸĐ»ĐœĐ”ĐœĐžĐ” ĐŸŃ‚ĐŒĐ”ĐœŃ‹..." + +#: undomanager.cpp:124 +msgid "Executed undo operation." +msgstr "ĐžŃ‚ĐŒĐ”ĐœĐ° ĐČŃ‹ĐżĐŸĐ»ĐœĐ”ĐœĐ°." + +#: undomanager.cpp:140 undomanager.cpp:247 +msgid "Redo: %1" +msgstr "ĐŸĐŸĐČŃ‚ĐŸŃ€ĐžŃ‚ŃŒ: %1" + +#: undomanager.cpp:236 +msgid "Executing redo operation..." +msgstr "Đ’Ń‹ĐżĐŸĐ»ĐœĐ”ĐœĐžĐ” ĐżĐŸĐČŃ‚ĐŸŃ€Đ°..." + +#: undomanager.cpp:237 +msgid "Executed redo operation." +msgstr "ĐŸĐŸĐČŃ‚ĐŸŃ€ ĐČŃ‹ĐżĐŸĐ»ĐœĐ”Đœ." + +#: undomanager.cpp:347 +msgid "Link" +msgstr "ХсылĐșĐ°" + +#: undomanager.cpp:350 +msgid "Create New Folder" +msgstr "ĐĄĐŸĐ·ĐŽĐ°Ń‚ŃŒ папĐșу" + +#: undomanager.cpp:351 +msgid "Create New File" +msgstr "ĐĄĐŸĐ·ĐŽĐ°Ń‚ŃŒ фаĐčĐ»" + +#: urlnavigator.cpp:367 +msgid "Browse (Ctrl+B, Escape)" +msgstr "ĐžĐ±Đ·ĐŸŃ€ (Ctrl+B, Escape)" + +#: urlnavigator.cpp:375 +msgid "Edit location (Ctrl+L)" +msgstr "РДЎаĐșŃ‚ĐžŃ€ĐŸĐČать путь (Ctrl+L)" + +#: urlnavigator.cpp:428 +msgid "Custom Path" +msgstr "ĐŸŃĐ”ĐČĐŽĐŸĐżŃƒŃ‚ŃŒ" + +#: viewpropertiesdialog.cpp:41 +msgid "View Properties" +msgstr "ĐŸŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ”Ń‚ŃŒ ĐżĐ°Ń€Đ°ĐŒĐ”Ń‚Ń€Ń‹" + +#: viewpropertiesdialog.cpp:62 +msgid "View mode:" +msgstr "Đ Đ”Đ¶ĐžĐŒ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ°:" + +#: viewpropertiesdialog.cpp:70 +msgid "Sorting:" +msgstr "ĐĄĐŸŃ€Ń‚ĐžŃ€ĐŸĐČĐșĐ°:" + +#: viewpropertiesdialog.cpp:84 +msgid "Sort order:" +msgstr "ĐŸĐŸŃ€ŃĐŽĐŸĐș ŃĐŸŃ€Ń‚ĐžŃ€ĐŸĐČĐșĐž:" + +#: viewpropertiesdialog.cpp:86 +msgid "Ascending" +msgstr "ĐŸĐŸ ĐČĐŸĐ·Ń€Đ°ŃŃ‚Đ°ĐœĐžŃŽ" + +#: viewpropertiesdialog.cpp:91 +msgid "Show hidden files" +msgstr "ĐŸĐŸĐșĐ°Đ·Ń‹ĐČать сĐșрытыД фаĐčлы" + +#: viewpropertiesdialog.cpp:97 +msgid "Apply view properties to:" +msgstr "ĐŸŃ€ĐžĐŒĐ”ĐœĐžŃ‚ŃŒ ĐżĐ°Ń€Đ°ĐŒĐ”Ń‚Ń€Ń‹ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ° Đș:" + +#: viewpropertiesdialog.cpp:102 +msgid "Current folder" +msgstr "йДĐșущая папĐșĐ°" + +#: viewpropertiesdialog.cpp:105 +msgid "Current folder including all sub folders" +msgstr "йДĐșущая папĐșĐ° с ĐČĐ»ĐŸĐ¶Đ”ĐœĐœŃ‹ĐŒĐž папĐșĐ°ĐŒĐž" + +#: viewpropertiesdialog.cpp:108 +msgid "All folders" +msgstr "ВсД папĐșĐž" + +#: viewpropertiesdialog.cpp:210 +msgid "The view properties of all folders will be replaced. Do you want to continue?" +msgstr "ĐŸĐ°Ń€Đ°ĐŒĐ”Ń‚Ń€Ń‹ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ° ĐŽĐ»Ń ĐČсДх ĐżĐ°ĐżĐŸĐș Đ±ŃƒĐŽŃƒŃ‚ ĐžĐ·ĐŒĐ”ĐœĐ”ĐœŃ‹. ĐŸŃ€ĐŸĐŽĐŸĐ»Đ¶ĐžŃ‚ŃŒ?" + +#: viewpropertiesdialog.cpp:224 +msgid "" +"The view properties of all sub folders will be replaced. Do you want to " +"continue?" +msgstr "ĐŸĐ°Ń€Đ°ĐŒĐ”Ń‚Ń€Ń‹ ĐżŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ° ĐŽĐ»Ń ĐČсДх ĐČĐ»ĐŸĐ¶Đ”ĐœĐœŃ‹Ń… ĐżĐ°ĐżĐŸĐș Đ±ŃƒĐŽŃƒŃ‚ ĐžĐ·ĐŒĐ”ĐœĐ”ĐœŃ‹. ĐŸŃ€ĐŸĐŽĐŸĐ»Đ¶ĐžŃ‚ŃŒ?" + diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..aaa60fd --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,62 @@ +## Makefile.am for d3lphin + +SUBDIRS = pics servicemenus + +# this is the program that gets installed. it's name is used for all +# of the other Makefile.am variables +bin_PROGRAMS = d3lphin + +# set the include path for X, qt and KDE +INCLUDES = $(all_includes) + +# the library search path. +d3lphin_LDFLAGS = $(KDE_RPATH) $(all_libraries) + +# the libraries to link against. +d3lphin_LDADD = $(LIB_KFILE) $(LIB_KDEPRINT) -lkonq + +# which sources should be compiled for d3lphin +d3lphin_SOURCES = bookmarkselector.cpp bookmarkssettingspage.cpp \ + bookmarkssidebarpage.cpp detailsviewsettingspage.cpp dolphin.cpp dolphincontextmenu.cpp \ + dolphindetailsview.cpp dolphindetailsviewsettings.cpp dolphindirlister.cpp \ + dolphiniconsview.cpp dolphiniconsviewsettings.cpp dolphinsettings.cpp \ + dolphinsettingsbase.cpp dolphinsettingsdialog.cpp dolphinstatusbar.cpp dolphinview.cpp \ + editbookmarkdialog.cpp filterbar.cpp generalsettingspage.cpp iconsviewsettingspage.cpp \ + infosidebarpage.cpp itemeffectsmanager.cpp main.cpp pixmapviewer.cpp progressindicator.cpp \ + renamedialog.cpp settingspagebase.cpp sidebarpage.cpp sidebars.cpp sidebarssettings.cpp \ + statusbarmessagelabel.cpp statusbarspaceinfo.cpp undomanager.cpp urlbutton.cpp urlnavigator.cpp \ + urlnavigatorbutton.cpp viewproperties.cpp viewpropertiesdialog.cpp viewsettingspage.cpp + + +# these are the headers for your project +noinst_HEADERS = bookmarkselector.h bookmarkssettingspage.h \ + bookmarkssidebarpage.h detailsviewsettingspage.h dolphin.h dolphincontextmenu.h \ + dolphindetailsview.h dolphindetailsviewsettings.h dolphindirlister.h dolphiniconsview.h \ + dolphiniconsviewsettings.h dolphiniconsviewsettings.h iconsviewsettingspage.h dolphinsettings.h \ + dolphinsettingsbase.h dolphinsettingsdialog.h dolphinstatusbar.h dolphinview.h \ + editbookmarkdialog.h filterbar.h generalsettingspage.h iconsviewsettingspage.h \ + infosidebarpage.h itemeffectsmanager.h pixmapviewer.h renamedialog.h settingspagebase.h \ + sidebarpage.h sidebars.h statusbarmessagelabel.h statusbarspaceinfo.h undomanager.h \ + urlbutton.h urlnavigator.h urlnavigatorbutton.h viewproperties.h \ + viewpropertiesdialog.h viewsettingspage.h + +# let automoc handle all of the meta source files (moc) +METASOURCES = AUTO + +messages: rc.cpp + $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp + $(XGETTEXT) *.cpp -o $(podir)/d3lphin.pot + + + +# this is where the kdelnk file will go +kdelnkdir = $(kde_appsdir)/System +xdg_apps_DATA = d3lphin.desktop + +# this is where the XML-GUI resource file goes +rcdir = $(kde_datadir)/d3lphin +rc_DATA = d3lphinui.rc + +KDE_ICON = AUTO +kde_icon_KDEICON = hi128-app-d3lphin.png hi16-app-d3lphin.png \ + hi22-app-d3lphin.png hi32-app-d3lphin.png hi48-app-d3lphin.png hi64-app-d3lphin.png diff --git a/src/README b/src/README new file mode 100644 index 0000000..f04a563 --- /dev/null +++ b/src/README @@ -0,0 +1,81 @@ +----------------------------------------------- +Kde application framework template quickstart +Author: Thomas Nagy +Date: 2004-03-22 +----------------------------------------------- + +This README file explains you basic things for starting with +this application template. + + +** Building and installing ** + +* Build the configure script by "make -f Makefile.cvs" + +* To clean, use "make clean", and to clean everything +(remove the makefiles, etc), use "make distclean" + +* To distribute your program, try "make dist". +This will make a compact tarball archive of your release with the +necessary scripts inside. + +* Modifying the auto-tools scripts +for automake scripts there is an excellent tutorial there : +http://developer.kde.org/documentation/other/makefile_am_howto.html + +* Simplify your life : install the project in your home directory for +testing purposes. +./configure --prefix=/home/user/dummyfolder/ +In the end when you finished the development you can +rm -rf /home/user/dummyfolder/ +without fear. + + +** Technologies ** + +* Build the menus of your application easily +kde applications now use an xml file (*ui.rc file) to build the menus. +This allow a great customization of the application. However, when +programming the menu is shown only after a "make install" + +For more details, consult : +http://devel-home.kde.org/~larrosa/tutorial/p9.html +http://developer.kde.org/documentation/tutorials/xmlui/preface.html + +* Use KConfig XT to create your configuration dialogs and make +them more maintainable. + +For more details, consult : +http://developer.kde.org/documentation/tutorials/kconfigxt/kconfigxt.html + +* With KParts, you can embed other kde components in your program, or make your program +embeddable in other apps. For example, the kmplayer kpart can be called to play videos +in your app. + +For more details, consult : +http://www-106.ibm.com/developerworks/library/l-kparts/ +http://developer.kde.org/documentation/tutorials/dot/writing-plugins.html +http://developer.kde.org/documentation/tutorials/developing-a-plugin-structure/index.html + +* With dcop, you can control your app from other applications +Make sure to include K_DCOP and a kdcop: section in your .h file +http://developer.kde.org/documentation/tutorials/dot/dcopiface/dcop-interface.html + + +** Documentation ** + +* For the translations : +1. Download a patched gettext which can be found at: + http://public.kde.planetmirror.com/pub/kde/devel/gettext-kde/ +2. Install that gettext in ~/bin/ +3. cd ~/yourproject, export PATH=~/bin:$PATH, export +KDEDIR=/where_your_KDE3_is +4. make -f admin/Makefile.common package-messages +5. make package-messages +6. Translate the po files (not the pot!!) with kbabel or xemacs + +* Do not forget to write the documentation for your kde app +edit the documentation template index.docbook in doc/ + + + diff --git a/src/bookmarkselector.cpp b/src/bookmarkselector.cpp new file mode 100644 index 0000000..9a0c3cd --- /dev/null +++ b/src/bookmarkselector.cpp @@ -0,0 +1,183 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + + +#include +#include +#include +#include + +#include +#include +#include + +#include "bookmarkselector.h" +#include "dolphinsettings.h" +#include "dolphinview.h" +#include "dolphin.h" +#include "urlnavigator.h" + +BookmarkSelector::BookmarkSelector(URLNavigator* parent) : + URLButton(parent), + m_selectedIndex(0) +{ + setFocusPolicy(QWidget::NoFocus); + + m_bookmarksMenu = new QPopupMenu(this); + + KBookmarkManager* manager = DolphinSettings::instance().bookmarkManager(); + connect(manager, SIGNAL(changed(const QString&, const QString&)), + this, SLOT(updateBookmarks())); + + updateBookmarks(); + + connect(m_bookmarksMenu, SIGNAL(activated(int)), + this, SLOT(slotBookmarkActivated(int))); + + setPopup(m_bookmarksMenu); +} + +BookmarkSelector::~BookmarkSelector() +{ +} + +void BookmarkSelector::updateBookmarks() +{ + m_bookmarksMenu->clear(); + + KBookmarkGroup root = DolphinSettings::instance().bookmarkManager()->root(); + KBookmark bookmark = root.first(); + int i = 0; + while (!bookmark.isNull()) { + m_bookmarksMenu->insertItem(MainBarIcon(bookmark.icon()), + bookmark.text(), + i); + if (i == m_selectedIndex) { + QPixmap pixmap = SmallIcon(bookmark.icon()); + setPixmap(pixmap); + setMinimumWidth(pixmap.width() + 2); + } + bookmark = root.next(bookmark); + ++i; + } + +} + +void BookmarkSelector::updateSelection(const KURL& url) +{ + KBookmarkGroup root = DolphinSettings::instance().bookmarkManager()->root(); + KBookmark bookmark = root.first(); + + int maxLength = 0; + m_selectedIndex = -1; + + // Search the bookmark which is equal to the URL or at least is a parent URL. + // If there are more than one possible parent URL candidates, choose the bookmark + // which covers the bigger range of the URL. + int i = 0; + while (!bookmark.isNull()) { + const KURL bookmarkURL = bookmark.url(); + if (bookmarkURL.isParentOf(url)) { + const int length = bookmarkURL.prettyURL().length(); + if (length > maxLength) { + m_selectedIndex = i; + setPixmap(SmallIcon(bookmark.icon())); + maxLength = length; + } + } + bookmark = root.next(bookmark); + ++i; + } + + if (m_selectedIndex < 0) { + // No bookmark has been found which matches to the given URL. Show + // a generic folder icon as pixmap for indication: + setPixmap(SmallIcon("folder")); + } +} + +KBookmark BookmarkSelector::selectedBookmark() const +{ + return DolphinSettings::instance().bookmark(m_selectedIndex); +} + +void BookmarkSelector::drawButton(QPainter* painter) +{ + const int buttonWidth = width(); + const int buttonHeight = height(); + + QColor backgroundColor; + QColor foregroundColor; + const bool isHighlighted = isDisplayHintEnabled(EnteredHint) || + isDisplayHintEnabled(DraggedHint); + if (isHighlighted) { + backgroundColor = KGlobalSettings::highlightColor(); + foregroundColor = KGlobalSettings::highlightedTextColor(); + } + else { + backgroundColor = colorGroup().background(); + foregroundColor = KGlobalSettings::buttonTextColor(); + } + + // dimm the colors if the parent view does not have the focus + const DolphinView* parentView = urlNavigator()->dolphinView(); + const Dolphin& dolphin = Dolphin::mainWin(); + + const bool isActive = (dolphin.activeView() == parentView); + if (!isActive) { + QColor dimmColor(colorGroup().background()); + foregroundColor = mixColors(foregroundColor, dimmColor); + if (isHighlighted) { + backgroundColor = mixColors(backgroundColor, dimmColor); + } + } + + if (!(isDisplayHintEnabled(ActivatedHint) && isActive) && !isHighlighted) { + // dimm the foreground color by mixing it with the background + foregroundColor = mixColors(foregroundColor, backgroundColor); + painter->setPen(foregroundColor); + } + + // draw button backround + painter->setPen(NoPen); + painter->setBrush(backgroundColor); + painter->drawRect(0, 0, buttonWidth, buttonHeight); + + // draw icon + const QPixmap* icon = pixmap(); + if (icon != 0) { + const int x = (buttonWidth - icon->width()) / 2; + const int y = (buttonHeight - icon->height()) / 2; + painter->drawPixmap(x, y, *icon); + } +} + +void BookmarkSelector::slotBookmarkActivated(int index) +{ + m_selectedIndex = index; + + KBookmark bookmark = selectedBookmark(); + setPixmap(SmallIcon(bookmark.icon())); + + emit bookmarkActivated(index); +} + +#include "bookmarkselector.moc" + diff --git a/src/bookmarkselector.h b/src/bookmarkselector.h new file mode 100644 index 0000000..9bede96 --- /dev/null +++ b/src/bookmarkselector.h @@ -0,0 +1,98 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef BOOKMARKSELECTOR_H +#define BOOKMARKSELECTOR_H + +#include +#include + +class URLNavigator; +class QPopupMenu; +class KURL; + +/** + * @brief Allows to select a bookmark from a popup menu. + * + * The icon from the current selected bookmark is shown + * inside the bookmark selector. + * + * @see URLNavigator + * @author Peter Penz + */ +class BookmarkSelector : public URLButton +{ + Q_OBJECT + +public: + /** + * @param parent Parent widget where the bookmark selector + * is embedded into. + */ + BookmarkSelector(URLNavigator* parent); + + virtual ~BookmarkSelector(); + + /** + * Updates the selection dependent from the given URL \a url. The + * URL must not match exactly to one of the available bookmarks: + * The bookmark which is equal to the URL or at least is a parent URL + * is selected. If there are more than one possible parent URL candidates, + * the bookmark which covers the bigger range of the URL is selected. + */ + void updateSelection(const KURL& url); + + /** + * Returns the index of the selected bookmark. To get + * the bookmark, use BookmarkSelector::selectedBookmark(). + */ + int selectedIndex() const { return m_selectedIndex; } + + /** Returns the selected bookmark. */ + KBookmark selectedBookmark() const; + +signals: + /** + * Is send when a bookmark has been activated by the user. + * @param index Index of the selected bookmark. + */ + void bookmarkActivated(int index); + +protected: + /** + * Draws the icon of the selected URL as content of the URL + * selector. + */ + virtual void drawButton(QPainter* painter); + +private slots: + /** + * Updates the selected index and the icon if a bookmark + * has been activated by the user. + */ + void slotBookmarkActivated(int index); + void updateBookmarks(); + +private: + int m_selectedIndex; + QPopupMenu* m_bookmarksMenu; +}; + +#endif diff --git a/src/bookmarkssettingspage.cpp b/src/bookmarkssettingspage.cpp new file mode 100644 index 0000000..5b615f8 --- /dev/null +++ b/src/bookmarkssettingspage.cpp @@ -0,0 +1,314 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "bookmarkssettingspage.h" + +#include + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include "dolphinsettings.h" +#include "editbookmarkdialog.h" + +BookmarksSettingsPage::BookmarksSettingsPage(QWidget*parent) : + SettingsPageBase(parent), + m_addButton(0), + m_removeButton(0), + m_moveUpButton(0), + m_moveDownButton(0) +{ + QVBoxLayout* topLayout = new QVBoxLayout(parent, 2, KDialog::spacingHint()); + + const int spacing = KDialog::spacingHint(); + + QHBox* hBox = new QHBox(parent); + hBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + hBox->setSpacing(spacing); + hBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Ignored); + + m_listView = new KListView(hBox); + m_listView->addColumn(i18n("Icon")); + m_listView->addColumn(i18n("Name")); + m_listView->addColumn(i18n("Location")); + m_listView->setResizeMode(QListView::LastColumn); + m_listView->setColumnAlignment(0, Qt::AlignHCenter); + m_listView->setAllColumnsShowFocus(true); + m_listView->setSorting(-1); + connect(m_listView, SIGNAL(selectionChanged()), + this, SLOT(updateButtons())); + connect(m_listView, SIGNAL(pressed(QListViewItem*)), + this, SLOT(slotBookmarkPressed(QListViewItem*))); + connect(m_listView, SIGNAL(doubleClicked(QListViewItem*, const QPoint&, int)), + this, SLOT(slotBookmarkDoubleClicked(QListViewItem*, const QPoint&, int))); + + QVBox* buttonBox = new QVBox(hBox); + buttonBox->setSpacing(spacing); + + const QSizePolicy buttonSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); + + m_addButton = new KPushButton(i18n("Add..."), buttonBox); + connect(m_addButton, SIGNAL(clicked()), + this, SLOT(slotAddButtonClicked())); + m_addButton->setSizePolicy(buttonSizePolicy); + + m_editButton = new KPushButton(i18n("Edit..."), buttonBox); + connect(m_editButton, SIGNAL(clicked()), + this, SLOT(slotEditButtonClicked())); + m_editButton->setSizePolicy(buttonSizePolicy); + + m_removeButton = new KPushButton(i18n("Remove"), buttonBox); + connect(m_removeButton, SIGNAL(clicked()), + this, SLOT(slotRemoveButtonClicked())); + m_removeButton->setSizePolicy(buttonSizePolicy); + + m_moveUpButton = new KPushButton(i18n("Move Up"), buttonBox); + connect(m_moveUpButton, SIGNAL(clicked()), + this, SLOT(slotMoveUpButtonClicked())); + m_moveUpButton->setSizePolicy(buttonSizePolicy); + + m_moveDownButton = new KPushButton(i18n("Move Down"), buttonBox); + connect(m_moveDownButton, SIGNAL(clicked()), + this, SLOT(slotMoveDownButtonClicked())); + m_moveDownButton->setSizePolicy(buttonSizePolicy); + + // Add a dummy widget with no restriction regarding a vertical resizing. + // This assures that the spacing between the buttons is not increased. + new QWidget(buttonBox); + + topLayout->addWidget(hBox); + + // insert all editable bookmarks. + KBookmarkGroup root = DolphinSettings::instance().bookmarkManager()->root(); + KBookmark bookmark = root.first(); + + QListViewItem* prev = 0; + while (!bookmark.isNull()) { + QListViewItem* item = new QListViewItem(m_listView); + item->setPixmap(PixmapIdx, SmallIcon(bookmark.icon())); + item->setText(NameIdx, bookmark.text()); + item->setText(URLIdx, bookmark.url().prettyURL()); + + // add hidden column to be able to retrieve the icon name again + item->setText(IconIdx, bookmark.icon()); + + m_listView->insertItem(item); + if (prev != 0) { + item->moveItem(prev); + } + prev = item; + + bookmark = root.next(bookmark); + } + m_listView->setSelected(m_listView->firstChild(), true); + + updateButtons(); +} + + +BookmarksSettingsPage::~BookmarksSettingsPage() +{ +} + +void BookmarksSettingsPage::applySettings() +{ + // delete all bookmarks + KBookmarkManager* manager = DolphinSettings::instance().bookmarkManager(); + KBookmarkGroup root = manager->root(); + KBookmark bookmark = root.first(); + while (!bookmark.isNull()) { + root.deleteBookmark(bookmark); + bookmark = root.first(); + } + + // add all items as bookmarks + QListViewItem* item = m_listView->firstChild(); + while (item != 0) { + root.addBookmark(manager, + item->text(NameIdx), + KURL(item->text(URLIdx)), + item->text(IconIdx)); // hidden column + item = item->itemBelow(); + } + + manager->emitChanged(root); +} + +void BookmarksSettingsPage::updateButtons() +{ + const QListViewItem* selectedItem = m_listView->selectedItem(); + const bool hasSelection = (selectedItem != 0); + + m_editButton->setEnabled(hasSelection); + m_removeButton->setEnabled(hasSelection); + + const bool enableMoveUp = hasSelection && + (selectedItem != m_listView->firstChild()); + m_moveUpButton->setEnabled(enableMoveUp); + + const bool enableMoveDown = hasSelection && + (selectedItem != m_listView->lastChild()); + m_moveDownButton->setEnabled(enableMoveDown); +} + +void BookmarksSettingsPage::slotBookmarkDoubleClicked(QListViewItem*, + const QPoint&, + int) +{ + slotEditButtonClicked(); +} + +void BookmarksSettingsPage::slotBookmarkPressed(QListViewItem* item) +{ + if (item == 0) { + m_listView->setSelected(m_listView->currentItem(), true); + } +} + +void BookmarksSettingsPage::slotAddButtonClicked() +{ + KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add Bookmark"), + i18n("New bookmark"), + KURL(), + "bookmark"); + if (!bookmark.isNull()) { + // insert bookmark into listview + QListViewItem* item = new QListViewItem(m_listView); + item->setPixmap(PixmapIdx, SmallIcon(bookmark.icon())); + item->setText(NameIdx, bookmark.text()); + item->setText(URLIdx, bookmark.url().prettyURL()); + item->setText(IconIdx, bookmark.icon()); + m_listView->insertItem(item); + + QListViewItem* lastItem = m_listView->lastChild(); + if (lastItem != 0) { + item->moveItem(lastItem); + } + + m_listView->setSelected(item, true); + updateButtons(); + } +} + +void BookmarksSettingsPage::slotEditButtonClicked() +{ + QListViewItem* item = m_listView->selectedItem(); + assert(item != 0); // 'edit' may not get invoked when having no items + + KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Edit Bookmark"), + item->text(NameIdx), + KURL(item->text(URLIdx)), + item->text(IconIdx)); + if (!bookmark.isNull()) { + item->setPixmap(PixmapIdx, SmallIcon(bookmark.icon())); + item->setText(NameIdx, bookmark.text()); + item->setText(URLIdx, bookmark.url().prettyURL()); + item->setText(IconIdx, bookmark.icon()); + } +} + +void BookmarksSettingsPage::slotRemoveButtonClicked() +{ + QListViewItem* selectedItem = m_listView->selectedItem(); + assert(selectedItem != 0); + QListViewItem* nextItem = selectedItem->itemBelow(); + if (nextItem == 0) { + nextItem = selectedItem->itemAbove(); + } + + m_listView->takeItem(selectedItem); + if (nextItem != 0) { + m_listView->setSelected(nextItem, true); + } +} + +void BookmarksSettingsPage::slotMoveUpButtonClicked() +{ + moveBookmark(-1); +} + +void BookmarksSettingsPage::slotMoveDownButtonClicked() +{ + moveBookmark(+1); +} + +int BookmarksSettingsPage::selectedBookmarkIndex() const +{ + int index = -1; + + QListViewItem* selectedItem = m_listView->selectedItem(); + if (selectedItem != 0) { + index = 0; + QListViewItem* item = m_listView->firstChild(); + while (item != selectedItem) { + item = item->nextSibling(); + ++index; + } + } + + return index; +} + +void BookmarksSettingsPage::moveBookmark(int direction) +{ + // this implementation currently only allows moving of bookmarks + // one step up or down + assert((direction >= -1) && (direction <= +1)); + + // swap bookmarks in listview + QListViewItem* selectedItem = m_listView->selectedItem(); + assert(selectedItem != 0); + QListViewItem* item = (direction < 0) ? selectedItem->itemAbove() : + selectedItem->itemBelow(); + assert(item != 0); + + QPixmap pixmap; + if (item->pixmap(0) != 0) { + pixmap = *(item->pixmap(0)); + } + QString name(item->text(NameIdx)); + QString url(item->text(URLIdx)); + QString icon(item->text(IconIdx)); + + if (selectedItem->pixmap(0) != 0) { + item->setPixmap(PixmapIdx, *(selectedItem->pixmap(0))); + } + item->setText(NameIdx, selectedItem->text(NameIdx)); + item->setText(URLIdx, selectedItem->text(URLIdx)); + item->setText(IconIdx, selectedItem->text(IconIdx)); + + selectedItem->setPixmap(PixmapIdx, pixmap); + selectedItem->setText(NameIdx, name); + selectedItem->setText(URLIdx, url); + selectedItem->setText(IconIdx, icon); + + m_listView->setSelected(item, true); +} + +#include "bookmarkssettingspage.moc" diff --git a/src/bookmarkssettingspage.h b/src/bookmarkssettingspage.h new file mode 100644 index 0000000..89f3752 --- /dev/null +++ b/src/bookmarkssettingspage.h @@ -0,0 +1,93 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef BOOKMARKSSETTINGSPAGE_H +#define BOOKMARKSSETTINGSPAGE_H + +#include +#include + +class KListView; +class KPushButton; +class QListViewItem; + +/** + * @brief Represents the page from the Dolphin Settings which allows + * to modify the bookmarks. + */ +class BookmarksSettingsPage : public SettingsPageBase +{ + Q_OBJECT + +public: + BookmarksSettingsPage(QWidget* parent); + + virtual ~BookmarksSettingsPage(); + + /** @see SettingsPageBase::applySettings */ + virtual void applySettings(); + +private slots: + void updateButtons(); + void slotBookmarkDoubleClicked(QListViewItem*, const QPoint&, int); + void slotAddButtonClicked(); + void slotEditButtonClicked(); + void slotRemoveButtonClicked(); + void slotMoveUpButtonClicked(); + void slotMoveDownButtonClicked(); + + /** + * Is connected with the signal QListView::pressed(QListViewItem* item) + * and assures that always one bookmarks stays selected although a + * click has been done on the viewport area. + * TODO: this is a workaround, possibly there is a more easy approach + * doing this... + */ + void slotBookmarkPressed(QListViewItem* item); + +private: + enum ColumnIndex { + PixmapIdx = 0, + NameIdx = 1, + URLIdx = 2, + IconIdx = 3 + }; + + KListView* m_listView; + KPushButton* m_addButton; + KPushButton* m_editButton; + KPushButton* m_removeButton; + KPushButton* m_moveUpButton; + KPushButton* m_moveDownButton; + + /** + * Returns the index of the selected bookmark + * inside the bookmarks listview. + */ + int selectedBookmarkIndex() const; + + /** + * Moves the currently selected bookmark up, if 'direction' + * is < 0, otherwise the bookmark is moved down. + */ + void moveBookmark(int direction); +}; + +#endif diff --git a/src/bookmarkssidebarpage.cpp b/src/bookmarkssidebarpage.cpp new file mode 100644 index 0000000..34eef5c --- /dev/null +++ b/src/bookmarkssidebarpage.cpp @@ -0,0 +1,331 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "bookmarkssidebarpage.h" + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include "dolphinsettings.h" +#include "dolphin.h" +#include "dolphinview.h" +#include "editbookmarkdialog.h" + +BookmarksSidebarPage::BookmarksSidebarPage(QWidget* parent) : + SidebarPage(parent) +{ + QVBoxLayout* layout = new QVBoxLayout(this); + m_bookmarksList = new BookmarksListBox(this); + m_bookmarksList->setPaletteBackgroundColor(colorGroup().background()); + + layout->addWidget(m_bookmarksList); + connect(m_bookmarksList, SIGNAL(mouseButtonClicked(int, QListBoxItem*, const QPoint&)), + this, SLOT(slotMouseButtonClicked(int, QListBoxItem*))); + connect(m_bookmarksList, SIGNAL(contextMenuRequested(QListBoxItem*, const QPoint&)), + this, SLOT(slotContextMenuRequested(QListBoxItem*, const QPoint&))); + + KBookmarkManager* manager = DolphinSettings::instance().bookmarkManager(); + connect(manager, SIGNAL(changed(const QString&, const QString&)), + this, SLOT(updateBookmarks())); + + updateBookmarks(); +} + +BookmarksSidebarPage::~BookmarksSidebarPage() +{ +} + +void BookmarksSidebarPage::activeViewChanged() +{ + connectToActiveView(); +} + +void BookmarksSidebarPage::updateBookmarks() +{ + m_bookmarksList->clear(); + + KIconLoader iconLoader; + + KBookmarkGroup root = DolphinSettings::instance().bookmarkManager()->root(); + KBookmark bookmark = root.first(); + while (!bookmark.isNull()) { + m_bookmarksList->insertItem( BookmarkItem::fromKbookmark(bookmark, iconLoader) ); + + bookmark = root.next(bookmark); + } + + connectToActiveView(); +} + +void BookmarksSidebarPage::slotMouseButtonClicked(int button, QListBoxItem* item) +{ + if ((button != Qt::LeftButton) || (item == 0)) { + return; + } + + const int index = m_bookmarksList->index(item); + KBookmark bookmark = DolphinSettings::instance().bookmark(index); + Dolphin::mainWin().activeView()->setURL(bookmark.url()); +} + +void BookmarksSidebarPage::slotContextMenuRequested(QListBoxItem* item, + const QPoint& pos) +{ + const int insertID = 1; + const int editID = 2; + const int deleteID = 3; + const int addID = 4; + + QPopupMenu* popup = new QPopupMenu(); + if (item == 0) { + popup->insertItem(SmallIcon("filenew"), i18n("Add Bookmark..."), addID); + } + else { + popup->insertItem(SmallIcon("filenew"), i18n("Insert Bookmark..."), insertID); + popup->insertItem(SmallIcon("edit"), i18n("Edit..."), editID); + popup->insertItem(SmallIcon("editdelete"), i18n("Delete"), deleteID); + } + + KBookmarkManager* manager = DolphinSettings::instance().bookmarkManager(); + KBookmarkGroup root = manager->root(); + const int index = m_bookmarksList->index(m_bookmarksList->selectedItem()); + + const int result = popup->exec(pos); + switch (result) { + case insertID: { + KBookmark newBookmark = EditBookmarkDialog::getBookmark(i18n("Insert Bookmark"), + i18n("New bookmark"), + KURL(), + "bookmark"); + if (!newBookmark.isNull()) { + root.addBookmark(manager, newBookmark); + if (index > 0) { + KBookmark prevBookmark = DolphinSettings::instance().bookmark(index - 1); + root.moveItem(newBookmark, prevBookmark); + } + else { + // insert bookmark at first position (is a little bit tricky as KBookmarkGroup + // only allows to move items after existing items) + KBookmark firstBookmark = root.first(); + root.moveItem(newBookmark, firstBookmark); + root.moveItem(firstBookmark, newBookmark); + } + manager->emitChanged(root); + } + break; + } + + case editID: { + KBookmark oldBookmark = DolphinSettings::instance().bookmark(index); + KBookmark newBookmark = EditBookmarkDialog::getBookmark(i18n("Edit Bookmark"), + oldBookmark.text(), + oldBookmark.url(), + oldBookmark.icon()); + if (!newBookmark.isNull()) { + root.addBookmark(manager, newBookmark); + root.moveItem(newBookmark, oldBookmark); + root.deleteBookmark(oldBookmark); + manager->emitChanged(root); + } + break; + } + + case deleteID: { + KBookmark bookmark = DolphinSettings::instance().bookmark(index); + root.deleteBookmark(bookmark); + manager->emitChanged(root); + break; + } + + case addID: { + KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add Bookmark"), + "New bookmark", + KURL(), + "bookmark"); + if (!bookmark.isNull()) { + root.addBookmark(manager, bookmark); + manager->emitChanged(root); + } + } + + default: break; + } + + delete popup; + popup = 0; + + DolphinView* view = Dolphin::mainWin().activeView(); + adjustSelection(view->url()); +} + + +void BookmarksSidebarPage::adjustSelection(const KURL& url) +{ + // TODO (remarked in dolphin/TODO): the following code is quite equal + // to BookmarkSelector::updateSelection(). + + KBookmarkGroup root = DolphinSettings::instance().bookmarkManager()->root(); + KBookmark bookmark = root.first(); + + int maxLength = 0; + int selectedIndex = -1; + + // Search the bookmark which is equal to the URL or at least is a parent URL. + // If there are more than one possible parent URL candidates, choose the bookmark + // which covers the bigger range of the URL. + int i = 0; + while (!bookmark.isNull()) { + const KURL bookmarkURL = bookmark.url(); + if (bookmarkURL.isParentOf(url)) { + const int length = bookmarkURL.prettyURL().length(); + if (length > maxLength) { + selectedIndex = i; + maxLength = length; + } + } + bookmark = root.next(bookmark); + ++i; + } + + const bool block = m_bookmarksList->signalsBlocked(); + m_bookmarksList->blockSignals(true); + if (selectedIndex < 0) { + // no bookmark matches, hence deactivate any selection + const int currentIndex = m_bookmarksList->index(m_bookmarksList->selectedItem()); + m_bookmarksList->setSelected(currentIndex, false); + } + else { + // select the bookmark which is part of the current URL + m_bookmarksList->setSelected(selectedIndex, true); + } + m_bookmarksList->blockSignals(block); +} + +void BookmarksSidebarPage::slotURLChanged(const KURL& url) +{ + adjustSelection(url); +} + +void BookmarksSidebarPage::connectToActiveView() +{ + DolphinView* view = Dolphin::mainWin().activeView(); + adjustSelection(view->url()); + connect(view, SIGNAL(signalURLChanged(const KURL&)), + this, SLOT(slotURLChanged(const KURL&))); +} + +BookmarksListBox::BookmarksListBox(QWidget* parent) : + QListBox(parent) +{ + setAcceptDrops(true); +} +BookmarksListBox::~BookmarksListBox() +{ +} + +void BookmarksListBox::paintEvent(QPaintEvent* /* event */) +{ + // don't invoke QListBox::paintEvent(event) to prevent + // that any kind of frame is drawn +} + +void BookmarksListBox::contentsMousePressEvent(QMouseEvent *event) +{ + if (event->button() == LeftButton) + dragPos = event->pos(); + QListBox::contentsMousePressEvent(event); +} + +void BookmarksListBox::contentsMouseMoveEvent(QMouseEvent *event) +{ + if (event->state() & LeftButton) { + int distance = (event->pos() - dragPos).manhattanLength(); + if (distance > QApplication::startDragDistance()) + startDrag(); + } + QListBox::contentsMouseMoveEvent(event); +} + +void BookmarksListBox::startDrag() +{ + int currentItem = QListBox::currentItem(); + if (currentItem != -1) { + BookmarkItem* bookmark = (BookmarkItem*)item(currentItem); + if (bookmark!=0){ + KURL::List lst; + lst.append( bookmark->url() ); + KURLDrag *drag = new KURLDrag(lst, this); + drag->drag(); + } + } +} + +void BookmarksListBox::dragEnterEvent( QDragEnterEvent *event ) +{ + event->accept(KURLDrag::canDecode(event)); +} + +void BookmarksListBox::dropEvent( QDropEvent *event ) +{ + KURL::List urls; + if (KURLDrag::decode(event, urls) && !urls.isEmpty()) { + KBookmarkManager* manager = DolphinSettings::instance().bookmarkManager(); + KBookmarkGroup root = manager->root(); + + KURL::List::iterator it; + for(it=urls.begin(); it!=urls.end(); ++it) { + root.addBookmark(manager, (*it).fileName(), (*it), "", false); + } + manager->emitChanged(root); + } +} + +BookmarkItem::BookmarkItem(const QPixmap& pixmap, const QString& text, const KURL& url) : + QListBoxPixmap(pixmap, text), + m_url(url) +{ +} + +BookmarkItem::~BookmarkItem() +{ +} + +int BookmarkItem::height(const QListBox* listBox) const +{ + return QListBoxPixmap::height(listBox) + 8; +} + +const KURL& BookmarkItem::url() const +{ + return m_url; +} + +BookmarkItem* BookmarkItem::fromKbookmark(const KBookmark& bookmark, const KIconLoader& iconLoader) +{ + QPixmap icon(iconLoader.loadIcon(bookmark.icon(), KIcon::NoGroup, KIcon::SizeMedium)); + return new BookmarkItem(icon, bookmark.text(), bookmark.url()); +} diff --git a/src/bookmarkssidebarpage.h b/src/bookmarkssidebarpage.h new file mode 100644 index 0000000..7941fd6 --- /dev/null +++ b/src/bookmarkssidebarpage.h @@ -0,0 +1,139 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef _BOOKMARKSSIDEBARPAGE_H_ +#define _BOOKMARKSSIDEBARPAGE_H_ + +#include +#include +#include +#include +#include + +class BookmarksListBox; + +/** + * @brief Sidebar page for accessing bookmarks. + * + * It is possible to add, remove and edit bookmarks + * by a context menu. The selection of the bookmark + * is automatically adjusted to the URL given by + * the active view. + */ +class BookmarksSidebarPage : public SidebarPage +{ + Q_OBJECT + +public: + BookmarksSidebarPage(QWidget* parent); + virtual ~BookmarksSidebarPage(); + +protected: + /** @see SidebarPage::activeViewChanged() */ + virtual void activeViewChanged(); + +private slots: + /** Fills the listbox with the bookmarks stored in DolphinSettings. */ + void updateBookmarks(); + + /** + * Checks whether the left mouse button has been clicked above a bookmark. + * If this is the case, the URL for the currently active view is adjusted. + */ + void slotMouseButtonClicked(int button, QListBoxItem* item); + + /** @see QListBox::slotContextMenuRequested */ + void slotContextMenuRequested(QListBoxItem* item, const QPoint& pos); + + /** + * Is invoked whenever the URL of the active view has been changed. Adjusts + * the selection of the listbox to the bookmark which is part of the current URL. + */ + void slotURLChanged(const KURL& url); + +private: + /** + * Updates the selection dependent from the given URL \a url. The + * URL must not match exactly to one of the available bookmarks: + * The bookmark which is equal to the URL or at least is a parent URL + * is selected. If there are more than one possible parent URL candidates, + * the bookmark which covers the bigger range of the URL is selected. + */ + void adjustSelection(const KURL& url); + + /** + * Connects to signals from the currently active Dolphin view to get + * informed about URL and bookmark changes. + */ + void connectToActiveView(); + + BookmarksListBox* m_bookmarksList; +}; + +/** + * @brief Listbox which contains a list of bookmarks. + * + * Only QListBox::paintEvent() has been overwritten to prevent + * that a (not wanted) frameborder is drawn. + */ +class BookmarksListBox : public QListBox +{ + Q_OBJECT + +public: + BookmarksListBox(QWidget* parent); + virtual ~BookmarksListBox(); + +protected: + //drag + void contentsMousePressEvent(QMouseEvent *event); + void contentsMouseMoveEvent(QMouseEvent *event); + //drop + void dragEnterEvent( QDragEnterEvent *evt ); + void dropEvent( QDropEvent *evt ); +// void mousePressEvent( QMouseEvent *evt ); +// void mouseMoveEvent( QMouseEvent * ); + /** @see QWidget::paintEvent() */ + virtual void paintEvent(QPaintEvent* event); +private: + QPoint dragPos; + + void startDrag(); +}; + +/** + * @brief Item which can be added to a BookmarksListBox. + * + * Only QListBoxPixmap::height() has been overwritten to get + * a spacing between the items. + */ +class BookmarkItem : public QListBoxPixmap +{ +public: + BookmarkItem(const QPixmap& pixmap, const QString& text, const KURL& url); + virtual ~BookmarkItem(); + virtual int height(const QListBox* listBox) const; + const KURL& url() const; + + static BookmarkItem* fromKbookmark(const KBookmark& bookmark, const KIconLoader& iconLoader); + +private: + KURL m_url; +}; + +#endif // _BOOKMARKSSIDEBARPAGE_H_ diff --git a/src/d3lphin.desktop b/src/d3lphin.desktop new file mode 100644 index 0000000..9eae8ad --- /dev/null +++ b/src/d3lphin.desktop @@ -0,0 +1,65 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Dolphin +Name[pa]=àšĄàšŸàšČàš«àšżàšš +Name[sr]=Đ”Đ”Đ»Ń„ĐžĐœ +Name[sr@latin]=Đ”Đ”Đ»Ń„ĐžĐœ +Name[uk]=Đ”Đ”Đ»ŃŒŃ„Ń–Đœ +Name[ar]=Ű§Ù„ŰŻÙˆÙ„ÙÙŠÙ† +Name[lv]= Dolphin +Name[ne]=à€Ąà€Čà„à€«à€żà€š +Name[pa]=àšĄàšŸàšČàš«àšżàšš +Exec=d3lphin %i -caption "%c" "%u" +Icon=d3lphin +Type=Application +DocPath=d3lphin/d3lphin.html +Categories=Qt;KDE;System;FileManager; +GenericName=File Manager +GenericName[ar]=Ù…ŰŻÙŠŰ± Ű§Ù„Ù…Ù„ÙŰ§ŰȘ +GenericName[be]=ĐšŃ–Ń€Đ°ŃžĐœŃ–Đș фаĐčлаў +GenericName[bg]=ЀаĐčĐ»ĐŸĐČ Đ±Ń€Đ°ŃƒĐ·ŃŠŃ€ +GenericName[ca]=Gestor de fitxers +GenericName[cs]=SprĂĄvce souborĆŻ +GenericName[csb]=MenadĆŒer lopkĂłw +GenericName[de]=Dateimanager +GenericName[el]=ΔÎčαχΔÎčρÎčÏƒÏ„ÎźÏ‚ Î±ÏÏ‡Î”ÎŻÏ‰Îœ +GenericName[eo]=Dosieradministrilo +GenericName[es]=Gestor de ficheros +GenericName[et]=Failihaldur +GenericName[eu]=Fitxategi kudeatzailea +GenericName[fa]=Ù…ŰŻÛŒŰ± ÙŸŰ±ÙˆÙ†ŰŻÙ‡ +GenericName[ga]=Bainisteoir Comhad +GenericName[he]=ŚžŚ Ś”Śœ Ś§Ś‘ŚŠŚ™Ś +GenericName[hu]=FĂĄjlkezelƑ +GenericName[it]=Gestione file +GenericName[ja]=ăƒ•ă‚Ąă‚€ăƒ«ăƒžăƒăƒŒă‚žăƒŁ +GenericName[kk]=ЀаĐčĐ» ĐŒĐ”ĐœĐ”ĐŽĐ¶Đ”Ń€Ń– +GenericName[km]=áž€áž˜áŸ’áž˜ážœáž·áž’ážžâ€‹áž‚áŸ’ážšáž”áŸ‹áž‚áŸ’ážšáž„â€‹ážŻáž€ážŸáž¶ážš +GenericName[ko]=파음 êŽ€ëŠŹìž +GenericName[lv]=Failu pārvaldnieks +GenericName[nb]=Filbehandler +GenericName[nds]=Dateipleger +GenericName[ne]=à€«à€Ÿà€‡à€Č à€Șà„à€°à€Źà€šà„à€§à€• +GenericName[nl]=Bestandsbeheerder +GenericName[nn]=Filhandsamar +GenericName[oc]=Gestionari de fichiĂšrs +GenericName[pa]=àš«àšŸàš‡àšČ àšźà©ˆàššà©‡àšœàš° +GenericName[pl]=MenedĆŒer plikĂłw +GenericName[pt]=Gestor de Ficheiros +GenericName[pt_BR]=Gerenciador de Arquivos +GenericName[ru]=ЀаĐčĐ»ĐŸĐČыĐč ĐŒĐ”ĐœĐ”ĐŽĐ¶Đ”Ń€ +GenericName[sl]=Upravitelj datotek +GenericName[sr]=ĐœĐ”ĐœĐ°ŃŸĐ”Ń€ Ń„Đ°Ń˜Đ»ĐŸĐČĐ° +GenericName[sr@latin]=MenadĆŸer fajlova +GenericName[sv]=Filhanterare +GenericName[tg]=МуЮоро фаĐčĐ» +GenericName[th]=àč€àž„àžŁàž·àčˆàž­àž‡àžĄàž·àž­àžˆàž±àž”àžàžČàžŁàčàžŸàč‰àžĄ +GenericName[uk]=ĐœĐ”ĐœĐ”ĐŽĐ¶Đ”Ń€ фаĐčліĐČ +GenericName[vi]=Bộ quáșŁn lĂœ táș­p tin +GenericName[wa]=Manaedjeu di fitchĂźs +GenericName[x-test]=xxFile Managerxx +GenericName[zh_CN]=æ–‡ä»¶çźĄç†ć™š +GenericName[zh_TW]=æȘ”æĄˆçźĄç†çš‹ćŒ +Terminal=false +MimeType=inode/directory; +InitialPreference=10 diff --git a/src/d3lphinui.rc b/src/d3lphinui.rc new file mode 100644 index 0000000..9280645 --- /dev/null +++ b/src/d3lphinui.rc @@ -0,0 +1,110 @@ + + + + + + Create New + + + + + + + + + + + + + + + + + + View Mode + + + + + + Sort + + + + + + + + + + + + + + Navigation Bar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Main Toolbar + + + + + + + + + + + + + diff --git a/src/detailsviewsettingspage.cpp b/src/detailsviewsettingspage.cpp new file mode 100644 index 0000000..b8c4d97 --- /dev/null +++ b/src/detailsviewsettingspage.cpp @@ -0,0 +1,155 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "detailsviewsettingspage.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "dolphinsettings.h" +#include "dolphindetailsviewsettings.h" +#include "dolphindetailsview.h" + +DetailsViewSettingsPage::DetailsViewSettingsPage(QWidget *parent) : + QVBox(parent), + m_dateBox(0), + m_permissionsBox(0), + m_ownerBox(0), + m_groupBox(0), + m_smallIconSize(0), + m_mediumIconSize(0), + m_largeIconSize(0) +{ + const int spacing = KDialog::spacingHint(); + const int margin = KDialog::marginHint(); + const QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + + setSpacing(spacing); + setMargin(margin); + + DolphinDetailsViewSettings* settings = DolphinSettings::instance().detailsView(); + assert(settings != 0); + + // create "Columns" properties + QGroupBox* columnsGroup = new QGroupBox(4, Qt::Vertical, i18n("Columns"), this); + columnsGroup->setSizePolicy(sizePolicy); + columnsGroup->setMargin(margin); + + QHBox* visibleColumnsLayout = new QHBox(columnsGroup); + m_dateBox = new QCheckBox(i18n("Date"), visibleColumnsLayout); + m_dateBox->setChecked(settings->isColumnEnabled(DolphinDetailsView::DateColumn)); + + m_permissionsBox = new QCheckBox(i18n("Permissions"), visibleColumnsLayout); + m_permissionsBox->setChecked(settings->isColumnEnabled(DolphinDetailsView::PermissionsColumn)); + + m_ownerBox = new QCheckBox(i18n("Owner"), visibleColumnsLayout); + m_ownerBox->setChecked(settings->isColumnEnabled(DolphinDetailsView::OwnerColumn)); + + m_groupBox = new QCheckBox(i18n("Group"), visibleColumnsLayout); + m_groupBox->setChecked(settings->isColumnEnabled(DolphinDetailsView::GroupColumn)); + + // Create "Icon" properties + QButtonGroup* iconSizeGroup = new QButtonGroup(3, Qt::Horizontal, i18n("Icon Size"), this); + iconSizeGroup->setSizePolicy(sizePolicy); + iconSizeGroup->setMargin(margin); + m_smallIconSize = new QRadioButton(i18n("Small"), iconSizeGroup); + m_mediumIconSize = new QRadioButton(i18n("Medium"), iconSizeGroup); + m_largeIconSize = new QRadioButton(i18n("Large"), iconSizeGroup); + switch (settings->iconSize()) { + case KIcon::SizeLarge: + m_largeIconSize->setChecked(true); + break; + + case KIcon::SizeMedium: + m_mediumIconSize->setChecked(true); + break; + + case KIcon::SizeSmall: + default: + m_smallIconSize->setChecked(true); + } + + //new QLabel(i18n("Icon size:"), iconGroup); + //m_iconSizeBox = new QComboBox(iconGroup); + //m_iconSizeBox->insertItem(i18n("Small")); + //m_iconSizeBox->insertItem(i18n("Medium")); + //m_iconSizeBox->insertItem(i18n("Large")); + + // create "Text" properties + QGroupBox* textGroup = new QGroupBox(2, Qt::Horizontal, i18n("Text"), this); + textGroup->setSizePolicy(sizePolicy); + textGroup->setMargin(margin); + + new QLabel(i18n("Font family:"), textGroup); + m_fontFamilyBox = new KFontCombo(textGroup); + m_fontFamilyBox->setCurrentFont(settings->fontFamily()); + + new QLabel(i18n("Font size:"), textGroup); + m_fontSizeBox = new QSpinBox(6, 99, 1, textGroup); + m_fontSizeBox->setValue(settings->fontSize()); + + // Add a dummy widget with no restriction regarding + // a vertical resizing. This assures that the dialog layout + // is not stretched vertically. + new QWidget(this); +} + + +DetailsViewSettingsPage::~DetailsViewSettingsPage() +{ +} + +void DetailsViewSettingsPage::applySettings() +{ + DolphinDetailsViewSettings* settings = DolphinSettings::instance().detailsView(); + assert(settings != 0); + + settings->setColumnEnabled(DolphinDetailsView::DateColumn, + m_dateBox->isChecked()); + settings->setColumnEnabled(DolphinDetailsView::PermissionsColumn, + m_permissionsBox->isChecked()); + settings->setColumnEnabled(DolphinDetailsView::OwnerColumn, + m_ownerBox->isChecked()); + settings->setColumnEnabled(DolphinDetailsView::GroupColumn, + m_groupBox->isChecked()); + + int iconSize = KIcon::SizeSmall; + if (m_mediumIconSize->isChecked()) { + iconSize = KIcon::SizeMedium; + } + else if (m_largeIconSize->isChecked()) { + iconSize = KIcon::SizeLarge; + } + settings->setIconSize(iconSize); + + settings->setFontFamily(m_fontFamilyBox->currentFont()); + settings->setFontSize(m_fontSizeBox->value()); +} + +#include "detailsviewsettingspage.moc" diff --git a/src/detailsviewsettingspage.h b/src/detailsviewsettingspage.h new file mode 100644 index 0000000..c9bde55 --- /dev/null +++ b/src/detailsviewsettingspage.h @@ -0,0 +1,65 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef DETAILSVIEWSETTINGSPAGE_H +#define DETAILSVIEWSETTINGSPAGE_H + +#include +class QCheckBox; +class KFontCombo; +class QSpinBox; +class QComboBox; +class QRadioButton; + +/** + * @brief Represents the page from the Dolphin Settings which allows + * to modify the settings for the details view. + * + * @author Peter Penz + */ +class DetailsViewSettingsPage : public QVBox +{ + Q_OBJECT + +public: + DetailsViewSettingsPage(QWidget* parent); + virtual ~DetailsViewSettingsPage(); + + /** + * Applies the settings for the details view. + * The settings are persisted automatically when + * closing Dolphin. + */ + void applySettings(); + +private: + QCheckBox* m_dateBox; + QCheckBox* m_permissionsBox; + QCheckBox* m_ownerBox; + QCheckBox* m_groupBox; + QRadioButton* m_smallIconSize; + QRadioButton* m_mediumIconSize; + QRadioButton* m_largeIconSize; + + KFontCombo* m_fontFamilyBox; + QSpinBox* m_fontSizeBox; +}; + +#endif diff --git a/src/dolphin.cpp b/src/dolphin.cpp new file mode 100644 index 0000000..09eeeeb --- /dev/null +++ b/src/dolphin.cpp @@ -0,0 +1,1711 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * Copyright (C) 2006 by Stefan Monov * + * Copyright (C) 2006 by Cvetoslav Ludmiloff * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphin.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "urlnavigator.h" +#include "viewpropertiesdialog.h" +#include "viewproperties.h" +#include "dolphinsettings.h" +#include "dolphinsettingsdialog.h" +#include "dolphinstatusbar.h" +#include "undomanager.h" +#include "progressindicator.h" +#include "dolphinsettings.h" +#include "sidebars.h" +#include "sidebarssettings.h" + + +Dolphin& Dolphin::mainWin() +{ + static Dolphin* instance = 0; + if (instance == 0) { + instance = new Dolphin(); + instance->init(); + } + return *instance; +} + +Dolphin::~Dolphin() +{ +} + +void Dolphin::setActiveView(DolphinView* view) +{ + assert((view == m_view[PrimaryIdx]) || (view == m_view[SecondaryIdx])); + if (m_activeView == view) { + return; + } + + m_activeView = view; + + updateHistory(); + updateEditActions(); + updateViewActions(); + updateGoActions(); + + setCaption(m_activeView->url().fileName()); + + emit activeViewChanged(); +} + +void Dolphin::dropURLs(const KURL::List& urls, + const KURL& destination) +{ + const ButtonState keyboardState = KApplication::keyboardMouseState(); + const bool shiftPressed = (keyboardState & ShiftButton) > 0; + const bool controlPressed = (keyboardState & ControlButton) > 0; + + int selectedIndex = -1; + if (shiftPressed && controlPressed) { + // shortcut for 'Linke Here' is used + selectedIndex = 2; + } + else if (controlPressed) { + // shortcut for 'Copy Here' is used + selectedIndex = 1; + } + else if (shiftPressed) { + // shortcut for 'Move Here' is used + selectedIndex = 0; + } + else { + // no shortcut is used, hence open a popup menu + KPopupMenu popup(this); + + popup.insertItem(SmallIcon("goto"), i18n("&Move Here") + "\t" + KKey::modFlagLabel(KKey::SHIFT), 0); + popup.insertItem(SmallIcon("editcopy"), i18n( "&Copy Here" ) + "\t" + KKey::modFlagLabel(KKey::CTRL), 1); + popup.insertItem(i18n("&Link Here") + "\t" + KKey::modFlagLabel((KKey::ModFlag)(KKey::CTRL|KKey::SHIFT)), 2); + popup.insertSeparator(); + popup.insertItem(SmallIcon("stop"), i18n("Cancel"), 3); + popup.setAccel(i18n("Escape"), 3); + + selectedIndex = popup.exec(QCursor::pos()); + } + + if (selectedIndex < 0) { + return; + } + + switch (selectedIndex) { + case 0: { + // 'Move Here' has been selected + updateViewProperties(urls); + moveURLs(urls, destination); + break; + } + + case 1: { + // 'Copy Here' has been selected + updateViewProperties(urls); + copyURLs(urls, destination); + break; + } + + case 2: { + // 'Link Here' has been selected + KIO::Job* job = KIO::link(urls, destination); + addPendingUndoJob(job, DolphinCommand::Link, urls, destination); + break; + } + + default: + // 'Cancel' has been selected + break; + } +} + +void Dolphin::refreshViews() +{ + const bool split = DolphinSettings::instance().isViewSplit(); + const bool isPrimaryViewActive = (m_activeView == m_view[PrimaryIdx]); + DolphinSettings& settings = DolphinSettings::instance(); + KURL url; + for (int i = PrimaryIdx; i <= SecondaryIdx; ++i) { + if (m_view[i] != 0) { + url = m_view[i]->url(); + + // delete view instance... + m_view[i]->close(); + m_view[i]->deleteLater(); + m_view[i] = 0; + } + + if (split || (i == PrimaryIdx)) { + // ... and recreate it + ViewProperties props(url); + m_view[i] = new DolphinView(m_splitter, + url, + props.viewMode(), + props.isShowHiddenFilesEnabled()); + m_view[i]->show(); + } + + rightSidebarSettings* rightsidebarSettings = settings.rightsidebar(); + assert(rightsidebarSettings != 0); + if (rightsidebarSettings->isVisible()) { + m_splitter->moveToLast(m_rightsidebar); + } + } + + m_activeView = isPrimaryViewActive ? m_view[PrimaryIdx] : m_view[SecondaryIdx]; + assert(m_activeView != 0); + + updateViewActions(); + emit activeViewChanged(); +} + +void Dolphin::slotHistoryChanged() +{ + updateHistory(); +} + +void Dolphin::slotURLChanged(const KURL& url) +{ + updateEditActions(); + updateGoActions(); + setCaption(url.fileName()); +} + +void Dolphin::slotURLChangeRequest(const KURL& url) +{ + clearStatusBar(); + m_activeView->setURL(url); +} + +void Dolphin::slotViewModeChanged() +{ + updateViewActions(); +} + +void Dolphin::slotShowHiddenFilesChanged() +{ + KToggleAction* showHiddenFilesAction = + static_cast(actionCollection()->action("show_hidden_files")); + showHiddenFilesAction->setChecked(m_activeView->isShowHiddenFilesEnabled()); +} + +void Dolphin::slotShowFilterBarChanged() +{ + KToggleAction* showFilterBarAction = + static_cast(actionCollection()->action("show_filter_bar")); + showFilterBarAction->setChecked(m_activeView->isFilterBarVisible()); +} + +void Dolphin::slotSortingChanged(DolphinView::Sorting sorting) +{ + KAction* action = 0; + switch (sorting) { + case DolphinView::SortByName: + action = actionCollection()->action("by_name"); + break; + case DolphinView::SortBySize: + action = actionCollection()->action("by_size"); + break; + case DolphinView::SortByDate: + action = actionCollection()->action("by_date"); + break; + default: + break; + } + + if (action != 0) { + KToggleAction* toggleAction = static_cast(action); + toggleAction->setChecked(true); + } +} + +void Dolphin::slotSortOrderChanged(Qt::SortOrder order) +{ + KToggleAction* descending = static_cast(actionCollection()->action("descending")); + const bool sortDescending = (order == Qt::Descending); + descending->setChecked(sortDescending); +} + +void Dolphin::slotSelectionChanged() +{ + updateEditActions(); + + assert(m_view[PrimaryIdx] != 0); + int selectedURLsCount = m_view[PrimaryIdx]->selectedURLs().count(); + if (m_view[SecondaryIdx] != 0) { + selectedURLsCount += m_view[SecondaryIdx]->selectedURLs().count(); + } + + KAction* compareFilesAction = actionCollection()->action("compare_files"); + compareFilesAction->setEnabled(selectedURLsCount == 2); + + m_activeView->updateStatusBar(); + + emit selectionChanged(); +} + +void Dolphin::closeEvent(QCloseEvent* event) +{ + KConfig* config = kapp->config(); + config->setGroup("General"); + config->writeEntry("First Run", false); + + DolphinSettings& settings = DolphinSettings::instance(); + + leftSidebarSettings* leftsidebarSettings = settings.leftsidebar(); + const bool isleftSidebarVisible = (m_leftsidebar != 0); + leftsidebarSettings->setVisible(isleftSidebarVisible); + if (isleftSidebarVisible) { + leftsidebarSettings->setWidth(m_leftsidebar->width()); + } + + rightSidebarSettings* rightsidebarSettings = settings.rightsidebar(); + const bool isrightSidebarVisible = (m_rightsidebar != 0); + rightsidebarSettings->setVisible(isrightSidebarVisible); + if (isrightSidebarVisible) { + rightsidebarSettings->setWidth(m_rightsidebar->width()); + } + + settings.save(); + + config->sync(); + KMainWindow::closeEvent(event); +} + +void Dolphin::saveProperties(KConfig* config) +{ + config->setGroup("Primary view"); + config->writeEntry("URL", m_view[PrimaryIdx]->url().url()); + config->writeEntry("Editable URL", m_view[PrimaryIdx]->isURLEditable()); + if (m_view[SecondaryIdx] != 0) { + config->setGroup("Secondary view"); + config->writeEntry("URL", m_view[SecondaryIdx]->url().url()); + config->writeEntry("Editable URL", m_view[SecondaryIdx]->isURLEditable()); + } +} + +void Dolphin::readProperties(KConfig* config) +{ + config->setGroup("Primary view"); + m_view[PrimaryIdx]->setURL(config->readEntry("URL")); + m_view[PrimaryIdx]->setURLEditable(config->readBoolEntry("Editable URL")); + if (config->hasGroup("Secondary view")) { + config->setGroup("Secondary view"); + if (m_view[SecondaryIdx] == 0) { + toggleSplitView(); + } + m_view[SecondaryIdx]->setURL(config->readEntry("URL")); + m_view[SecondaryIdx]->setURLEditable(config->readBoolEntry("Editable URL")); + } + else if (m_view[SecondaryIdx] != 0) { + toggleSplitView(); + } +} + +void Dolphin::createFolder() +{ + // Parts of the following code have been taken + // from the class KonqPopupMenu located in + // libqonq/konq_popupmenu.h of Konqueror. + // (Copyright (C) 2000 David Faure , + // Copyright (C) 2001 Holger Freyther ) + + clearStatusBar(); + + DolphinStatusBar* statusBar = m_activeView->statusBar(); + const KURL baseURL(m_activeView->url()); + + QString name(i18n("New Folder")); + if (baseURL.isLocalFile() && QFileInfo(baseURL.path(+1) + name).exists()) { + name = KIO::RenameDlg::suggestName(baseURL, i18n("New Folder")); + } + + bool ok = false; + name = KInputDialog::getText(i18n("New Folder"), + i18n("Enter folder name:" ), + name, + &ok, + this); + + if (!ok) { + // the user has pressed 'Cancel' + return; + } + + assert(!name.isEmpty()); + + KURL url; + if ((name[0] == '/') || (name[0] == '~')) { + url.setPath(KShell::tildeExpand(name)); + } + else { + name = KIO::encodeFileName(name); + url = baseURL; + url.addPath(name); + } + ok = KIO::NetAccess::mkdir(url, this); + + // TODO: provide message type hint + if (ok) { + statusBar->setMessage(i18n("Created folder %1.").arg(url.path()), + DolphinStatusBar::OperationCompleted); + + DolphinCommand command(DolphinCommand::CreateFolder, KURL::List(), url); + UndoManager::instance().addCommand(command); + } + else { + // Creating of the folder has been failed. Check whether the creating + // has been failed because a folder with the same name exists... + if (KIO::NetAccess::exists(url, true, this)) { + statusBar->setMessage(i18n("A folder named %1 already exists.").arg(url.path()), + DolphinStatusBar::Error); + } + else { + statusBar->setMessage(i18n("Creating of folder %1 failed.").arg(url.path()), + DolphinStatusBar::Error); + } + + } +} + +void Dolphin::createFile() +{ + // Parts of the following code have been taken + // from the class KonqPopupMenu located in + // libqonq/konq_popupmenu.h of Konqueror. + // (Copyright (C) 2000 David Faure , + // Copyright (C) 2001 Holger Freyther ) + + clearStatusBar(); + + // TODO: const Entry& entry = m_createFileTemplates[QString(sender->name())]; + // should be enough. Anyway: the implemantation of [] does a linear search internally too. + KSortableValueList::ConstIterator it = m_createFileTemplates.begin(); + KSortableValueList::ConstIterator end = m_createFileTemplates.end(); + + const QString senderName(sender()->name()); + bool found = false; + CreateFileEntry entry; + while (!found && (it != end)) { + if ((*it).index() == senderName) { + entry = (*it).value(); + found = true; + } + else { + ++it; + } + } + + DolphinStatusBar* statusBar = m_activeView->statusBar(); + if (!found || !QFile::exists(entry.templatePath)) { + statusBar->setMessage(i18n("Could not create file."), DolphinStatusBar::Error); + return; + } + + // Get the source path of the template which should be copied. + // The source path is part of the URL entry of the desktop file. + const int pos = entry.templatePath.findRev('/'); + QString sourcePath(entry.templatePath.left(pos + 1)); + sourcePath += KDesktopFile(entry.templatePath, true).readPathEntry("URL"); + + QString name(i18n(entry.name)); + // Most entry names end with "..." (e. g. "HTML File..."), which is ok for + // menus but no good choice for a new file name -> remove the dots... + name.replace("...", QString::null); + + // add the file extension to the name + name.append(sourcePath.right(sourcePath.length() - sourcePath.findRev('.'))); + + // Check whether a file with the current name already exists. If yes suggest automatically + // a unique file name (e. g. "HTML File" will be replaced by "HTML File_1"). + const KURL viewURL(m_activeView->url()); + const bool fileExists = viewURL.isLocalFile() && + QFileInfo(viewURL.path(+1) + KIO::encodeFileName(name)).exists(); + if (fileExists) { + name = KIO::RenameDlg::suggestName(viewURL, name); + } + + // let the user change the suggested file name + bool ok = false; + name = KInputDialog::getText(entry.name, + entry.comment, + name, + &ok, + this); + if (!ok) { + // the user has pressed 'Cancel' + return; + } + + // before copying the template to the destination path check whether a file + // with the given name already exists + const QString destPath(viewURL.prettyURL() + "/" + KIO::encodeFileName(name)); + const KURL destURL(destPath); + if (KIO::NetAccess::exists(destURL, false, this)) { + statusBar->setMessage(i18n("A file named %1 already exists.").arg(name), + DolphinStatusBar::Error); + return; + } + + // copy the template to the destination path + const KURL sourceURL(sourcePath); + KIO::CopyJob* job = KIO::copyAs(sourceURL, destURL); + job->setDefaultPermissions(true); + if (KIO::NetAccess::synchronousRun(job, this)) { + statusBar->setMessage(i18n("Created file %1.").arg(name), + DolphinStatusBar::OperationCompleted); + + KURL::List list; + list.append(sourceURL); + DolphinCommand command(DolphinCommand::CreateFile, list, destURL); + UndoManager::instance().addCommand(command); + + } + else { + statusBar->setMessage(i18n("Creating of file %1 failed.").arg(name), + DolphinStatusBar::Error); + } +} + +void Dolphin::rename() +{ + clearStatusBar(); + m_activeView->renameSelectedItems(); +} + +void Dolphin::moveToTrash() +{ + clearStatusBar(); + KURL::List selectedURLs = m_activeView->selectedURLs(); + KIO::Job* job = KIO::trash(selectedURLs); + addPendingUndoJob(job, DolphinCommand::Trash, selectedURLs, m_activeView->url()); +} + +void Dolphin::deleteItems() +{ + clearStatusBar(); + + KURL::List list = m_activeView->selectedURLs(); + const uint itemCount = list.count(); + assert(itemCount >= 1); + + QString text; + if (itemCount > 1) { + text = i18n("Do you really want to delete the %1 selected items?").arg(itemCount); + } + else { + const KURL& url = list.first(); + text = i18n("Do you really want to delete '%1'?").arg(url.fileName()); + } + + const bool del = KMessageBox::warningContinueCancel(this, + text, + QString::null, + KGuiItem(i18n("Delete"), SmallIcon("editdelete")) + ) == KMessageBox::Continue; + if (del) { + KIO::Job* job = KIO::del(list); + connect(job, SIGNAL(result(KIO::Job*)), + this, SLOT(slotHandleJobError(KIO::Job*))); + connect(job, SIGNAL(result(KIO::Job*)), + this, SLOT(slotDeleteFileFinished(KIO::Job*))); + } +} + +void Dolphin::properties() +{ + const KFileItemList* sourceList = m_activeView->selectedItems(); + if (sourceList == 0) { + return; + } + + KFileItemList list; + KFileItemListIterator it(*sourceList); + KFileItem* item = 0; + while ((item = it.current()) != 0) { + list.append(item); + ++it; + } + + new KPropertiesDialog(list, this); +} + +void Dolphin::quit() +{ + close(); +} + +void Dolphin::slotHandleJobError(KIO::Job* job) +{ + if (job->error() != 0) { + m_activeView->statusBar()->setMessage(job->errorString(), + DolphinStatusBar::Error); + } +} + +void Dolphin::slotDeleteFileFinished(KIO::Job* job) +{ + if (job->error() == 0) { + m_activeView->statusBar()->setMessage(i18n("Delete operation completed."), + DolphinStatusBar::OperationCompleted); + + // TODO: In opposite to the 'Move to Trash' operation in the class KFileIconView + // no rearranging of the item position is done when a file has been deleted. + // This is bypassed by reloading the view, but it might be worth to investigate + // deeper for the root of this issue. + m_activeView->reload(); + } +} + +void Dolphin::slotUndoAvailable(bool available) +{ + KAction* undoAction = actionCollection()->action(KStdAction::stdName(KStdAction::Undo)); + if (undoAction != 0) { + undoAction->setEnabled(available); + } +} + +void Dolphin::slotUndoTextChanged(const QString& text) +{ + KAction* undoAction = actionCollection()->action(KStdAction::stdName(KStdAction::Undo)); + if (undoAction != 0) { + undoAction->setText(text); + } +} + +void Dolphin::slotRedoAvailable(bool available) +{ + KAction* redoAction = actionCollection()->action(KStdAction::stdName(KStdAction::Redo)); + if (redoAction != 0) { + redoAction->setEnabled(available); + } +} + +void Dolphin::slotRedoTextChanged(const QString& text) +{ + KAction* redoAction = actionCollection()->action(KStdAction::stdName(KStdAction::Redo)); + if (redoAction != 0) { + redoAction->setText(text); + } +} + +void Dolphin::cut() +{ + m_clipboardContainsCutData = true; + QDragObject* data = new KURLDrag(m_activeView->selectedURLs(), + widget()); + QApplication::clipboard()->setData(data); +} + +void Dolphin::copy() +{ + m_clipboardContainsCutData = false; + QDragObject* data = new KURLDrag(m_activeView->selectedURLs(), + widget()); + QApplication::clipboard()->setData(data); +} + +void Dolphin::paste() +{ + QClipboard* clipboard = QApplication::clipboard(); + QMimeSource* data = clipboard->data(); + if (!KURLDrag::canDecode(data)) { + return; + } + + clearStatusBar(); + + KURL::List sourceURLs; + KURLDrag::decode(data, sourceURLs); + + // per default the pasting is done into the current URL of the view + KURL destURL(m_activeView->url()); + + // check whether the pasting should be done into a selected directory + KURL::List selectedURLs = m_activeView->selectedURLs(); + if (selectedURLs.count() == 1) { + const KFileItem fileItem(S_IFDIR, + KFileItem::Unknown, + selectedURLs.first(), + true); + if (fileItem.isDir()) { + // only one item is selected which is a directory, hence paste + // into this directory + destURL = selectedURLs.first(); + } + } + + + updateViewProperties(sourceURLs); + if (m_clipboardContainsCutData) { + moveURLs(sourceURLs, destURL); + m_clipboardContainsCutData = false; + clipboard->clear(); + } + else { + copyURLs(sourceURLs, destURL); + } +} + +void Dolphin::updatePasteAction() +{ + KAction* pasteAction = actionCollection()->action(KStdAction::stdName(KStdAction::Paste)); + if (pasteAction == 0) { + return; + } + + QString text(i18n("Paste")); + QClipboard* clipboard = QApplication::clipboard(); + QMimeSource* data = clipboard->data(); + if (KURLDrag::canDecode(data)) { + pasteAction->setEnabled(true); + + KURL::List urls; + KURLDrag::decode(data, urls); + const int count = urls.count(); + if (count == 1) { + pasteAction->setText(i18n("Paste 1 File")); + } + else { + pasteAction->setText(i18n("Paste %1 Files").arg(count)); + } + } + else { + pasteAction->setEnabled(false); + pasteAction->setText(i18n("Paste")); + } + + if (pasteAction->isEnabled()) { + KURL::List urls = m_activeView->selectedURLs(); + const uint count = urls.count(); + if (count > 1) { + // pasting should not be allowed when more than one file + // is selected + pasteAction->setEnabled(false); + } + else if (count == 1) { + // Only one file is selected. Pasting is only allowed if this + // file is a directory. + const KFileItem fileItem(S_IFDIR, + KFileItem::Unknown, + urls.first(), + true); + pasteAction->setEnabled(fileItem.isDir()); + } + } +} + +void Dolphin::selectAll() +{ + clearStatusBar(); + m_activeView->selectAll(); +} + +void Dolphin::invertSelection() +{ + clearStatusBar(); + m_activeView->invertSelection(); +} +void Dolphin::setIconsView() +{ + m_activeView->setMode(DolphinView::IconsView); +} + +void Dolphin::setDetailsView() +{ + m_activeView->setMode(DolphinView::DetailsView); +} + +void Dolphin::setPreviewsView() +{ + m_activeView->setMode(DolphinView::PreviewsView); +} + +void Dolphin::sortByName() +{ + m_activeView->setSorting(DolphinView::SortByName); +} + +void Dolphin::sortBySize() +{ + m_activeView->setSorting(DolphinView::SortBySize); +} + +void Dolphin::sortByDate() +{ + m_activeView->setSorting(DolphinView::SortByDate); +} + +void Dolphin::toggleSortOrder() +{ + const Qt::SortOrder order = (m_activeView->sortOrder() == Qt::Ascending) ? + Qt::Descending : + Qt::Ascending; + m_activeView->setSortOrder(order); +} + +void Dolphin::toggleSplitView() +{ + if (m_view[SecondaryIdx] == 0) { + const int newWidth = (m_view[PrimaryIdx]->width() - m_splitter->handleWidth()) / 2; + + // create a secondary view + m_view[SecondaryIdx] = new DolphinView(m_splitter, + m_view[PrimaryIdx]->url(), + m_view[PrimaryIdx]->mode(), + m_view[PrimaryIdx]->isShowHiddenFilesEnabled()); + + QValueList list = m_splitter->sizes(); + assert(!list.isEmpty()); + list.pop_back(); + list.append(newWidth); + list.append(newWidth); + m_splitter->setSizes(list); + m_view[SecondaryIdx]->show(); + if(m_rightsidebar != 0){ + closerightSidebar(); + openrightSidebar(); + } + } + else { + // remove secondary view + if (m_activeView == m_view[PrimaryIdx]) { + m_view[SecondaryIdx]->close(); + m_view[SecondaryIdx]->deleteLater(); + m_view[SecondaryIdx] = 0; + setActiveView(m_view[PrimaryIdx]); + } + else { + // The secondary view is active, hence from the users point of view + // the content of the secondary view should be moved to the primary view. + // From an implementation point of view it is more efficient to close + // the primary view and exchange the internal pointers afterwards. + m_view[PrimaryIdx]->close(); + m_view[PrimaryIdx]->deleteLater(); + m_view[PrimaryIdx] = m_view[SecondaryIdx]; + m_view[SecondaryIdx] = 0; + setActiveView(m_view[PrimaryIdx]); + } + } +} + +void Dolphin::reloadView() +{ + clearStatusBar(); + m_activeView->reload(); +} + +void Dolphin::stopLoading() +{ +} + +void Dolphin::showHiddenFiles() +{ + clearStatusBar(); + + const KToggleAction* showHiddenFilesAction = + static_cast(actionCollection()->action("show_hidden_files")); + const bool show = showHiddenFilesAction->isChecked(); + m_activeView->setShowHiddenFilesEnabled(show); +} + +void Dolphin::showFilterBar() +{ + const KToggleAction* showFilterBarAction = + static_cast(actionCollection()->action("show_filter_bar")); + const bool show = showFilterBarAction->isChecked(); + m_activeView->slotShowFilterBar(show); +} + +void Dolphin::zoomIn() +{ + m_activeView->zoomIn(); + updateViewActions(); +} + +void Dolphin::zoomOut() +{ + m_activeView->zoomOut(); + updateViewActions(); +} + +void Dolphin::editLocation() +{ + clearStatusBar(); + m_activeView->editURL(); +} + +void Dolphin::browse() +{ + clearStatusBar(); + m_activeView->setURLEditable(false); +} + +void Dolphin::adjustViewProperties() +{ + clearStatusBar(); + ViewPropertiesDialog dlg(m_activeView); + dlg.exec(); +} + +void Dolphin::goBack() +{ + clearStatusBar(); + m_activeView->goBack(); +} + +void Dolphin::goForward() +{ + clearStatusBar(); + m_activeView->goForward(); +} + +void Dolphin::goUp() +{ + clearStatusBar(); + m_activeView->goUp(); +} + +void Dolphin::goHome() +{ + clearStatusBar(); + m_activeView->goHome(); +} + +void Dolphin::openTerminal() +{ + QString command("konsole --workdir \""); + command.append(m_activeView->url().path()); + command.append('\"'); + + KRun::runCommand(command, "Konsole", "konsole"); +} + +void Dolphin::findFile() +{ + KRun::run("kfind", m_activeView->url()); +} + +void Dolphin::compareFiles() +{ + // The method is only invoked if exactly 2 files have + // been selected. The selected files may be: + // - both in the primary view + // - both in the secondary view + // - one in the primary view and the other in the secondary + // view + assert(m_view[PrimaryIdx] != 0); + + KURL urlA; + KURL urlB; + KURL::List urls = m_view[PrimaryIdx]->selectedURLs(); + + switch (urls.count()) { + case 0: { + assert(m_view[SecondaryIdx] != 0); + urls = m_view[SecondaryIdx]->selectedURLs(); + assert(urls.count() == 2); + urlA = urls[0]; + urlB = urls[1]; + break; + } + + case 1: { + urlA = urls[0]; + assert(m_view[SecondaryIdx] != 0); + urls = m_view[SecondaryIdx]->selectedURLs(); + assert(urls.count() == 1); + urlB = urls[0]; + break; + } + + case 2: { + urlA = urls[0]; + urlB = urls[1]; + break; + } + + default: { + // may not happen: compareFiles may only get invoked if 2 + // files are selected + assert(false); + } + } + + QString command("kompare -c \""); + command.append(urlA.prettyURL()); + command.append("\" \""); + command.append(urlB.prettyURL()); + command.append('\"'); + KRun::runCommand(command, "Kompare", "kompare"); + +} + +void Dolphin::editSettings() +{ + // TODO: make a static method for opening the settings dialog + DolphinSettingsDialog dlg; + dlg.exec(); +} + +void Dolphin::addUndoOperation(KIO::Job* job) +{ + if (job->error() != 0) { + slotHandleJobError(job); + } + else { + const int id = job->progressId(); + + // set iterator to the executed command with the current id... + QValueList::Iterator it = m_pendingUndoJobs.begin(); + const QValueList::Iterator end = m_pendingUndoJobs.end(); + bool found = false; + while (!found && (it != end)) { + if ((*it).id == id) { + found = true; + } + else { + ++it; + } + } + + if (found) { + DolphinCommand command = (*it).command; + if (command.type() == DolphinCommand::Trash) { + // To be able to perform an undo for the 'Move to Trash' operation + // all source URLs must be updated with the trash URL. E. g. when moving + // a file "test.txt" and a second file "test.txt" to the trash, + // then the filenames in the trash are "0-test.txt" and "1-test.txt". + QMap metaData = job->metaData(); + KURL::List newSourceURLs; + + KURL::List sourceURLs = command.source(); + KURL::List::Iterator sourceIt = sourceURLs.begin(); + const KURL::List::Iterator sourceEnd = sourceURLs.end(); + + while (sourceIt != sourceEnd) { + QMap::ConstIterator metaIt = metaData.find("trashURL-" + (*sourceIt).path()); + if (metaIt != metaData.end()) { + newSourceURLs.append(KURL(metaIt.data())); + } + ++sourceIt; + } + command.setSource(newSourceURLs); + } + + UndoManager::instance().addCommand(command); + m_pendingUndoJobs.erase(it); + + DolphinStatusBar* statusBar = m_activeView->statusBar(); + switch (command.type()) { + case DolphinCommand::Copy: + statusBar->setMessage(i18n("Copy operation completed."), + DolphinStatusBar::OperationCompleted); + break; + case DolphinCommand::Move: + statusBar->setMessage(i18n("Move operation completed."), + DolphinStatusBar::OperationCompleted); + break; + case DolphinCommand::Trash: + statusBar->setMessage(i18n("Move to trash operation completed."), + DolphinStatusBar::OperationCompleted); + break; + default: + break; + } + } + } +} + +Dolphin::Dolphin() : + KMainWindow(0, "D3lphin"), + m_splitter(0), + m_leftsidebar(0), + m_rightsidebar(0), + m_activeView(0), + m_clipboardContainsCutData(false) +{ + m_view[PrimaryIdx] = 0; + m_view[SecondaryIdx] = 0; + + m_fileGroupActions.setAutoDelete(true); + + // TODO: the following members are not used yet. See documentation + // of Dolphin::linkGroupActions() and Dolphin::linkToDeviceActions() + // in the header file for details. + //m_linkGroupActions.setAutoDelete(true); + //m_linkToDeviceActions.setAutoDelete(true); +} + +void Dolphin::init() +{ + // Check whether Dolphin runs the first time. If yes then + // a proper default window size is given at the end of Dolphin::init(). + KConfig* config = kapp->config(); + config->setGroup("General"); + const bool firstRun = config->readBoolEntry("First Run", true); + + setAcceptDrops(true); + + m_splitter = new QSplitter(this); + + DolphinSettings& settings = DolphinSettings::instance(); + + KBookmarkManager* manager = settings.bookmarkManager(); + assert(manager != 0); + KBookmarkGroup root = manager->root(); + if (root.first().isNull()) { + root.addBookmark(manager, i18n("Home"), settings.homeURL(), "folder_home"); + root.addBookmark(manager, i18n("System"), KURL("system:/"), "system"); + root.addBookmark(manager, i18n("Storage Media"), KURL("system:/media"), "blockdevice"); + root.addBookmark(manager, i18n("Network"), KURL("remote:/"), "network_local"); + root.addBookmark(manager, i18n("Users' Folders"), KURL("system:/users"), "folder_home2"); + root.addBookmark(manager, i18n("Root"), KURL("/"), "folder_red"); + root.addBookmark(manager, i18n("Trash"), KURL("trash:/"), "trashcan_full"); + } + + const KURL& homeURL = root.first().url(); + setCaption(homeURL.fileName()); + ViewProperties props(homeURL); + m_view[PrimaryIdx] = new DolphinView(m_splitter, + homeURL, + props.viewMode(), + props.isShowHiddenFilesEnabled()); + + m_activeView = m_view[PrimaryIdx]; + + setCentralWidget(m_splitter); + + // open sidebars + leftSidebarSettings* leftsidebarSettings = settings.leftsidebar(); + assert(leftsidebarSettings != 0); + if (leftsidebarSettings->isVisible()) { + openleftSidebar(); + } + + rightSidebarSettings* rightsidebarSettings = settings.rightsidebar(); + assert(rightsidebarSettings != 0); + if (rightsidebarSettings->isVisible()) { + openrightSidebar(); + } + + setupActions(); + setupGUI(Keys|Save|Create|ToolBar); + createGUI(0, false); + + stateChanged("new_file"); + setAutoSaveSettings(); + + QClipboard* clipboard = QApplication::clipboard(); + connect(clipboard, SIGNAL(dataChanged()), + this, SLOT(updatePasteAction())); + updatePasteAction(); + updateGoActions(); + + setupCreateNewMenuActions(); + + loadSettings(); + + if (firstRun) { + // assure a proper default size if Dolphin runs the first time + resize(640, 480); + } +} + +void Dolphin::loadSettings() +{ + DolphinSettings& settings = DolphinSettings::instance(); + + KToggleAction* splitAction = static_cast(actionCollection()->action("split_view")); + if (settings.isViewSplit()) { + splitAction->setChecked(true); + toggleSplitView(); + } + + updateViewActions(); +} + +void Dolphin::setupActions() +{ + // setup 'File' menu + KAction* createFolder = new KAction(i18n("Folder..."), "Ctrl+N", + this, SLOT(createFolder()), + actionCollection(), "create_folder"); + createFolder->setIcon("folder"); + + new KAction(i18n("Rename"), KKey(Key_F2), + this, SLOT(rename()), + actionCollection(), "rename"); + + KAction* moveToTrashAction = new KAction(i18n("Move to Trash"), KKey(Key_Delete), + this, SLOT(moveToTrash()), + actionCollection(), "move_to_trash"); + moveToTrashAction->setIcon("edittrash"); + + KAction* deleteAction = new KAction(i18n("Delete"), "Shift+Delete", + this, SLOT(deleteItems()), + actionCollection(), "delete"); + deleteAction->setIcon("editdelete"); + + new KAction(i18n("Propert&ies"), "Alt+Return", + this, SLOT(properties()), + actionCollection(), "properties"); + + KStdAction::quit(this, SLOT(quit()), actionCollection()); + + // setup 'Edit' menu + UndoManager& undoManager = UndoManager::instance(); + KStdAction::undo(&undoManager, + SLOT(undo()), + actionCollection()); + connect(&undoManager, SIGNAL(undoAvailable(bool)), + this, SLOT(slotUndoAvailable(bool))); + connect(&undoManager, SIGNAL(undoTextChanged(const QString&)), + this, SLOT(slotUndoTextChanged(const QString&))); + + KStdAction::redo(&undoManager, + SLOT(redo()), + actionCollection()); + connect(&undoManager, SIGNAL(redoAvailable(bool)), + this, SLOT(slotRedoAvailable(bool))); + connect(&undoManager, SIGNAL(redoTextChanged(const QString&)), + this, SLOT(slotRedoTextChanged(const QString&))); + + KStdAction::cut(this, SLOT(cut()), actionCollection()); + KStdAction::copy(this, SLOT(copy()), actionCollection()); + KStdAction::paste(this, SLOT(paste()), actionCollection()); + + new KAction(i18n("Select All"), "Ctrl+A", + this, SLOT(selectAll()), + actionCollection(), "select_all"); + + new KAction(i18n("Invert Selection"), "Ctrl+Shift+A", + this, SLOT(invertSelection()), + actionCollection(), "invert_selection"); + + // setup 'View' menu + KStdAction::zoomIn(this, + SLOT(zoomIn()), + actionCollection()); + + KStdAction::zoomOut(this, + SLOT(zoomOut()), + actionCollection()); + + KRadioAction* iconsView = new KRadioAction(i18n("Icons"), "Ctrl+1", + this, SLOT(setIconsView()), + actionCollection(), "icons"); + iconsView->setExclusiveGroup("view_mode"); + iconsView->setIcon("view_icon"); + + KRadioAction* detailsView = new KRadioAction(i18n("Details"), "Ctrl+2", + this, SLOT(setDetailsView()), + actionCollection(), "details"); + detailsView->setExclusiveGroup("view_mode"); + detailsView->setIcon("view_text"); + + KRadioAction* previewsView = new KRadioAction(i18n("Previews"), "Ctrl+3", + this, SLOT(setPreviewsView()), + actionCollection(), "previews"); + previewsView->setExclusiveGroup("view_mode"); + previewsView->setIcon("gvdirpart"); + + KRadioAction* sortByName = new KRadioAction(i18n("By Name"), 0, + this, SLOT(sortByName()), + actionCollection(), "by_name"); + sortByName->setExclusiveGroup("sort"); + + KRadioAction* sortBySize = new KRadioAction(i18n("By Size"), 0, + this, SLOT(sortBySize()), + actionCollection(), "by_size"); + sortBySize->setExclusiveGroup("sort"); + + KRadioAction* sortByDate = new KRadioAction(i18n("By Date"), 0, + this, SLOT(sortByDate()), + actionCollection(), "by_date"); + sortByDate->setExclusiveGroup("sort"); + + new KToggleAction(i18n("Descending"), 0, this, SLOT(toggleSortOrder()), + actionCollection(), "descending"); + + new KToggleAction(i18n("Show Hidden Files"), "Alt+.", + this, SLOT(showHiddenFiles()), + actionCollection(), "show_hidden_files"); + + KToggleAction* splitAction = new KToggleAction(i18n("Split View"), "F10", + this, SLOT(toggleSplitView()), + actionCollection(), "split_view"); + splitAction->setIcon("view_left_right"); + + KAction* reloadAction = new KAction(i18n("Reload"), "F5", + this, SLOT(reloadView()), + actionCollection(), "reload"); + reloadAction->setIcon("reload"); + + KAction* stopAction = new KAction(i18n("Stop"), 0, + this, SLOT(stopLoading()), + actionCollection(), "stop"); + stopAction->setIcon("stop"); + + new KAction(i18n("Edit Location"), "Ctrl+L", + this, SLOT(editLocation()), + actionCollection(), "edit_location"); + + new KAction(i18n("Browse"), "Ctrl+B", + this, SLOT(browse()), + actionCollection(), "browse"); + + new KToggleAction(i18n("Left Sidebar"), "F8", + this, SLOT(toggleleftSidebar()), + actionCollection(), "leftsidebar"); + + new KToggleAction(i18n("Right Sidebar"), "F9", + this, SLOT(togglerightSidebar()), + actionCollection(), "rightsidebar"); + + new KAction(i18n("Adjust View Properties..."), 0, + this, SLOT(adjustViewProperties()), + actionCollection(), "view_properties"); + + // setup 'Go' menu + KStdAction::back(this, SLOT(goBack()), actionCollection()); + KStdAction::forward(this, SLOT(goForward()), actionCollection()); + KStdAction::up(this, SLOT(goUp()), actionCollection()); + KStdAction::home(this, SLOT(goHome()), actionCollection()); + + // setup 'Tools' menu + KAction* openTerminalAction = new KAction(i18n("Open Terminal"), "F4", + this, SLOT(openTerminal()), + actionCollection(), "open_terminal"); + openTerminalAction->setIcon("konsole"); + + KAction* findFileAction = new KAction(i18n("Find File..."), "Ctrl+F", + this, SLOT(findFile()), + actionCollection(), "find_file"); + findFileAction->setIcon("filefind"); + + new KToggleAction(i18n("Show Filter Bar"), "filter", "/", + this, SLOT(showFilterBar()), + actionCollection(), "show_filter_bar"); + + KAction* compareFilesAction = new KAction(i18n("Compare Files"), 0, + this, SLOT(compareFiles()), + actionCollection(), "compare_files"); + compareFilesAction->setIcon("kompare"); + compareFilesAction->setEnabled(false); + + // setup 'Settings' menu + KStdAction::preferences(this, SLOT(editSettings()), actionCollection()); +} + +void Dolphin::setupCreateNewMenuActions() +{ + // Parts of the following code have been taken + // from the class KNewMenu located in + // libqonq/knewmenu.h of Konqueror. + // Copyright (C) 1998, 1999 David Faure + // 2003 Sven Leiber + + QStringList files = actionCollection()->instance()->dirs()->findAllResources("templates"); + for (QStringList::Iterator it = files.begin() ; it != files.end(); ++it) { + if ((*it)[0] != '.' ) { + KSimpleConfig config(*it, true); + config.setDesktopGroup(); + + // tricky solution to ensure that TextFile is at the beginning + // because this filetype is the most used (according kde-core discussion) + const QString name(config.readEntry("Name")); + QString key(name); + + const QString path(config.readPathEntry("URL")); + if (!path.endsWith("emptydir")) { + if (path.endsWith("TextFile.txt")) { + key = "1" + key; + } + else if (!KDesktopFile::isDesktopFile(path)) { + key = "2" + key; + } + else if (path.endsWith("URL.desktop")){ + key = "3" + key; + } + else if (path.endsWith("Program.desktop")){ + key = "4" + key; + } + else { + key = "5"; + } + + const QString icon(config.readEntry("Icon")); + const QString comment(config.readEntry("Comment")); + const QString type(config.readEntry("Type")); + + const QString filePath(*it); + + + if (type == "Link") { + CreateFileEntry entry; + entry.name = name; + entry.icon = icon; + entry.comment = comment; + entry.templatePath = filePath; + m_createFileTemplates.insert(key, entry); + } + } + } + } + m_createFileTemplates.sort(); + + unplugActionList("create_actions"); + KSortableValueList::ConstIterator it = m_createFileTemplates.begin(); + KSortableValueList::ConstIterator end = m_createFileTemplates.end(); + while (it != end) { + CreateFileEntry entry = (*it).value(); + KAction* action = new KAction(entry.name); + action->setIcon(entry.icon); + action->setName((*it).index()); + connect(action, SIGNAL(activated()), + this, SLOT(createFile())); + + const QChar section = ((*it).index()[0]); + switch (section) { + case '1': + case '2': { + m_fileGroupActions.append(action); + break; + } + + case '3': + case '4': { + // TODO: not used yet. See documentation of Dolphin::linkGroupActions() + // and Dolphin::linkToDeviceActions() in the header file for details. + //m_linkGroupActions.append(action); + break; + } + + case '5': { + // TODO: not used yet. See documentation of Dolphin::linkGroupActions() + // and Dolphin::linkToDeviceActions() in the header file for details. + //m_linkToDeviceActions.append(action); + break; + } + default: + break; + } + ++it; + } + + plugActionList("create_file_group", m_fileGroupActions); + //plugActionList("create_link_group", m_linkGroupActions); + //plugActionList("link_to_device", m_linkToDeviceActions); +} + +void Dolphin::updateHistory() +{ + int index = 0; + const QValueList list = m_activeView->urlHistory(index); + + KAction* backAction = actionCollection()->action("go_back"); + if (backAction != 0) { + backAction->setEnabled(index < static_cast(list.count()) - 1); + } + + KAction* forwardAction = actionCollection()->action("go_forward"); + if (forwardAction != 0) { + forwardAction->setEnabled(index > 0); + } +} + +void Dolphin::updateEditActions() +{ + const KFileItemList* list = m_activeView->selectedItems(); + if ((list == 0) || (*list).isEmpty()) { + stateChanged("has_no_selection"); + } + else { + stateChanged("has_selection"); + + KAction* renameAction = actionCollection()->action("rename"); + if (renameAction != 0) { + renameAction->setEnabled(list->count() >= 1); + } + + bool enableMoveToTrash = true; + + KFileItemListIterator it(*list); + KFileItem* item = 0; + while ((item = it.current()) != 0) { + const KURL& url = item->url(); + // only enable the 'Move to Trash' action for local files + if (!url.isLocalFile()) { + enableMoveToTrash = false; + } + ++it; + } + + KAction* moveToTrashAction = actionCollection()->action("move_to_trash"); + moveToTrashAction->setEnabled(enableMoveToTrash); + } + updatePasteAction(); +} + +void Dolphin::updateViewActions() +{ + KAction* zoomInAction = actionCollection()->action(KStdAction::stdName(KStdAction::ZoomIn)); + if (zoomInAction != 0) { + zoomInAction->setEnabled(m_activeView->isZoomInPossible()); + } + + KAction* zoomOutAction = actionCollection()->action(KStdAction::stdName(KStdAction::ZoomOut)); + if (zoomOutAction != 0) { + zoomOutAction->setEnabled(m_activeView->isZoomOutPossible()); + } + + KAction* action = 0; + switch (m_activeView->mode()) { + case DolphinView::IconsView: + action = actionCollection()->action("icons"); + break; + case DolphinView::DetailsView: + action = actionCollection()->action("details"); + break; + case DolphinView::PreviewsView: + action = actionCollection()->action("previews"); + break; + default: + break; + } + + if (action != 0) { + KToggleAction* toggleAction = static_cast(action); + toggleAction->setChecked(true); + } + + slotSortingChanged(m_activeView->sorting()); + slotSortOrderChanged(m_activeView->sortOrder()); + + KToggleAction* showFilterBarAction = + static_cast(actionCollection()->action("show_filter_bar")); + showFilterBarAction->setChecked(m_activeView->isFilterBarVisible()); + + KToggleAction* showHiddenFilesAction = + static_cast(actionCollection()->action("show_hidden_files")); + showHiddenFilesAction->setChecked(m_activeView->isShowHiddenFilesEnabled()); + + KToggleAction* splitAction = static_cast(actionCollection()->action("split_view")); + splitAction->setChecked(m_view[SecondaryIdx] != 0); + + KToggleAction* leftsidebarAction = static_cast(actionCollection()->action("leftsidebar")); + leftsidebarAction->setChecked(m_leftsidebar != 0); + + KToggleAction* rightsidebarAction = static_cast(actionCollection()->action("rightsidebar")); + rightsidebarAction->setChecked(m_rightsidebar != 0); +} + +void Dolphin::updateGoActions() +{ + KAction* goUpAction = actionCollection()->action(KStdAction::stdName(KStdAction::Up)); + const KURL& currentURL = m_activeView->url(); + goUpAction->setEnabled(currentURL.upURL() != currentURL); +} + +void Dolphin::updateViewProperties(const KURL::List& urls) +{ + if (urls.isEmpty()) { + return; + } + + // Updating the view properties might take up to several seconds + // when dragging several thousand URLs. Writing a KIO slave for this + // use case is not worth the effort, but at least the main widget + // must be disabled and a progress should be shown. + ProgressIndicator progressIndicator(i18n("Updating view properties..."), + QString::null, + urls.count()); + + KURL::List::ConstIterator end = urls.end(); + for(KURL::List::ConstIterator it = urls.begin(); it != end; ++it) { + progressIndicator.execOperation(); + + ViewProperties props(*it); + props.save(); + } +} + +void Dolphin::copyURLs(const KURL::List& source, const KURL& dest) +{ + KIO::Job* job = KIO::copy(source, dest); + addPendingUndoJob(job, DolphinCommand::Copy, source, dest); +} + +void Dolphin::moveURLs(const KURL::List& source, const KURL& dest) +{ + KIO::Job* job = KIO::move(source, dest); + addPendingUndoJob(job, DolphinCommand::Move, source, dest); +} + +void Dolphin::addPendingUndoJob(KIO::Job* job, + DolphinCommand::Type commandType, + const KURL::List& source, + const KURL& dest) +{ + connect(job, SIGNAL(result(KIO::Job*)), + this, SLOT(addUndoOperation(KIO::Job*))); + + UndoInfo undoInfo; + undoInfo.id = job->progressId(); + undoInfo.command = DolphinCommand(commandType, source, dest); + m_pendingUndoJobs.append(undoInfo); +} + +void Dolphin::clearStatusBar() +{ + m_activeView->statusBar()->clear(); +} + +void Dolphin::openleftSidebar() +{ + if (m_leftsidebar != 0) { + // the sidebar is already open + return; + } + + m_leftsidebar = new leftSidebar(m_splitter); + m_leftsidebar->show(); + + connect(m_leftsidebar, SIGNAL(urlChanged(const KURL&)), + this, SLOT(slotURLChangeRequest(const KURL&))); + m_splitter->setCollapsible(m_leftsidebar, false); + m_splitter->setResizeMode(m_leftsidebar, QSplitter::KeepSize); + m_splitter->moveToFirst(m_leftsidebar); + + leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); + settings->setVisible(true); +} + +void Dolphin::openrightSidebar() +{ + if (m_rightsidebar != 0) { + // the sidebar is already open + return; + } + + m_rightsidebar = new rightSidebar(m_splitter); + m_rightsidebar->show(); + + connect(m_rightsidebar, SIGNAL(urlChanged(const KURL&)), + this, SLOT(slotURLChangeRequest(const KURL&))); + m_splitter->setCollapsible(m_rightsidebar, false); + m_splitter->setResizeMode(m_rightsidebar, QSplitter::KeepSize); + m_splitter->moveToLast(m_rightsidebar); + + rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); + settings->setVisible(true); +} + +void Dolphin::closeleftSidebar() +{ + if (m_leftsidebar == 0) { + // the sidebar has already been closed + return; + } + + // store width of sidebar and remember that the sidebar has been closed + leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); + settings->setVisible(false); + settings->setWidth(m_leftsidebar->width()); + + m_leftsidebar->deleteLater(); + m_leftsidebar = 0; +} + +void Dolphin::closerightSidebar() +{ + if (m_rightsidebar == 0) { + // the sidebar has already been closed + return; + } + + // store width of sidebar and remember that the sidebar has been closed + rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); + settings->setVisible(false); + settings->setWidth(m_rightsidebar->width()); + + m_rightsidebar->deleteLater(); + m_rightsidebar = 0; +} + +void Dolphin::toggleleftSidebar() +{ + if (m_leftsidebar == 0) { + openleftSidebar(); + } + else { + closeleftSidebar(); + } + + KToggleAction* leftsidebarAction = static_cast(actionCollection()->action("leftsidebar")); + leftsidebarAction->setChecked(m_leftsidebar != 0); +} + +void Dolphin::togglerightSidebar() +{ + if (m_rightsidebar == 0) { + openrightSidebar(); + } + else { + closerightSidebar(); + } + + KToggleAction* rightsidebarAction = static_cast(actionCollection()->action("rightsidebar")); + rightsidebarAction->setChecked(m_rightsidebar != 0); +} + +#include "dolphin.moc" diff --git a/src/dolphin.h b/src/dolphin.h new file mode 100644 index 0000000..bccfbba --- /dev/null +++ b/src/dolphin.h @@ -0,0 +1,456 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * Copyright (C) 2006 by Stefan Monov * + * Copyright (C) 2006 by Cvetoslav Ludmiloff * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef _DOLPHIN_H_ +#define _DOLPHIN_H_ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include +#include +#include +#include +#include + +#include "dolphinview.h" +#include "undomanager.h" + +class KPrinter; +class KURL; +class QLineEdit; +class KFileIconView; +class QHBox; +class QIconViewItem; +class QSplitter; +class KAction; +class URLNavigator; +class leftSidebar; +class rightSidebar; + +/** + * @short Main window for Dolphin. + * + * Handles the menus, toolbars and Dolphin views. + * + * @author Peter Penz +*/ +class Dolphin : public KMainWindow +{ + Q_OBJECT + +public: + /** + * Returns the instance for the Dolphin main window. + */ + // KXMLGUIClient::instance() already in use :-( + static Dolphin& mainWin(); + + virtual ~Dolphin(); + + /** + * Activates the given view, which means that + * all menu actions are applied to this view. When + * having a split view setup the nonactive view + * is usually shown in darker colors. + */ + void setActiveView(DolphinView* view); + + /** + * Returns the currently active view. See + * Dolphin::setActiveView() for more details. + */ + DolphinView* activeView() const { return m_activeView; } + + /** + * Handles the dropping of URLs to the given + * destination. A context menu with the options + * 'Move Here', 'Copy Here', 'Link Here' and + * 'Cancel' is offered to the user. + * @param urls List of URLs which have been + * dropped. + * @param destination Destination URL, where the + * list or URLs should be moved, + * copied or linked to. + */ + void dropURLs(const KURL::List& urls, + const KURL& destination); + + /** + * Returns 'true', if the clipboard contains data + * which has been cutted by the Cut action (Ctrl + X). + */ + bool clipboardContainsCutData() const { return m_clipboardContainsCutData; } + + /** + * Returns the list of actions which are part of the file group + * of the 'Create New...' sub menu. Usually the list contains actions + * for creating folders, text files, HTML files etc. + */ + const QPtrList& fileGroupActions() const { return m_fileGroupActions; } + //const QPtrList& linkGroupActions() const { return m_linkGroupActions; } + //const QPtrList& linkToDeviceActions() const { return m_linkToDeviceActions; } + + /** + * Refreshs the views of the main window by recreating them dependent from + * the given Dolphin settings. + */ + void refreshViews(); + +signals: + /** + * Is send if the active view has been changed in + * the split view mode. + */ + void activeViewChanged(); + + /** + * Is send if the selection of the currently active view has + * been changed. + */ + void selectionChanged(); + +public slots: + /** + * Updates the state of the 'Back' and 'Forward' menu + * actions corresponding the the current history. + */ + void slotHistoryChanged(); + + /** + * Updates the caption of the main window and the state + * of all menu actions which depend from a changed URL. + */ + void slotURLChanged(const KURL& url); + + /** + * Go to the given URL. + */ + void slotURLChangeRequest(const KURL& url); + + /** Updates the state of all 'View' menu actions. */ + void slotViewModeChanged(); + + /** Updates the state of the 'Show hidden files' menu action. */ + void slotShowHiddenFilesChanged(); + + /** Updates the state of the 'Show filter bar' menu action. */ + void slotShowFilterBarChanged(); + + /** Updates the state of the 'Sort by' actions. */ + void slotSortingChanged(DolphinView::Sorting sorting); + + /** Updates the state of the 'Sort Ascending/Descending' action. */ + void slotSortOrderChanged(Qt::SortOrder order); + + /** Updates the state of the 'Edit' menu actions. */ + void slotSelectionChanged(); + +protected: + /** @see QMainWindow::closeEvent */ + virtual void closeEvent(QCloseEvent* event); + + /** + * This method is called when it is time for the app to save its + * properties for session management purposes. + */ + void saveProperties(KConfig*); + + /** + * This method is called when this app is restored. The KConfig + * object points to the session management config file that was saved + * with @ref saveProperties + */ + void readProperties(KConfig*); + +private slots: + /** Opens an input dialog for creating a new folder. */ + void createFolder(); + + /** Creates a file with the MIME type given by the sender. */ + void createFile(); + + /** Renames the selected item of the active view. */ + void rename(); + + /** Moves the selected items of the active view to the trash. */ + void moveToTrash(); + + /** Deletes the selected items of the active view. */ + void deleteItems(); + + /** + * Opens the properties window for the selected items of the + * active view. The properties windows shows informations + * like name, size and permissions. + */ + void properties(); + + /** Stores all settings and quits Dolphin. */ + void quit(); + + /** + * Shows the error information of the job \a job + * in the status bar. + */ + void slotHandleJobError(KIO::Job* job); + + /** + * Indicates in the status bar that the delete operation + * of the job \a job has been finished. + */ + void slotDeleteFileFinished(KIO::Job* job); + + /** + * Updates the state of the 'Undo' menu action dependent + * from the parameter \a available. + */ + void slotUndoAvailable(bool available); + + /** Sets the text of the 'Undo' menu action to \a text. */ + void slotUndoTextChanged(const QString& text); + + /** + * Updates the state of the 'Redo' menu action dependent + * from the parameter \a available. + */ + void slotRedoAvailable(bool available); + + /** Sets the text of the 'Redo' menu action to \a text. */ + void slotRedoTextChanged(const QString& text); + + /** + * Copies all selected items to the clipboard and marks + * the items as cutted. + */ + void cut(); + + /** Copies all selected items to the clipboard. */ + void copy(); + + /** Pastes the clipboard data to the active view. */ + void paste(); + + /** + * Updates the text of the paste action dependent from + * the number of items which are in the clipboard. + */ + void updatePasteAction(); + + /** Selects all items from the active view. */ + void selectAll(); + + /** + * Inverts the selection of all items of the active view: + * Selected items get nonselected and nonselected items get + * selected. + */ + void invertSelection(); + + /** The current active view is switched to the icons mode. */ + void setIconsView(); + + /** The current active view is switched to the details mode. */ + void setDetailsView(); + + /** The current active view is switched to the previews mode. */ + void setPreviewsView(); + + /** The sorting of the current view should be done by the name. */ + void sortByName(); + + /** The sorting of the current view should be done by the size. */ + void sortBySize(); + + /** The sorting of the current view should be done by the date. */ + void sortByDate(); + + /** Switches between an ascending and descending sorting order. */ + void toggleSortOrder(); + + /** + * Switches between one and two views: + * If one view is visible, it will get split into two views. + * If already two views are visible, the nonactivated view gets closed. + */ + void toggleSplitView(); + + /** Reloads the current active view. */ + void reloadView(); + + /** Stops the loading process for the current active view. */ + void stopLoading(); + + /** + * Switches between showing and hiding of hidden marked files dependent + * from the current state of the 'Show Hidden Files' menu toggle action. + */ + void showHiddenFiles(); + + /** + * Switches between showing and hiding of the filter bar dependent + * from the current state of the 'Show Filter Bar' menu toggle action. + */ + void showFilterBar(); + + /** Increases the size of the current set view mode. */ + void zoomIn(); + + /** Decreases the size of the current set view mode. */ + void zoomOut(); + + /** + * Switches to the edit mode of the navigation bar. If the edit mode is + * already active, it is assured that the navigation bar get focused. + */ + void editLocation(); + + /** Switches to the browse mode of the navigation bar. */ + void browse(); + + /** + * Opens the view properties dialog, which allows to modify the properties + * of the currently active view. + */ + void adjustViewProperties(); + + /** Goes back on step of the URL history. */ + void goBack(); + + /** Goes forward one step of the URL history. */ + void goForward(); + + /** Goes up one hierarchy of the current URL. */ + void goUp(); + + /** Goes to the home URL. */ + void goHome(); + + /** Opens a terminal for the current shown directory. */ + void openTerminal(); + + /** Opens KFind for the current shown directory. */ + void findFile(); + + /** Opens Kompare for 2 selected files. */ + void compareFiles(); + + /** Opens the settings dialog for Dolphin. */ + void editSettings(); + + /** + * Adds the undo operation given by \a job + * to the UndoManager. + */ + void addUndoOperation(KIO::Job* job); + + + void toggleleftSidebar(); + void togglerightSidebar(); + + /** + * Stores the current sidebar width and closes + * the sidebar. + */ + void closeleftSidebar(); + void closerightSidebar(); + +private: + Dolphin(); + void init(); + void loadSettings(); + + void setupAccel(); + void setupActions(); + void setupCreateNewMenuActions(); + void updateHistory(); + void updateEditActions(); + void updateViewActions(); + void updateGoActions(); + void updateViewProperties(const KURL::List& urls); + void copyURLs(const KURL::List& source, const KURL& dest); + void moveURLs(const KURL::List& source, const KURL& dest); + void addPendingUndoJob(KIO::Job* job, + DolphinCommand::Type commandType, + const KURL::List& source, + const KURL& dest); + void clearStatusBar(); + void openleftSidebar(); + void openrightSidebar(); + + QSplitter* m_splitter; + leftSidebar* m_leftsidebar; + rightSidebar* m_rightsidebar; + DolphinView* m_activeView; + + /** + * Dolphin supports only one or two views, which + * are handled internally as primary and secondary view. + */ + enum ViewIndex + { + PrimaryIdx = 0, + SecondaryIdx = 1 + }; + DolphinView* m_view[SecondaryIdx + 1]; + + /// If set to true, the clipboard contains data which should be cutted after pasting. + bool m_clipboardContainsCutData; + + /** + * Asynchronous operations like 'Move' and 'Copy' may only be added as undo + * operation after they have been finished successfully. When an asynchronous + * operation is started, it is added to a pending undo jobs list in the meantime. + * As soon as the job has been finished, the operation is added to the undo mangager. + * @see UndoManager + * @see Dolphin::addPendingUndoJob + * @see Dolphin::addUndoOperation + */ + struct UndoInfo + { + int id; + DolphinCommand command; + }; + QValueList m_pendingUndoJobs; + + /** Contains meta information for creating files. */ + struct CreateFileEntry + { + QString name; + QString filePath; + QString templatePath; + QString icon; + QString comment; + }; + + QPtrList m_fileGroupActions; + KSortableValueList m_createFileTemplates; + + // TODO: not used yet. See documentation of Dolphin::linkGroupActions() + // and Dolphin::linkToDeviceActions() in for details. + //QPtrList m_linkGroupActions; + //QPtrList m_linkToDeviceActions; +}; + +#endif // _DOLPHIN_H_ + diff --git a/src/dolphin.lsm b/src/dolphin.lsm new file mode 100644 index 0000000..6733258 --- /dev/null +++ b/src/dolphin.lsm @@ -0,0 +1,16 @@ +Begin3 +Title: Dolphin -- Some description +Version: 0.1 +Entered-date: +Description: +Keywords: KDE Qt +Author: Peter Penz +Maintained-by: Peter Penz +Home-page: +Alternate-site: +Primary-site: ftp://ftp.kde.org/pub/kde/unstable/apps/utils + xxxxxx dolphin-0.1.tar.gz + xxx dolphin-0.1.lsm +Platform: Linux. Needs KDE +Copying-policy: GPL +End diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp new file mode 100644 index 0000000..7ac2a56 --- /dev/null +++ b/src/dolphincontextmenu.cpp @@ -0,0 +1,494 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) and * + * Cvetoslav Ludmiloff * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphincontextmenu.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dolphin.h" +#include "dolphinview.h" +#include "editbookmarkdialog.h" +#include "dolphinsettings.h" + + +DolphinContextMenu::DolphinContextMenu(DolphinView* parent, + KFileItem* fileInfo, + const QPoint& pos) : + m_dolphinView(parent), + m_fileInfo(fileInfo), + m_pos(pos) +{ +} + +void DolphinContextMenu::open() +{ + if (m_fileInfo == 0) { + openViewportContextMenu(); + } + else { + openItemContextMenu(); + } +} + +DolphinContextMenu::~DolphinContextMenu() +{ +} + +void DolphinContextMenu::openViewportContextMenu() +{ + // Parts of the following code have been taken + // from the class KonqOperations located in + // libqonq/konq_operations.h of Konqueror. + // (Copyright (C) 2000 David Faure ) + + assert(m_fileInfo == 0); + const int propertiesID = 100; + const int bookmarkID = 101; + + KPopupMenu* popup = new KPopupMenu(m_dolphinView); + Dolphin& dolphin = Dolphin::mainWin(); + + // setup 'Create New' menu + KPopupMenu* createNewMenu = new KPopupMenu(); + + KAction* createFolderAction = dolphin.actionCollection()->action("create_folder"); + if (createFolderAction != 0) { + createFolderAction->plug(createNewMenu); + } + + createNewMenu->insertSeparator(); + + KAction* action = 0; + + QPtrListIterator fileGrouptIt(dolphin.fileGroupActions()); + while ((action = fileGrouptIt.current()) != 0) { + action->plug(createNewMenu); + ++fileGrouptIt; + } + + // TODO: not used yet. See documentation of Dolphin::linkGroupActions() + // and Dolphin::linkToDeviceActions() in the header file for details. + // + //createNewMenu->insertSeparator(); + // + //QPtrListIterator linkGroupIt(dolphin.linkGroupActions()); + //while ((action = linkGroupIt.current()) != 0) { + // action->plug(createNewMenu); + // ++linkGroupIt; + //} + // + //KPopupMenu* linkToDeviceMenu = new KPopupMenu(); + //QPtrListIterator linkToDeviceIt(dolphin.linkToDeviceActions()); + //while ((action = linkToDeviceIt.current()) != 0) { + // action->plug(linkToDeviceMenu); + // ++linkToDeviceIt; + //} + // + //createNewMenu->insertItem(i18n("Link to Device"), linkToDeviceMenu); + + const KURL& url = dolphin.activeView()->url(); + if (url.protocol() == "trash") + { + popup->insertItem(i18n("Empty Deleted Items Folder"), emptyID); + } + else + { + popup->insertItem(SmallIcon("filenew"), i18n("Create New"), createNewMenu); + } + popup->insertSeparator(); + + KAction* pasteAction = dolphin.actionCollection()->action(KStdAction::stdName(KStdAction::Paste)); + pasteAction->plug(popup); + + // setup 'View Mode' menu + KPopupMenu* viewModeMenu = new KPopupMenu(); + + KAction* iconsMode = dolphin.actionCollection()->action("icons"); + iconsMode->plug(viewModeMenu); + + KAction* detailsMode = dolphin.actionCollection()->action("details"); + detailsMode->plug(viewModeMenu); + + KAction* previewsMode = dolphin.actionCollection()->action("previews"); + previewsMode->plug(viewModeMenu); + + popup->insertItem(i18n("View Mode"), viewModeMenu); + popup->insertSeparator(); + + popup->insertItem(i18n("Bookmark this folder"), bookmarkID); + popup->insertSeparator(); + + popup->insertItem(i18n("Properties..."), propertiesID); + + int id = popup->exec(m_pos); + if (id == emptyID) { + KonqOperations::emptyTrash(); + } + else if (id == propertiesID) { + new KPropertiesDialog(dolphin.activeView()->url()); + } + else if (id == bookmarkID) { + const KURL& url = dolphin.activeView()->url(); + KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add folder as bookmark"), + url.filename(), + url, + "bookmark"); + if (!bookmark.isNull()) { + KBookmarkManager* manager = DolphinSettings::instance().bookmarkManager(); + KBookmarkGroup root = manager->root(); + root.addBookmark(manager, bookmark); + manager->emitChanged(root); + } + } + + popup->deleteLater(); +} + +void DolphinContextMenu::openItemContextMenu() +{ + // Parts of the following code have been taken + // from the class KonqOperations located in + // libqonq/konq_operations.h of Konqueror. + // (Copyright (C) 2000 David Faure ) + + assert(m_fileInfo != 0); + + KPopupMenu* popup = new KPopupMenu(m_dolphinView); + Dolphin& dolphin = Dolphin::mainWin(); + const KURL::List urls = m_dolphinView->selectedURLs(); + + const KURL& url = dolphin.activeView()->url(); + if (url.protocol() == "trash") + { + popup->insertItem(i18n("&Restore"), restoreID); + } + + // insert 'Cut', 'Copy' and 'Paste' + const KStdAction::StdAction actionNames[] = { KStdAction::Cut, KStdAction::Copy, KStdAction::Paste }; + const int count = sizeof(actionNames) / sizeof(KStdAction::StdAction); + for (int i = 0; i < count; ++i) { + KAction* action = dolphin.actionCollection()->action(KStdAction::stdName(actionNames[i])); + if (action != 0) { + action->plug(popup); + } + } + popup->insertSeparator(); + + // insert 'Rename' + KAction* renameAction = dolphin.actionCollection()->action("rename"); + renameAction->plug(popup); + + // insert 'Move to Trash' for local URLs, otherwise insert 'Delete' + if (url.isLocalFile()) { + KAction* moveToTrashAction = dolphin.actionCollection()->action("move_to_trash"); + moveToTrashAction->plug(popup); + } + else { + KAction* deleteAction = dolphin.actionCollection()->action("delete"); + deleteAction->plug(popup); + } + + // insert 'Bookmark this folder...' entry + // urls is a list of selected items, so insert boolmark menu if + // urls contains only one item, i.e. no multiple selection made + if (m_fileInfo->isDir() && (urls.count() == 1)) { + popup->insertItem(i18n("Bookmark this folder"), bookmarkID); + } + + popup->insertSeparator(); + + // Insert 'Open With...' sub menu + QValueVector openWithVector; + const int openWithID = insertOpenWithItems(popup, openWithVector); + + // Insert 'Actions' sub menu + QValueVector actionsVector; + insertActionItems(popup, actionsVector); + + // insert 'Properties...' entry + popup->insertSeparator(); + KAction* propertiesAction = dolphin.actionCollection()->action("properties"); + propertiesAction->plug(popup); + + int id = popup->exec(m_pos); + + if (id == restoreID ) { + KonqOperations::restoreTrashedItems(urls); + } + else if (id == bookmarkID) { + const KURL selectedURL(m_fileInfo->url()); + KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add folder as bookmark"), + selectedURL.filename(), + selectedURL, + "bookmark"); + if (!bookmark.isNull()) { + KBookmarkManager* manager = DolphinSettings::instance().bookmarkManager(); + KBookmarkGroup root = manager->root(); + root.addBookmark(manager, bookmark); + manager->emitChanged(root); + } + } + else if (id >= actionsIDStart) { + // one of the 'Actions' items has been selected + KDEDesktopMimeType::executeService(urls, actionsVector[id - actionsIDStart]); + } + else if (id >= openWithIDStart) { + // one of the 'Open With' items has been selected + if (id == openWithID) { + // the item 'Other...' has been selected + KRun::displayOpenWithDialog(urls); + } + else { + KService::Ptr servicePtr = openWithVector[id - openWithIDStart]; + KRun::run(*servicePtr, urls); + } + } + + openWithVector.clear(); + actionsVector.clear(); + popup->deleteLater(); +} + +int DolphinContextMenu::insertOpenWithItems(KPopupMenu* popup, + QValueVector& openWithVector) +{ + // Prepare 'Open With' sub menu. Usually a sub menu is created, where all applications + // are listed which are registered to open the item. As last entry "Other..." will be + // attached which allows to select a custom application. If no applications are registered + // no sub menu is created at all, only "Open With..." will be offered. + const KFileItemList* list = m_dolphinView->selectedItems(); + assert(list != 0); + + bool insertOpenWithItems = true; + const QString contextMimeType(m_fileInfo->mimetype()); + KFileItemListIterator mimeIt(*list); + KFileItem* item = 0; + while (insertOpenWithItems && ((item = mimeIt.current()) != 0)) { + insertOpenWithItems = (contextMimeType == item->mimetype()); + ++mimeIt; + } + + int openWithID = -1; + + if (insertOpenWithItems) { + // fill the 'Open with' sub menu with application types + const KMimeType::Ptr mimePtr = KMimeType::findByURL(m_fileInfo->url()); + KTrader::OfferList offers = KTrader::self()->query(mimePtr->name(), + "Type == 'Application'"); + int index = openWithIDStart; + if (offers.count() > 0) { + KTrader::OfferList::Iterator it; + KPopupMenu* openWithMenu = new KPopupMenu(); + for(it = offers.begin(); it != offers.end(); ++it) { + // The offer list from the KTrader returns duplicate + // application entries. Although this seems to be a configuration + // problem outside the scope of Dolphin, duplicated entries just + // will be skipped here. + const QString appName((*it)->name()); + if (!containsEntry(openWithMenu, appName)) { + openWithMenu->insertItem((*it)->pixmap(KIcon::Small), + appName, index); + openWithVector.append(*it); + ++index; + } + } + + openWithMenu->insertSeparator(); + openWithMenu->insertItem(i18n("&Other..."), index); + popup->insertItem(i18n("Open With"), openWithMenu); + } + else { + // No applications are registered, hence just offer + // a "Open With..." item instead of a sub menu containing + // only one entry. + popup->insertItem(i18n("Open With..."), openWithIDStart); + } + openWithID = index; + } + else { + // At least one of the selected items has a different MIME type. In this case + // just show a disabled "Open With..." entry. + popup->insertItem(i18n("Open With..."), openWithIDStart); + popup->setItemEnabled(openWithIDStart, false); + } + + popup->setItemEnabled(openWithID, insertOpenWithItems); + + return openWithID; +} + +void DolphinContextMenu::insertActionItems(KPopupMenu* popup, + QValueVector& actionsVector) +{ + KPopupMenu* actionsMenu = new KPopupMenu(); + + int actionsIndex = 0; + + QStringList dirs = KGlobal::dirs()->findDirs("data", "d3lphin/servicemenus/"); + + KPopupMenu* menu = 0; + for (QStringList::ConstIterator dirIt = dirs.begin(); dirIt != dirs.end(); ++dirIt) { + QDir dir(*dirIt); + QStringList entries = dir.entryList("*.desktop", QDir::Files); + + for (QStringList::ConstIterator entryIt = entries.begin(); entryIt != entries.end(); ++entryIt) { + KSimpleConfig cfg(*dirIt + *entryIt, true); + cfg.setDesktopGroup(); + if ((cfg.hasKey("Actions") || cfg.hasKey("X-KDE-GetActionMenu")) && cfg.hasKey("ServiceTypes")) { + const QStringList types = cfg.readListEntry("ServiceTypes"); + for (QStringList::ConstIterator it = types.begin(); it != types.end(); ++it) { + // check whether the mime type is equal or whether the + // mimegroup (e. g. image/*) is supported + + bool insert = false; + if ((*it) == "all/allfiles") { + // The service type is valid for all files, but not for directories. + // Check whether the selected items only consist of files... + const KFileItemList* list = m_dolphinView->selectedItems(); + assert(list != 0); + + KFileItemListIterator mimeIt(*list); + KFileItem* item = 0; + insert = true; + while (insert && ((item = mimeIt.current()) != 0)) { + insert = !item->isDir(); + ++mimeIt; + } + } + + if (!insert) { + // Check whether the MIME types of all selected files match + // to the mimetype of the service action. As soon as one MIME + // type does not match, no service menu is shown at all. + const KFileItemList* list = m_dolphinView->selectedItems(); + assert(list != 0); + + KFileItemListIterator mimeIt(*list); + KFileItem* item = 0; + insert = true; + while (insert && ((item = mimeIt.current()) != 0)) { + const QString mimeType((*mimeIt)->mimetype()); + const QString mimeGroup(mimeType.left(mimeType.find('/'))); + + insert = (*it == mimeType) || + ((*it).right(1) == "*") && + ((*it).left((*it).find('/')) == mimeGroup); + ++mimeIt; + } + } + + if (insert) { + menu = actionsMenu; + + const QString submenuName = cfg.readEntry( "X-KDE-Submenu" ); + if (!submenuName.isEmpty()) { + menu = new KPopupMenu(); + actionsMenu->insertItem(submenuName, menu, submenuID); + } + + QValueList userServices = + KDEDesktopMimeType::userDefinedServices(*dirIt + *entryIt, true); + + QValueList::Iterator serviceIt; + for (serviceIt = userServices.begin(); serviceIt != userServices.end(); ++serviceIt) { + KDEDesktopMimeType::Service service = (*serviceIt); + if (!service.m_strIcon.isEmpty()) { + menu->insertItem(SmallIcon(service.m_strIcon), + service.m_strName, + actionsIDStart + actionsIndex); + } + else { + menu->insertItem(service.m_strName, + actionsIDStart + actionsIndex); + } + actionsVector.append(service); + ++actionsIndex; + } + } + } + } + } + } + + const int itemsCount = actionsMenu->count(); + if (itemsCount == 0) { + // no actions are available at all, hence show the "Actions" + // submenu disabled + actionsMenu->setEnabled(false); + } + + if (itemsCount == 1) { + // Exactly one item is available. Instead of showing a sub menu with + // only one item, show the item directly in the root menu. + if (menu == actionsMenu) { + // The item is an action, hence show the action in the root menu. + const int id = actionsMenu->idAt(0); + const QString text(actionsMenu->text(id)); + const QIconSet* iconSet = actionsMenu->iconSet(id); + if (iconSet == 0) { + popup->insertItem(text, id); + } + else { + popup->insertItem(*iconSet, text, id); + } + } + else { + // The item is a sub menu, hence show the sub menu in the root menu. + popup->insertItem(actionsMenu->text(submenuID), menu); + } + actionsMenu->deleteLater(); + actionsMenu = 0; + } + else { + popup->insertItem(i18n("Actions"), actionsMenu); + } +} + +bool DolphinContextMenu::containsEntry(const KPopupMenu* menu, + const QString& entryName) const +{ + assert(menu != 0); + + const uint count = menu->count(); + for (uint i = 0; i < count; ++i) { + const int id = menu->idAt(i); + if (menu->text(id) == entryName) { + return true; + } + } + + return false; +} diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h new file mode 100644 index 0000000..f14419e --- /dev/null +++ b/src/dolphincontextmenu.h @@ -0,0 +1,130 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef DOLPHINCONTEXTMENU_H +#define DOLPHINCONTEXTMENU_H + +#include +#include +#include +#include +#include +#include +#include +#include + +class KPopupMenu; +class KFileItem; +class QPoint; +class QWidget; +class DolphinView; + +/** + * @brief Represents the context menu which appears when doing a right + * click on an item or the viewport of the file manager. + * + * Beside static menu entries (e. g. 'Paste' or 'Properties') two + * dynamic sub menus are shown when opening a context menu above + * an item: + * - 'Open With': Contains all applications which are registered to + * open items of the given MIME type. + * - 'Actions': Contains all actions which can be applied to the + * given item. + * + * @author Peter Penz + */ +class DolphinContextMenu +{ +public: + /** + * @parent Pointer to the dolphin view the context menu + * belongs to. + * @fileInfo Pointer to the file item the context menu + * is applied. If 0 is passed, the context menu + * is above the viewport. + * @pos Position of the upper left edge of the context menu. + */ + DolphinContextMenu(DolphinView* parent, + KFileItem* fileInfo, + const QPoint& pos); + + virtual ~DolphinContextMenu(); + + /** Opens the context menu modal. */ + void open(); + +private: + void openViewportContextMenu(); + void openItemContextMenu(); + + /** + * Inserts the 'Open With...' submenu to \a popup. + * @param popup Menu where the 'Open With...' sub menu should + * be added. + * @param openWithVector Output parameter which contains all 'Open with...' + * services. + * @return Identifier of the first 'Open With...' entry. + * All succeeding identifiers have an increased value of 1 + * to the predecessor. + */ + int insertOpenWithItems(KPopupMenu* popup, + QValueVector& openWithVector); + + /** + * Inserts the 'Actions...' submenu to \a popup. + * @param popup Menu where the 'Actions...' sub menu should + * be added. + * @param openWithVector Output parameter which contains all 'Actions...' + * services. + */ + void insertActionItems(KPopupMenu* popup, + QValueVector& actionsVector); + + /** + * Returns true, if 'menu' contains already + * an entry with the name 'entryName'. + */ + bool containsEntry(const KPopupMenu* menu, + const QString& entryName) const; + + enum { + restoreID = 80, + emptyID = 85, + submenuID = 90, + bookmarkID = 91, + openWithIDStart = 100, + actionsIDStart = 1000, + }; + + DolphinView* m_dolphinView; + KFileItem* m_fileInfo; + QPoint m_pos; + + struct Entry { + int type; + QString name; + QString filePath; // empty for separator + QString templatePath; // same as filePath for template + QString icon; + QString comment; + }; +}; + +#endif diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp new file mode 100644 index 0000000..66d524e --- /dev/null +++ b/src/dolphindetailsview.cpp @@ -0,0 +1,789 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphindetailsview.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dolphinview.h" +#include "viewproperties.h" +#include "dolphin.h" +#include "kiconeffect.h" +#include "dolphinsettings.h" +#include "dolphinstatusbar.h" +#include "dolphindetailsviewsettings.h" + +DolphinDetailsView::DolphinDetailsView(DolphinView* parent) : + KFileDetailView(parent, 0), + m_dolphinView(parent), + m_resizeTimer(0), + m_scrollTimer(0), + m_rubber(0) +{ + m_resizeTimer = new QTimer(this); + connect(m_resizeTimer, SIGNAL(timeout()), + this, SLOT(updateColumnsWidth())); + + setAcceptDrops(true); + setSelectionMode(KFile::Extended); + setHScrollBarMode(QScrollView::AlwaysOff); + + setColumnAlignment(SizeColumn, Qt::AlignRight); + for (int i = DateColumn; i <= GroupColumn; ++i) { + setColumnAlignment(i, Qt::AlignHCenter); + } + + Dolphin& dolphin = Dolphin::mainWin(); + + connect(this, SIGNAL(onItem(QListViewItem*)), + this, SLOT(slotOnItem(QListViewItem*))); + connect(this, SIGNAL(onViewport()), + this, SLOT(slotOnViewport())); + connect(this, SIGNAL(contextMenuRequested(QListViewItem*, const QPoint&, int)), + this, SLOT(slotContextMenuRequested(QListViewItem*, const QPoint&, int))); + connect(this, SIGNAL(selectionChanged()), + &dolphin, SLOT(slotSelectionChanged())); + connect(&dolphin, SIGNAL(activeViewChanged()), + this, SLOT(slotActivationUpdate())); + connect(this, SIGNAL(itemRenamed(QListViewItem*, const QString&, int)), + this, SLOT(slotItemRenamed(QListViewItem*, const QString&, int))); + connect(this, SIGNAL(dropped(QDropEvent*, const KURL::List&, const KURL&)), + parent, SLOT(slotURLListDropped(QDropEvent*, const KURL::List&, const KURL&))); + + QClipboard* clipboard = QApplication::clipboard(); + connect(clipboard, SIGNAL(dataChanged()), + this, SLOT(slotUpdateDisabledItems())); + + QHeader* viewHeader = header(); + viewHeader->setResizeEnabled(false); + viewHeader->setMovingEnabled(false); + connect(viewHeader, SIGNAL(clicked(int)), + this, SLOT(slotHeaderClicked(int))); + + setMouseTracking(true); + setDefaultRenameAction(QListView::Accept); + + refreshSettings(); +} + +DolphinDetailsView::~DolphinDetailsView() +{ + delete m_rubber; + m_rubber = 0; +} + +void DolphinDetailsView::beginItemUpdates() +{ +} + +void DolphinDetailsView::endItemUpdates() +{ + updateDisabledItems(); + + // Restore the current item. Use the information stored in the history if + // available. Otherwise use the first item as current item. + + const KFileListViewItem* item = static_cast(firstChild()); + if (item != 0) { + setCurrentItem(item->fileInfo()); + } + + int index = 0; + const QValueList history = m_dolphinView->urlHistory(index); + if (!history.isEmpty()) { + KFileView* fileView = static_cast(this); + fileView->setCurrentItem(history[index].currentFileName()); + setContentsPos(history[index].contentsX(), history[index].contentsY()); + } + + updateColumnsWidth(); +} + +void DolphinDetailsView::insertItem(KFileItem* fileItem) +{ + KFileView::insertItem(fileItem); + + DolphinListViewItem* item = new DolphinListViewItem(static_cast(this), fileItem); + + QDir::SortSpec spec = KFileView::sorting(); + if (spec & QDir::Time) { + item->setKey(sortingKey(fileItem->time(KIO::UDS_MODIFICATION_TIME), + fileItem->isDir(), + spec)); + } + else if (spec & QDir::Size) { + item->setKey(sortingKey(fileItem->size(), fileItem->isDir(), spec)); + } + else { + item->setKey(sortingKey(fileItem->text(), fileItem->isDir(), spec)); + } + + fileItem->setExtraData(this, item); +} + +bool DolphinDetailsView::isOnFilename(const QListViewItem* item, const QPoint& pos) const +{ + const QPoint absPos(mapToGlobal(QPoint(0, 0))); + return (pos.x() - absPos.x()) <= filenameWidth(item); +} + +void DolphinDetailsView::refreshSettings() +{ + const DolphinDetailsViewSettings* settings = DolphinSettings::instance().detailsView(); + assert(settings != 0); + + for (int i = DolphinDetailsView::GroupColumn; i >= DolphinDetailsView::NameColumn; --i) { + if (!settings->isColumnEnabled(i)) { + removeColumn(i); + } + } + + QFont adjustedFont(font()); + adjustedFont.setFamily(settings->fontFamily()); + adjustedFont.setPointSize(settings->fontSize()); + setFont(adjustedFont); + + updateView(true); +} + +void DolphinDetailsView::zoomIn() +{ + if (isZoomInPossible()) { + DolphinDetailsViewSettings* settings = DolphinSettings::instance().detailsView(); + switch (settings->iconSize()) { + case KIcon::SizeSmall: settings->setIconSize(KIcon::SizeMedium); break; + case KIcon::SizeMedium: settings->setIconSize(KIcon::SizeLarge); break; + default: assert(false); break; + } + ItemEffectsManager::zoomIn(); + } +} + +void DolphinDetailsView::zoomOut() +{ + if (isZoomOutPossible()) { + DolphinDetailsViewSettings* settings = DolphinSettings::instance().detailsView(); + switch (settings->iconSize()) { + case KIcon::SizeLarge: settings->setIconSize(KIcon::SizeMedium); break; + case KIcon::SizeMedium: settings->setIconSize(KIcon::SizeSmall); break; + default: assert(false); break; + } + ItemEffectsManager::zoomOut(); + } +} + +bool DolphinDetailsView::isZoomInPossible() const +{ + DolphinDetailsViewSettings* settings = DolphinSettings::instance().detailsView(); + return settings->iconSize() < KIcon::SizeLarge; +} + +bool DolphinDetailsView::isZoomOutPossible() const +{ + DolphinDetailsViewSettings* settings = DolphinSettings::instance().detailsView(); + return settings->iconSize() > KIcon::SizeSmall; +} + +void DolphinDetailsView::resizeContents(int width, int height) +{ + KFileDetailView::resizeContents(width, height); + + // When loading several 1000 items a punch of resize events + // drops in. As updating the column width is a quite expensive + // operation, this operation will be postponed until there is + // no resize event for at least 50 milliseconds. + m_resizeTimer->stop(); + m_resizeTimer->start(50, true); +} + +void DolphinDetailsView::slotOnItem(QListViewItem* item) +{ + if (isOnFilename(item, QCursor::pos())) { + activateItem(item); + KFileItem* fileItem = static_cast(item)->fileInfo(); + m_dolphinView->requestItemInfo(fileItem->url()); + } + else { + resetActivatedItem(); + } +} + +void DolphinDetailsView::slotOnViewport() +{ + resetActivatedItem(); + m_dolphinView->requestItemInfo(KURL()); +} + +void DolphinDetailsView::setContextPixmap(void* context, + const QPixmap& pixmap) +{ + reinterpret_cast(context)->setPixmap(0, pixmap); +} + +const QPixmap* DolphinDetailsView::contextPixmap(void* context) +{ + return reinterpret_cast(context)->pixmap(0); +} + +void* DolphinDetailsView::firstContext() +{ + return reinterpret_cast(firstChild()); +} + +void* DolphinDetailsView::nextContext(void* context) +{ + KFileListViewItem* listViewItem = reinterpret_cast(context); + return reinterpret_cast(listViewItem->nextSibling()); +} + +KFileItem* DolphinDetailsView::contextFileInfo(void* context) +{ + return reinterpret_cast(context)->fileInfo(); +} + + +void DolphinDetailsView::contentsDragMoveEvent(QDragMoveEvent* event) +{ + KFileDetailView::contentsDragMoveEvent(event); + + // If a dragging is done above a directory, show the icon as 'active' for + // a visual feedback + KFileListViewItem* item = static_cast(itemAt(event->pos())); + + bool showActive = false; + if (item != 0) { + const KFileItem* fileInfo = item->fileInfo(); + showActive = (fileInfo != 0) && fileInfo->isDir(); + } + + if (showActive) { + slotOnItem(item); + } + else { + slotOnViewport(); + } +} + +void DolphinDetailsView::resizeEvent(QResizeEvent* event) +{ + KFileDetailView::resizeEvent(event); + + // When loading several 1000 items a punch of resize events + // drops in. As updating the column width is a quite expensive + // operation, this operation will be postponed until there is + // no resize event for at least 50 milliseconds. + m_resizeTimer->stop(); + m_resizeTimer->start(50, true); +} + +bool DolphinDetailsView::acceptDrag(QDropEvent* event) const +{ + bool accept = KURLDrag::canDecode(event) && + (event->action() == QDropEvent::Copy || + event->action() == QDropEvent::Move || + event->action() == QDropEvent::Link); + if (accept) { + if (static_cast(event->source()) == this) { + KFileListViewItem* item = static_cast(itemAt(event->pos())); + accept = (item != 0); + if (accept) { + KFileItem* fileItem = item->fileInfo(); + accept = fileItem->isDir(); + } + } + } + + return accept; +} + +void DolphinDetailsView::contentsDropEvent(QDropEvent* event) +{ + // KFileDetailView::contentsDropEvent does not care whether the mouse + // cursor is above a filename or not, the destination URL is always + // the URL of the item. This is fixed here in a way that the destination + // URL is only the URL of the item if the cursor is above the filename. + const QPoint pos(QCursor::pos()); + const QPoint viewportPos(viewport()->mapToGlobal(QPoint(0, 0))); + QListViewItem* item = itemAt(QPoint(pos.x() - viewportPos.x(), pos.y() - viewportPos.y())); + if ((item == 0) || ((item != 0) && isOnFilename(item, pos))) { + // dropping is done on the viewport or directly above a filename + KFileDetailView::contentsDropEvent(event); + return; + } + + // Dropping is done above an item, but the mouse cursor is not above the file name. + // In this case the signals of the base implementation will be blocked and send + // in a corrected manner afterwards. + assert(item != 0); + const bool block = signalsBlocked(); + blockSignals(true); + KFileDetailView::contentsDropEvent(event); + blockSignals(block); + + if (!acceptDrag(event)) { + return; + } + + emit dropped(event, 0); + KURL::List urls; + if (KURLDrag::decode(event, urls) && !urls.isEmpty()) { + emit dropped(event, urls, KURL()); + sig->dropURLs(0, event, urls); + } +} + +void DolphinDetailsView::contentsMousePressEvent(QMouseEvent* event) +{ + if (m_rubber != 0) { + drawRubber(); + delete m_rubber; + m_rubber = 0; + } + + // Swallow the base implementation of the mouse press event + // if the mouse cursor is not above the filename. This prevents + // that the item gets selected and simulates an equal usability + // like in the icon view. + const QPoint pos(QCursor::pos()); + const QPoint viewportPos(viewport()->mapToGlobal(QPoint(0, 0))); + QListViewItem* item = itemAt(QPoint(pos.x() - viewportPos.x(), pos.y() - viewportPos.y())); + if ((item != 0) && isOnFilename(item, pos)) { + KFileDetailView::contentsMousePressEvent(event); + } + else if (event->button() == Qt::LeftButton) { + const ButtonState keyboardState = KApplication::keyboardMouseState(); + const bool isSelectionActive = (keyboardState & ShiftButton) || + (keyboardState & ControlButton); + if (!isSelectionActive) { + clearSelection(); + } + + assert(m_rubber == 0); + m_rubber = new QRect(event->x(), event->y(), 0, 0); + } + + resetActivatedItem(); + emit signalRequestActivation(); + + m_dolphinView->statusBar()->clear(); +} + +void DolphinDetailsView::contentsMouseMoveEvent(QMouseEvent* event) +{ + if (m_rubber != 0) { + slotAutoScroll(); + return; + } + + KFileDetailView::contentsMouseMoveEvent(event); + + const QPoint& pos = event->globalPos(); + const QPoint viewportPos = viewport()->mapToGlobal(QPoint(0, 0)); + QListViewItem* item = itemAt(QPoint(pos.x() - viewportPos.x(), pos.y() - viewportPos.y())); + if ((item != 0) && isOnFilename(item, pos)) { + activateItem(item); + } + else { + resetActivatedItem(); + } +} + +void DolphinDetailsView::contentsMouseReleaseEvent(QMouseEvent* event) +{ + if (m_rubber != 0) { + drawRubber(); + delete m_rubber; + m_rubber = 0; + } + + if (m_scrollTimer != 0) { + disconnect(m_scrollTimer, SIGNAL(timeout()), + this, SLOT(slotAutoScroll())); + m_scrollTimer->stop(); + delete m_scrollTimer; + m_scrollTimer = 0; + } + + KFileDetailView::contentsMouseReleaseEvent(event); +} + +void DolphinDetailsView::paintEmptyArea(QPainter* painter, const QRect& rect) +{ + if (m_dolphinView->isActive()) { + KFileDetailView::paintEmptyArea(painter, rect); + } + else { + const QBrush brush(colorGroup().background()); + painter->fillRect(rect, brush); + } +} + +void DolphinDetailsView::drawRubber() +{ + // Parts of the following code have been taken + // from the class KonqBaseListViewWidget located in + // konqueror/listview/konq_listviewwidget.h of Konqueror. + // (Copyright (C) 1998, 1999 Torben Weis + // 2001, 2002, 2004 Michael Brade ) + if (m_rubber == 0) { + return; + } + + QPainter p; + p.begin(viewport()); + p.setRasterOp(NotROP); + p.setPen(QPen(color0, 1)); + p.setBrush(NoBrush); + + QPoint point(m_rubber->x(), m_rubber->y()); + point = contentsToViewport(point); + style().drawPrimitive(QStyle::PE_FocusRect, &p, + QRect(point.x(), point.y(), m_rubber->width(), m_rubber->height()), + colorGroup(), QStyle::Style_Default, colorGroup().base()); + p.end(); +} + +void DolphinDetailsView::viewportPaintEvent(QPaintEvent* paintEvent) +{ + drawRubber(); + KFileDetailView::viewportPaintEvent(paintEvent); + drawRubber(); +} + +void DolphinDetailsView::leaveEvent(QEvent* event) +{ + KFileDetailView::leaveEvent(event); + slotOnViewport(); +} + +void DolphinDetailsView::slotActivationUpdate() +{ + update(); + + // TODO: there must be a simpler way to say + // "update all children" + const QObjectList* list = children(); + if (list == 0) { + return; + } + + QObjectListIterator it(*list); + QObject* object = 0; + while ((object = it.current()) != 0) { + if (object->inherits("QWidget")) { + QWidget* widget = static_cast(object); + widget->update(); + } + ++it; + } +} + +void DolphinDetailsView::slotContextMenuRequested(QListViewItem* item, + const QPoint& pos, + int /* col */) +{ + KFileItem* fileInfo = 0; + if ((item != 0) && isOnFilename(item, pos)) { + fileInfo = static_cast(item)->fileInfo(); + } + m_dolphinView->openContextMenu(fileInfo, pos); + +} + +void DolphinDetailsView::slotUpdateDisabledItems() +{ + updateDisabledItems(); +} + +void DolphinDetailsView::slotAutoScroll() +{ + // Parts of the following code have been taken + // from the class KonqBaseListViewWidget located in + // konqueror/listview/konq_listviewwidget.h of Konqueror. + // (Copyright (C) 1998, 1999 Torben Weis + // 2001, 2002, 2004 Michael Brade ) + + const QPoint pos(viewport()->mapFromGlobal(QCursor::pos())); + const QPoint vc(viewportToContents(pos)); + + if (vc == m_rubber->bottomRight()) { + return; + } + + drawRubber(); + + m_rubber->setBottomRight(vc); + + QListViewItem* item = itemAt(QPoint(0,0)); + + const bool block = signalsBlocked(); + blockSignals(true); + + const QRect rubber(m_rubber->normalize()); + const int bottom = contentsY() + visibleHeight() - 1; + + // select all items which intersect with the rubber, deselect all others + bool bottomReached = false; + while ((item != 0) && !bottomReached) { + QRect rect(itemRect(item)); + rect.setWidth(filenameWidth(item)); + rect = QRect(viewportToContents(rect.topLeft()), + viewportToContents(rect.bottomRight())); + if (rect.isValid() && (rect.top() <= bottom)) { + const KFileItem* fileItem = static_cast(item)->fileInfo(); + setSelected(fileItem, rect.intersects(rubber)); + item = item->itemBelow(); + } + else { + bottomReached = true; + } + } + + blockSignals(block); + emit selectionChanged(); + + drawRubber(); + + // scroll the viewport if the top or bottom margin is reached + const int scrollMargin = 40; + ensureVisible(vc.x(), vc.y(), scrollMargin, scrollMargin); + const bool scroll = !QRect(scrollMargin, + scrollMargin, + viewport()->width() - 2 * scrollMargin, + viewport()->height() - 2 * scrollMargin).contains(pos); + if (scroll) { + if (m_scrollTimer == 0) { + m_scrollTimer = new QTimer( this ); + connect(m_scrollTimer, SIGNAL(timeout()), + this, SLOT(slotAutoScroll())); + m_scrollTimer->start(100, false); + } + } + else if (m_scrollTimer != 0) { + disconnect(m_scrollTimer, SIGNAL(timeout()), + this, SLOT(slotAutoScroll())); + m_scrollTimer->stop(); + delete m_scrollTimer; + m_scrollTimer = 0; + } +} + +void DolphinDetailsView::updateColumnsWidth() +{ + const int columnCount = columns(); + int requiredWidth = 0; + for (int i = 1; i < columnCount; ++i) { + // When a directory contains no items, a minimum width for + // the column must be available, so that the header is readable. + // TODO: use header data instead of the hardcoded 64 value... + int columnWidth = 64; + QFontMetrics fontMetrics(font()); + for (QListViewItem* item = firstChild(); item != 0; item = item->nextSibling()) { + const int width = item->width(fontMetrics, this, i); + if (width > columnWidth) { + columnWidth = width; + } + } + columnWidth += 16; // add custom margin + setColumnWidth(i, columnWidth); + requiredWidth += columnWidth; + } + + // resize the first column in a way that the + // whole available width is used + int firstColumnWidth = visibleWidth() - requiredWidth; + if (firstColumnWidth < 128) { + firstColumnWidth = 128; + } + setColumnWidth(0, firstColumnWidth); +} + +void DolphinDetailsView::slotItemRenamed(QListViewItem* item, + const QString& name, + int /* column */) +{ + KFileItem* fileInfo = static_cast(item)->fileInfo(); + m_dolphinView->rename(KURL(fileInfo->url()), name); +} + +void DolphinDetailsView::slotHeaderClicked(int /* section */) +{ + // The sorting has already been changed in QListView if this slot is + // invoked, but Dolphin was not informed about this (no signal is available + // which indicates a change of the sorting). This is bypassed by changing + // the sorting and sort order to a temporary other value and readjust it again. + const int column = sortColumn(); + if (column <= DateColumn) { + DolphinView::Sorting sorting = DolphinView::SortByName; + switch (column) { + case SizeColumn: sorting = DolphinView::SortBySize; break; + case DateColumn: sorting = DolphinView::SortByDate; break; + case NameColumn: + default: break; + } + + const Qt::SortOrder currSortOrder = sortOrder(); + + // temporary adjust the sorting and sort order to different values... + const DolphinView::Sorting tempSorting = (sorting == DolphinView::SortByName) ? + DolphinView::SortBySize : + DolphinView::SortByName; + m_dolphinView->setSorting(tempSorting); + const Qt::SortOrder tempSortOrder = (currSortOrder == Qt::Ascending) ? + Qt::Descending : Qt::Ascending; + m_dolphinView->setSortOrder(tempSortOrder); + + // ... so that setting them again results in storing the new setting. + m_dolphinView->setSorting(sorting); + m_dolphinView->setSortOrder(currSortOrder); + } +} + +DolphinDetailsView::DolphinListViewItem::DolphinListViewItem(QListView* parent, + KFileItem* fileItem) : + KFileListViewItem(parent, fileItem) +{ + const int iconSize = DolphinSettings::instance().detailsView()->iconSize(); + KFileItem* info = fileInfo(); + setPixmap(DolphinDetailsView::NameColumn, info->pixmap(iconSize)); + + // The base class KFileListViewItem represents the column 'Size' only as byte values. + // Adjust those values in a way that a mapping to GBytes, MBytes, KBytes and Bytes + // is done. As the file size for directories is useless (only the size of the directory i-node + // is given), it is removed completely. + if (fileItem->isDir()) { + setText(SizeColumn, " - "); + } + else { + QString sizeText(KIO::convertSize(fileItem->size())); + sizeText.append(" "); + setText(SizeColumn, sizeText); + } + + // Dolphin allows to remove specific columns, but the base class KFileListViewItem + // is not aware about this (or at least the class KFileDetailView does not react on + // QListView::remove()). Therefore the columns are rearranged here. + const DolphinDetailsViewSettings* settings = DolphinSettings::instance().detailsView(); + assert(settings != 0); + + int column_idx = DateColumn; // the columns for 'name' and 'size' cannot get removed + for (int i = DolphinDetailsView::DateColumn; i <= DolphinDetailsView::GroupColumn; ++i) { + if (column_idx < i) { + setText(column_idx, text(i)); + } + if (settings->isColumnEnabled(i)) { + ++column_idx; + } + } +} + +DolphinDetailsView::DolphinListViewItem::~DolphinListViewItem() +{ +} + +void DolphinDetailsView::DolphinListViewItem::paintCell(QPainter* painter, + const QColorGroup& colorGroup, + int column, + int cellWidth, + int alignment) +{ + const QListView* view = listView(); + const bool isActive = view->parent() == Dolphin::mainWin().activeView(); + if (isSelected()) { + // Per default the selection is drawn above the whole width of the item. As a consistent + // behavior with the icon view is wanted, only the the column containing the file name + // should be shown as selected. + QColorGroup defaultColorGroup(colorGroup); + const QColor highlightColor(isActive ? backgroundColor(column) : view->colorGroup().background()); + defaultColorGroup.setColor(QColorGroup::Highlight , highlightColor); + defaultColorGroup.setColor(QColorGroup::HighlightedText, colorGroup.color(QColorGroup::Text)); + KFileListViewItem::paintCell(painter, defaultColorGroup, column, cellWidth, alignment); + + if (column == 0) { + // draw the selection only on the first column + QListView* parent = listView(); + const int itemWidth = width(parent->fontMetrics(), parent, 0); + if (isActive) { + KFileListViewItem::paintCell(painter, colorGroup, column, itemWidth, alignment); + } + else { + QListViewItem::paintCell(painter, colorGroup, column, itemWidth, alignment); + } + } + } + else { + if (isActive) { + KFileListViewItem::paintCell(painter, colorGroup, column, cellWidth, alignment); + } + else { + QListViewItem::paintCell(painter, colorGroup, column, cellWidth, alignment); + } + } + + if (column < listView()->columns() - 1) { + // draw a separator between columns + painter->setPen(KGlobalSettings::buttonBackground()); + painter->drawLine(cellWidth - 1, 0, cellWidth - 1, height() - 1); + } +} + +void DolphinDetailsView::DolphinListViewItem::paintFocus(QPainter* painter, + const QColorGroup& colorGroup, + const QRect& rect) +{ + // draw the focus consistently with the selection (see implementation notes + // in DolphinListViewItem::paintCell) + QListView* parent = listView(); + int visibleWidth = width(parent->fontMetrics(), parent, 0); + const int colWidth = parent->columnWidth(0); + if (visibleWidth > colWidth) { + visibleWidth = colWidth; + } + + QRect focusRect(rect); + focusRect.setWidth(visibleWidth); + + KFileListViewItem::paintFocus(painter, colorGroup, focusRect); +} + +int DolphinDetailsView::filenameWidth(const QListViewItem* item) const +{ + assert(item != 0); + + int visibleWidth = item->width(fontMetrics(), this, 0); + const int colWidth = columnWidth(0); + if (visibleWidth > colWidth) { + visibleWidth = colWidth; + } + + return visibleWidth; +} +#include "dolphindetailsview.moc" diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h new file mode 100644 index 0000000..e1ee95f --- /dev/null +++ b/src/dolphindetailsview.h @@ -0,0 +1,216 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef DOLPHINDETAILSVIEW_H +#define DOLPHINDETAILSVIEW_H + +#include +#include + +class QRect; +class QTimer; +class DolphinView; + +/** + * @brief Represents the details view which shows the name, size, + * date, permissions, owner and group of an item. + * + * The width of the columns are automatically adjusted in a way + * that full available width of the view is used by stretching the width + * of the name column. + * + * @author Peter Penz + */ +class DolphinDetailsView : public KFileDetailView, public ItemEffectsManager +{ + Q_OBJECT + +public: + /** + * Maps the column indices of KFileDetailView to a + * descriptive column name. + */ + enum ColumnName { + NameColumn = 0, + SizeColumn = 1, + DateColumn = 2, + PermissionsColumn = 3, + OwnerColumn = 4, + GroupColumn = 5 + }; + + DolphinDetailsView(DolphinView* parent); + + virtual ~DolphinDetailsView(); + + /** @see ItemEffectsManager::updateItems */ + virtual void beginItemUpdates(); + + /** @see ItemEffectsManager::updateItems */ + virtual void endItemUpdates(); + + /** @see KFileView::insertItem */ + virtual void insertItem(KFileItem* fileItem); + + /** + * @return True, if the position \a pos is above the name of + * item \a item. + */ + bool isOnFilename(const QListViewItem* item, const QPoint& pos) const; + + /** + * Reads out the dolphin settings for the details view and refreshs + * the details view. + */ + // TODO: Other view implementations use a similar interface. When using + // Interview in Qt4 this method should be moved to a base class (currently + // not possible due to having different base classes for the views). + void refreshSettings(); + + /** @see ItemEffectsManager::zoomIn() */ + virtual void zoomIn(); + + /** @see ItemEffectsManager::zoomOut() */ + virtual void zoomOut(); + + /** @see ItemEffectsManager::isZoomInPossible() */ + virtual bool isZoomInPossible() const; + + /** @see ItemEffectsManager::isZoomOutPossible() */ + virtual bool isZoomOutPossible() const; + +signals: + /** + * Is send, if the details view should be activated. Usually an activation + * is triggered by a mouse click. + */ + void signalRequestActivation(); + +public slots: + /** @see KFileDetailView::resizeContents */ + virtual void resizeContents(int width, int height); + + /** Is connected to the onItem-signal from KFileDetailView. */ + void slotOnItem(QListViewItem* item); + + /** Is connected to the onViewport-signal from KFileDetailView. */ + void slotOnViewport(); + +protected: + /** @see ItemEffectsManager::setContextPixmap() */ + virtual void setContextPixmap(void* context, + const QPixmap& pixmap); + + /** @see ItemEffectsManager::setContextPixmap() */ + virtual const QPixmap* contextPixmap(void* context); + + /** @see ItemEffectsManager::setContextPixmap() */ + virtual void* firstContext(); + + /** @see ItemEffectsManager::setContextPixmap() */ + virtual void* nextContext(void* context); + + /** @see ItemEffectsManager::setContextPixmap() */ + virtual KFileItem* contextFileInfo(void* context); + + /** @see KFileDetailView::contentsDragMoveEvent() */ + virtual void contentsDragMoveEvent(QDragMoveEvent* event); + + /** @see KFileDetailView::resizeEvent() */ + virtual void resizeEvent(QResizeEvent* event); + + /** @see KFileDetailView::acceptDrag() */ + virtual bool acceptDrag (QDropEvent* event) const; + + /** @see KFileDetailView::contentsDropEvent() */ + virtual void contentsDropEvent(QDropEvent* event); + + /** @see KFileDetailView::contentsMousePressEvent() */ + virtual void contentsMousePressEvent(QMouseEvent* event); + + /** @see KFileDetailView::contentsMouseMoveEvent() */ + virtual void contentsMouseMoveEvent(QMouseEvent* event); + + /** @see KFileDetailView::contentsMouseReleaseEvent() */ + virtual void contentsMouseReleaseEvent(QMouseEvent* event); + + /** @see QListView::paintEmptyArea() */ + virtual void paintEmptyArea(QPainter* painter, const QRect& rect); + + /** Draws the selection rubber. */ + void drawRubber(); + + /** @see QListView::viewportPaintEvent() */ + virtual void viewportPaintEvent(QPaintEvent* paintEvent); + + /** @see QWidget::leaveEvent() */ + virtual void leaveEvent(QEvent* event); + +private slots: + void slotActivationUpdate(); + void slotContextMenuRequested(QListViewItem* item, + const QPoint& pos, + int col); + void slotUpdateDisabledItems(); + void slotAutoScroll(); + void updateColumnsWidth(); + void slotItemRenamed(QListViewItem* item, + const QString& name, + int column); + + /** + * Is invoked when a section from the header has + * been clicked and stores the sort column and sort + * order. + */ + void slotHeaderClicked(int section); + +private: + class DolphinListViewItem : public KFileListViewItem { + public: + DolphinListViewItem(QListView* parent, + KFileItem* fileItem); + virtual ~DolphinListViewItem(); + virtual void paintCell(QPainter* painter, + const QColorGroup& colorGroup, + int column, + int cellWidth, + int alignment); + + virtual void paintFocus(QPainter* painter, + const QColorGroup& colorGroup, + const QRect& rect); + }; + + DolphinView* m_dolphinView; + QTimer* m_resizeTimer; + QTimer* m_scrollTimer; + QRect* m_rubber; + + /** + * Returns the width of the filename in pixels including + * the icon. It is assured that the returned width is + * <= the width of the filename column. + */ + int filenameWidth(const QListViewItem* item) const; + +}; + +#endif diff --git a/src/dolphindetailsviewsettings.cpp b/src/dolphindetailsviewsettings.cpp new file mode 100644 index 0000000..005ebf0 --- /dev/null +++ b/src/dolphindetailsviewsettings.cpp @@ -0,0 +1,108 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphindetailsviewsettings.h" +#include "dolphindetailsview.h" +#include +#include + +DolphinDetailsViewSettings::DolphinDetailsViewSettings() : + m_columnEnabled(0), + m_iconSize(0), + m_fontSize(0) +{ + KConfig* config = kapp->config(); + config->setGroup("Details Mode"); + + // read which columns should be shown + const bool showName = config->readBoolEntry("Show Name", true); + const bool showSize = config->readBoolEntry("Show Size", true); + const bool showDate = config->readBoolEntry("Show Date", true); + const bool showPermissions = config->readBoolEntry("Show Permissions", false); + const bool showOwner = config->readBoolEntry("Show Owner", false); + const bool showGroup = config->readBoolEntry("Show Group", false); + + setColumnEnabled(DolphinDetailsView::NameColumn, showName); + setColumnEnabled(DolphinDetailsView::SizeColumn, showSize); + setColumnEnabled(DolphinDetailsView::DateColumn, showDate); + setColumnEnabled(DolphinDetailsView::PermissionsColumn, showPermissions); + setColumnEnabled(DolphinDetailsView::OwnerColumn, showOwner); + setColumnEnabled(DolphinDetailsView::GroupColumn, showGroup); + + // read icon size + m_iconSize = config->readNumEntry("Icon Size", KIcon::SizeSmall); + + // read font size and font family + m_fontSize = config->readNumEntry("Font Size", -1); + m_fontFamily = config->readEntry("Font Family"); + + const QFont font(KGlobalSettings::generalFont()); + if (m_fontSize < 0) { + m_fontSize = font.pointSize(); + } + + if (m_fontFamily.isEmpty()) { + m_fontFamily = font.family(); + } +} + +DolphinDetailsViewSettings::~DolphinDetailsViewSettings() +{ + m_columnEnabled = 0; + m_fontSize = 0; +} + +void DolphinDetailsViewSettings::setColumnEnabled(int column, + bool enable) +{ + if (enable) { + m_columnEnabled = m_columnEnabled | (1 << column); + } + else { + m_columnEnabled = m_columnEnabled & ~(1 << column); + } +} + +bool DolphinDetailsViewSettings::isColumnEnabled(int column) const +{ + return (m_columnEnabled & (1 << column)) > 0; +} + +void DolphinDetailsViewSettings::save() +{ + KConfig* config = kapp->config(); + config->setGroup("Details Mode"); + + config->writeEntry("Show Name", + isColumnEnabled(DolphinDetailsView::NameColumn)); + config->writeEntry("Show Size", + isColumnEnabled(DolphinDetailsView::SizeColumn)); + config->writeEntry("Show Date", + isColumnEnabled(DolphinDetailsView::DateColumn)); + config->writeEntry("Show Permissions", + isColumnEnabled(DolphinDetailsView::PermissionsColumn)); + config->writeEntry("Show Owner", + isColumnEnabled(DolphinDetailsView::OwnerColumn)); + config->writeEntry("Show Group", + isColumnEnabled(DolphinDetailsView::GroupColumn)); + config->writeEntry("Icon Size", m_iconSize); + config->writeEntry("Font Size", m_fontSize); + config->writeEntry("Font Family", m_fontFamily); +} diff --git a/src/dolphindetailsviewsettings.h b/src/dolphindetailsviewsettings.h new file mode 100644 index 0000000..d296f96 --- /dev/null +++ b/src/dolphindetailsviewsettings.h @@ -0,0 +1,71 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef DOLPHINDETAILSVIEWSETTINGS_H +#define DOLPHINDETAILSVIEWSETTINGS_H + +#include +#include +#include + +/** + * @brief Contains the settings for the details view. + * + * The following properties are stored: + * - enabled columns + * - sorted column + * - sort order for the sorted column + * - icon size + * - font family + * - font size + * + * @see DolphinDetailsView + * @author Peter Penz + */ +class DolphinDetailsViewSettings : public DolphinSettingsBase +{ +public: + DolphinDetailsViewSettings(); + + virtual ~DolphinDetailsViewSettings(); + + void setColumnEnabled(int column, bool enable); + bool isColumnEnabled(int column) const; + + void setIconSize(int size) { m_iconSize = size; } + int iconSize() const { return m_iconSize; } + + void setFontFamily(const QString& family) { m_fontFamily = family; } + const QString& fontFamily() const { return m_fontFamily; } + + void setFontSize(int size) { m_fontSize = size; } + int fontSize() const { return m_fontSize; } + + /** @see DolphinSettingsBase::save() */ + virtual void save(); + +private: + int m_columnEnabled; + int m_iconSize; + int m_fontSize; + QString m_fontFamily; +}; + +#endif diff --git a/src/dolphindirlister.cpp b/src/dolphindirlister.cpp new file mode 100644 index 0000000..897b4b4 --- /dev/null +++ b/src/dolphindirlister.cpp @@ -0,0 +1,42 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphindirlister.h" +#include + +// TODO: +#include + +DolphinDirLister::DolphinDirLister() : + KDirLister(true) +{ +} + +DolphinDirLister::~DolphinDirLister() +{ +} + +void DolphinDirLister::handleError(KIO::Job* job) +{ + // TODO: some error texts should be adjusted manually + emit errorMessage(job->errorString()); +} + +#include "dolphindirlister.moc" diff --git a/src/dolphindirlister.h b/src/dolphindirlister.h new file mode 100644 index 0000000..8d49d98 --- /dev/null +++ b/src/dolphindirlister.h @@ -0,0 +1,48 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef DOLPHINDIRLISTER_H +#define DOLPHINDIRLISTER_H + +#include + +/** + * @brief Extends the class KDirLister by emitting an error + * signal containing text. + * + * @author Peter Penz + */ +class DolphinDirLister : public KDirLister +{ + Q_OBJECT + +public: + DolphinDirLister(); + virtual ~DolphinDirLister(); + +signals: + /** Is emitted whenever an error occured. */ + void errorMessage(const QString& msg); + +protected: + virtual void handleError(KIO::Job* job); +}; + +#endif diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp new file mode 100644 index 0000000..7a2489b --- /dev/null +++ b/src/dolphiniconsview.cpp @@ -0,0 +1,500 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphiniconsview.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dolphinview.h" +#include "viewproperties.h" +#include "dolphin.h" +#include "dolphinstatusbar.h" +#include "dolphinsettings.h" +#include "dolphiniconsviewsettings.h" + +DolphinIconsView::DolphinIconsView(DolphinView* parent, LayoutMode layoutMode) : + KFileIconView(parent, 0), + m_previewIconSize(-1), + m_layoutMode(layoutMode), + m_dolphinView(parent) +{ + setAcceptDrops(true); + setMode(KIconView::Execute); + setSelectionMode(KFile::Extended); + Dolphin& dolphin = Dolphin::mainWin(); + + connect(this, SIGNAL(onItem(QIconViewItem*)), + this, SLOT(slotOnItem(QIconViewItem*))); + connect(this, SIGNAL(onViewport()), + this, SLOT(slotOnViewport())); + connect(this, SIGNAL(contextMenuRequested(QIconViewItem*, const QPoint&)), + this, SLOT(slotContextMenuRequested(QIconViewItem*, const QPoint&))); + connect(this, SIGNAL(selectionChanged()), + &dolphin, SLOT(slotSelectionChanged())); + connect(&dolphin, SIGNAL(activeViewChanged()), + this, SLOT(slotActivationUpdate())); + connect(this, SIGNAL(itemRenamed(QIconViewItem*, const QString&)), + this, SLOT(slotItemRenamed(QIconViewItem*, const QString&))); + connect(this, SIGNAL(dropped(QDropEvent*, const KURL::List&, const KURL&)), + parent, SLOT(slotURLListDropped(QDropEvent*, const KURL::List&, const KURL&))); + + QClipboard* clipboard = QApplication::clipboard(); + connect(clipboard, SIGNAL(dataChanged()), + this, SLOT(slotUpdateDisabledItems())); + + // KFileIconView creates two actions for zooming, which are directly connected to the + // slots KFileIconView::zoomIn() and KFileIconView::zoomOut(). As this behavior is not + // wanted and the slots are not virtual, the actions are disabled here. + KAction* zoomInAction = actionCollection()->action("zoomIn"); + assert(zoomInAction != 0); + zoomInAction->setEnabled(false); + + KAction* zoomOutAction = actionCollection()->action("zoomOut"); + assert(zoomOutAction != 0); + zoomOutAction->setEnabled(false); + + setItemsMovable(true); + setWordWrapIconText(true); + if (m_layoutMode == Previews) { + showPreviews(); + } + refreshSettings(); +} + +DolphinIconsView::~DolphinIconsView() +{ +} + +void DolphinIconsView::setLayoutMode(LayoutMode mode) +{ + if (m_layoutMode != mode) { + m_layoutMode = mode; + refreshSettings(); + } +} + +void DolphinIconsView::beginItemUpdates() +{ +} + +void DolphinIconsView::endItemUpdates() +{ + arrangeItemsInGrid(); + + // TODO: KFileIconView does not emit any signal when the preview + // has been finished. Using a delay of 300 ms is a temporary workaround + // until the DolphinIconsView will implement the previews by it's own in + // future releases. + QTimer::singleShot(300, this, SLOT(slotUpdateDisabledItems())); + + const KFileIconViewItem* item = static_cast(firstItem()); + if (item != 0) { + setCurrentItem(item->fileInfo()); + } + + int index = 0; + const QValueList history = m_dolphinView->urlHistory(index); + if (!history.isEmpty()) { + KFileView* fileView = static_cast(this); + fileView->setCurrentItem(history[index].currentFileName()); + setContentsPos(history[index].contentsX(), history[index].contentsY()); + } +} + +void DolphinIconsView::refreshSettings() +{ + const DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode); + assert(settings != 0); + + setIconSize(settings->iconSize()); + + const QIconView::Arrangement arrangement = settings->arrangement(); + const QIconView::ItemTextPos textPos = (arrangement == QIconView::LeftToRight) ? + QIconView::Bottom : + QIconView::Right; + setArrangement(arrangement); + setItemTextPos(textPos); + + setGridX(settings->gridWidth()); + setGridY(settings->gridHeight()); + setSpacing(settings->gridSpacing()); + + QFont adjustedFont(font()); + adjustedFont.setFamily(settings->fontFamily()); + adjustedFont.setPointSize(settings->fontSize()); + setFont(adjustedFont); + setIconTextHeight(settings->textlinesCount()); + + if (m_layoutMode == Previews) { + // There is no getter method for the current size in KFileIconView. To + // prevent a flickering the current size is stored in m_previewIconSize and + // setPreviewSize is only invoked if the size really has changed. + showPreviews(); + + const int size = settings->previewSize(); + if (size != m_previewIconSize) { + m_previewIconSize = size; + setPreviewSize(size); + } + } +} + +void DolphinIconsView::zoomIn() +{ + if (isZoomInPossible()) { + DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode); + const int textWidthHint = settings->textWidthHint(); + + const int iconSize = increasedIconSize(settings->iconSize()); + settings->setIconSize(iconSize); + + if (m_layoutMode == Previews) { + const int previewSize = increasedIconSize(settings->previewSize()); + settings->setPreviewSize(previewSize); + } + + settings->calculateGridSize(textWidthHint); + ItemEffectsManager::zoomIn(); + } +} + +void DolphinIconsView::zoomOut() +{ + if (isZoomOutPossible()) { + DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode); + const int textWidthHint = settings->textWidthHint(); + + const int iconSize = decreasedIconSize(settings->iconSize()); + settings->setIconSize(iconSize); + + if (m_layoutMode == Previews) { + const int previewSize = decreasedIconSize(settings->previewSize()); + settings->setPreviewSize(previewSize); + } + + settings->calculateGridSize(textWidthHint); + ItemEffectsManager::zoomOut(); + } +} + +bool DolphinIconsView::isZoomInPossible() const +{ + DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode); + const int size = (m_layoutMode == Icons) ? settings->iconSize() : settings->previewSize(); + return size < KIcon::SizeEnormous; +} + +bool DolphinIconsView::isZoomOutPossible() const +{ + DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode); + return settings->iconSize() > KIcon::SizeSmall; +} + +void DolphinIconsView::arrangeItemsInGrid( bool updated ) +{ + + KFileIconView::arrangeItemsInGrid(updated); + + if (m_layoutMode == Previews) { + // The class KFileIconView has a bug when the size of the previews differs from the size + // of the icons: For specific MIME types the y-position and the height is calculated in + // a wrong manner. The following code bypasses this issue. No bugreport has been submitted + // as this functionality is not used by any KDE3 application and the core developers are + // busy enough for KDE4 now :-) + + KFileIconViewItem* item = static_cast(QIconView::firstItem()); + QString mimetype; + while (item != 0) { + mimetype = item->fileInfo()->mimetype(); + const bool fixSize = mimetype.contains("text") || + mimetype.contains("application/x-"); + if (fixSize) { + item->setPixmapSize(QSize(m_previewIconSize, m_previewIconSize)); + } + item = static_cast(item->nextItem()); + } + } +} + +void DolphinIconsView::setContextPixmap(void* context, + const QPixmap& pixmap) +{ + reinterpret_cast(context)->setPixmap(pixmap); +} + +const QPixmap* DolphinIconsView::contextPixmap(void* context) +{ + return reinterpret_cast(context)->pixmap(); +} + +void* DolphinIconsView::firstContext() +{ + return reinterpret_cast(firstItem()); +} + +void* DolphinIconsView::nextContext(void* context) +{ + KFileIconViewItem* iconViewItem = reinterpret_cast(context); + return reinterpret_cast(iconViewItem->nextItem()); +} + +KFileItem* DolphinIconsView::contextFileInfo(void* context) +{ + return reinterpret_cast(context)->fileInfo(); +} + +void DolphinIconsView::contentsMousePressEvent(QMouseEvent* event) +{ + KFileIconView::contentsMousePressEvent(event); + resetActivatedItem(); + emit signalRequestActivation(); + m_dolphinView->statusBar()->clear(); +} + +void DolphinIconsView::contentsMouseReleaseEvent(QMouseEvent* event) +{ + KFileIconView::contentsMouseReleaseEvent(event); + + // The KFileIconView does not send any selectionChanged signal if + // a selection is done by using the "select-during-button-pressed" feature. + // Hence inform Dolphin about the selection change manually: + Dolphin::mainWin().slotSelectionChanged(); +} + +void DolphinIconsView::drawBackground(QPainter* painter, const QRect& rect) +{ + if (m_dolphinView->isActive()) { + KFileIconView::drawBackground(painter, rect); + } + else { + const QBrush brush(colorGroup().background()); + painter->fillRect(0, 0, width(), height(), brush); + } +} + +QDragObject* DolphinIconsView::dragObject() +{ + KURL::List urls; + KFileItemListIterator it(*KFileView::selectedItems()); + while (it.current() != 0) { + urls.append((*it)->url()); + ++it; + } + + QPixmap pixmap; + if(urls.count() > 1) { + pixmap = DesktopIcon("kmultiple", iconSize()); + } + else { + KFileIconViewItem* item = static_cast(currentItem()); + if ((item != 0) && (item->pixmap() != 0)) { + pixmap = *(item->pixmap()); + } + } + + if (pixmap.isNull()) { + pixmap = currentFileItem()->pixmap(iconSize()); + } + + QDragObject* dragObj = new KURLDrag(urls, widget()); + dragObj->setPixmap(pixmap); + return dragObj; +} + +void DolphinIconsView::contentsDragEnterEvent(QDragEnterEvent* event) +{ + // TODO: The method KFileIconView::contentsDragEnterEvent() does + // not allow drag and drop inside itself, which prevents the possability + // to move a file into a directory. As the method KFileIconView::acceptDrag() + // is not virtual, we must overwrite the method + // KFileIconView::contentsDragEnterEvent() and do some cut/copy/paste for this + // usecase. Corresponding to the documentation the method KFileIconView::acceptDrag() + // will get virtual in KDE 4, which will simplify the code. + + if (event->source() != this) { + KFileIconView::contentsDragEnterEvent(event); + return; + } + + const bool accept = KURLDrag::canDecode(event) && + (event->action() == QDropEvent::Copy || + event->action() == QDropEvent::Move || + event->action() == QDropEvent::Link ); + if (accept) { + event->acceptAction(); + } + else { + event->ignore(); + } +} + +void DolphinIconsView::contentsDragMoveEvent(QDragMoveEvent* event) +{ + KFileIconView::contentsDragMoveEvent(event); + + // If a dragging is done above a directory, show the icon as 'active' for + // a visual feedback + KFileIconViewItem* item = static_cast(findItem(contentsToViewport(event->pos()))); + + bool showActive = false; + if (item != 0) { + const KFileItem* fileInfo = item->fileInfo(); + showActive = (fileInfo != 0) && fileInfo->isDir(); + } + + if (showActive) { + slotOnItem(item); + } + else { + slotOnViewport(); + } +} + +void DolphinIconsView::contentsDropEvent(QDropEvent* event) +{ + // TODO: Most of the following code is a copy of + // KFileIconView::contentsDropEvent. See comment in + // DolphinIconsView::contentsDragEnterEvent for details. + + if (event->source() != this) { + KFileIconView::contentsDropEvent(event); + return; + } + + KFileIconViewItem* item = static_cast(findItem(contentsToViewport(event->pos()))); + const bool accept = KURLDrag::canDecode(event) && + (event->action() == QDropEvent::Copy || + event->action() == QDropEvent::Move || + event->action() == QDropEvent::Link ) && + (item != 0); + if (!accept) { + return; + } + + KFileItem* fileItem = item->fileInfo(); + if (!fileItem->isDir()) { + // the file is not a directory, hence don't accept any drop + return; + } + emit dropped(event, fileItem); + KURL::List urls; + if (KURLDrag::decode(event, urls) && !urls.isEmpty()) { + emit dropped(event, urls, fileItem != 0 ? fileItem->url() : KURL()); + sig->dropURLs(fileItem, event, urls); + } +} + +void DolphinIconsView::slotOnItem(QIconViewItem* item) +{ + assert(item != 0); + activateItem(reinterpret_cast(item)); + + KFileItem* fileItem = static_cast(item)->fileInfo(); + m_dolphinView->requestItemInfo(fileItem->url()); +} + +void DolphinIconsView::slotOnViewport() +{ + resetActivatedItem(); + m_dolphinView->requestItemInfo(KURL()); +} + +void DolphinIconsView::slotContextMenuRequested(QIconViewItem* item, + const QPoint& pos) +{ + KFileItem* fileInfo = 0; + if (item != 0) { + fileInfo = static_cast(item)->fileInfo(); + } + m_dolphinView->openContextMenu(fileInfo, pos); +} + +void DolphinIconsView::slotItemRenamed(QIconViewItem* item, + const QString& name) +{ + KFileItem* fileInfo = static_cast(item)->fileInfo(); + m_dolphinView->rename(KURL(fileInfo->url()), name); +} + +void DolphinIconsView::slotActivationUpdate() +{ + update(); + + // TODO: there must be a simpler way to say + // "update all children" + const QObjectList* list = children(); + if (list == 0) { + return; + } + + QObjectListIterator it(*list); + QObject* object = 0; + while ((object = it.current()) != 0) { + if (object->inherits("QWidget")) { + QWidget* widget = static_cast(object); + widget->update(); + } + ++it; + } +} + +void DolphinIconsView::slotUpdateDisabledItems() +{ + updateDisabledItems(); +} + +int DolphinIconsView::increasedIconSize(int size) const +{ + int incSize = 0; + switch (size) { + case KIcon::SizeSmall: incSize = KIcon::SizeSmallMedium; break; + case KIcon::SizeSmallMedium: incSize = KIcon::SizeMedium; break; + case KIcon::SizeMedium: incSize = KIcon::SizeLarge; break; + case KIcon::SizeLarge: incSize = KIcon::SizeHuge; break; + case KIcon::SizeHuge: incSize = KIcon::SizeEnormous; break; + default: assert(false); break; + } + return incSize; +} + +int DolphinIconsView::decreasedIconSize(int size) const +{ + int decSize = 0; + switch (size) { + case KIcon::SizeSmallMedium: decSize = KIcon::SizeSmall; break; + case KIcon::SizeMedium: decSize = KIcon::SizeSmallMedium; break; + case KIcon::SizeLarge: decSize = KIcon::SizeMedium; break; + case KIcon::SizeHuge: decSize = KIcon::SizeLarge; break; + case KIcon::SizeEnormous: decSize = KIcon::SizeHuge; break; + default: assert(false); break; + } + return decSize; +} + +#include "dolphiniconsview.moc" diff --git a/src/dolphiniconsview.h b/src/dolphiniconsview.h new file mode 100644 index 0000000..9be2102 --- /dev/null +++ b/src/dolphiniconsview.h @@ -0,0 +1,168 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef DOLPHINICONSVIEW_H +#define DOLPHINICONSVIEW_H + +#include +#include +#include +#include + +class DolphinView; + +/** + * @brief Represents the view, where each item is shown as an icon. + * + * It is also possible that instead of the icon a preview of the item + * content is shown. + * + * @author Peter Penz + */ +class DolphinIconsView : public KFileIconView, public ItemEffectsManager +{ + Q_OBJECT + +public: + enum LayoutMode { + Icons, + Previews + }; + + DolphinIconsView(DolphinView *parent, LayoutMode layoutMode); + + virtual ~DolphinIconsView(); + + void setLayoutMode(LayoutMode mode); + LayoutMode layoutMode() const { return m_layoutMode; } + + /** @see ItemEffectsManager::updateItems */ + virtual void beginItemUpdates(); + + /** @see ItemEffectsManager::updateItems */ + virtual void endItemUpdates(); + + /** + * Reads out the dolphin settings for the icons view and refreshs + * the details view. + */ + // TODO: Other view implementations use a similar interface. When using + // Interview in Qt4 this method should be moved to a base class (currently + // not possible due to having different base classes for the views). + void refreshSettings(); + + /** @see ItemEffectsManager::zoomIn() */ + virtual void zoomIn(); + + /** @see ItemEffectsManager::zoomOut() */ + virtual void zoomOut(); + + /** @see ItemEffectsManager::isZoomInPossible() */ + virtual bool isZoomInPossible() const; + + /** @see ItemEffectsManager::isZoomOutPossible() */ + virtual bool isZoomOutPossible() const; + +public slots: + /** + * Bypass a layout issue in KFileIconView in combination with previews. + * @see KFileIconView::arrangeItemsInGrid + */ + virtual void arrangeItemsInGrid(bool updated = true); + +signals: + /** + * Is send, if the details view should be activated. Usually an activation + * is triggered by a mouse click. + */ + void signalRequestActivation(); + +protected: + /** @see ItemEffectsManager::setContextPixmap */ + virtual void setContextPixmap(void* context, + const QPixmap& pixmap); + + /** @see ItemEffectsManager::contextPixmap */ + virtual const QPixmap* contextPixmap(void* context); + + /** @see ItemEffectsManager::firstContext */ + virtual void* firstContext(); + + /** @see ItemEffectsManager::nextContext */ + virtual void* nextContext(void* context); + + /** @see ItemEffectsManager::contextFileInfo */ + virtual KFileItem* contextFileInfo(void* context); + + /** @see KFileIconView::contentsMousePressEvent */ + virtual void contentsMousePressEvent(QMouseEvent* event); + + /** @see KFileIconView::contentsMouseReleaseEvent */ + virtual void contentsMouseReleaseEvent(QMouseEvent* event); + + /** @see KFileIconView::drawBackground */ + virtual void drawBackground(QPainter* painter, const QRect& rect); + + /** @see KFileIconView::dragObject */ + virtual QDragObject* dragObject(); + + /** @see KFileIconView::contentsDragEnterEvent */ + virtual void contentsDragEnterEvent(QDragEnterEvent* event); + + /** @see KFileIconView::contentsDragMoveEvent */ + virtual void contentsDragMoveEvent(QDragMoveEvent* event); + + /** @see KFileIconView::contentsDropEvent */ + virtual void contentsDropEvent(QDropEvent* event); + +private slots: + /** Is connected to the onItem-signal from KFileIconView. */ + void slotOnItem(QIconViewItem* item); + + /** Is connected to the onViewport-signal from KFileIconView. */ + void slotOnViewport(); + + /** + * Opens the context menu for the item \a item on the given + * position \a pos. + */ + void slotContextMenuRequested(QIconViewItem* item, + const QPoint& pos); + + /** Renames the item \a item to the name \a name. */ + void slotItemRenamed(QIconViewItem* item, + const QString& name); + + void slotActivationUpdate(); + void slotUpdateDisabledItems(); + +private: + int m_previewIconSize; + LayoutMode m_layoutMode; + DolphinView* m_dolphinView; + + /** Returns the increased icon size for the size \a size. */ + int increasedIconSize(int size) const; + + /** Returns the decreased icon size for the size \a size. */ + int decreasedIconSize(int size) const; +}; + +#endif diff --git a/src/dolphiniconsviewsettings.cpp b/src/dolphiniconsviewsettings.cpp new file mode 100644 index 0000000..d47f0f7 --- /dev/null +++ b/src/dolphiniconsviewsettings.cpp @@ -0,0 +1,199 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphiniconsviewsettings.h" +#include +#include +#include +#include + +DolphinIconsViewSettings::DolphinIconsViewSettings(DolphinIconsView::LayoutMode mode) : + m_arrangement(QIconView::LeftToRight), + m_layoutMode(mode), + m_iconSize(KIcon::SizeMedium), + m_previewSize(KIcon::SizeMedium), + m_gridWidth(0), + m_gridHeight(KIcon::SizeMedium), + m_gridSpacing(8), + m_fontSize(0), + m_textlinesCount(2) +{ + KConfig* config = kapp->config(); + setConfigGroup(config); + + // read icon size + m_iconSize = config->readNumEntry("Icon Size", -1); + if (m_iconSize < 0) { + m_iconSize = KIcon::SizeMedium; + } + + // read arrangement + const QString arrangement(config->readEntry("Arrangement")); + if (arrangement == "Left to Right") { + m_arrangement = QIconView::LeftToRight; + } + else if (arrangement == "Top to Bottom") { + m_arrangement = QIconView::TopToBottom; + } + + // read preview size, grid width and grid height + m_previewSize = config->readNumEntry("Preview Size", -1); + m_gridWidth = config->readNumEntry("Grid Width", -1); + m_gridHeight = config->readNumEntry("Grid Height", -1); + m_gridSpacing = config->readNumEntry("Grid Spacing", -1); + + if (mode == DolphinIconsView::Previews) { + if (m_previewSize < 0) { + m_previewSize = KIcon::SizeEnormous; + } + if (m_gridWidth < 0) { + m_gridWidth = m_previewSize + (m_previewSize / 2); + } + } + else if (m_gridWidth < 0) { + m_gridWidth = m_iconSize + (m_iconSize / 2) + (KIcon::SizeLarge * 2); + } + + if (m_gridHeight < 0) { + m_gridHeight = m_iconSize * 2; + } + + // read font size and font family + m_fontSize = config->readNumEntry("Font Size", -1); + m_fontFamily = config->readEntry("Font Family"); + + const QFont font(KGlobalSettings::generalFont()); + if (m_fontSize < 0) { + m_fontSize = font.pointSize(); + } + + if (m_fontFamily.isEmpty()) { + m_fontFamily = font.family(); + } + + // read textlines count + m_textlinesCount = config->readNumEntry("Number of Textlines", 2); +} + + +DolphinIconsViewSettings::~DolphinIconsViewSettings() +{ +} + +void DolphinIconsViewSettings::setIconSize(int size) +{ + // TODO: add boundaries check + m_iconSize = size; +} + +void DolphinIconsViewSettings::setPreviewSize(int size) +{ + // TODO: add boundaries check + m_previewSize = size; +} + +void DolphinIconsViewSettings::setGridSpacing(int spacing) +{ + // TODO: add boundaries check + m_gridSpacing = spacing; +} + +void DolphinIconsViewSettings::save() +{ + KConfig* config = kapp->config(); + setConfigGroup(config); + + config->writeEntry("Icon Size", m_iconSize); + if (m_arrangement == QIconView::LeftToRight) { + config->writeEntry("Arrangement", "Left to Right"); + } + else { + config->writeEntry("Arrangement", "Top to Bottom"); + } + + config->writeEntry("Preview Size", m_previewSize); + config->writeEntry("Grid Width", m_gridWidth); + config->writeEntry("Grid Height", m_gridHeight); + config->writeEntry("Grid Spacing", m_gridSpacing); + config->writeEntry("Font Size", m_fontSize); + config->writeEntry("Font Family", m_fontFamily); + config->writeEntry("Number of Textlines", m_textlinesCount); +} + +void DolphinIconsViewSettings::calculateGridSize(int hint) +{ + const int maxSize = (m_previewSize > m_iconSize) ? m_previewSize : m_iconSize; + if (m_arrangement == QIconView::LeftToRight) { + int widthUnit = maxSize + (maxSize / 2); + if (widthUnit < KIcon::SizeLarge) { + widthUnit = KIcon::SizeLarge; + } + //m_gridWidth = widthUnit + hint * KIcon::SizeLarge; + m_gridWidth = widthUnit + hint * KIcon::SizeLarge; + + m_gridHeight = m_iconSize; + if (m_gridHeight <= KIcon::SizeMedium) { + m_gridHeight = m_gridHeight * 2; + } + else { + m_gridHeight += maxSize / 2; + } + } + else { + assert(m_arrangement == QIconView::TopToBottom); + m_gridWidth = maxSize + (hint + 1) * (8 * m_fontSize); + + // The height-setting is ignored yet by KFileIconView if the TopToBottom + // arrangement is active. Anyway write the setting to have a defined value. + m_gridHeight = maxSize; + } +} + +int DolphinIconsViewSettings::textWidthHint() const +{ + const int maxSize = (m_previewSize > m_iconSize) ? m_previewSize : m_iconSize; + int hint = 0; + if (m_arrangement == QIconView::LeftToRight) { + int widthUnit = maxSize + (maxSize / 2); + if (widthUnit < KIcon::SizeLarge) { + widthUnit = KIcon::SizeLarge; + } + hint = (m_gridWidth - widthUnit) / KIcon::SizeLarge; + } + else { + assert(m_arrangement == QIconView::TopToBottom); + hint = (m_gridWidth - maxSize) / (8 * m_fontSize) - 1; + if (hint > 2) { + hint = 2; + } + } + return hint; +} + +void DolphinIconsViewSettings::setConfigGroup(KConfig* config) +{ + if (m_layoutMode == DolphinIconsView::Previews) { + config->setGroup("Previews Mode"); + } + else { + config->setGroup("Icons Mode"); + } +} + diff --git a/src/dolphiniconsviewsettings.h b/src/dolphiniconsviewsettings.h new file mode 100644 index 0000000..ec63677 --- /dev/null +++ b/src/dolphiniconsviewsettings.h @@ -0,0 +1,126 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef DOLPHINICONSVIEWSETTINGS_H +#define DOLPHINICONSVIEWSETTINGS_H + +#include +#include +#include +#include +#include + +/** + * @brief Contains the settings for the icons view. + * + * The following properties are stored: + * - layout mode (icons or previews) + * - icon size + * - preview size + * - grid width, height and spacing + * - arrangement (left to right or top to bottom) + * - font family + * - font size + * - number of text lines + * + * @see DolphinIconsView + * @author Peter Penz + */ +class DolphinIconsViewSettings : public DolphinSettingsBase +{ +public: + DolphinIconsViewSettings(DolphinIconsView::LayoutMode mode); + virtual ~DolphinIconsViewSettings(); + + void setIconSize(int size); + int iconSize() const { return m_iconSize; } + + void setPreviewSize(int size); + int previewSize() const { return m_previewSize; } + + /** + * Returns the width of the grid. For setting the width + * DolphinIconsviewSettings::calculateGridSize() must be used. + */ + int gridWidth() const { return m_gridWidth; } + + /** + * Returns the height of the grid. For setting the height + * DolphinIconsviewSettings::calculateGridSize() must be used. + */ + int gridHeight() const { return m_gridHeight; } + + void setGridSpacing(int spacing); + int gridSpacing() const { return m_gridSpacing; } + + void setArrangement(QIconView::Arrangement arrangement) { m_arrangement = arrangement; } + QIconView::Arrangement arrangement() const { return m_arrangement; } + + void setFontFamily(const QString& family) { m_fontFamily = family; } + const QString& fontFamily() const { return m_fontFamily; } + + void setFontSize(int size) { m_fontSize = size; } + int fontSize() const { return m_fontSize; } + + void setTextlinesCount(int count) { m_textlinesCount = count; } + int textlinesCount() const { return m_textlinesCount; } + + /** @see DolphinSettingsBase::save */ + virtual void save(); + + /** + * Calculates the width and the height of the grid dependant from \a hint and + * the current settings. The hint gives information about the wanted text + * width, where a lower value indicates a smaller text width. Currently + * in Dolphin the values 0, 1 and 2 are used. See also + * DolhinIconsViewSettings::textWidthHint. + * + * The calculation of the grid width and grid height is a little bit tricky, + * as the user model does not fit to the implementation model of QIconView. The user model + * allows to specify icon-, preview- and text width sizes, whereas the implementation + * model expects only a grid width and height. The nasty thing is that the specified + * width and height varies dependant from the arrangement (e. g. the height is totally + * ignored for the top-to-bottom arrangement inside QIconView). + */ + void calculateGridSize(int hint); + + /** + * Returns the text width hint dependant from the given settings. + * A lower value indicates a smaller text width. Currently + * in Dolphin the values 0, 1 and 2 are used. The text width hint can + * be used later for DolphinIconsViewSettings::calculateGridSize(). + */ + int textWidthHint() const; + +private: + QIconView::Arrangement m_arrangement; + DolphinIconsView::LayoutMode m_layoutMode; + int m_iconSize; + int m_previewSize; + int m_gridWidth; + int m_gridHeight; + int m_gridSpacing; + int m_fontSize; + int m_textlinesCount; + QString m_fontFamily; + + void setConfigGroup(KConfig* config); +}; + +#endif diff --git a/src/dolphinsettings.cpp b/src/dolphinsettings.cpp new file mode 100644 index 0000000..01ef80e --- /dev/null +++ b/src/dolphinsettings.cpp @@ -0,0 +1,142 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at), * + * Cvetoslav Ludmiloff and Patrice Tremblay * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphinsettings.h" +#include + +#include +#include +#include +#include +#include +#include + +#include "dolphin.h" +#include "dolphiniconsviewsettings.h" +#include "dolphindetailsviewsettings.h" +#include "sidebarssettings.h" + +DolphinSettings& DolphinSettings::instance() +{ + static DolphinSettings* instance = 0; + if (instance == 0) { + instance = new DolphinSettings(); + } + return *instance; +} + +void DolphinSettings::setHomeURL(const KURL& url) +{ + m_homeURL = url; + // TODO: update home bookmark? +} + +DolphinSettings::DolphinSettings() : + m_defaultMode(DolphinView::IconsView), + m_isViewSplit(false), + m_isURLEditable(false) +{ + KConfig* config = kapp->config(); + config->setGroup("General"); + m_homeURL = KURL(config->readEntry("Home URL", QDir::homeDirPath())); + m_defaultMode = static_cast(config->readNumEntry("Default View Mode", DolphinView::IconsView)); + m_isViewSplit = config->readBoolEntry("Split View", false); + m_isSaveView = config->readBoolEntry("Save View", false); + m_isURLEditable = config->readBoolEntry("Editable URL", false); + + m_iconsView = new DolphinIconsViewSettings(DolphinIconsView::Icons); + m_previewsView = new DolphinIconsViewSettings(DolphinIconsView::Previews); + m_detailsView = new DolphinDetailsViewSettings(); + m_leftsidebar = new leftSidebarSettings(); + m_rightsidebar = new rightSidebarSettings(); +} + +DolphinSettings::~DolphinSettings() +{ + delete m_iconsView; + m_iconsView = 0; + + delete m_previewsView; + m_previewsView = 0; + + delete m_detailsView; + m_detailsView = 0; + + delete m_leftsidebar; + m_leftsidebar = 0; + + delete m_rightsidebar; + m_rightsidebar = 0; +} + +KBookmark DolphinSettings::bookmark(int index) const +{ + int i = 0; + KBookmarkGroup root = bookmarkManager()->root(); + KBookmark bookmark = root.first(); + while (!bookmark.isNull()) { + if (i == index) { + return bookmark; + } + ++i; + bookmark = root.next(bookmark); + } + + return KBookmark(); +} + +DolphinIconsViewSettings* DolphinSettings::iconsView(DolphinIconsView::LayoutMode mode) const +{ + return (mode == DolphinIconsView::Icons) ? m_iconsView : m_previewsView; +} + +KBookmarkManager* DolphinSettings::bookmarkManager() const +{ + QString basePath = KGlobal::instance()->instanceName(); + basePath.append("/bookmarks.xml"); + const QString file = locateLocal("data", basePath); + + return KBookmarkManager::managerForFile(file, false); +} + +void DolphinSettings::save() +{ + KConfig* config = kapp->config(); + config->setGroup("General"); + config->writeEntry("Version", 1); // internal version + config->writeEntry("Home URL", m_homeURL.prettyURL()); + config->writeEntry("Default View Mode", m_defaultMode); + config->writeEntry("Split View", m_isViewSplit); + config->writeEntry("Save View", m_isSaveView); + config->writeEntry("Editable URL", m_isURLEditable); + + m_iconsView->save(); + m_previewsView->save(); + m_detailsView->save(); + m_leftsidebar->save(); + m_rightsidebar->save(); + + QString basePath = KGlobal::instance()->instanceName(); + basePath.append("/bookmarks.xml"); + const QString file = locateLocal( "data", basePath); + + KBookmarkManager* manager = KBookmarkManager::managerForFile(file, false); + manager->save(false); +} diff --git a/src/dolphinsettings.h b/src/dolphinsettings.h new file mode 100644 index 0000000..3e70fd4 --- /dev/null +++ b/src/dolphinsettings.h @@ -0,0 +1,110 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef DOLPHINSETTINGS_H +#define DOLPHINSETTINGS_H + +#include + +#include +#include +#include +#include + +class KBookmark; +class KBookmarkManager; +class DolphinIconsViewSettings; +class DolphinDetailsViewSettings; +class leftSidebarSettings; +class rightSidebarSettings; + +/** + * @brief Manages and stores all settings from Dolphin. + * + * The following properties are stored: + * - home URL + * - default view mode + * - URL navigator state (editable or not) + * - split view + * - bookmarks + * - properties for icons and details view + */ +class DolphinSettings : DolphinSettingsBase { +public: + static DolphinSettings& instance(); + + void setHomeURL(const KURL& url); + const KURL& homeURL() const { return m_homeURL; } + + void setDefaultViewMode(DolphinView::Mode mode) { m_defaultMode = mode; } + DolphinView::Mode defaultViewMode() const { return m_defaultMode; } + + void setURLEditable(bool editable) { m_isURLEditable = editable; } + bool isURLEditable() const { return m_isURLEditable; } + + void setViewSplit(bool split) { m_isViewSplit = split; } + bool isViewSplit() const { return m_isViewSplit; } + + void setSaveView(bool yes) { m_isSaveView = yes; } + bool isSaveView() const { return m_isSaveView; } + + + DolphinIconsViewSettings* iconsView(DolphinIconsView::LayoutMode mode) const; + + DolphinDetailsViewSettings* detailsView() const { return m_detailsView; } + + leftSidebarSettings* leftsidebar() const { return m_leftsidebar; } + rightSidebarSettings* rightsidebar() const { return m_rightsidebar; } + + KBookmarkManager* bookmarkManager() const; + + // TODO: should this really belong here or get moved to a derived KBookmarkManager? + // Dolphin uses some lists where an index is given and the corresponding bookmark + // should get retrieved... + KBookmark bookmark(int index) const; + + /** @see DolphinSettingsBase::save */ + virtual void save(); + +protected: + DolphinSettings(); + virtual ~DolphinSettings(); + +private: + enum BookmarkHint { + Home = 0, + Media = 1, + Network = 2, + Root = 3 + }; + + DolphinView::Mode m_defaultMode; + bool m_isViewSplit; + bool m_isURLEditable; + bool m_isSaveView; + KURL m_homeURL; + DolphinIconsViewSettings* m_iconsView; + DolphinIconsViewSettings* m_previewsView; + DolphinDetailsViewSettings* m_detailsView; + leftSidebarSettings* m_leftsidebar; + rightSidebarSettings* m_rightsidebar; +}; + +#endif diff --git a/src/dolphinsettingsbase.cpp b/src/dolphinsettingsbase.cpp new file mode 100644 index 0000000..c65297c --- /dev/null +++ b/src/dolphinsettingsbase.cpp @@ -0,0 +1,31 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphinsettingsbase.h" + +DolphinSettingsBase::DolphinSettingsBase() +{ +} + +DolphinSettingsBase::~DolphinSettingsBase() +{ +} + + diff --git a/src/dolphinsettingsbase.h b/src/dolphinsettingsbase.h new file mode 100644 index 0000000..2c2482e --- /dev/null +++ b/src/dolphinsettingsbase.h @@ -0,0 +1,43 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef DOLPHINSETTINGSBASE_H +#define DOLPHINSETTINGSBASE_H + +/** + * @brief Base class for all Dolphin settings. + * + * Derived classes must implement the method + * DolphinSettingsBase::save(). + * + * @author Peter Penz + */ +// TODO: design this base class as Composite pattern, +// as settings might contain other settings +class DolphinSettingsBase +{ +public: + DolphinSettingsBase(); + + virtual ~DolphinSettingsBase(); + + virtual void save() = 0; +}; + +#endif diff --git a/src/dolphinsettingsdialog.cpp b/src/dolphinsettingsdialog.cpp new file mode 100644 index 0000000..4bed70b --- /dev/null +++ b/src/dolphinsettingsdialog.cpp @@ -0,0 +1,77 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphinsettingsdialog.h" +#include +#include +#include "generalsettingspage.h" +#include "viewsettingspage.h" +#include "bookmarkssettingspage.h" +#include "dolphin.h" + +DolphinSettingsDialog::DolphinSettingsDialog() : + KDialogBase(IconList, i18n("D3lphin Preferences"), + Ok|Apply|Cancel, Ok) +{ + KIconLoader iconLoader; + QFrame* generalSettingsFrame = addPage(i18n("General"), 0, + iconLoader.loadIcon("exec", + KIcon::NoGroup, + KIcon::SizeMedium)); + m_generalSettingsPage = new GeneralSettingsPage(generalSettingsFrame); + + QFrame* viewSettingsFrame = addPage(i18n("View Modes"), 0, + iconLoader.loadIcon("view_choose", + KIcon::NoGroup, + KIcon::SizeMedium)); + m_viewSettingsPage = new ViewSettingsPage(viewSettingsFrame); + + QFrame* bookmarksSettingsFrame = addPage(i18n("Bookmarks"), 0, + iconLoader.loadIcon("bookmark", + KIcon::NoGroup, + KIcon::SizeMedium)); + m_bookmarksSettingsPage = new BookmarksSettingsPage(bookmarksSettingsFrame); +} + +DolphinSettingsDialog::~DolphinSettingsDialog() +{ +} + +void DolphinSettingsDialog::slotOk() +{ + applySettings(); + KDialogBase::slotOk(); +} + +void DolphinSettingsDialog::slotApply() +{ + applySettings(); + KDialogBase::slotApply(); +} + +void DolphinSettingsDialog::applySettings() +{ + m_generalSettingsPage->applySettings(); + m_viewSettingsPage->applySettings(); + m_bookmarksSettingsPage->applySettings(); + Dolphin::mainWin().refreshViews(); +} + +#include "dolphinsettingsdialog.moc" diff --git a/src/dolphinsettingsdialog.h b/src/dolphinsettingsdialog.h new file mode 100644 index 0000000..7b8023d --- /dev/null +++ b/src/dolphinsettingsdialog.h @@ -0,0 +1,56 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef DOLPHINSETTINGSDIALOG_H +#define DOLPHINSETTINGSDIALOG_H + +#include +class GeneralSettingsPage; +class ViewSettingsPage; +class BookmarksSettingsPage; + +/** + * @brief Settings dialog for Dolphin. + * + * Contains the pages for general settings, view settings and + * bookmark settings. + * + * @author Peter Penz + */ +class DolphinSettingsDialog : public KDialogBase { + Q_OBJECT + +public: + DolphinSettingsDialog(); + virtual ~DolphinSettingsDialog(); + +protected slots: + virtual void slotOk(); + virtual void slotApply(); + +private: + GeneralSettingsPage* m_generalSettingsPage; + ViewSettingsPage* m_viewSettingsPage; + BookmarksSettingsPage* m_bookmarksSettingsPage; + + void applySettings(); +}; + +#endif diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp new file mode 100644 index 0000000..cfa5fb4 --- /dev/null +++ b/src/dolphinstatusbar.cpp @@ -0,0 +1,166 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphinstatusbar.h" +#include +#include +#include +#include + +#include "dolphinview.h" +#include "statusbarmessagelabel.h" +#include "statusbarspaceinfo.h" + +DolphinStatusBar::DolphinStatusBar(DolphinView* parent) : + QHBox(parent), + m_messageLabel(0), + m_spaceInfo(0), + m_progressBar(0), + m_progress(100) +{ + m_messageLabel = new StatusBarMessageLabel(this); + m_messageLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed); + + m_spaceInfo = new StatusBarSpaceInfo(this); + m_spaceInfo->setURL(parent->url()); + + m_progressText = new QLabel(this); + m_progressText->hide(); + + m_progressBar = new KProgress(this); + m_progressBar->hide(); + + m_progressTimer = new QTimer(this); + connect(m_progressTimer, SIGNAL(timeout()), + this, SLOT(slotProgressTimer())); + + const QSize size(m_progressBar->sizeHint()); + m_progressBar->setMaximumWidth(size.width()); + setMinimumHeight(size.height()); + m_messageLabel->setMinimumTextHeight(size.height()); + + connect(parent, SIGNAL(signalURLChanged(const KURL&)), + this, SLOT(slotURLChanged(const KURL&))); +} + + +DolphinStatusBar::~DolphinStatusBar() +{ +} + +void DolphinStatusBar::setMessage(const QString& msg, + Type type) +{ + m_messageLabel->setText(msg); + if (msg.isEmpty() || (msg == m_defaultText)) { + type = Default; + } + m_messageLabel->setType(type); + + if ((type == Error) && (m_progress < 100)) { + // If an error message is shown during a progress is ongoing, + // the (never finishing) progress information should be hidden immediately + // (invoking 'setProgress(100)' only leads to a delayed hiding). + m_progressBar->hide(); + m_progressText->hide(); + setProgress(100); + } +} + +DolphinStatusBar::Type DolphinStatusBar::type() const +{ + return m_messageLabel->type(); +} + +QString DolphinStatusBar::message() const +{ + return m_messageLabel->text(); +} + +void DolphinStatusBar::setProgressText(const QString& text) +{ + m_progressText->setText(text); +} + +QString DolphinStatusBar::progressText() const +{ + return m_progressText->text(); +} + +void DolphinStatusBar::setProgress(int percent) +{ + if (percent < 0) { + percent = 0; + } + else if (percent > 100) { + percent = 100; + } + + m_progress = percent; + m_progressBar->setProgress(m_progress); + m_progressTimer->start(300, true); + + const QString msg(m_messageLabel->text()); + if (msg.isEmpty() || (msg == m_defaultText)) { + if (percent == 0) { + m_messageLabel->setText(QString::null); + m_messageLabel->setType(Default); + } + else if (percent == 100) { + m_messageLabel->setText(m_defaultText); + } + } +} + +void DolphinStatusBar::clear() +{ + // TODO: check for timeout, so that it's prevented that + // a message is cleared too early. + m_messageLabel->setText(m_defaultText); + m_messageLabel->setType(Default); +} + +void DolphinStatusBar::setDefaultText(const QString& text) +{ + m_defaultText = text; +} + +void DolphinStatusBar::slotProgressTimer() +{ + if (m_progress < 100) { + // progress should be shown + m_progressBar->show(); + m_progressText->show(); + m_spaceInfo->hide(); + } + else { + // progress should not be shown anymore + m_progressBar->hide(); + m_progressText->hide(); + m_spaceInfo->show(); + } +} + +void DolphinStatusBar::slotURLChanged(const KURL& url) +{ + m_spaceInfo->setURL(url); +} + +#include "dolphinstatusbar.moc" diff --git a/src/dolphinstatusbar.h b/src/dolphinstatusbar.h new file mode 100644 index 0000000..e4e3e8d --- /dev/null +++ b/src/dolphinstatusbar.h @@ -0,0 +1,133 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef DOLPHINSTATUSBAR_H +#define DOLPHINSTATUSBAR_H + +#include +class KProgress; +class QLabel; +class QTimer; +class StatusBarMessageLabel; +class StatusBarSpaceInfo; +class DolphinView; +class KURL; + +/** + * @brief Represents the statusbar of a Dolphin view. + * + * The statusbar allows to show messages and progress + * information. + * + * @author Peter Penz + */ +class DolphinStatusBar : public QHBox { + Q_OBJECT + +public: + /** + * Describes the type of the message text. Dependent + * from the type a corresponding icon and color is + * used for the message text. + */ + enum Type { + Default, + OperationCompleted, + Information, + Error + }; + + DolphinStatusBar(DolphinView* parent = 0); + virtual ~DolphinStatusBar(); + + /** + * Sets the message text to \a msg. Dependant + * from the given type \a type an icon is shown and + * the color of the text is adjusted. The height of + * the statusbar is automatically adjusted in a way, + * that the full text fits into the available width. + * + * If a progress is ongoing and a message + * with the type Type::Error is set, the progress + * is cleared automatically. + */ + void setMessage(const QString& msg, Type type); + + QString message() const; + Type type() const; + + /** + * Sets the text for the progress information. + * The text is shown with a delay of 300 milliseconds: + * if the progress set by DolphinStatusBar::setProgress() + * does reach 100 % within 300 milliseconds, + * the progress text is not shown at all. This assures that + * no flickering occurs for showing a progress of fast + * operations. + */ + void setProgressText(const QString& text); + QString progressText() const; + + /** + * Sets the progress in percent (0 - 100). The + * progress is shown with a delay of 300 milliseconds: + * if the progress does reach 100 % within 300 milliseconds, + * the progress is not shown at all. This assures that + * no flickering occurs for showing a progress of fast + * operations. + */ + void setProgress(int percent); + int progress() const { return m_progress; } + + /** + * Clears the message text of the status bar by replacing + * the message with the default text, which can be set + * by DolphinStatusBar::setDefaultText(). The progress + * information is not cleared. + */ + void clear(); + + /** + * Sets the default text, which is shown if the status bar + * is cleared by DolphinStatusBar::clear(). + */ + void setDefaultText(const QString& text); + const QString& defaultText() const { return m_defaultText; } + +private slots: + void slotProgressTimer(); + + /** + * Is invoked, when the URL of the DolphinView, where the + * statusbar belongs too, has been changed. + */ + void slotURLChanged(const KURL& url); + +private: + StatusBarMessageLabel* m_messageLabel; + StatusBarSpaceInfo* m_spaceInfo; + QLabel* m_progressText; + KProgress* m_progressBar; + QTimer* m_progressTimer; + int m_progress; + QString m_defaultText; +}; + +#endif diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp new file mode 100644 index 0000000..7bf57f0 --- /dev/null +++ b/src/dolphinview.cpp @@ -0,0 +1,1065 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * Copyright (C) 2006 by Gregor KaliĆĄnik * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphinview.h" + +#include +#include +#include +#include +#include +#include + +#include "urlnavigator.h" +#include "dolphinstatusbar.h" +#include "dolphin.h" +#include "dolphindirlister.h" +#include "viewproperties.h" +#include "dolphindetailsview.h" +#include "dolphiniconsview.h" +#include "dolphincontextmenu.h" +#include "undomanager.h" +#include "renamedialog.h" +#include "progressindicator.h" + +#include "filterbar.h" + +DolphinView::DolphinView(QWidget *parent, + const KURL& url, + Mode mode, + bool showHiddenFiles) : + QWidget(parent), + m_refreshing(false), + m_showProgress(false), + m_mode(mode), + m_iconsView(0), + m_detailsView(0), + m_statusBar(0), + m_iconSize(0), + m_folderCount(0), + m_fileCount(0), + m_filterBar(0) +{ + setFocusPolicy(QWidget::StrongFocus); + m_topLayout = new QVBoxLayout(this); + + Dolphin& dolphin = Dolphin::mainWin(); + + connect(this, SIGNAL(signalModeChanged()), + &dolphin, SLOT(slotViewModeChanged())); + connect(this, SIGNAL(signalShowHiddenFilesChanged()), + &dolphin, SLOT(slotShowHiddenFilesChanged())); + connect(this, SIGNAL(signalSortingChanged(DolphinView::Sorting)), + &dolphin, SLOT(slotSortingChanged(DolphinView::Sorting))); + connect(this, SIGNAL(signalSortOrderChanged(Qt::SortOrder)), + &dolphin, SLOT(slotSortOrderChanged(Qt::SortOrder))); + + m_urlNavigator = new URLNavigator(url, this); + connect(m_urlNavigator, SIGNAL(urlChanged(const KURL&)), + this, SLOT(slotURLChanged(const KURL&))); + connect(m_urlNavigator, SIGNAL(urlChanged(const KURL&)), + &dolphin, SLOT(slotURLChanged(const KURL&))); + connect(m_urlNavigator, SIGNAL(historyChanged()), + &dolphin, SLOT(slotHistoryChanged())); + + m_statusBar = new DolphinStatusBar(this); + + m_dirLister = new DolphinDirLister(); + m_dirLister->setAutoUpdate(true); + m_dirLister->setMainWindow(this); + m_dirLister->setShowingDotFiles(showHiddenFiles); + connect(m_dirLister, SIGNAL(clear()), + this, SLOT(slotClear())); + connect(m_dirLister, SIGNAL(percent(int)), + this, SLOT(slotPercent(int))); + connect(m_dirLister, SIGNAL(deleteItem(KFileItem*)), + this, SLOT(slotDeleteItem(KFileItem*))); + connect(m_dirLister, SIGNAL(completed()), + this, SLOT(slotCompleted())); + connect(m_dirLister, SIGNAL(infoMessage(const QString&)), + this, SLOT(slotInfoMessage(const QString&))); + connect(m_dirLister, SIGNAL(errorMessage(const QString&)), + this, SLOT(slotErrorMessage(const QString&))); + connect(m_dirLister, SIGNAL(refreshItems (const KFileItemList&)), + this, SLOT(slotRefreshItems(const KFileItemList&))); + connect(m_dirLister, SIGNAL(newItems(const KFileItemList&)), + this, SLOT(slotAddItems(const KFileItemList&))); + + m_iconSize = KIcon::SizeMedium; + + m_topLayout->addWidget(m_urlNavigator); + createView(); + + m_filterBar = new FilterBar(this); + m_filterBar->hide(); + m_topLayout->addWidget(m_filterBar); + connect(m_filterBar, SIGNAL(signalFilterChanged(const QString&)), + this, SLOT(slotChangeNameFilter(const QString&))); + + m_topLayout->addWidget(m_statusBar); +} + +DolphinView::~DolphinView() +{ + delete m_dirLister; + m_dirLister = 0; +} + +void DolphinView::setURL(const KURL& url) +{ + m_urlNavigator->setURL(url); +} + +const KURL& DolphinView::url() const +{ + return m_urlNavigator->url(); +} + +void DolphinView::requestActivation() +{ + Dolphin::mainWin().setActiveView(this); +} + +bool DolphinView::isActive() const +{ + return (Dolphin::mainWin().activeView() == this); +} + +void DolphinView::setMode(Mode mode) +{ + if (mode == m_mode) { + return; // the wished mode is already set + } + + QWidget* view = (m_iconsView != 0) ? static_cast(m_iconsView) : + static_cast(m_detailsView); + if (view != 0) { + m_topLayout->remove(view); + view->close(); + view->deleteLater(); + m_iconsView = 0; + m_detailsView = 0; + } + + m_mode = mode; + + createView(); + + ViewProperties props(m_urlNavigator->url()); + props.setViewMode(m_mode); + + emit signalModeChanged(); +} + +DolphinView::Mode DolphinView::mode() const +{ + return m_mode; +} + +void DolphinView::setShowHiddenFilesEnabled(bool show) +{ + if (m_dirLister->showingDotFiles() == show) { + return; + } + + ViewProperties props(m_urlNavigator->url()); + props.setShowHiddenFilesEnabled(show); + props.save(); + + m_dirLister->setShowingDotFiles(show); + + emit signalShowHiddenFilesChanged(); + + reload(); +} + +bool DolphinView::isShowHiddenFilesEnabled() const +{ + return m_dirLister->showingDotFiles(); +} + +void DolphinView::setViewProperties(const ViewProperties& props) +{ + setMode(props.viewMode()); + setSorting(props.sorting()); + setSortOrder(props.sortOrder()); + setShowHiddenFilesEnabled(props.isShowHiddenFilesEnabled()); +} + +void DolphinView::renameSelectedItems() +{ + const KURL::List urls = selectedURLs(); + if (urls.count() > 1) { + // More than one item has been selected for renaming. Open + // a rename dialog and rename all items afterwards. + RenameDialog dialog(urls); + if (dialog.exec() == QDialog::Rejected) { + return; + } + + DolphinView* view = Dolphin::mainWin().activeView(); + const QString& newName = dialog.newName(); + if (newName.isEmpty()) { + view->statusBar()->setMessage(i18n("The new item name is invalid."), + DolphinStatusBar::Error); + } + else { + UndoManager& undoMan = UndoManager::instance(); + undoMan.beginMacro(); + + assert(newName.contains('#')); + + const int urlsCount = urls.count(); + ProgressIndicator* progressIndicator = + new ProgressIndicator(i18n("Renaming items..."), + i18n("Renaming finished."), + urlsCount); + + // iterate through all selected items and rename them... + const int replaceIndex = newName.find('#'); + assert(replaceIndex >= 0); + for (int i = 0; i < urlsCount; ++i) { + const KURL& source = urls[i]; + QString name(newName); + name.replace(replaceIndex, 1, renameIndexPresentation(i + 1, urlsCount)); + + if (source.fileName() != name) { + KURL dest(source.upURL()); + dest.addPath(name); + + const bool destExists = KIO::NetAccess::exists(dest, false, view); + if (destExists) { + delete progressIndicator; + progressIndicator = 0; + view->statusBar()->setMessage(i18n("Renaming failed (item '%1' already exists).").arg(name), + DolphinStatusBar::Error); + break; + } + else if (KIO::NetAccess::file_move(source, dest)) { + // TODO: From the users point of view he executed one 'rename n files' operation, + // but internally we store it as n 'rename 1 file' operations for the undo mechanism. + DolphinCommand command(DolphinCommand::Rename, source, dest); + undoMan.addCommand(command); + } + } + + progressIndicator->execOperation(); + } + delete progressIndicator; + progressIndicator = 0; + + undoMan.endMacro(); + } + } + else { + // Only one item has been selected for renaming. Use the custom + // renaming mechanism from the views. + assert(urls.count() == 1); + if (m_mode == DetailsView) { + QListViewItem* item = m_detailsView->firstChild(); + while (item != 0) { + if (item->isSelected()) { + m_detailsView->rename(item, DolphinDetailsView::NameColumn); + break; + } + item = item->nextSibling(); + } + } + else { + KFileIconViewItem* item = static_cast(m_iconsView->firstItem()); + while (item != 0) { + if (item->isSelected()) { + item->rename(); + break; + } + item = static_cast(item->nextItem()); + } + } + } +} + +void DolphinView::selectAll() +{ + fileView()->selectAll(); +} + +void DolphinView::invertSelection() +{ + fileView()->invertSelection(); +} + +DolphinStatusBar* DolphinView::statusBar() const +{ + return m_statusBar; +} + +int DolphinView::contentsX() const +{ + return scrollView()->contentsX(); +} + +int DolphinView::contentsY() const +{ + return scrollView()->contentsY(); +} + +void DolphinView::refreshSettings() +{ + if (m_iconsView != 0) { + m_iconsView->refreshSettings(); + } + + if (m_detailsView != 0) { + // TODO: There is no usable interface in QListView/KFileDetailView + // to hide/show columns. The easiest approach is to delete + // the current instance and recreate a new one, which automatically + // refreshs the settings. If a proper interface is available in Qt4 + // m_detailsView->refreshSettings() would be enough. + m_topLayout->remove(m_detailsView); + m_detailsView->close(); + m_detailsView->deleteLater(); + m_detailsView = 0; + + createView(); + } +} + +void DolphinView::updateStatusBar() +{ + // As the item count information is less important + // in comparison with other messages, it should only + // be shown if: + // - the status bar is empty or + // - shows already the item count information or + // - shows only a not very important information + // - if any progress is given don't show the item count info at all + const QString msg(m_statusBar->message()); + const bool updateStatusBarMsg = (msg.isEmpty() || + (msg == m_statusBar->defaultText()) || + (m_statusBar->type() == DolphinStatusBar::Information)) && + (m_statusBar->progress() == 100); + + const QString text(hasSelection() ? selectionStatusBarText() : defaultStatusBarText()); + m_statusBar->setDefaultText(text); + + if (updateStatusBarMsg) { + m_statusBar->setMessage(text, DolphinStatusBar::Default); + } +} + +void DolphinView::requestItemInfo(const KURL& url) +{ + emit signalRequestItemInfo(url); +} + +bool DolphinView::isURLEditable() const +{ + return m_urlNavigator->isURLEditable(); +} + +void DolphinView::zoomIn() +{ + itemEffectsManager()->zoomIn(); +} + +void DolphinView::zoomOut() +{ + itemEffectsManager()->zoomOut(); +} + +bool DolphinView::isZoomInPossible() const +{ + return itemEffectsManager()->isZoomInPossible(); +} + +bool DolphinView::isZoomOutPossible() const +{ + return itemEffectsManager()->isZoomOutPossible(); +} + +void DolphinView::setSorting(Sorting sorting) +{ + if (sorting != this->sorting()) { + KFileView* view = fileView(); + int spec = view->sorting() & ~QDir::Name & ~QDir::Size & ~QDir::Time & ~QDir::Unsorted; + + switch (sorting) { + case SortByName: spec = spec | QDir::Name; break; + case SortBySize: spec = spec | QDir::Size; break; + case SortByDate: spec = spec | QDir::Time; break; + default: break; + } + + ViewProperties props(url()); + props.setSorting(sorting); + + view->setSorting(static_cast(spec)); + + emit signalSortingChanged(sorting); + } +} + +DolphinView::Sorting DolphinView::sorting() const +{ + const QDir::SortSpec spec = fileView()->sorting(); + + if (spec & QDir::Time) { + return SortByDate; + } + + if (spec & QDir::Size) { + return SortBySize; + } + + return SortByName; +} + +void DolphinView::setSortOrder(Qt::SortOrder order) +{ + if (sortOrder() != order) { + KFileView* view = fileView(); + int sorting = view->sorting(); + sorting = (order == Qt::Ascending) ? (sorting & ~QDir::Reversed) : + (sorting | QDir::Reversed); + + ViewProperties props(url()); + props.setSortOrder(order); + + view->setSorting(static_cast(sorting)); + + emit signalSortOrderChanged(order); + } +} + +Qt::SortOrder DolphinView::sortOrder() const +{ + return fileView()->isReversed() ? Qt::Descending : Qt::Ascending; +} + +void DolphinView::goBack() +{ + m_urlNavigator->goBack(); +} + +void DolphinView::goForward() +{ + m_urlNavigator->goForward(); +} + +void DolphinView::goUp() +{ + m_urlNavigator->goUp(); +} + +void DolphinView::goHome() +{ + m_urlNavigator->goHome(); +} + +void DolphinView::setURLEditable(bool editable) +{ + m_urlNavigator->setURLEditable(editable); +} + +void DolphinView::editURL() +{ + m_urlNavigator->editURL(); +} + +const QValueList DolphinView::urlHistory(int& index) const +{ + return m_urlNavigator->history(index); +} + +bool DolphinView::hasSelection() const +{ + const KFileItemList* list = selectedItems(); + return (list != 0) && !list->isEmpty(); +} + +const KFileItemList* DolphinView::selectedItems() const +{ + return fileView()->selectedItems(); +} + +KURL::List DolphinView::selectedURLs() const +{ + KURL::List urls; + + const KFileItemList* list = fileView()->selectedItems(); + if (list != 0) { + KFileItemListIterator it(*list); + KFileItem* item = 0; + while ((item = it.current()) != 0) { + urls.append(item->url()); + ++it; + } + } + + return urls; +} + +const KFileItem* DolphinView::currentFileItem() const +{ + return fileView()->currentFileItem(); +} + +void DolphinView::openContextMenu(KFileItem* fileInfo, const QPoint& pos) +{ + DolphinContextMenu contextMenu(this, fileInfo, pos); + contextMenu.open(); +} + +void DolphinView::rename(const KURL& source, const QString& newName) +{ + bool ok = false; + + if (newName.isEmpty() || (source.fileName() == newName)) { + return; + } + + KURL dest(source.upURL()); + dest.addPath(newName); + + const bool destExists = KIO::NetAccess::exists(dest, + false, + Dolphin::mainWin().activeView()); + if (destExists) { + // the destination already exists, hence ask the user + // how to proceed... + KIO::RenameDlg renameDialog(this, + i18n("File Already Exists"), + source.path(), + dest.path(), + KIO::M_OVERWRITE); + switch (renameDialog.exec()) { + case KIO::R_OVERWRITE: + // the destination should be overwritten + ok = KIO::NetAccess::file_move(source, dest, -1, true); + break; + + case KIO::R_RENAME: { + // a new name for the destination has been used + KURL newDest(renameDialog.newDestURL()); + ok = KIO::NetAccess::file_move(source, newDest); + break; + } + + default: + // the renaming operation has been canceled + reload(); + return; + } + } + else { + // no destination exists, hence just move the file to + // do the renaming + ok = KIO::NetAccess::file_move(source, dest); + } + + if (ok) { + m_statusBar->setMessage(i18n("Renamed file '%1' to '%2'.").arg(source.fileName(), dest.fileName()), + DolphinStatusBar::OperationCompleted); + + DolphinCommand command(DolphinCommand::Rename, source, dest); + UndoManager::instance().addCommand(command); + } + else { + m_statusBar->setMessage(i18n("Renaming of file '%1' to '%2' failed.").arg(source.fileName(), dest.fileName()), + DolphinStatusBar::Error); + reload(); + } +} + +void DolphinView::reload() +{ + startDirLister(m_urlNavigator->url(), true); +} + +void DolphinView::slotURLListDropped(QDropEvent* /* event */, + const KURL::List& urls, + const KURL& url) +{ + KURL destination(url); + if (destination.isEmpty()) { + destination = m_urlNavigator->url(); + } + else { + // Check whether the destination URL is a directory. If this is not the + // case, use the navigator URL as destination (otherwise the destination, + // which represents a file, would be replaced by a copy- or move-operation). + KFileItem fileItem(KFileItem::Unknown, KFileItem::Unknown, destination); + if (!fileItem.isDir()) { + destination = m_urlNavigator->url(); + } + } + + Dolphin::mainWin().dropURLs(urls, destination); +} + +void DolphinView::mouseReleaseEvent(QMouseEvent* event) +{ + QWidget::mouseReleaseEvent(event); + Dolphin::mainWin().setActiveView(this); +} + +void DolphinView::slotURLChanged(const KURL& url) +{ + const ViewProperties props(url); + setMode(props.viewMode()); + + const bool showHiddenFiles = props.isShowHiddenFilesEnabled(); + setShowHiddenFilesEnabled(showHiddenFiles); + m_dirLister->setShowingDotFiles(showHiddenFiles); + + setSorting(props.sorting()); + setSortOrder(props.sortOrder()); + + startDirLister(url); + + // The selectionChanged signal is not emitted when a new view object is + // created. The application does not care whether a view is represented by a + // different instance, hence inform the application that the selection might have + // changed so that it can update it's actions. + Dolphin::mainWin().slotSelectionChanged(); + + emit signalURLChanged(url); +} + +void DolphinView::triggerIconsViewItem(QIconViewItem* item) +{ + const ButtonState keyboardState = KApplication::keyboardMouseState(); + const bool isSelectionActive = ((keyboardState & ShiftButton) > 0) || + ((keyboardState & ControlButton) > 0); + if ((item != 0) && !isSelectionActive) { + // Updating the URL must be done outside the scope of this slot, + // as iconview items will get deleted. + QTimer::singleShot(0, this, SLOT(updateURL())); + Dolphin::mainWin().setActiveView(this); + } +} + +void DolphinView::triggerDetailsViewItem(QListViewItem* item, + const QPoint& pos, + int /* column */) +{ + if (item == 0) { + return; + } + + if (m_detailsView->isOnFilename(item, pos)) { + // Updating the URL must be done outside the scope of this slot, + // as listview items will get deleted. + QTimer::singleShot(0, this, SLOT(updateURL())); + Dolphin::mainWin().setActiveView(this); + } + else { + m_detailsView->clearSelection(); + } +} + +void DolphinView::triggerDetailsViewItem(QListViewItem* item) +{ + const QPoint pos(0, item->itemPos()); + triggerDetailsViewItem(item, pos, 0); +} + +void DolphinView::updateURL() +{ + KFileView* fileView = (m_iconsView != 0) ? static_cast(m_iconsView) : + static_cast(m_detailsView); + + KFileItem* fileItem = fileView->currentFileItem(); + if (fileItem == 0) { + return; + } + + if (fileItem->isDir()) { + // Prefer the local path over the URL. This assures that the + // volume space information is correct. Assuming that the URL is media:/sda1, + // and the local path is /windows/C: For the URL the space info is related + // to the root partition (and hence wrong) and for the local path the space + // info is related to the windows partition (-> correct). + const QString localPath(fileItem->localPath()); + if (localPath.isEmpty()) { + setURL(fileItem->url()); + } + else { + setURL(KURL(localPath)); + } + } + else if (fileItem->isFile()) { + // allow to browse through ZIP and tar files + KMimeType::Ptr mime = fileItem->mimeTypePtr(); + if (mime->is("application/x-zip")) { + KURL url = fileItem->url(); + url.setProtocol("zip"); + setURL(url); + } + else if (mime->is("application/x-tar") || + mime->is("application/x-tarz") || + mime->is("application/x-tbz") || + mime->is("application/x-tgz") || + mime->is("application/x-tzo")) { + KURL url = fileItem->url(); + url.setProtocol("tar"); + setURL(url); + } + else { + fileItem->run(); + } + } + else { + fileItem->run(); + } +} + +void DolphinView::slotPercent(int percent) +{ + if (m_showProgress) { + m_statusBar->setProgress(percent); + } +} + +void DolphinView::slotClear() +{ + fileView()->clearView(); + updateStatusBar(); +} + +void DolphinView::slotDeleteItem(KFileItem* item) +{ + fileView()->removeItem(item); + updateStatusBar(); +} + +void DolphinView::slotCompleted() +{ + m_refreshing = true; + + KFileView* view = fileView(); + view->clearView(); + + // TODO: in Qt4 the code should get a lot + // simpler and nicer due to Interview... + if (m_iconsView != 0) { + m_iconsView->beginItemUpdates(); + } + if (m_detailsView != 0) { + m_detailsView->beginItemUpdates(); + } + + if (m_showProgress) { + m_statusBar->setProgressText(QString::null); + m_statusBar->setProgress(100); + m_showProgress = false; + } + + KFileItemList items(m_dirLister->items()); + KFileItemListIterator it(items); + + m_fileCount = 0; + m_folderCount = 0; + + KFileItem* item = 0; + while ((item = it.current()) != 0) { + view->insertItem(item); + if (item->isDir()) { + ++m_folderCount; + } + else { + ++m_fileCount; + } + ++it; + } + + updateStatusBar(); + + if (m_iconsView != 0) { + // Prevent a flickering of the icon view widget by giving a small + // timeslot to swallow asynchronous update events. + m_iconsView->setUpdatesEnabled(false); + QTimer::singleShot(10, this, SLOT(slotDelayedUpdate())); + } + + if (m_detailsView != 0) { + m_detailsView->endItemUpdates(); + m_refreshing = false; + } +} + +void DolphinView::slotDelayedUpdate() +{ + if (m_iconsView != 0) { + m_iconsView->setUpdatesEnabled(true); + m_iconsView->endItemUpdates(); + } + m_refreshing = false; +} + +void DolphinView::slotInfoMessage(const QString& msg) +{ + m_statusBar->setMessage(msg, DolphinStatusBar::Information); +} + +void DolphinView::slotErrorMessage(const QString& msg) +{ + m_statusBar->setMessage(msg, DolphinStatusBar::Error); +} + +void DolphinView::slotRefreshItems(const KFileItemList& /* list */) +{ + QTimer::singleShot(0, this, SLOT(reload())); +} + +void DolphinView::slotAddItems(const KFileItemList& list) +{ + fileView()->addItemList(list); + fileView()->updateView(); +} + +void DolphinView::slotGrabActivation() +{ + Dolphin::mainWin().setActiveView(this); +} + +void DolphinView::slotContentsMoving(int x, int y) +{ + if (!m_refreshing) { + // Only emit a 'contents moved' signal if the user + // moved the content by adjusting the sliders. Adjustments + // resulted by refreshing a directory should not be respected. + emit contentsMoved(x, y); + } +} + +void DolphinView::createView() +{ + assert(m_iconsView == 0); + assert(m_detailsView == 0); + + switch (m_mode) { + case IconsView: + case PreviewsView: { + const DolphinIconsView::LayoutMode layoutMode = (m_mode == IconsView) ? + DolphinIconsView::Icons : + DolphinIconsView::Previews; + m_iconsView = new DolphinIconsView(this, layoutMode); + m_topLayout->insertWidget(1, m_iconsView); + setFocusProxy(m_iconsView); + + connect(m_iconsView, SIGNAL(executed(QIconViewItem*)), + this, SLOT(triggerIconsViewItem(QIconViewItem*))); + connect(m_iconsView, SIGNAL(returnPressed(QIconViewItem*)), + this, SLOT(triggerIconsViewItem(QIconViewItem*))); + connect(m_iconsView, SIGNAL(signalRequestActivation()), + this, SLOT(slotGrabActivation())); + + m_iconsView->endItemUpdates(); + m_iconsView->show(); + m_iconsView->setFocus(); + break; + } + + case DetailsView: { + m_detailsView = new DolphinDetailsView(this); + m_topLayout->insertWidget(1, m_detailsView); + setFocusProxy(m_detailsView); + + connect(m_detailsView, SIGNAL(executed(QListViewItem*, const QPoint&, int)), + this, SLOT(triggerDetailsViewItem(QListViewItem*, const QPoint&, int))); + connect(m_detailsView, SIGNAL(returnPressed(QListViewItem*)), + this, SLOT(triggerDetailsViewItem(QListViewItem*))); + connect(m_detailsView, SIGNAL(signalRequestActivation()), + this, SLOT(slotGrabActivation())); + m_detailsView->show(); + m_detailsView->setFocus(); + break; + } + + default: + break; + } + + connect(scrollView(), SIGNAL(contentsMoving(int, int)), + this, SLOT(slotContentsMoving(int, int))); + + startDirLister(m_urlNavigator->url()); +} + +KFileView* DolphinView::fileView() const +{ + return (m_mode == DetailsView) ? static_cast(m_detailsView) : + static_cast(m_iconsView); +} + +QScrollView* DolphinView::scrollView() const +{ + return (m_mode == DetailsView) ? static_cast(m_detailsView) : + static_cast(m_iconsView); +} + +ItemEffectsManager* DolphinView::itemEffectsManager() const +{ + return (m_mode == DetailsView) ? static_cast(m_detailsView) : + static_cast(m_iconsView); +} + +void DolphinView::startDirLister(const KURL& url, bool reload) +{ + if (!url.isValid()) { + const QString location(url.prettyURL()); + if (location.isEmpty()) { + m_statusBar->setMessage(i18n("The location is empty."), DolphinStatusBar::Error); + } + else { + m_statusBar->setMessage(i18n("The location '%1' is invalid.").arg(location), + DolphinStatusBar::Error); + } + return; + } + + // Only show the directory loading progress if the status bar does + // not contain another progress information. This means that + // the directory loading progress information has the lowest priority. + const QString progressText(m_statusBar->progressText()); + m_showProgress = progressText.isEmpty() || + (progressText == i18n("Loading directory...")); + if (m_showProgress) { + m_statusBar->setProgressText(i18n("Loading directory...")); + m_statusBar->setProgress(0); + } + + m_refreshing = true; + m_dirLister->stop(); + m_dirLister->openURL(url, false, reload); +} + +QString DolphinView::defaultStatusBarText() const +{ + const int itemCount = m_folderCount + m_fileCount; + + QString text = i18n( "1 Item", "%n Items", itemCount ); + text += i18n(" (1 Folder, ", " (%n Folders, ", m_folderCount ); + text += i18n("1 File)", "%n Files)", m_fileCount); + + return text; +} + +QString DolphinView::selectionStatusBarText() const +{ + QString text; + const KFileItemList* list = selectedItems(); + assert((list != 0) && !list->isEmpty()); + + int fileCount = 0; + int folderCount = 0; + KIO::filesize_t byteSize = 0; + for (KFileItemListIterator it(*list); it.current() != 0; ++it) { + KFileItem* item = it.current(); + if (item->isDir()) { + ++folderCount; + } + else { + ++fileCount; + byteSize += item->size(); + } + } + + if (folderCount>0) { + text = i18n("1 Folder selected","%n Folders selected", folderCount); + } + + if ((fileCount > 0) && (folderCount > 0)) { + text += ", "; + } + + if (fileCount > 0) { + const QString sizeText(KIO::convertSize(byteSize)); + text += i18n("1 File selected (%1)", "%n Files selected (%1)", fileCount).arg(sizeText); + } + + return text; +} + +QString DolphinView::renameIndexPresentation(int index, int itemCount) const +{ + // assure that the string reprentation for all indicess have the same + // number of characters based on the given number of items + QString str(QString::number(index)); + int chrCount = 1; + while (itemCount >= 10) { + ++chrCount; + itemCount /= 10; + } + str.reserve(chrCount); + + const int insertCount = chrCount - str.length(); + for (int i = 0; i < insertCount; ++i) { + str.insert(0, '0'); + } + return str; +} + +void DolphinView::slotShowFilterBar(bool show) +{ + assert(m_filterBar != 0); + if (show) { + m_filterBar->show(); + } + else { + m_filterBar->hide(); + } +} + +void DolphinView::slotChangeNameFilter(const QString& nameFilter) +{ + // The name filter of KDirLister does a 'hard' filtering, which + // means that only the items are shown where the names match + // exactly the filter. This is non-transparent for the user, which + // just wants to have a 'soft' filtering: does the name contain + // the filter string? + QString adjustedFilter(nameFilter); + adjustedFilter.insert(0, '*'); + adjustedFilter.append('*'); + + m_dirLister->setNameFilter(adjustedFilter); + m_dirLister->emitChanges(); + + // TODO: this is a workaround for QIconView: the item position + // stay as they are by filtering, only an inserting of an item + // results to an automatic adjusting of the item position. In Qt4/KDE4 + // this workaround should get obsolete due to Interview. + KFileView* view = fileView(); + if (view == m_iconsView) { + KFileItem* first = view->firstFileItem(); + if (first != 0) { + view->removeItem(first); + view->insertItem(first); + } + } +} + +bool DolphinView::isFilterBarVisible() const +{ + return m_filterBar->isVisible(); +} + +#include "dolphinview.moc" diff --git a/src/dolphinview.h b/src/dolphinview.h new file mode 100644 index 0000000..d0ad891 --- /dev/null +++ b/src/dolphinview.h @@ -0,0 +1,452 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * Copyright (C) 2006 by Gregor KaliĆĄnik * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + + +#ifndef _DOLPHINVIEW_H_ +#define _DOLPHINVIEW_H_ + +#include +#include +#include +#include +#include +#include + +class QPainter; +class KURL; +class QLineEdit; +class URLNavigator; +class QTimer; +class QIconViewItem; +class QListViewItem; +class QVBoxLayout; +class KFileView; +class Dolphin; +class DolphinDirLister; +class DolphinStatusBar; +class DolphinIconsView; +class DolphinDetailsView; +class ViewProperties; +class QScrollView; +class KProgress; +class ItemEffectsManager; +class FilterBar; +/** + * @short Represents a view for the directory content + * including the navigation bar and status bar. + * + * View modes for icons, details and previews are supported. Currently + * Dolphin allows to have up to two views inside the main window. + * + * @see DolphinIconsView + * @see DolphinDetailsView + * @see URLNavigator + * @see DolphinStatusBar + * + * @author Peter Penz + */ +class DolphinView : public QWidget +{ + Q_OBJECT + +public: + /** + * Defines the view mode for a directory. The view mode + * can be defined when constructing a DolphinView. The + * view mode is automatically updated if the directory itself + * defines a view mode (see class ViewProperties for details). + */ + enum Mode + { + /** + * The directory items are shown as icons including an + * icon name. */ + IconsView = 0, + + /** + * The icon, the name and at least the size of the directory + * items are shown in a table. It is possible to add columns + * for date, group and permissions. + */ + DetailsView = 1, + + /** + * The directory items are shown as preview if possible. As + * fallback the items are shown as icons. + */ + PreviewsView = 2 + }; + + /** Defines the sort order for the items of a directory. */ + enum Sorting + { + SortByName = 0, + SortBySize = 1, + SortByDate = 2 + }; + + DolphinView(QWidget* parent, + const KURL& url, + Mode mode = IconsView, + bool showHiddenFiles = false); + + virtual ~DolphinView(); + + /** + * Sets the current active URL. + * The signals URLNavigator::urlChanged and URLNavigator::historyChanged + * are submitted. + */ + void setURL(const KURL& url); + + /** Returns the current active URL. */ + const KURL& url() const; + + void requestActivation(); + bool isActive() const; + + void setMode(Mode mode); + Mode mode() const; + void setShowHiddenFilesEnabled(bool show); + bool isShowHiddenFilesEnabled() const; + + void setViewProperties(const ViewProperties& props); + + /** + * Triggers the renaming of the currently selected items, where + * the user must input a new name for the items. + */ + void renameSelectedItems(); + + /** + * Selects all items. + * @see DolphinView::selectedItems() + */ + void selectAll(); + + /** + * Inverts the current selection: selected items get unselected, + * unselected items get selected. + * @see DolphinView::selectedItems() + */ + void invertSelection(); + + /** + * Goes back one step in the URL history. The signals + * URLNavigator::urlChanged and URLNavigator::historyChanged + * are submitted. + */ + void goBack(); + + /** + * Goes forward one step in the URL history. The signals + * URLNavigator::urlChanged and URLNavigator::historyChanged + * are submitted. + */ + void goForward(); + + /** + * Goes up one step of the URL path. The signals + * URLNavigator::urlChanged and URLNavigator::historyChanged + * are submitted. + */ + void goUp(); + + /** + * Goes to the home URL. The signals URLNavigator::urlChanged + * and URLNavigator::historyChanged are submitted. + */ + void goHome(); + + /** + * Sets the URL of the navigation bar to an editable state + * if \a editable is true. If \a editable is false, each part of + * the location is presented by a button for a fast navigation. + */ + void setURLEditable(bool editable); + + /** + * Allows to edit the URL of the navigation bar and assures that + * the focus is assigned to the URL editor. + */ + void editURL(); + + /** + * Returns the complete URL history. The index 0 indicates the oldest + * history element. + * @param index Output parameter which indicates the current + * index of the location. + */ + const QValueList urlHistory(int& index) const; + + /** + * Returns true, if at least one item is selected. + */ + bool hasSelection() const; + + /** + * Returns the selected items. 0 is returned, if no item + * is selected. + * @see DolphinView::selectedURLs() + */ + const KFileItemList* selectedItems() const; + + /** + * Returns a list of URLs for all selected items. An empty list + * is returned, if no item is selected. + * @see DolphinView::selectedItems() + */ + KURL::List selectedURLs() const; + + /** + * Returns the current item, where the cursor is. 0 is returned, if there is no + * current item (e. g. if the view is empty). Note that the current item must + * not be a selected item. + * @see DolphinView::selectedItems() + */ + const KFileItem* currentFileItem() const; + + /** + * Opens the context menu for the item indicated by \a fileInfo + * on the position \a pos. If 0 is passed for the file info, a context + * menu for the viewport is opened. + */ + void openContextMenu(KFileItem* fileInfo, const QPoint& pos); + + /** + * Renames the filename of the source URL by the new file name. + * If the new file name already exists, a dialog is opened which + * asks the user to enter a new name. + */ + void rename(const KURL& source, const QString& newName); + + /** Returns the status bar of the view. */ + DolphinStatusBar* statusBar() const; + + /** + * Returns the x-position of the view content. + * The content of the view might be larger than the visible area + * and hence a scrolling must be done. + */ + int contentsX() const; + + /** + * Returns the y-position of the view content. + * The content of the view might be larger than the visible area + * and hence a scrolling must be done. + */ + int contentsY() const; + + /** + * Returns true, if the URL shown by the navigation bar is editable. + * @see URLNavigator + */ + bool isURLEditable() const; + + /** Increases the size of the current set view mode. */ + void zoomIn(); + + /** Decreases the size of the current set view mode. */ + void zoomOut(); + + /** + * Returns true, if zooming in is possible. If false is returned, + * the minimal zoom size is possible. + */ + bool isZoomInPossible() const; + + /** + * Returns true, if zooming out is possible. If false is returned, + * the maximum zoom size is possible. + */ + bool isZoomOutPossible() const; + + /** Sets the sort order of the items inside a directory (see DolphinView::Sorting). */ + void setSorting(Sorting sorting); + + /** Returns the sort order of the items inside a directory (see DolphinView::Sorting). */ + Sorting sorting() const; + + /** Sets the sort order (Qt::Ascending or Qt::Descending) for the items. */ + void setSortOrder(Qt::SortOrder order); + + /** Returns the current used sort order (Qt::Ascending or Qt::Descending). */ + Qt::SortOrder sortOrder() const; + + /** Refreshs the view settings by reading out the stored settings. */ + void refreshSettings(); + + /** + * Updates the number of items (= number of files + number of + * directories) in the statusbar. If files are selected, the number + * of selected files and the sum of the filesize is shown. + */ + void updateStatusBar(); + + /** Returns the URLNavigator of the view for read access. */ + const URLNavigator* urlNavigator() const { return m_urlNavigator; } + + /** + * Triggers to request user information for the item given + * by the URL \a url. The signal signalRequestItemInfo is emitted, + * which provides a way for widgets to get an indication to update + * the item information. + */ + void requestItemInfo(const KURL& url); + + /** + * Checks if the filter bar is visible. + * + * @return @c true Filter bar is visible. + * @return @c false Filter bar is not visible. + */ + bool isFilterBarVisible() const; + +public slots: + void reload(); + void slotURLListDropped(QDropEvent* event, + const KURL::List& urls, + const KURL& url); + + /** + * Slot that popups the filter bar like FireFox popups his Search bar. + */ + void slotShowFilterBar(bool show); + +signals: + /** Is emitted if URL of the view has been changed to \a url. */ + void signalURLChanged(const KURL& url); + + /** + * Is emitted if the view mode (IconsView, DetailsView, + * PreviewsView) has been changed. + */ + void signalModeChanged(); + + /** Is emitted if the 'show hidden files' property has been changed. */ + void signalShowHiddenFilesChanged(); + + /** Is emitted if the sorting by name, size or date has been changed. */ + void signalSortingChanged(DolphinView::Sorting sorting); + + /** Is emitted if the sort order (ascending or descending) has been changed. */ + void signalSortOrderChanged(Qt::SortOrder order); + + /** + * Is emitted if information of an item is requested to be shown e. g. in the sidebar. + * It the URL is empty, no item information request is pending. + */ + void signalRequestItemInfo(const KURL& url); + + /** Is emitted if the contents has been moved to \a x, \a y. */ + void contentsMoved(int x, int y); + + /** + * Is emitted whenever the selection has been changed. The current selection can + * be retrieved by Dolphin::mainWin().activeView()->selectedItems() or by + * Dolphin::mainWin().activeView()->selectedURLs(). + */ + void signalSelectionChanged(); + +protected: + /** @see QWidget::mouseReleaseEvent */ + virtual void mouseReleaseEvent(QMouseEvent* event); + +private slots: + void slotURLChanged(const KURL& kurl); + void triggerIconsViewItem(QIconViewItem *item); + void triggerDetailsViewItem(QListViewItem* item, + const QPoint& pos, + int column); + void triggerDetailsViewItem(QListViewItem* item); + void updateURL(); + + void slotPercent(int percent); + void slotClear(); + void slotDeleteItem(KFileItem* item); + void slotCompleted(); + void slotDelayedUpdate(); + void slotInfoMessage(const QString& msg); + void slotErrorMessage(const QString& msg); + void slotRefreshItems(const KFileItemList& list); + void slotAddItems(const KFileItemList& list); + + void slotGrabActivation(); + + /** + * Is invoked shortly before the contents of a view implementation + * has been moved and emits the signal contentsMoved. Note that no + * signal is emitted when the contents moving is only temporary by + * e. g. reloading a directory. + */ + void slotContentsMoving(int x, int y); + + /** + * Filters the currently shown items by \a nameFilter. All items + * which contain the given filter string will be shown. + */ + void slotChangeNameFilter(const QString& nameFilter); + +private: + void createView(); + KFileView* fileView() const; + QScrollView* scrollView() const; + ItemEffectsManager* itemEffectsManager() const; + void startDirLister(const KURL& url, bool reload = false); + + /** + * Returns the default text of the status bar, if no item is + * selected. + */ + QString defaultStatusBarText() const; + + /** + * Returns the text for the status bar, if at least one item + * is selected. + */ + QString selectionStatusBarText() const; + + /** + * Returns the string representation for the index \a index + * for renaming \itemCount items. + */ + QString renameIndexPresentation(int index, int itemCount) const; + + bool m_refreshing; + bool m_showProgress; + Mode m_mode; + + QVBoxLayout* m_topLayout; + URLNavigator* m_urlNavigator; + + DolphinIconsView* m_iconsView; + DolphinDetailsView* m_detailsView; + DolphinStatusBar* m_statusBar; + + int m_iconSize; + int m_folderCount; + int m_fileCount; + + DolphinDirLister* m_dirLister; + + FilterBar *m_filterBar; +}; + +#endif // _DOLPHINVIEW_H_ diff --git a/src/editbookmarkdialog.cpp b/src/editbookmarkdialog.cpp new file mode 100644 index 0000000..3d25ce3 --- /dev/null +++ b/src/editbookmarkdialog.cpp @@ -0,0 +1,120 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "editbookmarkdialog.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +EditBookmarkDialog::~EditBookmarkDialog() +{ +} + +KBookmark EditBookmarkDialog::getBookmark(const QString& title, + const QString& name, + const KURL& url, + const QString& icon) +{ + EditBookmarkDialog dialog(title, name, url, icon); + dialog.exec(); + return dialog.m_bookmark; +} + +void EditBookmarkDialog::slotOk() +{ + m_bookmark = KBookmark::standaloneBookmark(m_name->text(), + KURL(m_location->text()), + m_iconName); + + KDialogBase::slotOk(); +} + +EditBookmarkDialog::EditBookmarkDialog(const QString& title, + const QString& name, + const KURL& url, + const QString& icon) : + KDialogBase(Plain, title, Ok|Cancel, Ok), + m_iconButton(0), + m_name(0), + m_location(0) +{ + QVBoxLayout* topLayout = new QVBoxLayout(plainPage(), 0, spacingHint()); + + QGrid* grid = new QGrid(2, Qt::Horizontal, plainPage()); + grid->setSpacing(spacingHint()); + + // create icon widgets + new QLabel(i18n("Icon:"), grid); + m_iconName = icon; + m_iconButton = new QPushButton(SmallIcon(m_iconName), QString::null, grid); + m_iconButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + connect(m_iconButton, SIGNAL(clicked()), + this, SLOT(selectIcon())); + + // create name widgets + new QLabel(i18n("Name:"), grid); + m_name = new QLineEdit(name, grid); + m_name->selectAll(); + m_name->setFocus(); + + // create location widgets + new QLabel(i18n("Location:"), grid); + + QHBox* locationBox = new QHBox(grid); + locationBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + locationBox->setSpacing(spacingHint()); + m_location = new QLineEdit(url.prettyURL(), locationBox); + m_location->setMinimumWidth(320); + + QPushButton* selectLocationButton = new QPushButton(SmallIcon("folder"), QString::null, locationBox); + selectLocationButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + connect(selectLocationButton, SIGNAL(clicked()), + this, SLOT(selectLocation())); + + topLayout->addWidget(grid); +} + +void EditBookmarkDialog::selectIcon() +{ + const QString iconName(KIconDialog::getIcon(KIcon::Small, KIcon::FileSystem)); + if (!iconName.isEmpty()) { + m_iconName = iconName; + m_iconButton->setIconSet(SmallIcon(iconName)); + } +} + +void EditBookmarkDialog::selectLocation() +{ + const QString location(m_location->text()); + KURL url(KFileDialog::getExistingURL(location)); + if (!url.isEmpty()) { + m_location->setText(url.prettyURL()); + } +} + +#include "editbookmarkdialog.moc" diff --git a/src/editbookmarkdialog.h b/src/editbookmarkdialog.h new file mode 100644 index 0000000..2156aae --- /dev/null +++ b/src/editbookmarkdialog.h @@ -0,0 +1,82 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef EDITBOOKMARKDIALOG_H +#define EDITBOOKMARKDIALOG_H + +#include +#include + +class Bookmark; +class QLineEdit; +class QPushButton; + +/** + * @brief Allows to edit the icon, URL and name of a bookmark. + * + * The default usage is like this: + * \code + * KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add Bookmark"), + * i18n("New bookmark"), + * KURL(), + * "bookmark"); + * if (!bookmark.isNull()) { + * // ... + * } + * \endcode + */ +class EditBookmarkDialog : public KDialogBase +{ + Q_OBJECT + +public: + virtual ~EditBookmarkDialog(); + + /** + * Opens a dialog where the current icon, URL and name of + * an URL are editable. The title of the dialog is set to \a title. + * @return A valid bookmark, if the user has pressed OK. Otherwise + * a null bookmark is returned (see Bookmark::isNull()). + */ + static KBookmark getBookmark(const QString& title, + const QString& name, + const KURL& url, + const QString& icon); + +protected slots: + virtual void slotOk(); + +protected: + EditBookmarkDialog(const QString& title, + const QString& name, + const KURL& url, + const QString& icon); + +private slots: + void selectIcon(); + void selectLocation(); + +private: + QString m_iconName; + QPushButton* m_iconButton; + QLineEdit* m_name; + QLineEdit* m_location; + KBookmark m_bookmark; +}; +#endif diff --git a/src/filterbar.cpp b/src/filterbar.cpp new file mode 100644 index 0000000..83cc784 --- /dev/null +++ b/src/filterbar.cpp @@ -0,0 +1,90 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * Copyright (C) 2006 by Gregor KaliĆĄnik * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#include "filterbar.h" + +#include +#include + +#include +#include +#include +#include +#include + +#include "dolphin.h" + +FilterBar::FilterBar(QWidget *parent, const char *name) : + QWidget(parent, name) +{ + const int gap = 3; + + QVBoxLayout* foo = new QVBoxLayout(this); + foo->addSpacing(gap); + + QHBoxLayout* layout = new QHBoxLayout(foo); + layout->addSpacing(gap); + + m_filter = new QLabel(i18n("Filter:"), this); + layout->addWidget(m_filter); + layout->addSpacing(KDialog::spacingHint()); + + m_filterInput = new KLineEdit(this); + layout->addWidget(m_filterInput); + + m_close = new KPushButton(this); + m_close->setIconSet(SmallIcon("fileclose")); + m_close->setFlat(true); + layout->addWidget(m_close); + layout->addSpacing(gap); + + connect(m_filterInput, SIGNAL(textChanged(const QString&)), + this, SIGNAL(signalFilterChanged(const QString&))); + connect(m_close, SIGNAL(clicked()), this, SLOT(hide())); + connect(m_close, SIGNAL(clicked()), + &Dolphin::mainWin(), SLOT(slotShowFilterBarChanged())); +} + +FilterBar::~FilterBar() +{ +} + +void FilterBar::hide() +{ + m_filterInput->clear(); + m_filterInput->clearFocus(); + QWidget::hide(); +} + +void FilterBar::show() +{ + m_filterInput->setFocus(); + QWidget::show(); +} + +void FilterBar::keyReleaseEvent(QKeyEvent* event) +{ + QWidget::keyReleaseEvent(event); + if ((event->key() == Qt::Key_Escape)) { + hide(); + Dolphin::mainWin().slotShowFilterBarChanged(); + } +} + +#include "filterbar.moc" diff --git a/src/filterbar.h b/src/filterbar.h new file mode 100644 index 0000000..7f9c8b8 --- /dev/null +++ b/src/filterbar.h @@ -0,0 +1,65 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * Copyright (C) 2006 by Gregor KaliĆĄnik * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef FILTERBAR_H +#define FILTERBAR_H + +#include + +class QLabel; +class KLineEdit; +class KPushButton; + +/** + * @brief Provides an input field for filtering the currently shown items. + * + * @author Gregor KaliĆĄnik + */ +class FilterBar : public QWidget +{ + Q_OBJECT + +public: + FilterBar(QWidget *parent = 0, const char *name = 0); + virtual ~FilterBar(); + +signals: + /** + * Signal that reports the name filter has been + * changed to \a nameFilter. + */ + void signalFilterChanged(const QString& nameFilter); + +public slots: + /** @see QWidget::hide() */ + virtual void hide(); + + /** @see QWidget::show() */ + virtual void show(); + +protected: + virtual void keyReleaseEvent(QKeyEvent* event); + +private: + QLabel* m_filter; + KLineEdit* m_filterInput; + KPushButton* m_close; +}; + +#endif diff --git a/src/generalsettingspage.cpp b/src/generalsettingspage.cpp new file mode 100644 index 0000000..0a97574 --- /dev/null +++ b/src/generalsettingspage.cpp @@ -0,0 +1,171 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) and * + * and Patrice Tremblay * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "generalsettingspage.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dolphinsettings.h" +#include "dolphin.h" +#include "dolphinview.h" + +GeneralSettingsPage::GeneralSettingsPage(QWidget* parent) : + SettingsPageBase(parent), + m_homeURL(0), + m_startSplit(0), + m_startEditable(0) +{ + QVBoxLayout* topLayout = new QVBoxLayout(parent, 2, KDialog::spacingHint()); + + const int spacing = KDialog::spacingHint(); + const int margin = KDialog::marginHint(); + const QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + + DolphinSettings& settings = DolphinSettings::instance(); + + QVBox* vBox = new QVBox(parent); + vBox->setSizePolicy(sizePolicy); + vBox->setSpacing(spacing); + vBox->setMargin(margin); + vBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Ignored); + + // create 'Home URL' editor + QGroupBox* homeGroup = new QGroupBox(1, Qt::Horizontal, i18n("Home URL"), vBox); + homeGroup->setSizePolicy(sizePolicy); + homeGroup->setMargin(margin); + + QHBox* homeURLBox = new QHBox(homeGroup); + homeURLBox->setSizePolicy(sizePolicy); + homeURLBox->setSpacing(spacing); + + new QLabel(i18n("Location:"), homeURLBox); + m_homeURL = new QLineEdit(settings.homeURL().prettyURL(), homeURLBox); + + QPushButton* selectHomeURLButton = new QPushButton(SmallIcon("folder"), QString::null, homeURLBox); + connect(selectHomeURLButton, SIGNAL(clicked()), + this, SLOT(selectHomeURL())); + + QHBox* buttonBox = new QHBox(homeGroup); + buttonBox->setSizePolicy(sizePolicy); + buttonBox->setSpacing(spacing); + QPushButton* useCurrentButton = new QPushButton(i18n("Use current location"), buttonBox); + connect(useCurrentButton, SIGNAL(clicked()), + this, SLOT(useCurrentLocation())); + QPushButton* useDefaultButton = new QPushButton(i18n("Use default location"), buttonBox); + connect(useDefaultButton, SIGNAL(clicked()), + this, SLOT(useDefaulLocation())); + + // create 'Default View Mode' group + QButtonGroup* buttonGroup = new QButtonGroup(3, Qt::Vertical, i18n("Default View Mode"), vBox); + buttonGroup->setSizePolicy(sizePolicy); + buttonGroup->setMargin(margin); + + m_iconsView = new QRadioButton(i18n("Icons"), buttonGroup); + m_detailsView = new QRadioButton(i18n("Details"), buttonGroup); + m_previewsView = new QRadioButton(i18n("Previews"), buttonGroup); + + switch (settings.defaultViewMode()) { + case DolphinView::IconsView: m_iconsView->setChecked(true); break; + case DolphinView::DetailsView: m_detailsView->setChecked(true); break; + case DolphinView::PreviewsView: m_previewsView->setChecked(true); break; + } + + // create 'Start with split view' checkbox + m_startSplit = new QCheckBox(i18n("Start with split view"), vBox); + m_startSplit->setChecked(settings.isViewSplit()); + + // create 'Start with editable navigation bar' checkbox + m_startEditable = new QCheckBox(i18n("Start with editable navigation bar"), vBox); + m_startEditable->setChecked(settings.isURLEditable()); + + // create 'Save view properties for each folder' checkbox + m_saveView = new QCheckBox(i18n("Save view properties for each folder"), vBox); + m_saveView->setChecked(settings.isSaveView()); + + // Add a dummy widget with no restriction regarding + // a vertical resizing. This assures that the dialog layout + // is not stretched vertically. + new QWidget(vBox); + + topLayout->addWidget(vBox); +} + + +GeneralSettingsPage::~GeneralSettingsPage() +{ +} + +void GeneralSettingsPage::applySettings() +{ + DolphinSettings& settings = DolphinSettings::instance(); + + const KURL url(m_homeURL->text()); + KFileItem fileItem(S_IFDIR, KFileItem::Unknown, url); + if (url.isValid() && fileItem.isDir()) { + settings.setHomeURL(url); + } + + DolphinView::Mode viewMode = DolphinView::IconsView; + if (m_detailsView->isChecked()) { + viewMode = DolphinView::DetailsView; + } + else if (m_previewsView->isChecked()) { + viewMode = DolphinView::PreviewsView; + } + settings.setDefaultViewMode(viewMode); + + settings.setViewSplit(m_startSplit->isChecked()); + settings.setSaveView(m_saveView->isChecked()); + settings.setURLEditable(m_startEditable->isChecked()); +} + +void GeneralSettingsPage::selectHomeURL() +{ + const QString homeURL(m_homeURL->text()); + KURL url(KFileDialog::getExistingURL(homeURL)); + if (!url.isEmpty()) { + m_homeURL->setText(url.prettyURL()); + } +} + +void GeneralSettingsPage::useCurrentLocation() +{ + const DolphinView* view = Dolphin::mainWin().activeView(); + m_homeURL->setText(view->url().prettyURL()); +} + +void GeneralSettingsPage::useDefaulLocation() +{ + m_homeURL->setText("file://" + QDir::homeDirPath()); +} + +#include "generalsettingspage.moc" diff --git a/src/generalsettingspage.h b/src/generalsettingspage.h new file mode 100644 index 0000000..1d68fde --- /dev/null +++ b/src/generalsettingspage.h @@ -0,0 +1,63 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef GENERALSETTINGSPAGE_H +#define GENERALSETTINGSPAGE_H + +#include +class QLineEdit; +class QRadioButton; +class QCheckBox; + +/** + * @brief Page for the 'General' settings of the Dolphin settings dialog. + * + * The general settings allow to set the home URL, the default view mode + * and the split view mode. + * + * @author Peter Penz + */ +class GeneralSettingsPage : public SettingsPageBase +{ + Q_OBJECT + +public: + GeneralSettingsPage(QWidget* parent); + + virtual ~GeneralSettingsPage(); + + /** @see SettingsPageBase::applySettings */ + virtual void applySettings(); + +private slots: + void selectHomeURL(); + void useCurrentLocation(); + void useDefaulLocation(); + +private: + QLineEdit* m_homeURL; + QRadioButton* m_iconsView; + QRadioButton* m_detailsView; + QRadioButton* m_previewsView; + QCheckBox* m_startSplit; + QCheckBox* m_startEditable; + QCheckBox* m_saveView; +}; + +#endif diff --git a/src/hi128-app-d3lphin.png b/src/hi128-app-d3lphin.png new file mode 100644 index 0000000..651128a Binary files /dev/null and b/src/hi128-app-d3lphin.png differ diff --git a/src/hi16-app-d3lphin.png b/src/hi16-app-d3lphin.png new file mode 100644 index 0000000..5788fc7 Binary files /dev/null and b/src/hi16-app-d3lphin.png differ diff --git a/src/hi22-app-d3lphin.png b/src/hi22-app-d3lphin.png new file mode 100644 index 0000000..335c07d Binary files /dev/null and b/src/hi22-app-d3lphin.png differ diff --git a/src/hi32-app-d3lphin.png b/src/hi32-app-d3lphin.png new file mode 100644 index 0000000..5bd4a2d Binary files /dev/null and b/src/hi32-app-d3lphin.png differ diff --git a/src/hi48-app-d3lphin.png b/src/hi48-app-d3lphin.png new file mode 100644 index 0000000..0c9574f Binary files /dev/null and b/src/hi48-app-d3lphin.png differ diff --git a/src/hi64-app-d3lphin.png b/src/hi64-app-d3lphin.png new file mode 100644 index 0000000..613c612 Binary files /dev/null and b/src/hi64-app-d3lphin.png differ diff --git a/src/iconsviewsettingspage.cpp b/src/iconsviewsettingspage.cpp new file mode 100644 index 0000000..f23e185 --- /dev/null +++ b/src/iconsviewsettingspage.cpp @@ -0,0 +1,262 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "iconsviewsettingspage.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dolphiniconsviewsettings.h" +#include "dolphinsettings.h" +#include "pixmapviewer.h" + +#define GRID_SPACING_BASE 8 +#define GRID_SPACING_INC 12 + +IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, + QWidget* parent) : + QVBox(parent), + m_mode(mode), + m_iconSizeSlider(0), + m_previewSizeSlider(0), + m_textWidthBox(0), + m_gridSpacingBox(0), + m_fontFamilyBox(0), + m_fontSizeBox(0), + m_textlinesCountBox(0), + m_arrangementBox(0) +{ + const int spacing = KDialog::spacingHint(); + const int margin = KDialog::marginHint(); + const QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + + setSpacing(spacing); + setMargin(margin); + + DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_mode); + assert(settings != 0); + + QHBox* sizesLayout = new QHBox(this); + sizesLayout->setSpacing(spacing); + sizesLayout->setSizePolicy(sizePolicy); + + // create 'Icon Size' group including slider and preview + QGroupBox* iconSizeGroup = new QGroupBox(2, Qt::Vertical, i18n("Icon Size"), sizesLayout); + iconSizeGroup->setSizePolicy(sizePolicy); + iconSizeGroup->setMargin(margin); + + const QColor iconBackgroundColor(KGlobalSettings::baseColor()); + + QHBox* iconSizeVBox = new QHBox(iconSizeGroup); + iconSizeVBox->setSpacing(spacing); + new QLabel(i18n("Small"), iconSizeVBox); + m_iconSizeSlider = new QSlider(0, 5, 1, 0, Qt::Horizontal, iconSizeVBox); + m_iconSizeSlider->setValue(sliderValue(settings->iconSize())); + m_iconSizeSlider->setTickmarks(QSlider::Below); + connect(m_iconSizeSlider, SIGNAL(valueChanged(int)), + this, SLOT(slotIconSizeChanged(int))); + new QLabel(i18n("Large"), iconSizeVBox); + + m_iconSizeViewer = new PixmapViewer(iconSizeGroup); + m_iconSizeViewer->setMinimumWidth(KIcon::SizeEnormous); + m_iconSizeViewer->setFixedHeight(KIcon::SizeEnormous); + m_iconSizeViewer->setEraseColor(iconBackgroundColor); + slotIconSizeChanged(m_iconSizeSlider->value()); + + if (m_mode == DolphinIconsView::Previews) { + // create 'Preview Size' group including slider and preview + QGroupBox* previewSizeGroup = new QGroupBox(2, Qt::Vertical, i18n("Preview Size"), sizesLayout); + previewSizeGroup->setSizePolicy(sizePolicy); + previewSizeGroup->setMargin(margin); + + QHBox* previewSizeVBox = new QHBox(previewSizeGroup); + previewSizeVBox->setSpacing(spacing); + new QLabel(i18n("Small"), previewSizeVBox); + m_previewSizeSlider = new QSlider(0, 5, 1, 0, Qt::Horizontal, previewSizeVBox); + m_previewSizeSlider->setValue(sliderValue(settings->previewSize())); + m_previewSizeSlider->setTickmarks(QSlider::Below); + connect(m_previewSizeSlider, SIGNAL(valueChanged(int)), + this, SLOT(slotPreviewSizeChanged(int))); + new QLabel(i18n("Large"), previewSizeVBox); + + m_previewSizeViewer = new PixmapViewer(previewSizeGroup); + m_previewSizeViewer->setMinimumWidth(KIcon::SizeEnormous); + m_previewSizeViewer->setFixedHeight(KIcon::SizeEnormous); + m_previewSizeViewer->setEraseColor(iconBackgroundColor); + + slotPreviewSizeChanged(m_previewSizeSlider->value()); + } + + QGroupBox* textGroup = new QGroupBox(2, Qt::Horizontal, i18n("Text"), this); + textGroup->setSizePolicy(sizePolicy); + textGroup->setMargin(margin); + + new QLabel(i18n("Font family:"), textGroup); + m_fontFamilyBox = new KFontCombo(textGroup); + m_fontFamilyBox->setCurrentFont(settings->fontFamily()); + + new QLabel(i18n("Font size:"), textGroup); + m_fontSizeBox = new QSpinBox(6, 99, 1, textGroup); + m_fontSizeBox->setValue(settings->fontSize()); + + new QLabel(i18n("Number of lines:"), textGroup); + m_textlinesCountBox = new QSpinBox(1, 5, 1, textGroup); + m_textlinesCountBox->setValue(settings->textlinesCount()); + + new QLabel(i18n("Text width:"), textGroup); + m_textWidthBox = new QComboBox(textGroup); + m_textWidthBox->insertItem(i18n("Small")); + m_textWidthBox->insertItem(i18n("Medium")); + m_textWidthBox->insertItem(i18n("Large")); + + QGroupBox* gridGroup = new QGroupBox(2, Qt::Horizontal, i18n("Grid"), this); + gridGroup->setSizePolicy(sizePolicy); + gridGroup->setMargin(margin); + + const bool leftToRightArrangement = (settings->arrangement() == QIconView::LeftToRight); + new QLabel(i18n("Arrangement:"), gridGroup); + m_arrangementBox = new QComboBox(gridGroup); + m_arrangementBox->insertItem(i18n("Left to right")); + m_arrangementBox->insertItem(i18n("Top to bottom")); + m_arrangementBox->setCurrentItem(leftToRightArrangement ? 0 : 1); + + new QLabel(i18n("Grid spacing:"), gridGroup); + m_gridSpacingBox = new QComboBox(gridGroup); + m_gridSpacingBox->insertItem(i18n("Small")); + m_gridSpacingBox->insertItem(i18n("Medium")); + m_gridSpacingBox->insertItem(i18n("Large")); + m_gridSpacingBox->setCurrentItem((settings->gridSpacing() - GRID_SPACING_BASE) / GRID_SPACING_INC); + + // Add a dummy widget with no restriction regarding + // a vertical resizing. This assures that the dialog layout + // is not stretched vertically. + new QWidget(this); + + adjustTextWidthSelection(); +} + +IconsViewSettingsPage::~IconsViewSettingsPage() +{ +} + +void IconsViewSettingsPage::applySettings() +{ + DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_mode); + assert(settings != 0); + + const int defaultSize = iconSize(m_iconSizeSlider->value()); + settings->setIconSize(defaultSize); + + int previewSize = (m_mode == DolphinIconsView::Previews) ? + iconSize(m_previewSizeSlider->value()) : + defaultSize; + if (previewSize < defaultSize) { + // assure that the preview size is never smaller than the icon size + previewSize = defaultSize; + } + settings->setPreviewSize(previewSize); + + const int fontSize = m_fontSizeBox->value(); + + QIconView::Arrangement arrangement = (m_arrangementBox->currentItem() == 0) ? + QIconView::LeftToRight : + QIconView::TopToBottom; + settings->setArrangement(arrangement); + settings->calculateGridSize(m_textWidthBox->currentItem()); + + settings->setFontFamily(m_fontFamilyBox->currentFont()); + settings->setFontSize(fontSize); + settings->setTextlinesCount(m_textlinesCountBox->value()); + + settings->setGridSpacing(GRID_SPACING_BASE + + m_gridSpacingBox->currentItem() * GRID_SPACING_INC); +} + +void IconsViewSettingsPage::slotIconSizeChanged(int value) +{ + KIconLoader iconLoader; + m_iconSizeViewer->setPixmap(iconLoader.loadIcon("folder", KIcon::Desktop, iconSize(value))); + + if (m_previewSizeSlider != 0) { + int previewSizeValue = m_previewSizeSlider->value(); + if (previewSizeValue < value) { + // assure that the preview size is never smaller than the icon size + previewSizeValue = value; + } + slotPreviewSizeChanged(previewSizeValue); + } +} + +void IconsViewSettingsPage::slotPreviewSizeChanged(int value) +{ + KIconLoader iconLoader; + const int iconSizeValue = m_iconSizeSlider->value(); + if (value < iconSizeValue) { + // assure that the preview size is never smaller than the icon size + value = iconSizeValue; + } + m_previewSizeViewer->setPixmap(iconLoader.loadIcon("preview", KIcon::Desktop, iconSize(value))); +} + +int IconsViewSettingsPage::iconSize(int sliderValue) const +{ + int size = KIcon::SizeMedium; + switch (sliderValue) { + case 0: size = KIcon::SizeSmall; break; + case 1: size = KIcon::SizeSmallMedium; break; + case 2: size = KIcon::SizeMedium; break; + case 3: size = KIcon::SizeLarge; break; + case 4: size = KIcon::SizeHuge; break; + case 5: size = KIcon::SizeEnormous; break; + } + return size; +} + +int IconsViewSettingsPage::sliderValue(int iconSize) const +{ + int value = 0; + switch (iconSize) { + case KIcon::SizeSmall: value = 0; break; + case KIcon::SizeSmallMedium: value = 1; break; + case KIcon::SizeMedium: value = 2; break; + case KIcon::SizeLarge: value = 3; break; + case KIcon::SizeHuge: value = 4; break; + case KIcon::SizeEnormous: value = 5; break; + default: break; + } + return value; +} + +void IconsViewSettingsPage::adjustTextWidthSelection() +{ + DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_mode); + assert(settings != 0); + m_textWidthBox->setCurrentItem(settings->textWidthHint()); +} + +#include "iconsviewsettingspage.moc" diff --git a/src/iconsviewsettingspage.h b/src/iconsviewsettingspage.h new file mode 100644 index 0000000..ce7ce55 --- /dev/null +++ b/src/iconsviewsettingspage.h @@ -0,0 +1,99 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef ICONSVIEWSETTINGSPAGE_H +#define ICONSVIEWSETTINGSPAGE_H + +#include +#include + +class QSlider; +class QComboBox; +class QCheckBox; +class QPushButton; +class QSpinBox; +class KFontCombo; +class PixmapViewer; + +/** + * @brief Tab page for the 'Icons Mode' and 'Previews Mode' settings + * of the Dolphin settings dialog. + * + * Allows to set: + * - icon size + * - preview size + * - text width + * - grid spacing + * - font family + * - font size + * - number of text lines + * - arrangement + * + * @see DolphinIconsViewSettings + * @author Peter Penz + */ +class IconsViewSettingsPage : public QVBox +{ + Q_OBJECT + +public: + IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, + QWidget* parent); + virtual ~IconsViewSettingsPage(); + + /** + * Applies the settings for the icons view. + * The settings are persisted automatically when + * closing Dolphin. + */ + void applySettings(); + +private slots: + void slotIconSizeChanged(int value); + void slotPreviewSizeChanged(int value); + +private: + DolphinIconsView::LayoutMode m_mode; + + QSlider* m_iconSizeSlider; + PixmapViewer* m_iconSizeViewer; + QSlider* m_previewSizeSlider; + PixmapViewer* m_previewSizeViewer; + QComboBox* m_textWidthBox; + QComboBox* m_gridSpacingBox; + KFontCombo* m_fontFamilyBox; + QSpinBox* m_fontSizeBox; + QSpinBox* m_textlinesCountBox; + QComboBox* m_arrangementBox; + + /** Returns the icon size for the given slider value. */ + int iconSize(int sliderValue) const; + + /** Returns the slider value for the given icon size. */ + int sliderValue(int iconSize) const; + + /** + * Adjusts the selection of the text width combo box dependant + * from the grid width and grid height settings. + */ + void adjustTextWidthSelection(); +}; + +#endif diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp new file mode 100644 index 0000000..7cfe346 --- /dev/null +++ b/src/infosidebarpage.cpp @@ -0,0 +1,630 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "infosidebarpage.h" +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dolphin.h" +#include "pixmapviewer.h" +#include "dolphinsettings.h" + +InfoSidebarPage::InfoSidebarPage(QWidget* parent) : + SidebarPage(parent), + m_multipleSelection(false), + m_pendingPreview(false), + m_timer(0), + m_preview(0), + m_name(0), + m_currInfoLineIdx(0), + m_infoGrid(0), + m_actionBox(0) +{ + const int spacing = KDialog::spacingHint(); + + m_timer = new QTimer(this); + connect(m_timer, SIGNAL(timeout()), + this, SLOT(slotTimeout())); + + QVBoxLayout* layout = new QVBoxLayout(this); + layout->setSpacing(spacing); + + // preview + m_preview = new PixmapViewer(this); + m_preview->setMinimumWidth(KIcon::SizeEnormous); + m_preview->setFixedHeight(KIcon::SizeEnormous); + + // name + m_name = new QLabel(this); + m_name->setTextFormat(Qt::RichText); + m_name->setAlignment(m_name->alignment() | Qt::AlignHCenter); + QFontMetrics fontMetrics(m_name->font()); + m_name->setMinimumHeight(fontMetrics.height() * 3); + m_name->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Maximum); + + QWidget* sep1 = new QHGroupBox(this); // TODO: check whether default widget exist for this? + sep1->setFixedHeight(1); + + // general information + m_infoGrid = new QGrid(2, this); + m_infoGrid->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + + QWidget* sep2 = new QHGroupBox(this); // TODO: check whether default widget exist for this? + sep2->setFixedHeight(1); + + // actions + m_actionBox = new QVBox(this); + m_actionBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + + // Add a dummy widget with no restriction regarding a vertical resizing. + // This assures that information is always top aligned. + QWidget* dummy = new QWidget(this); + + layout->addItem(new QSpacerItem(spacing, spacing, QSizePolicy::Preferred, QSizePolicy::Fixed)); + layout->addWidget(m_preview); + layout->addWidget(m_name); + layout->addWidget(sep1); + layout->addWidget(m_infoGrid); + layout->addWidget(sep2); + layout->addWidget(m_actionBox); + layout->addWidget(dummy); + + connect(&Dolphin::mainWin(), SIGNAL(selectionChanged()), + this, SLOT(showItemInfo())); + + connectToActiveView(); +} + +InfoSidebarPage::~InfoSidebarPage() +{ +} + +void InfoSidebarPage::activeViewChanged() +{ + connectToActiveView(); +} + +void InfoSidebarPage::requestDelayedItemInfo(const KURL& url) +{ + cancelRequest(); + + if (!url.isEmpty() && !m_multipleSelection) { + m_urlCandidate = url; + m_timer->start(300, true); + } +} + +void InfoSidebarPage::requestItemInfo(const KURL& url) +{ + cancelRequest(); + + if (!url.isEmpty() && !m_multipleSelection) { + m_shownURL = url; + showItemInfo(); + } +} + +void InfoSidebarPage::showItemInfo() +{ + cancelRequest(); + + m_multipleSelection = false; + + // show the preview... + DolphinView* view = Dolphin::mainWin().activeView(); + const KFileItemList* selectedItems = view->selectedItems(); + if ((selectedItems != 0) && selectedItems->count() > 1) { + m_multipleSelection = true; + } + + if (m_multipleSelection) { + KIconLoader iconLoader; + QPixmap icon = iconLoader.loadIcon("exec", + KIcon::NoGroup, + KIcon::SizeEnormous); + m_preview->setPixmap(icon); + m_name->setText(i18n("%n items selected", "%n items selected", selectedItems->count())); + } + else if (!applyBookmark()) { + // try to get a preview pixmap from the item... + KURL::List list; + list.append(m_shownURL); + + m_pendingPreview = true; + m_preview->setPixmap(QPixmap()); + + KIO::PreviewJob* job = KIO::filePreview(list, + m_preview->width(), + KIcon::SizeEnormous); + connect(job, SIGNAL(gotPreview(const KFileItem*, const QPixmap&)), + this, SLOT(gotPreview(const KFileItem*, const QPixmap&))); + connect(job, SIGNAL(failed(const KFileItem*)), + this, SLOT(slotPreviewFailed(const KFileItem*))); + + QString text(""); + text.append(m_shownURL.fileName()); + text.append(""); + m_name->setText(text); + } + + createMetaInfo(); + insertActions(); +} + +void InfoSidebarPage::slotTimeout() +{ + m_shownURL = m_urlCandidate; + showItemInfo(); +} + +void InfoSidebarPage::slotPreviewFailed(const KFileItem* item) +{ + m_pendingPreview = false; + if (!applyBookmark()) { + m_preview->setPixmap(item->pixmap(KIcon::SizeEnormous)); + } +} + +void InfoSidebarPage::gotPreview(const KFileItem* /* item */, + const QPixmap& pixmap) +{ + if (m_pendingPreview) { + m_preview->setPixmap(pixmap); + m_pendingPreview = false; + } +} + +void InfoSidebarPage::startService(int index) +{ + DolphinView* view = Dolphin::mainWin().activeView(); + if (view->hasSelection()) { + KURL::List selectedURLs = view->selectedURLs(); + KDEDesktopMimeType::executeService(selectedURLs, m_actionsVector[index]); + } + else { + KDEDesktopMimeType::executeService(m_shownURL, m_actionsVector[index]); + } +} + +void InfoSidebarPage::connectToActiveView() +{ + cancelRequest(); + + DolphinView* view = Dolphin::mainWin().activeView(); + connect(view, SIGNAL(signalRequestItemInfo(const KURL&)), + this, SLOT(requestDelayedItemInfo(const KURL&))); + connect(view, SIGNAL(signalURLChanged(const KURL&)), + this, SLOT(requestItemInfo(const KURL&))); + + m_shownURL = view->url(); + showItemInfo(); +} + +bool InfoSidebarPage::applyBookmark() +{ + KBookmarkGroup root = DolphinSettings::instance().bookmarkManager()->root(); + KBookmark bookmark = root.first(); + while (!bookmark.isNull()) { + if (m_shownURL.equals(bookmark.url(), true)) { + QString text(""); + text.append(bookmark.text()); + text.append(""); + m_name->setText(text); + + KIconLoader iconLoader; + QPixmap icon = iconLoader.loadIcon(bookmark.icon(), + KIcon::NoGroup, + KIcon::SizeEnormous); + m_preview->setPixmap(icon); + return true; + } + bookmark = root.next(bookmark); + } + + return false; +} + +void InfoSidebarPage::cancelRequest() +{ + m_timer->stop(); + m_pendingPreview = false; +} + +void InfoSidebarPage::createMetaInfo() +{ + // To prevent a flickering it's important to reuse available + // labels instead of deleting them and recreate them afterwards. + // The methods beginInfoLines(), addInfoLine() and endInfoLines() + // take care of this. + beginInfoLines(); + DolphinView* view = Dolphin::mainWin().activeView(); + if (!view->hasSelection()) { + KFileItem fileItem(S_IFDIR, KFileItem::Unknown, m_shownURL); + fileItem.refresh(); + + if (fileItem.isDir()) { + addInfoLine(i18n("Type:"), i18n("Directory")); + } + else { + addInfoLine(i18n("Type:"), fileItem.mimeComment()); + + QString sizeText(KIO::convertSize(fileItem.size())); + addInfoLine(i18n("Size:"), sizeText); + addInfoLine(i18n("Modified:"), fileItem.timeString()); + + const KFileMetaInfo& metaInfo = fileItem.metaInfo(); + if (metaInfo.isValid()) { + QStringList keys = metaInfo.supportedKeys(); + for (QStringList::Iterator it = keys.begin(); it != keys.end(); ++it) { + if (showMetaInfo(*it)) { + KFileMetaInfoItem metaInfoItem = metaInfo.item(*it); + addInfoLine(*it, metaInfoItem.string()); + } + } + } + } + } + endInfoLines(); +} + +void InfoSidebarPage::beginInfoLines() +{ + m_currInfoLineIdx = 0; +} + +void InfoSidebarPage::endInfoLines() +{ + if (m_currInfoLineIdx <= 0) { + return; + } + + // remove labels which have not been used + if (m_currInfoLineIdx < static_cast(m_infoWidgets.count())) { + QPtrListIterator deleteIter(m_infoWidgets); + deleteIter += m_currInfoLineIdx; + + QWidget* widget = 0; + int removeCount = 0; + while ((widget = deleteIter.current()) != 0) { + widget->close(); + widget->deleteLater(); + ++deleteIter; + ++removeCount; + } + for (int i = 0; i < removeCount; ++i) { + m_infoWidgets.removeLast(); + } + } +} + +bool InfoSidebarPage::showMetaInfo(const QString& key) const +{ + // sorted list of keys, where it's data should be shown + static const char* keys[] = { + "Album", + "Artist", + "Author", + "Bitrate", + "Date", + "Dimensions", + "Genre", + "Length", + "Lines", + "Pages", + "Title", + "Words" + }; + + // do a binary search for the key... + int top = 0; + int bottom = sizeof(keys) / sizeof(char*) - 1; + while (top < bottom) { + const int middle = (top + bottom) / 2; + const int result = key.compare(keys[middle]); + if (result < 0) { + bottom = middle - 1; + } + else if (result > 0) { + top = middle + 1; + } + else { + return true; + } + } + + return false; +} + +void InfoSidebarPage::addInfoLine(const QString& labelText, const QString& infoText) +{ + QString labelStr(""); + labelStr.append(labelText); + labelStr.append(" "); + + const int count = m_infoWidgets.count(); + if (m_currInfoLineIdx < count - 1) { + // reuse available labels + m_infoWidgets.at(m_currInfoLineIdx++)->setText(labelStr); + m_infoWidgets.at(m_currInfoLineIdx++)->setText(infoText); + } + else { + // no labels are available anymore, hence create 2 new ones + QLabel* label = new QLabel(labelStr, m_infoGrid); + label->setTextFormat(Qt::RichText); + label->setAlignment(Qt::AlignRight | + Qt::AlignTop); + label->show(); + m_infoWidgets.append(label); + + QLabel* info = new QLabel(infoText, m_infoGrid); + info->setTextFormat(Qt::RichText); + info->setAlignment(Qt::AlignTop | Qt::WordBreak); + info->show(); + m_infoWidgets.append(info); + + m_currInfoLineIdx += 2; + } +} + +void InfoSidebarPage::insertActions() +{ + // delete all existing action widgets + // TODO: just use children() from QObject... + QPtrListIterator deleteIter(m_actionWidgets); + QWidget* widget = 0; + while ((widget = deleteIter.current()) != 0) { + widget->close(); + widget->deleteLater(); + ++deleteIter; + } + + m_actionWidgets.clear(); + m_actionsVector.clear(); + + int actionsIndex = 0; + + // The algorithm for searching the available actions works on a list + // of KFileItems. If no selection is given, a temporary KFileItem + // by the given URL 'url' is created and added to the list. + KFileItem fileItem(S_IFDIR, KFileItem::Unknown, m_shownURL); + KFileItemList localList; + const KFileItemList* itemList = Dolphin::mainWin().activeView()->selectedItems(); + if ((itemList == 0) || itemList->isEmpty()) { + fileItem.refresh(); + localList.append(&fileItem); + itemList = &localList; + } + + // 'itemList' contains now all KFileItems, where an item information should be shown. + // TODO: the following algorithm is quite equal to DolphinContextMenu::insertActionItems(). + // It's open yet whether they should be merged or whether they have to work slightly different. + QStringList dirs = KGlobal::dirs()->findDirs("data", "d3lphin/servicemenus/"); + for (QStringList::ConstIterator dirIt = dirs.begin(); dirIt != dirs.end(); ++dirIt) { + QDir dir(*dirIt); + QStringList entries = dir.entryList("*.desktop", QDir::Files); + + for (QStringList::ConstIterator entryIt = entries.begin(); entryIt != entries.end(); ++entryIt) { + KSimpleConfig cfg(*dirIt + *entryIt, true); + cfg.setDesktopGroup(); + if ((cfg.hasKey("Actions") || cfg.hasKey("X-KDE-GetActionMenu")) && cfg.hasKey("ServiceTypes")) { + const QStringList types = cfg.readListEntry("ServiceTypes"); + for (QStringList::ConstIterator it = types.begin(); it != types.end(); ++it) { + // check whether the mime type is equal or whether the + // mimegroup (e. g. image/*) is supported + + bool insert = false; + if ((*it) == "all/allfiles") { + // The service type is valid for all files, but not for directories. + // Check whether the selected items only consist of files... + KFileItemListIterator mimeIt(*itemList); + KFileItem* item = 0; + insert = true; + while (insert && ((item = mimeIt.current()) != 0)) { + insert = !item->isDir(); + ++mimeIt; + } + } + + if (!insert) { + // Check whether the MIME types of all selected files match + // to the mimetype of the service action. As soon as one MIME + // type does not match, no service menu is shown at all. + KFileItemListIterator mimeIt(*itemList); + KFileItem* item = 0; + insert = true; + while (insert && ((item = mimeIt.current()) != 0)) { + const QString mimeType((*mimeIt)->mimetype()); + const QString mimeGroup(mimeType.left(mimeType.find('/'))); + + insert = (*it == mimeType) || + ((*it).right(1) == "*") && + ((*it).left((*it).find('/')) == mimeGroup); + ++mimeIt; + } + } + + if (insert) { + const QString submenuName = cfg.readEntry( "X-KDE-Submenu" ); + QPopupMenu* popup = 0; + if (!submenuName.isEmpty()) { + // create a sub menu containing all actions + popup = new QPopupMenu(); + connect(popup, SIGNAL(activated(int)), + this, SLOT(startService(int))); + + QPushButton* button = new QPushButton(submenuName, m_actionBox); + button->setFlat(true); + button->setPopup(popup); + button->show(); + m_actionWidgets.append(button); + } + + QValueList userServices = + KDEDesktopMimeType::userDefinedServices(*dirIt + *entryIt, true); + + // iterate through all actions and add them to a widget + QValueList::Iterator serviceIt; + for (serviceIt = userServices.begin(); serviceIt != userServices.end(); ++serviceIt) { + KDEDesktopMimeType::Service service = (*serviceIt); + if (popup == 0) { + ServiceButton* button = new ServiceButton(SmallIcon(service.m_strIcon), + service.m_strName, + m_actionBox, + actionsIndex); + connect(button, SIGNAL(requestServiceStart(int)), + this, SLOT(startService(int))); + m_actionWidgets.append(button); + button->show(); + } + else { + popup->insertItem(SmallIcon(service.m_strIcon), service.m_strName, actionsIndex); + } + + m_actionsVector.append(service); + ++actionsIndex; + } + } + } + } + } + } +} + +ServiceButton::ServiceButton(const QIconSet& icon, + const QString& text, + QWidget* parent, + int index) : + QPushButton(icon, text, parent), + m_hover(false), + m_index(index) +{ + setEraseColor(colorGroup().background()); + setFocusPolicy(QWidget::NoFocus); + connect(this, SIGNAL(released()), + this, SLOT(slotReleased())); +} + +ServiceButton::~ServiceButton() +{ +} + +void ServiceButton::drawButton(QPainter* painter) +{ + const int buttonWidth = width(); + const int buttonHeight = height(); + + QColor backgroundColor; + QColor foregroundColor; + if (m_hover) { + backgroundColor = KGlobalSettings::highlightColor(); + foregroundColor = KGlobalSettings::highlightedTextColor(); + } + else { + backgroundColor = colorGroup().background(); + foregroundColor = KGlobalSettings::buttonTextColor(); + } + + // draw button background + painter->setPen(NoPen); + painter->setBrush(backgroundColor); + painter->drawRect(0, 0, buttonWidth, buttonHeight); + + const int spacing = KDialog::spacingHint(); + + // draw icon + int x = spacing; + const int y = (buttonHeight - KIcon::SizeSmall) / 2; + const QIconSet* set = iconSet(); + if (set != 0) { + painter->drawPixmap(x, y, set->pixmap(QIconSet::Small, QIconSet::Normal)); + } + x += KIcon::SizeSmall + spacing; + + // draw text + painter->setPen(foregroundColor); + + const int textWidth = buttonWidth - x; + QFontMetrics fontMetrics(font()); + const bool clipped = fontMetrics.width(text()) >= textWidth; + //const int align = clipped ? Qt::AlignVCenter : Qt::AlignCenter; + painter->drawText(QRect(x, 0, textWidth, buttonHeight), Qt::AlignVCenter, text()); + + if (clipped) { + // Blend the right area of the text with the background, as the + // text is clipped. + // TODO #1: use alpha blending in Qt4 instead of drawing the text that often + // TODO #2: same code as in URLNavigatorButton::drawButton() -> provide helper class? + const int blendSteps = 16; + + QColor blendColor(backgroundColor); + const int redInc = (foregroundColor.red() - backgroundColor.red()) / blendSteps; + const int greenInc = (foregroundColor.green() - backgroundColor.green()) / blendSteps; + const int blueInc = (foregroundColor.blue() - backgroundColor.blue()) / blendSteps; + for (int i = 0; i < blendSteps; ++i) { + painter->setClipRect(QRect(x + textWidth - i, 0, 1, buttonHeight)); + painter->setPen(blendColor); + painter->drawText(QRect(x, 0, textWidth, buttonHeight), Qt::AlignVCenter, text()); + + blendColor.setRgb(blendColor.red() + redInc, + blendColor.green() + greenInc, + blendColor.blue() + blueInc); + } + } +} + +void ServiceButton::enterEvent(QEvent* event) +{ + QPushButton::enterEvent(event); + m_hover = true; + update(); +} + +void ServiceButton::leaveEvent(QEvent* event) +{ + QPushButton::leaveEvent(event); + m_hover = false; + update(); +} + +void ServiceButton::slotReleased() +{ + emit requestServiceStart(m_index); +} + diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h new file mode 100644 index 0000000..48e3dd4 --- /dev/null +++ b/src/infosidebarpage.h @@ -0,0 +1,194 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef _INFOSIDEBARPAGE_H_ +#define _INFOSIDEBARPAGE_H_ + +#include + +#include +#include + +#include +#include +#include + +namespace KIO { + class Job; +}; + +class QPixmap; +class QIconSet; +class QString; +class QPainter; +class KFileItem; +class QLabel; +class QVBox; +class QGrid; +class PixmapViewer; + +/** + * @brief Prototype for a information sidebar. + * + * Will be exchanged in future releases by pluggable sidebar pages... + */ +class InfoSidebarPage : public SidebarPage +{ + Q_OBJECT + +public: + InfoSidebarPage(QWidget* parent); + virtual ~InfoSidebarPage(); + +protected: + /** @see SidebarPage::activeViewChanged() */ + virtual void activeViewChanged(); + +private slots: + /** + * Does a delayed request of information for the item of the given URL and + * provides default actions. + * + * @see InfoSidebarPage::showItemInfo() + */ + void requestDelayedItemInfo(const KURL& url); + + /** + * Does a request of information for the item of the given URL and + * provides default actions. + * + * @see InfoSidebarPage::showItemInfo() + */ + void requestItemInfo(const KURL& url); + + /** + * Shows the information for the item of the URL which has been provided by + * InfoSidebarPage::requestItemInfo() and provides default actions. + */ + void showItemInfo(); + + /** + * Triggered if the request for item information has timed out. + * @see InfoSidebarPage::requestDelayedItemInfo() + */ + void slotTimeout(); + + /** + * Is invoked if no preview is available for the item. In this + * case the icon will be shown. + */ + void slotPreviewFailed(const KFileItem* item); + + /** + * Is invoked if a preview is available for the item. The preview + * \a pixmap is shown inside the info page. + */ + void gotPreview(const KFileItem* item, const QPixmap& pixmap); + + /** + * Starts the service of m_actionsVector with the index \index on + * the shown URL (or the selected items if available). + */ + void startService(int index); + +private: + /** + * Connects to signals from the currently active Dolphin view to get + * informed about highlighting changes. + */ + void connectToActiveView(); + + /** + * Checks whether the current URL is repesented by a bookmark. If yes, + * then the bookmark icon and name are shown instead of a preview. + * @return True, if the URL represents exactly a bookmark. + */ + bool applyBookmark(); + + /** Assures that any pending item information request is cancelled. */ + void cancelRequest(); + + // TODO: the following methods are just a prototypes for meta + // info generation... + void createMetaInfo(); + void addInfoLine(const QString& labelText, + const QString& infoText); + void beginInfoLines(); + void endInfoLines(); + + /** + * Returns true, if the string \a key represents a meta information + * that should be shown. + */ + bool showMetaInfo(const QString& key) const; + + /** + * Inserts the available actions to the info page for the given item. + */ + void insertActions(); + + bool m_multipleSelection; + bool m_pendingPreview; + QTimer* m_timer; + KURL m_shownURL; + KURL m_urlCandidate; + + PixmapViewer* m_preview; + QLabel* m_name; + + int m_currInfoLineIdx; + QGrid* m_infoGrid; + QPtrList m_infoWidgets; // TODO: use children() from QObject instead + + QVBox* m_actionBox; + QPtrList m_actionWidgets; // TODO: use children() from QObject instead + QValueVector m_actionsVector; +}; + +// TODO #1: move to SidebarPage? +// TODO #2: quite same button from the optical point of view as URLNavigatorButton +// -> provide helper class or common base class +class ServiceButton : public QPushButton +{ + Q_OBJECT + +public: + ServiceButton(const QIconSet& icon, + const QString& text, + QWidget* parent, + int index); + virtual ~ServiceButton(); + +signals: + void requestServiceStart(int index); + +protected: + virtual void drawButton(QPainter* painter); + virtual void enterEvent(QEvent* event); + virtual void leaveEvent(QEvent* event); + +private slots: + void slotReleased(); + +private: + bool m_hover; + int m_index; +}; + +#endif // _INFOSIDEBARPAGE_H_ diff --git a/src/itemeffectsmanager.cpp b/src/itemeffectsmanager.cpp new file mode 100644 index 0000000..1d1d199 --- /dev/null +++ b/src/itemeffectsmanager.cpp @@ -0,0 +1,189 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "itemeffectsmanager.h" +#include +#include +#include +#include +#include +#include +#include + +#include "dolphin.h" +#include "dolphinstatusbar.h" + +ItemEffectsManager::ItemEffectsManager() +{ + m_pixmapCopy = new QPixmap(); +} + +ItemEffectsManager::~ItemEffectsManager() +{ + delete m_pixmapCopy; + m_pixmapCopy = 0; + + m_highlightedURL = 0; +} + +void ItemEffectsManager::zoomIn() +{ + Dolphin::mainWin().refreshViews(); +} + +void ItemEffectsManager::zoomOut() +{ + Dolphin::mainWin().refreshViews(); +} + +void ItemEffectsManager::activateItem(void* context) +{ + KFileItem* fileInfo = contextFileInfo(context); + const KURL itemURL(fileInfo->url()); + if (m_highlightedURL == itemURL) { + // the item is already highlighted + return; + } + + resetActivatedItem(); + + const QPixmap* itemPixmap = contextPixmap(context); + if (itemPixmap != 0) { + // remember the pixmap and item to be able to + // restore it to the old state later + *m_pixmapCopy = *itemPixmap; + m_highlightedURL = itemURL; + + // apply an icon effect to the item below the mouse pointer + KIconEffect iconEffect; + QPixmap pixmap = iconEffect.apply(*itemPixmap, + KIcon::Desktop, + KIcon::ActiveState); + setContextPixmap(context, pixmap); + } + + if (!Dolphin::mainWin().activeView()->hasSelection()) { + DolphinStatusBar* statusBar = Dolphin::mainWin().activeView()->statusBar(); + statusBar->setMessage(statusBarText(fileInfo), DolphinStatusBar::Default); + } +} + +void ItemEffectsManager::resetActivatedItem() +{ + if (m_highlightedURL.isEmpty()) { + return; + } + + for (void* context = firstContext(); context != 0; context = nextContext(context)) { + KURL itemURL(contextFileInfo(context)->url()); + if (itemURL == m_highlightedURL) { + // the highlighted item has been found and is restored to the default state + KIconEffect iconEffect; + QPixmap pixmap = iconEffect.apply(*m_pixmapCopy, + KIcon::Desktop, + KIcon::DefaultState); + + // TODO: KFileIconView does not emit any signal when the preview has been finished. + // Hence check the size to prevent that a preview is hidden by restoring a + // non-preview pixmap. + const QPixmap* highlightedPixmap = contextPixmap(context); + const bool restore = (pixmap.width() == highlightedPixmap->width()) && + (pixmap.height() == highlightedPixmap->height()); + if (restore) { + setContextPixmap(context, pixmap); + } + break; + } + } + + m_highlightedURL = 0; + + DolphinStatusBar* statusBar = Dolphin::mainWin().activeView()->statusBar(); + statusBar->clear(); +} + +void ItemEffectsManager::updateDisabledItems() +{ + if (!m_disabledItems.isEmpty()) { + // restore all disabled items with their original pixmap + for (void* context = firstContext(); context != 0; context = nextContext(context)) { + const KFileItem* fileInfo = contextFileInfo(context); + const KURL& fileURL = fileInfo->url(); + QValueListIterator it = m_disabledItems.begin(); + while (it != m_disabledItems.end()) { + if (fileURL == (*it).url) { + setContextPixmap(context, (*it).pixmap); + } + ++it; + } + } + m_disabledItems.clear(); + } + + if (!Dolphin::mainWin().clipboardContainsCutData()) { + return; + } + + QClipboard* clipboard = QApplication::clipboard(); + QMimeSource* data = clipboard->data(); + if (!KURLDrag::canDecode(data)) { + return; + } + + // The clipboard contains items, which have been cutted. Change the pixmaps of all those + // items to the disabled state. + KURL::List urls; + KURLDrag::decode(data, urls); + for (void* context = firstContext(); context != 0; context = nextContext(context)) { + const KFileItem* fileInfo = contextFileInfo(context); + const KURL& fileURL = fileInfo->url(); + for(KURL::List::ConstIterator it = urls.begin(); it != urls.end(); ++it) { + if (fileURL == (*it)) { + const QPixmap* itemPixmap = contextPixmap(context); + if (itemPixmap != 0) { + // remember old pixmap + DisabledItem disabledItem; + disabledItem.url = fileURL; + disabledItem.pixmap = *itemPixmap; + m_disabledItems.append(disabledItem); + + KIconEffect iconEffect; + QPixmap disabledPixmap = iconEffect.apply(*itemPixmap, + KIcon::Desktop, + KIcon::DisabledState); + setContextPixmap(context, disabledPixmap); + } + break; + } + } + } +} + +QString ItemEffectsManager::statusBarText(KFileItem* fileInfo) const +{ + if (fileInfo->isDir()) { + // KFileItem::getStatusBar() returns "MyDocuments/ Folder" as + // status bar text for a folder 'MyDocuments'. This is adjusted + // to "MyDocuments (Folder)" in Dolphin. + return i18n("%1 (Folder)").arg(fileInfo->name()); + } + + return fileInfo->getStatusBarInfo(); +} diff --git a/src/itemeffectsmanager.h b/src/itemeffectsmanager.h new file mode 100644 index 0000000..eb2921d --- /dev/null +++ b/src/itemeffectsmanager.h @@ -0,0 +1,120 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef ITEMEFFECTSMANAGER_H +#define ITEMEFFECTSMANAGER_H + +#include +#include +#include +#include +class KFileItem; + +/** + * @brief Abstract class to implement item effects for a Dolphin view. + * + * Derived classes must implement the following pure virtual methods: + * - ItemEffectsManager::setContextPixmap() + * - ItemEffectsManager::contextPixmap() + * - ItemEffectsManager::firstContext() + * - ItemEffectsManager::nextContext() + * - ItemEffectsManager::contextFileInfo() + * + * The item effects manager highlights currently active items and also + * respects cutted items. A 'context' is defined as abstract data type, + * which usually is represented by a KFileListViewItem or + * a KFileIconViewItem. + * + * In Qt4 the item effects manager should get integrated as part of Interview + * and hence no abstract context handling should be necessary anymore. The main + * purpose of the current interface is to prevent code duplication as there is + * no common model shared by QListView and QIconView of Qt3. + * + * @see DolphinIconsView + * @see DolphinDetailsView + * @author Peter Penz + */ +class ItemEffectsManager +{ +public: + ItemEffectsManager(); + virtual ~ItemEffectsManager(); + + /** Is invoked before the items get updated. */ + virtual void beginItemUpdates() = 0; + + /** Is invoked after the items have been updated. */ + virtual void endItemUpdates() = 0; + + /** + * Increases the size of the current set view mode and refreshes + * all views. Derived implementations must invoke the base implementation + * if zooming in had been done. + */ + virtual void zoomIn(); + + /** + * Decreases the size of the current set view mode and refreshes + * all views. Derived implementations must invoke the base implementation + * if zooming out had been done. + */ + virtual void zoomOut(); + + /** + * Returns true, if zooming in is possible. If false is returned, + * the minimal zoom size is possible. + */ + virtual bool isZoomInPossible() const = 0; + + /** + * Returns true, if zooming in is possible. If false is returned, + * the minimal zoom size is possible. + */ + virtual bool isZoomOutPossible() const = 0; + +protected: + virtual void setContextPixmap(void* context, + const QPixmap& pixmap) = 0; + virtual const QPixmap* contextPixmap(void* context) = 0; + virtual void* firstContext() = 0; + virtual void* nextContext(void* context) = 0; + virtual KFileItem* contextFileInfo(void* context) = 0; + + void activateItem(void* context); + void resetActivatedItem(); + void updateDisabledItems(); + +private: + struct DisabledItem { + KURL url; + QPixmap pixmap; + }; + + QPixmap* m_pixmapCopy; + KURL m_highlightedURL; + + // contains all items which have been disabled by a 'cut' operation + QValueList m_disabledItems; + + /** Returns the text for the statusbar for an activated item. */ + QString statusBarText(KFileItem* fileInfo) const; +}; + +#endif diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..73c5b11 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,82 @@ +/*************************************************************************** + * Copyright (C) 2007 by Marcel Juhnke * + * Copyright (C) 2006 by Peter Penz * + * Copyright (C) 2006 by Stefan Monov * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "dolphin.h" +#include +#include +#include +#include +#include +#include + +static KCmdLineOptions options[] = +{ + { "+[URL]", I18N_NOOP( "Document to open" ), 0 }, + KCmdLineLastOption +}; + +int main(int argc, char **argv) +{ + KAboutData about("d3lphin", + I18N_NOOP("Dolphin"), + "0.9.2", + I18N_NOOP("File Manager"), + KAboutData::License_GPL, + "(C) 2007 Marcel Juhnke"); + about.setHomepage("https://marrat.homelinux.org/D3lphin"); + about.setBugAddress("marrat@marrat.homelinux.org"); + about.addAuthor("Marcel Juhnke", I18N_NOOP("Maintainer and developer"), "marrat@marrat.homelinux.org"); + about.addAuthor("Michael Austin", I18N_NOOP("Documentation"), "tuxedup@users.sourceforge.net"); + about.addAuthor("Orville Bennett", I18N_NOOP("Documentation"), "obennett@hartford.edu"); + about.addCredit("Peter Penz", I18N_NOOP("... for the great original Dolphin")); + about.addCredit("Cvetoslav Ludmiloff, Stefan Monov", I18N_NOOP("... for their development on the original Dolphin")); + about.addCredit("Aaron J. Seigo", I18N_NOOP("... for the great support and the amazing patches for the orignal Dolphin")); + about.addCredit("Patrice Tremblay, Gregor Kalisnik, Filip Brcic, Igor Stepin and Jan Mette", I18N_NOOP("... for their patches")); + about.addCredit("Ain, Itai, Ivan, Jannick, Stephane, Patrice, Piotr, Stefano and Power On", + I18N_NOOP("... for their translations")); + + KCmdLineArgs::init(argc, argv, &about); + KCmdLineArgs::addCmdLineOptions(options); + + KApplication app; + Dolphin& mainWin = Dolphin::mainWin(); + mainWin.show(); + + if (app.isRestored()) { + int n = 1; + while (KMainWindow::canBeRestored(n)){ + Dolphin::mainWin().restore(n); + ++n; + } + } else { + KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); + if (args->count() > 0) { + mainWin.activeView()->setURL(args->url(0)); + + for (int i = 1; i < args->count(); ++i) { + KRun::run("d3lphin", args->url(i)); + } + } + args->clear(); + } + + return app.exec(); +} diff --git a/src/pics/128x128/Makefile.am b/src/pics/128x128/Makefile.am new file mode 100644 index 0000000..5c6f8a9 --- /dev/null +++ b/src/pics/128x128/Makefile.am @@ -0,0 +1,3 @@ +iconsdir = $(kde_datadir)/d3lphin/icons/hicolor/128x128/actions +icons_DATA = preview.png + diff --git a/src/pics/128x128/preview.png b/src/pics/128x128/preview.png new file mode 100644 index 0000000..f55dbfd Binary files /dev/null and b/src/pics/128x128/preview.png differ diff --git a/src/pics/16x16/Makefile.am b/src/pics/16x16/Makefile.am new file mode 100644 index 0000000..1fa272b --- /dev/null +++ b/src/pics/16x16/Makefile.am @@ -0,0 +1,3 @@ +iconsdir = $(kde_datadir)/d3lphin/icons/hicolor/16x16/actions +icons_DATA = preview.png editurl.png + diff --git a/src/pics/16x16/editurl.png b/src/pics/16x16/editurl.png new file mode 100644 index 0000000..1c4d2a6 Binary files /dev/null and b/src/pics/16x16/editurl.png differ diff --git a/src/pics/16x16/preview.png b/src/pics/16x16/preview.png new file mode 100644 index 0000000..d9010c8 Binary files /dev/null and b/src/pics/16x16/preview.png differ diff --git a/src/pics/22x22/Makefile.am b/src/pics/22x22/Makefile.am new file mode 100644 index 0000000..245df4b --- /dev/null +++ b/src/pics/22x22/Makefile.am @@ -0,0 +1,3 @@ +iconsdir = $(kde_datadir)/d3lphin/icons/hicolor/22x22/actions +icons_DATA = preview.png + diff --git a/src/pics/22x22/preview.png b/src/pics/22x22/preview.png new file mode 100644 index 0000000..b42a438 Binary files /dev/null and b/src/pics/22x22/preview.png differ diff --git a/src/pics/32x32/Makefile.am b/src/pics/32x32/Makefile.am new file mode 100644 index 0000000..0d7f9f3 --- /dev/null +++ b/src/pics/32x32/Makefile.am @@ -0,0 +1,3 @@ +iconsdir = $(kde_datadir)/d3lphin/icons/hicolor/32x32/actions +icons_DATA = preview.png + diff --git a/src/pics/32x32/preview.png b/src/pics/32x32/preview.png new file mode 100644 index 0000000..f84bb90 Binary files /dev/null and b/src/pics/32x32/preview.png differ diff --git a/src/pics/48x48/Makefile.am b/src/pics/48x48/Makefile.am new file mode 100644 index 0000000..103382b --- /dev/null +++ b/src/pics/48x48/Makefile.am @@ -0,0 +1,3 @@ +iconsdir = $(kde_datadir)/d3lphin/icons/hicolor/48x48/actions +icons_DATA = preview.png + diff --git a/src/pics/48x48/preview.png b/src/pics/48x48/preview.png new file mode 100644 index 0000000..7ab3b53 Binary files /dev/null and b/src/pics/48x48/preview.png differ diff --git a/src/pics/64x64/Makefile.am b/src/pics/64x64/Makefile.am new file mode 100644 index 0000000..c705496 --- /dev/null +++ b/src/pics/64x64/Makefile.am @@ -0,0 +1,3 @@ +iconsdir = $(kde_datadir)/d3lphin/icons/hicolor/64x64/actions +icons_DATA = preview.png + diff --git a/src/pics/64x64/preview.png b/src/pics/64x64/preview.png new file mode 100644 index 0000000..96e53fe Binary files /dev/null and b/src/pics/64x64/preview.png differ diff --git a/src/pics/Makefile.am b/src/pics/Makefile.am new file mode 100644 index 0000000..c26c4f5 --- /dev/null +++ b/src/pics/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = 128x128 64x64 48x48 32x32 22x22 16x16 diff --git a/src/pixmapviewer.cpp b/src/pixmapviewer.cpp new file mode 100644 index 0000000..565b16c --- /dev/null +++ b/src/pixmapviewer.cpp @@ -0,0 +1,56 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "pixmapviewer.h" + +#include +#include +#include + +PixmapViewer::PixmapViewer(QWidget* parent) : + QWidget(parent) +{ + setMinimumWidth(KIcon::SizeEnormous); + setMinimumWidth(KIcon::SizeEnormous); +} + +PixmapViewer::~PixmapViewer() +{ +} + +void PixmapViewer::setPixmap(const QPixmap& pixmap) +{ + m_pixmap = pixmap; + update(); +} + +void PixmapViewer::paintEvent(QPaintEvent* event) +{ + QWidget::paintEvent(event); + + QPainter painter; + painter.begin(this); + const int x = (width() - m_pixmap.width()) / 2; + const int y = (height() - m_pixmap.height()) / 2; + painter.drawPixmap(x, y, m_pixmap); + painter.end(); +} + +#include "pixmapviewer.moc" diff --git a/src/pixmapviewer.h b/src/pixmapviewer.h new file mode 100644 index 0000000..6c24974 --- /dev/null +++ b/src/pixmapviewer.h @@ -0,0 +1,50 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef PIXMAPVIEWER_H +#define PIXMAPVIEWER_H + +#include +#include + +/** + * @brief Widget which shows a pixmap centered inside the boundaries. + * + * @see IconsViewSettingsPage + * @author Peter Penz + */ +class PixmapViewer : public QWidget +{ + Q_OBJECT +public: + PixmapViewer(QWidget* parent); + virtual ~PixmapViewer(); + void setPixmap(const QPixmap& pixmap); + const QPixmap& pixmap() const { return m_pixmap; } + +protected: + virtual void paintEvent(QPaintEvent* event); + +private: + QPixmap m_pixmap; +}; + + +#endif diff --git a/src/progressindicator.cpp b/src/progressindicator.cpp new file mode 100644 index 0000000..6509150 --- /dev/null +++ b/src/progressindicator.cpp @@ -0,0 +1,80 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "progressindicator.h" +#include "dolphin.h" +#include "dolphinstatusbar.h" + +ProgressIndicator::ProgressIndicator(const QString& progressText, + const QString& finishedText, + int operationsCount) + : m_showProgress(false), + m_operationsCount(operationsCount), + m_operationsIndex(0), + m_startTime(QTime::currentTime()), + m_finishedText(finishedText) +{ + DolphinStatusBar* statusBar = Dolphin::mainWin().activeView()->statusBar(); + statusBar->clear(); + statusBar->setProgressText(progressText); + statusBar->setProgress(0); +} + + +ProgressIndicator::~ProgressIndicator() +{ + DolphinStatusBar* statusBar = Dolphin::mainWin().activeView()->statusBar(); + statusBar->setProgressText(QString::null); + statusBar->setProgress(100); + statusBar->setMessage(m_finishedText, DolphinStatusBar::OperationCompleted); + + if (m_showProgress) { + Dolphin::mainWin().setEnabled(true); + } +} + +void ProgressIndicator::execOperation() +{ + ++m_operationsIndex; + + if (!m_showProgress) { + const int elapsed = m_startTime.msecsTo(QTime::currentTime()); + if (elapsed > 500) { + // the operations took already more than 500 milliseconds, + // therefore show a progress indication + Dolphin::mainWin().setEnabled(false); + m_showProgress = true; + } + } + + if (m_showProgress) { + const QTime currentTime = QTime::currentTime(); + if (m_startTime.msecsTo(currentTime) > 100) { + m_startTime = currentTime; + + DolphinStatusBar* statusBar = Dolphin::mainWin().activeView()->statusBar(); + statusBar->setProgress((m_operationsIndex * 100) / m_operationsCount); + kapp->processEvents(); + statusBar->repaint(); + } + } +} + + diff --git a/src/progressindicator.h b/src/progressindicator.h new file mode 100644 index 0000000..7889607 --- /dev/null +++ b/src/progressindicator.h @@ -0,0 +1,78 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef PROGRESSINDICATOR_H +#define PROGRESSINDICATOR_H + +#include + +/** + * Allows to show a progress of synchronous operations. Sample code: + * \code + * const int operationsCount = 100; + * ProgressIndicator progressIndicator(i18n("Loading..."), + * i18n("Loading finished."), + * operationsCount); + * for (int i = 0; i < operationsCount; ++i) { + * progressIndicator.execOperation(); + * // do synchronous operation... + * } + * \endcode + * The progress indicator takes care to show the progress bar only after + * a delay of around 500 milliseconds. This means if all operations are + * executing within 500 milliseconds, no progress bar is shown at all. + * As soon as the progress bar is shown, the application still may process + * events, but the the Dolphin main widget is disabled. + * + * @author Peter Penz + */ +class ProgressIndicator +{ +public: + /** + * @param progressText Text for the progress bar (e. g. "Loading..."). + * @param finishedText Text which is displayed after the operations have been finished + * (e. g. "Loading finished."). + * @param operationsCount Number of operations. + */ + ProgressIndicator(const QString& progressText, + const QString& finishedText, + int operationsCount); + + /** + * Sets the progress to 100 % and displays the 'finishedText' property + * in the status bar. + */ + ~ProgressIndicator(); + + /** + * Increases the progress and should be invoked + * before each operation. + */ + void execOperation(); + +private: + bool m_showProgress; + int m_operationsCount; + int m_operationsIndex; + QTime m_startTime; + QString m_finishedText; +}; + +#endif diff --git a/src/renamedialog.cpp b/src/renamedialog.cpp new file mode 100644 index 0000000..7ec8681 --- /dev/null +++ b/src/renamedialog.cpp @@ -0,0 +1,89 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "renamedialog.h" +#include +#include +#include +#include +#include +#include + +RenameDialog::RenameDialog(const KURL::List& items) : + KDialogBase(Plain, i18n("Rename Items"), + Ok|Cancel, Ok) +{ + setButtonOK(KGuiItem(i18n("Rename"), "apply")); + + QVBoxLayout* topLayout = new QVBoxLayout(plainPage(), 0, spacingHint()); + topLayout->setMargin(KDialog::marginHint()); + + const int itemCount = items.count(); + QLabel* editLabel = new QLabel(i18n("Rename the %n selected items to:", "Rename the %n selected items to:", itemCount), + plainPage()); + + m_lineEdit = new KLineEdit(plainPage()); + m_newName = i18n("New name #"); + assert(itemCount > 1); + QString postfix(items[0].prettyURL().section('.',1)); + if (postfix.length() > 0) { + // The first item seems to have a postfix (e. g. 'jpg' or 'txt'). Now + // check whether all other items have the same postfix. If this is the + // case, add this postfix to the name suggestion. + postfix.insert(0, '.'); + for (int i = 1; i < itemCount; ++i) { + if (!items[i].prettyURL().contains(postfix)) { + // at least one item does not have the same postfix + postfix.truncate(0); + break; + } + } + } + + const int selectionLength = m_newName.length(); + if (postfix.length() > 0) { + m_newName.append(postfix); + } + m_lineEdit->setText(m_newName); + m_lineEdit->setSelection(0, selectionLength - 1); + m_lineEdit->setFocus(); + + QLabel* infoLabel = new QLabel(i18n("(# will be replaced by ascending numbers)"), plainPage()); + + topLayout->addWidget(editLabel); + topLayout->addWidget(m_lineEdit); + topLayout->addWidget(infoLabel); +} + +RenameDialog::~RenameDialog() +{ +} + +void RenameDialog::slotOk() +{ + m_newName = m_lineEdit->text(); + if (m_newName.contains('#') != 1) { + m_newName.truncate(0); + } + + KDialogBase::slotOk(); +} + +#include "renamedialog.moc" diff --git a/src/renamedialog.h b/src/renamedialog.h new file mode 100644 index 0000000..fb743db --- /dev/null +++ b/src/renamedialog.h @@ -0,0 +1,67 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef RENAMEDIALOG_H +#define RENAMEDIALOG_H + +#include +#include +#include + +class KLineEdit; + +/** + * @brief Dialog for renaming a variable number of files. + * + * The renaming is not done by the dialog, the invoker + * must do this itself: + * \code + * RenameDialog dialog(...); + * if (dialog.exec() == QDialog::Accepted) { + * const QString& newName = dialog.newName(); + * // ... rename items corresponding to the new name + * } + * \endcode + * @author Peter Penz + */ +class RenameDialog : public KDialogBase +{ + Q_OBJECT + +public: + RenameDialog(const KURL::List& items); + virtual ~RenameDialog(); + + /** + * Returns the new name of the items. If the returned string is not empty, + * then it is assured that the string contains exactly one character #, + * which should be replaced by ascending numbers. An empty string indicates + * that the user has removed the # character. + */ + const QString& newName() const { return m_newName; } + +protected slots: + virtual void slotOk(); + +private: + KLineEdit* m_lineEdit; + QString m_newName; +}; + +#endif diff --git a/src/servicemenus/Makefile.am b/src/servicemenus/Makefile.am new file mode 100644 index 0000000..45d121f --- /dev/null +++ b/src/servicemenus/Makefile.am @@ -0,0 +1,18 @@ +servicemenusdir = $(kde_datadir)/d3lphin/servicemenus +servicemenus_DATA = compress.desktop amarok_addaspodcast.desktop amarok_append.desktop \ + amarok_play_audiocd.desktop ark_compress.desktop ark_extract.desktop ark_extract_subdir.desktop \ + d3lphin_su.desktop edit_as_root.desktop encryptfile.desktop encryptfolder.desktop \ + floppy_format.desktop imageconverter.desktop installfont.desktop jpegorient.desktop \ + k3b_audiocd_rip.desktop k3b_cd_copy.desktop k3b_create_audio_cd.desktop \ + k3b_create_video_cd.desktop k3b_dvd_copy.desktop k3b_handle_empty_cd.desktop \ + k3b_handle_empty_dvd.desktop k3b_videodvd_rip.desktop k3b_write_bin_image.desktop \ + k3b_write_iso_image.desktop kdesktopSetAsBackground.desktop konqgwenview.desktop \ + konsolehere.desktop mail_as_attachment.desktop media_eject.desktop media_mount.desktop \ + media_realfolder.desktop media_safelyremove.desktop media_unmount.desktop \ + open_in_digikam.desktop run_as_root.desktop smb2rdc.desktop text-ada-print.desktop \ + text-c++-print.desktop text-c++h-print.desktop text-ch-print.desktop text-css-print.desktop \ + text-diff-print.desktop text-html-print.desktop text-java-print.desktop text-log-print.desktop \ + text-makefile-print.desktop text-pas-print.desktop text-perl-print.desktop text-print.desktop \ + text-python-print.desktop text-tcl-print.desktop text-tex-print.desktop text-xml-print.desktop \ + text-xslt-print.desktop + diff --git a/src/servicemenus/Makefile.am.new b/src/servicemenus/Makefile.am.new new file mode 100644 index 0000000..45d121f --- /dev/null +++ b/src/servicemenus/Makefile.am.new @@ -0,0 +1,18 @@ +servicemenusdir = $(kde_datadir)/d3lphin/servicemenus +servicemenus_DATA = compress.desktop amarok_addaspodcast.desktop amarok_append.desktop \ + amarok_play_audiocd.desktop ark_compress.desktop ark_extract.desktop ark_extract_subdir.desktop \ + d3lphin_su.desktop edit_as_root.desktop encryptfile.desktop encryptfolder.desktop \ + floppy_format.desktop imageconverter.desktop installfont.desktop jpegorient.desktop \ + k3b_audiocd_rip.desktop k3b_cd_copy.desktop k3b_create_audio_cd.desktop \ + k3b_create_video_cd.desktop k3b_dvd_copy.desktop k3b_handle_empty_cd.desktop \ + k3b_handle_empty_dvd.desktop k3b_videodvd_rip.desktop k3b_write_bin_image.desktop \ + k3b_write_iso_image.desktop kdesktopSetAsBackground.desktop konqgwenview.desktop \ + konsolehere.desktop mail_as_attachment.desktop media_eject.desktop media_mount.desktop \ + media_realfolder.desktop media_safelyremove.desktop media_unmount.desktop \ + open_in_digikam.desktop run_as_root.desktop smb2rdc.desktop text-ada-print.desktop \ + text-c++-print.desktop text-c++h-print.desktop text-ch-print.desktop text-css-print.desktop \ + text-diff-print.desktop text-html-print.desktop text-java-print.desktop text-log-print.desktop \ + text-makefile-print.desktop text-pas-print.desktop text-perl-print.desktop text-print.desktop \ + text-python-print.desktop text-tcl-print.desktop text-tex-print.desktop text-xml-print.desktop \ + text-xslt-print.desktop + diff --git a/src/servicemenus/amarok_addaspodcast.desktop b/src/servicemenus/amarok_addaspodcast.desktop new file mode 100644 index 0000000..7c61588 --- /dev/null +++ b/src/servicemenus/amarok_addaspodcast.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +ServiceTypes=text/html,text/xml,application/xml,text/rss +Actions=addAsPodcast +[Desktop Action addAsPodcast] +Name=Add as podcast to amaroK +Name[de]=Als Podcast zu amaroK hinzufĂŒgen +Icon=amarok +Exec=dcop amarok playlistbrowser addPodcast %u diff --git a/src/servicemenus/amarok_append.desktop b/src/servicemenus/amarok_append.desktop new file mode 100644 index 0000000..acf3cb0 --- /dev/null +++ b/src/servicemenus/amarok_append.desktop @@ -0,0 +1,96 @@ +[Desktop Entry] +ServiceTypes=application/asx,audio/* +Actions=appendToPlaylist;appendAndPlay;queueTrack; +X-KDE-Submenu=Amarok +X-KDE-Submenu[bn]=àŠ†àŠźàŠŸàŠ°àŠ• +X-KDE-Submenu[pa]=àš…àšźàš°à©‹àš• +X-KDE-Submenu[xx]=xxAmarokxx + +[Desktop Action appendToPlaylist] +Name=Append to Playlist +Name[bg]=Đ”ĐŸĐ±Đ°ĐČŃĐœĐ” ĐșŃŠĐŒ спосъĐșĐ° с ĐżĐ”ŃĐœĐž +Name[bn]=àŠžàŠ™à§àŠ—à§€àŠ€-àŠ€àŠŸàŠČàŠżàŠ•àŠŸàŠ€à§‡ àŠžàŠ‚àŠŻà§‹àŠœàŠš àŠ•àŠ°à§‹ +Name[br]=Ouzhpennañ d'ar roll tonioĂč +Name[cs]=Pƙidat do seznamu skladeb +Name[da]=TilfĂžj til spilleliste +Name[de]=An Amarok-Wiedergabeliste anhĂ€ngen +Name[el]=Î ÏÎżÏƒÎžÎźÎșη στη Î»ÎŻÏƒÏ„Î± Î±ÎœÎ±Ï€Î±ÏÎ±ÎłÏ‰ÎłÎźÏ‚ +Name[et]=Lisa lugude nimekirja +Name[fi]=LisÀÀ soittolistaan +Name[fr]=Ajouter Ă  la liste de lecture +Name[ga]=Iarcheangail le Seinmliosta +Name[it]=Aggiungi alla playlist +Name[ja]=ăƒ—ăƒŹă‚€ăƒȘă‚čăƒˆă«èżœćŠ  +Name[km]=បន្ថែម​ទៅ​ខាង​ចុង​បញ្ជឞចាក់ +Name[nl]=Toevoegen aanafspeellijst +Name[pa]=àšžà©°àš—à©€àš€-àšžà©‚àššà©€ 'àšš àšžàšŒàšŸàšźàšČ +Name[pl]=DoƂącz do listy odtwarzania +Name[pt]=Adicionar Ă  Lista do Amarok +Name[pt_BR]=Anexar Ă  Lista de MĂșsicas +Name[ru]=Đ”ĐŸĐ±Đ°ĐČоть ĐČ ŃĐżĐžŃĐŸĐș +Name[sv]=LĂ€gg till i spellistan +Name[uk]=Đ”ĐŸĐŽĐ°Ń‚Đž ĐŽĐŸ спОсĐșу ĐșĐŸĐŒĐżĐŸĐ·ĐžŃ†Ń–Đč +Name[uz]=ÒšŃžŃˆĐžÒ› рўĐčхатога Ò›ŃžŃˆĐžŃˆ +Name[xx]=xxAppend to Playlistxx +Name[zh_CN]=èżœćŠ ćˆ°æ’­æ”Ÿćˆ—èĄš +Icon=amarok +Exec=amarok -e %U + +[Desktop Action appendAndPlay] +Name=Append & Play +Name[bg]=Đ”ĐŸĐ±Đ°ĐČŃĐœĐ” Đž ĐČŃŠĐ·ĐżŃ€ĐŸĐžĐ·ĐČĐ”Đ¶ĐŽĐ°ĐœĐ” +Name[bn]=àŠžàŠ‚àŠŻà§‹àŠœàŠš àŠ•àŠ°à§‹ àŠàŠŹàŠ‚ àŠŹàŠŸàŠœàŠŸàŠ“ +Name[br]=Ouzhpennañ ha seniñ +Name[cs]=Pƙipojit a hrĂĄt +Name[da]=TilfĂžj og spil +Name[de]=AnhĂ€ngen und abspielen +Name[el]=Î ÏÎżÏƒÎžÎźÎșη & Î±ÎœÎ±Ï€Î±ÏÎ±ÎłÏ‰ÎłÎź +Name[et]=Lisa ja esita +Name[fi]=LisÀÀ soittolistaan ja toista +Name[fr]=Ajouter & Écouter +Name[ga]=Iarcheangail & Seinn +Name[it]=Aggiungi & Riproduci +Name[ja]=èżœćŠ ă—ăŠć†ç”Ÿ +Name[km]=បន្ថែម​ខាង​ចុង & ចាក់ +Name[nl]=Toevoegen en afspelen +Name[pa]=àšœà©‹à©œà©‹ àš…àš€à©‡ àššàšČàšŸàš“ +Name[pl]=DoƂącz i odtwĂłrz +Name[pt]=Adicionar & Reproduzir +Name[pt_BR]=Anexar & Reproduzir +Name[ru]=Đ”ĐŸĐ±Đ°ĐČоть Đž Đ·Đ°ĐżŃƒŃŃ‚ĐžŃ‚ŃŒ +Name[sv]=LĂ€gg till och spela +Name[uk]=Đ”ĐŸĐŽĐ°Ń‚Đž і ĐżŃ€ĐŸĐłŃ€Đ°Ń‚Đž +Name[uz]=ÒšŃžŃˆĐžŃˆ ĐČĐ° ўĐčĐœĐ°Ńˆ +Name[xx]=xxAppend & Playxx +Name[zh_CN]=èżœćŠ ćč¶æ’­æ”Ÿ +Icon=amarok +Exec=dcop amarok playlist playMedia %U + +[Desktop Action queueTrack] +Name=Queue Track +Name[bg]=Đ”ĐŸĐ±Đ°ĐČŃĐœĐ” Đž ĐČŃŠĐ·ĐżŃ€ĐŸĐžĐ·ĐČĐ”Đ¶ĐŽĐ°ĐœĐ” +Name[bn]=àŠ—àŠŸàŠš àŠžàŠŸàŠ°àŠżàŠŹàŠŠà§àŠ§ àŠ•àŠ°à§‹ +Name[cs]=Zaƙadit skladbu +Name[da]=SĂŠt spor i kĂž +Name[de]=StĂŒck in Warteschlange einstellen +Name[el]=ΕÎčÏƒÎ±ÎłÏ‰ÎłÎź Ï„ÎżÏ… ÎșÎżÎŒÎŒÎ±Ï„ÎčÎżÏ στηΜ ÎżÏ…ÏÎŹ +Name[et]=Sea pala jĂ€rjekorda +Name[fi]=LisÀÀ jonoon +Name[fr]=Ajouter Ă  la file d'attente +Name[ga]=CiĂșĂĄil AmhrĂĄn +Name[it]=Accoda traccia +Name[ja]=ăƒˆăƒ©ăƒƒă‚Żă‚’ă‚­ăƒ„ăƒŒ +Name[km]=ដាក់​បទ​ក្នុង​ជវរ +Name[nl]=Track in wachtrij plaatsen +Name[pa]=àšŸàš°à©ˆàš• àš•àš€àšŸàš° 'àšš +Name[pl]=Wstaw utwĂłr do kolejki +Name[pt]=PĂŽr a Faixa na Fila +Name[pt_BR]=Faixa para Fila +Name[ru]=Đ”ĐŸĐ±Đ°ĐČоть ĐżĐŸŃĐ»Đ” Ń‚Đ”ĐșŃƒŃ‰Đ”Đč +Name[sv]=Köa spĂ„r +Name[uk]=Đ”ĐŸĐŽĐ°Ń‚Đž ĐŽĐŸŃ€Ń–Đ¶Đșу ĐČ Ń‡Đ”Ń€ĐłŃƒ +Name[uz]=НаĐČбатга Ò›ŃžĐčОш +Name[xx]=xxQueue Trackxx +Name[zh_CN]=éŸłèœšæŽ’é˜Ÿ +Icon=amarok +Exec=amarok --queue %U diff --git a/src/servicemenus/amarok_play_audiocd.desktop b/src/servicemenus/amarok_play_audiocd.desktop new file mode 100644 index 0000000..4bfa828 --- /dev/null +++ b/src/servicemenus/amarok_play_audiocd.desktop @@ -0,0 +1,49 @@ +[Desktop Entry] +ServiceTypes=media/audiocd +Actions=Play; +Encoding=UTF-8 +X-KDE-Priority=TopLevel + +[Desktop Action Play] +Name=Play Audio CD with Amarok +Name[af]=Speel oudio CD met Amarok +Name[bg]=Đ˜Đ·ĐżŃŠĐ»ĐœĐ”ĐœĐžĐ” ĐœĐ° ĐșĐŸĐŒĐżĐ°ĐșтЮосĐș с Amarok +Name[bn]=àŠ†àŠźàŠŸàŠ°àŠ• àŠŠàŠżà§Ÿà§‡ àŠ…àŠĄàŠżàŠ“ àŠžàŠżàŠĄàŠż àŠšàŠŸàŠČàŠŸàŠ“ +Name[ca]=Reprodueix el CD Àudio amb l'Amarok +Name[cs]=PƙehrĂĄt audio CD +Name[da]=Afspil lyd-cd med Amarok +Name[de]=Audio-CD mit Amarok wiedergeben +Name[el]=Î‘ÎœÎ±Ï€Î±ÏÎ±ÎłÏ‰ÎłÎź CD ÎźÏ‡ÎżÏ… ΌΔ Ï„Îż Amarok +Name[eo]=Ludi Muzikan KD-n per Amarok +Name[es]=Reproducir CD con Amarok +Name[et]=Esita audio CD Amarokis +Name[fa]=ÙŸŰźŰŽ ŰŻÛŒŰłÚ© ÙŰŽŰ±ŰŻÛ€ Ű”ÙˆŰȘی ۚۧ Amarok +Name[fi]=Soita CD-levy Amarokilla +Name[fr]=Écouter un CD Audio avec Amarok +Name[ga]=Seinn DlĂșthdhiosca Fuaime le Amarok +Name[hu]=Hang-CD lejĂĄtszĂĄsa az Amarokkal +Name[is]=Spila tĂłnlistardisk meĂ° Amarok +Name[it]=Riproduci CD audio con Amarok +Name[ja]=Amarok でă‚ȘăƒŒăƒ‡ă‚Łă‚Ș CD を憍生 +Name[km]=áž…áž¶áž€áŸ‹â€‹ážŸáŸŠážžážŒážžâ€‹ážąážŒážŒážžáž™áŸ‰ážŒâ€‹áž‡áž¶â€‹áž˜ážœáž™ Amarok +Name[lt]=Groti audio CD su Amarok +Name[mk]=ĐĄĐČоро Đ°ŃƒĐŽĐžĐŸŃ†ĐŽ ŃĐŸ ĐĐŒĐ°Ń€ĐŸĐș +Name[nds]=Audio-CD mit Amarok afspelen +Name[nl]=Audio-cd met Amarok afspelen +Name[pa]=àš…àšźàš°à©‹àš• àššàšŸàšČ àš†àšĄà©€àš“ CD àššàšČàšŸàš“ +Name[pl]=OdtwĂłrz Audio CD za pomocą Amarok +Name[pt]=Tocar o CD de Áudio com o Amarok +Name[pt_BR]=Reproduzir CD de Áudio com o Amarok +Name[se]=Čuojat jietna-CD:a Amarokain +Name[sk]=ZahraĆ„ Audio CD pomocou Amarok +Name[sr]=Пусто Đ°ŃƒĐŽĐžĐŸ CD ĐżĐŸĐŒĐŸŃ›Ńƒ Amarok-Đ° +Name[sr@Latn]=Pusti audio CD pomoću Amarok-a +Name[sv]=Spela ljud-cd med Amarok +Name[th]=àč€àž„àčˆàž™àž‹àž”àž”àž”àžšàž±àž™àž—àž¶àžàč€àžȘàž”àžąàž‡àž”àč‰àž§àžą Amarok +Name[tr]=Ses CD'sini Amarok ile Çal +Name[uk]=Грато Đ°ŃƒĐŽŃ–ĐŸ-КД ĐČ Amarok +Name[uz]=ĐŃƒĐŽĐžĐŸ-ЎОсĐșĐœĐž Amarok Đ±ĐžĐ»Đ°Đœ Ń‚ĐžĐœĐłĐ»Đ°Ńˆ +Name[wa]=Djouwer l' CD d' muzike avou Amarok +Name[zh_CN]=甹 Amarok æ’­æ”ŸéŸłéą‘ CD +Icon=amarok +Exec=amarok --cdplay %u diff --git a/src/servicemenus/ark_compress.desktop b/src/servicemenus/ark_compress.desktop new file mode 100644 index 0000000..308a450 --- /dev/null +++ b/src/servicemenus/ark_compress.desktop @@ -0,0 +1,21 @@ +[Desktop Entry] +ServiceTypes=inode/directory +Actions=CompressZip;CompressTarGz;CompressTarBz2 +X-KDE-Priority=TopLevel +X-KDE-Submenu=Compress + +[Desktop Action CompressZip] +Name=Zip Archive +Icon=ark +Exec=ark --add-to %u %u.zip + +[Desktop Action CompressTarGz] +Name=Gzipped Tar Archive +Icon=ark +Exec=ark --add-to %u %u.tar.gz + +[Desktop Action CompressTarBz2] +Name=Bzip2 Tar Archive +Icon=ark +Exec=ark --add-to %u %u.tar.bz2 + diff --git a/src/servicemenus/ark_extract.desktop b/src/servicemenus/ark_extract.desktop new file mode 100644 index 0000000..1c54fd6 --- /dev/null +++ b/src/servicemenus/ark_extract.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +X-SuSE-translate=true +Encoding=UTF-8 +ServiceTypes=application/x-gzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak +Actions=extractHere + +[Desktop Action extractHere] +Name=Extract Here +Name[de]=Hierher entpacken +Exec=ark --extract-to %d %u +Icon=ark diff --git a/src/servicemenus/ark_extract_subdir.desktop b/src/servicemenus/ark_extract_subdir.desktop new file mode 100644 index 0000000..9d52df1 --- /dev/null +++ b/src/servicemenus/ark_extract_subdir.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +X-SuSE-translate=true +Encoding=UTF-8 +ServiceTypes=application/x-gzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak +Actions=ExtractSubdir + +[Desktop Action ExtractSubdir] +Name=Extract to subdirectory +Name[de]=In Unterordner entpacken +Icon=ark +Exec=ark -caption "%c" %i %m --guess-name --extract-to "%d" "%u" diff --git a/src/servicemenus/compress.desktop b/src/servicemenus/compress.desktop new file mode 100644 index 0000000..5d199ba --- /dev/null +++ b/src/servicemenus/compress.desktop @@ -0,0 +1,21 @@ +[Desktop Entry] +ServiceTypes=all/allfiles +Actions=CompressZip;CompressTarGz;CompressTarBz2 +X-KDE-Priority=TopLevel +X-KDE-Submenu=Compress + +[Desktop Action CompressZip] +Name=Zip Archive +Icon=ark +Exec=ark --add-to %u %u.zip + +[Desktop Action CompressTarGz] +Name=Gzipped Tar Archive +Icon=ark +Exec=ark --add-to %u %u.tar.gz + +[Desktop Action CompressTarBz2] +Name=Bzip2 Tar Archive +Icon=ark +Exec=ark --add-to %u %u.tar.bz2 + diff --git a/src/servicemenus/d3lphin_su.desktop b/src/servicemenus/d3lphin_su.desktop new file mode 100644 index 0000000..ea6cb55 --- /dev/null +++ b/src/servicemenus/d3lphin_su.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +ServiceTypes=inode/directory +Actions=D3lphinSU; + +[Desktop Action D3lphinSU] +ServiceTypes=inode/directory +Name=Open as Root +Name[de]=Öffne als Root +Name[ru]=ОтĐșрыть ĐżĐŸĐŽ root +Icon=d3lphin +Exec=kdesu -c "d3lphin '%U'" diff --git a/src/servicemenus/edit_as_root.desktop b/src/servicemenus/edit_as_root.desktop new file mode 100644 index 0000000..049454e --- /dev/null +++ b/src/servicemenus/edit_as_root.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +ServiceTypes=text/*,application/x-desktop +Actions=Editassu + +[Desktop Action Editassu] +Name=Edit as Root +Name[it]=Edita come Root +Name[fr]=Editer en tant que Root +Name[es]=Editar como Root +Name[de]=Als root bearbeiten +Icon=kfm +Exec=kdesu "kwrite" "%U" diff --git a/src/servicemenus/encryptfile.desktop b/src/servicemenus/encryptfile.desktop new file mode 100644 index 0000000..797698e --- /dev/null +++ b/src/servicemenus/encryptfile.desktop @@ -0,0 +1,59 @@ +[Desktop Entry] +ServiceTypes=all/allfiles +ExcludeServiceTypes=kdedevice/* +Actions=encrypt + +[Desktop Action encrypt] +Name=Encrypt File +Name[ar]=ŰȘŰŽÙÙŠŰ± ملف +Name[bg]=ĐšĐžŃ„Ń€ĐŸĐČĐ°ĐœĐ” ĐœĐ° фаĐčĐ» +Name[bs]=Ć ifriraj datoteku +Name[ca]=Xifra fitxer +Name[cs]=ZaĆĄifrovat soubor +Name[cy]=CĂȘl-ysgrifo Ffeil +Name[da]=Indkod fil +Name[de]=Datei verschlĂŒsseln +Name[el]=ÎšÏÏ…Ï€Ï„ÎżÎłÏÎŹÏ†Î·ÏƒÎ· Î±ÏÏ‡Î”ÎŻÎżÏ… +Name[es]=Cifrar archivo +Name[et]=KrĂŒpti fail +Name[eu]=Fitxategiak Zifratu +Name[fa]=Ű±Ù…ŰČŰšÙ†ŰŻÛŒ ÙŸŰ±ÙˆÙ†ŰŻÙ‡ +Name[fi]=Salaa tiedosto +Name[fr]=Chiffrer le fichier +Name[ga]=Criptigh Comhad +Name[he]=Ś”ŚŠŚ€ŚŸ Ś§Ś•Ś‘Ś„ +Name[hi]=à€à€šà€•à„à€°à€żà€Șà„à€Ÿ à€«à€Œà€Ÿà€‡à€Č +Name[hu]=FĂĄjl titkosĂ­tĂĄsa +Name[is]=Dulrita skrĂĄ +Name[it]=Cifratura file +Name[ja]=ăƒ•ă‚Ąă‚€ăƒ«ă‚’æš—ć·ćŒ– +Name[kk]=ЀаĐčлЎы ŃˆĐžŃ„Ń€Đ»Đ°Ńƒ +Name[km]=ážąáŸŠáž·áž“áž‚áŸ’ážšážžáž”â€‹ážŻáž€ážŸáž¶ážš +Name[lt]=Ć ifruoti bylą +Name[mk]=Кропторај ĐŽĐ°Ń‚ĐŸŃ‚Đ”ĐșĐž +Name[nb]=Krypter fil +Name[nds]=Dateiverslöteln +Name[ne]=à€«à€Ÿà€‡à€Č à€—à„à€Șà„à€€à„€à€•à€°à€Ł à€—à€°à„à€šà„à€čà„‹à€žà„ +Name[nl]=Bestand versleutelen +Name[nn]=Krypter fil +Name[pa]=àš‡à©°àš•àš°àšżàšȘàšŸ àš«àšŸàš‡àšČ +Name[pl]=Zaszyfruj plik +Name[pt]=Cifrar Ficheiro +Name[pt_BR]=Criptografar Arquivo +Name[ro]=Criptează fiƟierul +Name[ru]=Đ—Đ°ŃˆĐžŃ„Ń€ĐŸĐČать фаĐčĐ» +Name[sk]=Ć ifrovaĆ„ sĂșbor +Name[sl]=Ć ifriraj datoteko +Name[sr]=йофруј Ń„Đ°Ń˜Đ» +Name[sr@Latn]=Ć ifruj fajl +Name[sv]=Kryptera fil +Name[ta]=àźšàź™àŻàź•àŻ‡àź€ àź•àŻ‹àźȘàŻàźȘàŻ +Name[tg]=Đ Đ°ĐŒĐ·ĐșŃƒĐœĐŸĐœĐžĐž ЀаĐčĐ» +Name[tr]=Dosya ƞifrele +Name[uk]=ЗашофруĐČато фаĐčĐ» +Name[wa]=Ecripter fitchĂź +Name[zh_CN]=ćŠ ćŻ†æ–‡ä»¶ +Name[zh_TW]=抠毆æȘ”æĄˆ +Icon=kgpg +Exec=kgpg -e %F + diff --git a/src/servicemenus/encryptfolder.desktop b/src/servicemenus/encryptfolder.desktop new file mode 100644 index 0000000..b322b64 --- /dev/null +++ b/src/servicemenus/encryptfolder.desktop @@ -0,0 +1,50 @@ +[Desktop Entry] +ServiceTypes=inode/directory +Actions=encrypt + +[Desktop Action encrypt] +Name=Archive & Encrypt Folder +Name[ar]=ŰŁŰ±ŰŽÙŰ© و ŰȘŰŽÙÙŠŰ± Ù…ŰŹÙ„Ù‘ŰŻ +Name[bg]=АрхоĐČĐžŃ€Đ°ĐœĐ” Đž ŃˆĐžŃ„Ń€ĐŸĐČĐ°ĐœĐ” ĐœĐ° ЎОрДĐșŃ‚ĐŸŃ€ĐžŃ +Name[bs]=Arhiviraj i ĆĄifriraj direktorij +Name[ca]=Arxiva i xifra la carpeta +Name[cs]=Archivovat a zaĆĄifrovat sloĆŸku +Name[da]=ArkivĂ©r & kryptĂ©r mappe +Name[de]=Ordner packen und verschlĂŒsseln +Name[el]=ΑρχΔÎčÎżÎžÎ­Ï„Î·ÏƒÎ· & ÎșÏÏ…Ï€Ï„ÎżÎłÏÎŹÏ†Î·ÏƒÎ· φαÎșÎ­Î»ÎżÏ… +Name[es]=Archivar y cifrar carpeta +Name[et]=Arhiveeri ja krĂŒpti kataloog +Name[eu]=Artxibatu eta enkriptatu karpeta +Name[fa]=ŰšŰ§ÛŒÚŻŰ§Ù†ÛŒ و Ű±Ù…ŰČŰšÙ†ŰŻÛŒ ÙŸÙˆŰŽÙ‡ +Name[fi]=Pakkaa ja salaa kansio +Name[fr]=Archiver puis chiffrer le dossier +Name[ga]=Cuir FillteĂĄn i gCartlann & Criptigh É +Name[he]=Ś›ŚœŚ™ ŚœŚ”ŚŠŚ€Ś Ś” Ś•Ś›Ś™Ś•Ś•Ś„ ŚȘŚ§Ś™Ś™Ś” +Name[hu]=KönyvtĂĄr titkosĂ­tĂĄsa Ă©s archivĂĄlĂĄsa +Name[is]=Pakka og dulrita möppu +Name[it]=Archivia e cifra cartella +Name[ja]=ăƒ•ă‚©ăƒ«ăƒ€ă‚’ă‚ąăƒŒă‚«ă‚€ăƒ–ćŒ– & æš—ć·ćŒ– +Name[kk]=ÒšĐ°ĐżŃˆŃ‹Ò›Ń‚Ń‹ архоĐČтДп ŃˆĐžŃ„Ń€Đ»Đ°Ńƒ +Name[km]=ថត​ប័ណ្ណសារ & ážąáŸŠáž·áž“áž‚áŸ’ážšážžáž” +Name[lt]=Archyvuoti ir ĆĄifruoti aplanką +Name[nb]=Arkiver og krypter mappe +Name[nds]=Ornern komprimeren un verslöteln +Name[ne]=à€«à„‹à€Čà„à€Ąà€°à€Čà€Ÿà€ˆ à€žà€™à„à€—à„à€°à€č à€° à€—à„à€Șà„à€€à„€à€•à€°à€Ł à€—à€°à„à€šà„à€čà„‹à€žà„ +Name[nl]=Map archiveren en versleutelen +Name[nn]=Arkiver og krypter mappe +Name[pa]=àš†àš•à©€àš”à©€ & àš‡à©°àš•àš°àšżàšȘàšŸ àš«à©‹àšČàšĄàš° +Name[pl]=Zarchiwizuj i zaszyfruj katalog +Name[pt]=Arquivar e Cifrar a Pasta +Name[pt_BR]=Arquivar & Criptografar Pasta +Name[ru]=АрхоĐČĐžŃ€ĐŸĐČать Đž Đ·Đ°ŃˆĐžŃ„Ń€ĐŸĐČать папĐșу +Name[sk]=ArchivovaĆ„ a ĆĄifrovaĆ„ priečinok +Name[sl]=Arhiviranje in ĆĄi&friranje imenika +Name[sr]=АрхоĐČорај Đž шофруј фасцоĐșлу +Name[sr@Latn]=Arhiviraj i ĆĄifruj fasciklu +Name[sv]=Arkivera och kryptera katalog +Name[tr]=ArƟiv ve Klasör ƞifrele +Name[uk]=Đ—Ń€ĐŸĐ±ĐžŃ‚Đž архіĐČ Ń‚Đ”ĐșĐž і Đ·Đ°ŃˆĐžŃ„Ń€ŃƒĐČато +Name[zh_CN]=ć­˜æĄŁćč¶ćŠ ćŻ†æ–‡ä»¶ć€č +Name[zh_TW]=ćŁ“çžźäžŠćŠ ćŻ†èł‡æ–™ć€Ÿ +Icon=kgpg +Exec=kgpg -e %F diff --git a/src/servicemenus/floppy_format.desktop b/src/servicemenus/floppy_format.desktop new file mode 100644 index 0000000..b175347 --- /dev/null +++ b/src/servicemenus/floppy_format.desktop @@ -0,0 +1,36 @@ +[Desktop Action Format] +Exec=kfloppy %u +Icon=kfloppy +Name=Format +Name[bg]=Đ€ĐŸŃ€ĐŒĐ°Ń‚ĐžŃ€Đ°ĐœĐ” +Name[br]=Furmadiñ +Name[ca]=Dona format +Name[cs]=FormĂĄtovat +Name[cy]=Fformat +Name[de]=Formatieren +Name[eo]=Formato +Name[es]=Formatear +Name[fr]=Formater +Name[ga]=FormĂĄid +Name[it]=Formatta +Name[ja]=ăƒ•ă‚©ăƒŒăƒžăƒƒăƒˆ +Name[lt]=Formatas +Name[nl]=Formatteren +Name[pa]=àš«àšŸàš°àšźàšżàšŸ +Name[pl]=Formatuj +Name[pt]=Formatar +Name[pt_BR]=Formatar +Name[ru]=Đ€ĐŸŃ€ĐŒĐ°Ń‚ĐžŃ€ĐŸĐČĐ°ĐœĐžĐ” ЎОсĐșДт +Name[rw]=Imiterere +Name[sr]=Đ€ĐŸŃ€ĐŒĐ°Ń‚ĐžŃ€Đ°Ń˜ +Name[sr@Latn]=Formatiraj +Name[sv]=Formatera +Name[uk]=Đ€ĐŸŃ€ĐŒĐ°Ń‚ŃƒĐČĐ°ĐœĐœŃ +Name[xx]=xxFormatxx +Name[zh_CN]=æ ŒćŒćŒ– + +[Desktop Entry] +Actions=Format; +ServiceTypes=media/floppy_unmounted,media/floppy5_unmounted +X-KDE-Priority=TopLevel +X-KDE-MediaNotifierHide=true diff --git a/src/servicemenus/imageconverter.desktop b/src/servicemenus/imageconverter.desktop new file mode 100644 index 0000000..941a20b --- /dev/null +++ b/src/servicemenus/imageconverter.desktop @@ -0,0 +1,61 @@ +# +# Servicemenu image converter, by Jens Benecke . +# Released under the same license as the KDE core distribution (GPL 2.0). +# +[Desktop Entry] +ServiceTypes=image/* +Actions=convToJPEG;convToPNG;convToGIF;convToTIF; +X-KDE-Submenu=Convert To +X-KDE-Submenu[bg]=ĐšĐŸĐœĐČĐ”Ń€Ń‚ĐžŃ€Đ°ĐœĐ” ĐČ +X-KDE-Submenu[ca]=Converteix a +X-KDE-Submenu[cs]=PƙevĂ©st na +X-KDE-Submenu[da]=KonvertĂ©r til +X-KDE-Submenu[de]=Konvertieren nach +X-KDE-Submenu[es]=Convertir a +X-KDE-Submenu[fi]=Muunna +X-KDE-Submenu[fr]=Convertir en +X-KDE-Submenu[hu]=ÁtalakĂ­tĂĄs +X-KDE-Submenu[is]=Umbreyta Ă­ +X-KDE-Submenu[it]=Converti in +X-KDE-Submenu[nb]=Konverter til +X-KDE-Submenu[nl]=Converteren naar +X-KDE-Submenu[pl]=Konwertuj do +X-KDE-Submenu[pt]=Converter Para +X-KDE-Submenu[pt_BR]=Converter Para +X-KDE-Submenu[ru]=ĐĄĐŸŃ…Ń€Đ°ĐœĐžŃ‚ŃŒ ĐșĐ°Đș +X-KDE-Submenu[sr]=ĐŸŃ€Đ”Ń‚ĐČĐŸŃ€Đž у +X-KDE-Submenu[sr@Latn]=Pretvori u +X-KDE-Submenu[sv]=Konvertera till +X-KDE-Submenu[uk]=ĐŸĐ”Ń€Đ”Ń‚ĐČĐŸŃ€ĐžŃ‚Đž ĐČ +X-KDE-Submenu[xx]=xxConvert Toxx +X-KDE-Submenu[zh_CN]=èœŹæąäžș +TryExec=convert + +[Desktop Action convToJPEG] +Name=JPEG +Name[hi]=à€œà„‡à€Șà„€à€ˆà€œà„€ +Name[xx]=xxJPEGxx +Icon=image +Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.jpg" + +[Desktop Action convToPNG] +Name=PNG +Name[hi]=à€Șà„€à€à€šà€œà„€ +Name[xx]=xxPNGxx +Icon=image +Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.png" + +[Desktop Action convToTIF] +Name=TIF +Name[hi]=à€Ÿà€żà€«à€Œ +Name[xx]=xxTIFxx +Icon=image +Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.tif" + +[Desktop Action convToGIF] +Name=GIF +Name[hi]=à€œà€żà€«à€Œ +Name[xx]=xxGIFxx +Icon=image +Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.gif" + diff --git a/src/servicemenus/installfont.desktop b/src/servicemenus/installfont.desktop new file mode 100644 index 0000000..3ca14fa --- /dev/null +++ b/src/servicemenus/installfont.desktop @@ -0,0 +1,143 @@ +[Desktop Entry] +ServiceTypes=application/x-font-ttf,application/x-font-type1,application/x-font-speedo,application/x-font-bdf,application/x-font-pcf,application/x-font-snf,application/x-font-otf,application/x-font-ttc,application/x-afm +Actions=installFont; + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action installFont] +Name=Install +Name[af]=Installeer +Name[be]=ĐŁŃŃ‚Đ°Đ»ŃĐČаць +Name[bg]=Đ˜ĐœŃŃ‚Đ°Đ»ĐžŃ€Đ°ĐœĐ” +Name[bn]=àŠ‡àŠšàŠžà§àŠŸàŠČ +Name[br]=Staliañ +Name[bs]=Instaliraj +Name[ca]=Instal·la +Name[cs]=Instalovat +Name[cy]=Gosod +Name[da]=InstallĂ©r +Name[de]=Installieren +Name[el]=ΕγÎșÎ±Ï„ÎŹÏƒÏ„Î±ÏƒÎ· +Name[eo]=Instalu +Name[es]=Instalar +Name[et]=Paigaldamine +Name[eu]=Instalatu +Name[fa]=Ù†Ű”Űš +Name[fi]=Asenna +Name[fr]=Installer +Name[fy]=Ynstallearje +Name[ga]=SuiteĂĄil +Name[gl]=Instalar +Name[he]=Ś”ŚȘŚ§Ś Ś” +Name[hi]=à€žà€‚à€žà„à€„à€Ÿà€Șà€żà€€ +#SUSE-Overwrite Name[hr]=Instaliraj +Name[hu]=TelepĂ­tƑ +Name[is]=Setja upp +Name[it]=Installa +Name[ja]=ă‚€ăƒłă‚čăƒˆăƒŒăƒ« +Name[km]=ážŠáŸ†ážĄážŸáž„ +Name[lt]=Äźdiegti +Name[lv]=Instalēt +Name[mk]=Đ˜ĐœŃŃ‚Đ°Đ»ĐžŃ€Đ°Ń˜ +Name[ms]=Pasang +Name[mt]=Installa +Name[nb]=Installer +Name[nds]=Installeren +Name[nl]=Installeren +Name[nn]=Installer +Name[pa]=àš‡à©°àšžàšŸàšŸàšČ +#SUSE-Overwrite Name[pl]=Instaluj +Name[pl]=Zainstaluj +Name[pt]=Instalar +Name[pt_BR]=Instalar +Name[ro]=Instalare +Name[ru]=ĐŁŃŃ‚Đ°ĐœĐŸĐČĐșĐ° +Name[rw]=Kwinjizaporogaramu +Name[se]=SajĂĄiduhte +Name[sk]=InĆĄtalĂĄcia +Name[sl]=Namesti +Name[sr]=Đ˜ĐœŃŃ‚Đ°Đ»ĐžŃ€Đ°Ń˜ +Name[sr@Latn]=Instaliraj +Name[sv]=Installera +Name[ta]=àźšàźżàź±àŻàź”àźż +Name[tg]=Đ“ŃƒĐ·ĐŸŃˆŃ‚Đ°Đœ +Name[th]=àž•àžŽàž”àž•àž±àč‰àž‡ +Name[tr]=Kur +Name[tt]=Quyu +Name[uk]=Đ’ŃŃ‚Đ°ĐœĐŸĐČĐ»Đ”ĐœĐœŃ +Name[uz]=ĐŽŃ€ĐœĐ°Ń‚ĐžŃˆ +#SUSE-Overwrite Name[vi]=CĂ i đáș·t +Name[zh_CN]=ćź‰èŁ… +Name[zh_TW]=ćź‰èŁ +Icon=fonts +Exec=kfmclient copy %U fonts:/ + diff --git a/src/servicemenus/isoservice.desktop b/src/servicemenus/isoservice.desktop new file mode 100644 index 0000000..4b86111 --- /dev/null +++ b/src/servicemenus/isoservice.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Encoding=UTF-8 +Actions=OpenISO +ServiceTypes=inode/blockdevice,application/x-iso + +[Desktop Action OpenISO] +Comment=ISO9660 View +Comment[hu]=ISO9660 NĂ©zet +Comment[fr]=Lecteur ISO9660 +Icon=cd +Name=ISO9660 View +Name[hu]=ISO9660 NĂ©zet +Name[fr]=Lecteur ISO9660 diff --git a/src/servicemenus/jpegorient.desktop b/src/servicemenus/jpegorient.desktop new file mode 100644 index 0000000..5b25d24 --- /dev/null +++ b/src/servicemenus/jpegorient.desktop @@ -0,0 +1,222 @@ +[Desktop Entry] +ServiceTypes=image/jpeg +Actions=jpegRot90;jpegRot270;jpegFlipV;jpegFlipH; +X-KDE-Submenu=Transform Image +X-KDE-Submenu[bg]=ĐšĐŸĐœĐČĐ”Ń€Ń‚ĐžŃ€Đ°ĐœĐ” ĐœĐ° ĐžĐ·ĐŸĐ±Ń€Đ°Đ¶Đ”ĐœĐžĐ”Ń‚ĐŸ +X-KDE-Submenu[ca]=Transforma la imatge +X-KDE-Submenu[cs]=PƙevĂ©st obrĂĄzek +X-KDE-Submenu[da]=TransformĂ©r billede +X-KDE-Submenu[de]=Bild transformieren +X-KDE-Submenu[es]=Transformar imagen +X-KDE-Submenu[fi]=Muuta kuva +X-KDE-Submenu[fr]=Transformer l'image +X-KDE-Submenu[hu]=KĂ©pĂĄtalakĂ­tĂĄs +X-KDE-Submenu[is]=Ummynda +X-KDE-Submenu[it]=Trasforma immagine +X-KDE-Submenu[nb]=Transformer bilde +X-KDE-Submenu[nl]=Afbeelding transformeren +X-KDE-Submenu[pl]=PrzeksztaƂć obrazek +X-KDE-Submenu[pt]=Transformar a Imagem +X-KDE-Submenu[pt_BR]=Transformar Imagem +X-KDE-Submenu[ru]=ĐŸŃ€Đ”ĐŸĐ±Ń€Đ°Đ·ĐŸĐČать +X-KDE-Submenu[sr]=ĐąŃ€Đ°ĐœŃŃ„ĐŸŃ€ĐŒĐžŃˆĐž слОĐșу +X-KDE-Submenu[sr@Latn]=TransformiĆĄi sliku +X-KDE-Submenu[sv]=Ändra bild +X-KDE-Submenu[uk]=ĐŸĐ”Ń€Đ”Ń‚ĐČĐŸŃ€ĐžŃ‚Đž Đ·ĐŸĐ±Ń€Đ°Đ¶Đ”ĐœĐœŃ +X-KDE-Submenu[xx]=xxTransform Imagexx +X-KDE-Submenu[zh_CN]=ć›Ÿćƒć˜ćœą +X-KDE-Require=Write + +[Desktop Action jpegRot90] +Name=Rotate Clockwise +Name[ar]=ŰȘŰŻÙˆÙŠŰ± في ۧŰȘŰŹŰ§Ù‡ Ű§Ù„ŰłŰ§ŰčŰ© +Name[az]=Saat Əqrəbi Ä°stiqamətində Fırlat +Name[bg]=ЗаĐČŃŠŃ€Ń‚Đ°ĐœĐ” ĐżĐŸ ĐżĐŸŃĐŸĐșĐ° ĐœĐ° Ń‡Đ°ŃĐŸĐČ. стрДлĐșĐ° +Name[ca]=Gira 90 graus +Name[cs]=Rotovat ve směru hod. ručiček +Name[cy]=Cylchdroi yn Glocwedd +Name[da]=RotĂ©r med uret +Name[de]=Im Uhrzeigersinn drehen (nach rechts) +Name[el]=ΠΔρÎčÏƒÏ„ÏÎżÏ†Îź ΎΔΟÎčÏŒÏƒÏ„ÏÎżÏ†Î± +Name[es]=Girar en el sentido de las agujas del reloj +Name[et]=Pööra pĂ€ripĂ€eva +Name[eu]=Biratu erloju orratzen norabidean +Name[fi]=KÀÀnnĂ€ myötĂ€pĂ€ivÀÀn +Name[fr]=Tourner en sens horaire +Name[ga]=Rothlaigh go Deisealach +Name[he]=ŚĄŚ•Ś‘Ś‘ ŚąŚ Ś›Ś™Ś•Ś•ŚŸ Ś”Ś©ŚąŚ•ŚŸ +Name[hi]=à€˜à€Ąà€Œà„€ à€•à„€ à€Šà€żà€¶à€Ÿ à€źà„‡à€‚ à€˜à„à€źà€Ÿà€à€ +Name[hu]=ForgatĂĄs jobbra +Name[is]=SnĂșa rĂ©ttsĂŠlis +Name[it]=Ruota in senso orario +Name[ja]=ćłć›žă‚Šă«ć›žè»ąă—ăŸă™ +Name[nb]=Roter medurs +Name[nl]=Klokgewijs draaien +Name[nn]=Roter med klokka +Name[pa]=àšžà©±àšœàšŸ àšŠàšŸàš… àš˜à©à©°àšźàšŸàš‰ +Name[pl]=Obróć zgodnie z ruchem wskazĂłwek zegara +Name[pt]=Rodar no Sentido HorĂĄrio +Name[pt_BR]=Rodar RelĂłgio Sentido HorĂĄrio +Name[ro]=RoteƟte la dreapta +Name[ru]=ĐŸĐŸĐČĐ”Ń€ĐœŃƒŃ‚ŃŒ ĐżĐŸ Ń‡Đ°ŃĐŸĐČĐŸĐč стрДлĐșĐ” +Name[sk]=OtočiĆ„ v smere hodinovĂœch ručičiek +Name[sl]=Zasuči v smeri urinega kazalca +Name[sr]=Đ ĐŸŃ‚ĐžŃ€Đ°Ń˜ у ŃĐŒĐ”Ń€Ńƒ ĐșĐ°Đ·Đ°Ń™ĐșĐ” ĐœĐ° Ń‡Đ°ŃĐŸĐČĐœĐžĐșу +Name[sr@Latn]=Rotiraj u smeru kazaljke na časovniku +Name[sv]=Rotera medurs +Name[ta]=àź”àźČàź€àŻàźȘàŻàź±àźźàźŸàź• àźšàŻàźŽàź±àŻàź±àŻ +Name[tg]=Чархош Đ±ĐŸ Đ°Ò›Ń€Đ°Đ±Đ°ĐșĐž ŃĐŸĐ°Ń‚ +Name[tr]=Saat YönĂŒnde DöndĂŒrme +Name[uk]=ĐžĐ±Đ”Ń€ĐœŃƒŃ‚Đž Đ·Đ° ĐłĐŸĐŽĐžĐœĐœĐžĐșĐŸĐČĐŸŃŽ стрілĐșĐŸŃŽ +Name[uz]=ĐĄĐŸĐ°Ń‚ Đșўрсатгочо бўĐčоча Đ°ĐčĐ»Đ°ĐœŃ‚ĐžŃ€ĐžŃˆ +Name[xx]=xxRotate Clockwisexx +Name[zh_CN]=éĄșæ—¶é’ˆæ—‹èœŹ +Icon=rotate_cw +Exec=jpegorient +90 %F + +[Desktop Action jpegRot270] +Name=Rotate Counter-Clockwise +Name[ar]=ŰȘŰŻÙˆÙŠŰ± ŰčÙƒŰł ۧŰȘŰŹŰ§Ù‡ Ű§Ù„ŰłŰ§ŰčŰ© +Name[az]=Saat Əqrəbinə Tərs Ä°stiqamətdə Fırlat +Name[bg]=ЗаĐČŃŠŃ€Ń‚Đ°ĐœĐ” ĐŸĐ±Ń€Đ°Ń‚ĐœĐŸ ĐœĐ° Ń‡Đ°ŃĐŸĐČ. стрДлĐșĐ° +Name[ca]=Gira 270 graus +Name[cs]=Rotovat proti směru hod. ručiček +Name[cy]=Cylchdroi yn Wrthglocwedd +Name[da]=RotĂ©r mod uret +Name[de]=Gegen den Uhrzeigersinn drehen (nach links) +Name[el]=ΠΔρÎčÏƒÏ„ÏÎżÏ†Îź αρÎčÏƒÏ„Î”ÏÏŒÏƒÏ„ÏÎżÏ†Î± +Name[en_GB]=Rotate Anti-Clockwise +Name[es]=Girar en el sentido contrario a las agujas del reloj +Name[et]=Pööra vastupĂ€eva +Name[eu]=Biratu erloju orratzen aurkako norabidean +Name[fi]=KÀÀnnĂ€ vastapĂ€ivÀÀn +Name[fr]=Tourner en sens anti-horaire +Name[ga]=Rothlaigh go Tuathalach +Name[he]=ŚĄŚ•Ś‘Ś‘ Ś Ś’Ś“ Ś›Ś™Ś•Ś•ŚŸ Ś”Ś©ŚąŚ•ŚŸ +Name[hi]=à€˜à€Ąà€Œà„€ à€•à„€ à€‰à€Čà€Ÿà„€ à€Šà€żà€¶à€Ÿ à€źà„‡à€‚ à€˜à„à€źà€Ÿà€à€ +Name[hu]=ForgatĂĄs balra +Name[is]=SnĂșa rangsĂŠlis +Name[it]=Ruota in senso anti-orario +Name[ja]=ć·Šć›žă‚Šă«ć›žè»ąă—ăŸă™ +Name[nb]=Roter moturs +Name[nl]=Anti-klokgewijs draaien +Name[nn]=Roter mot klokka +Name[pa]=àš–à©±àšŹà©‡ àšŠàšŸàš… àš˜à©à©°àšźàšŸàš“ +Name[pl]=Obróć przeciwnie do ruchu wskazĂłwek zegara +Name[pt]=Rodar no Sentido Anti-horĂĄrio +Name[pt_BR]=Rodar Contador de RelĂłgio +Name[ro]=RoteƟte la stĂźnga +Name[ru]=ĐŸĐŸĐČĐ”Ń€ĐœŃƒŃ‚ŃŒ ĐżŃ€ĐŸŃ‚ĐžĐČ Ń‡Đ°ŃĐŸĐČĐŸĐč стрДлĐșĐž +Name[sk]=OtočiĆ„ proti smeru hodinovĂœch ručičiek +Name[sl]=Zasuči v nasportni smeri urinega kazalca +Name[sr]=Đ ĐŸŃ‚ĐžŃ€Đ°Ń˜ ŃŃƒĐżŃ€ĐŸŃ‚ĐœĐŸ ŃĐŒĐ”Ń€Ńƒ ĐșĐ°Đ·Đ°Ń™ĐșĐ” ĐœĐ° Ń‡Đ°ŃĐŸĐČĐœĐžĐșу +Name[sr@Latn]=Rotiraj suprotno smeru kazaljke na časovniku +Name[sv]=Rotera moturs +Name[ta]=àź•àźŸàźżàź•àźŸàź° àź“àźŸàŻàźŸàź€àŻàź€àźżàź±àŻàź•àŻ†àź€àźżàź°àźŸàź• àźšàŻàźŽàź±àŻàź±àŻ +Name[tg]=Чархош ба ĐŒŃƒÒ›ĐŸĐ±ĐžĐ»Đž Đ°Ò›Ń€Đ°Đ±Đ°ĐșĐž ŃĐŸĐ°Ń‚ +Name[tr]=Sayacı Saat YönĂŒnde DöndĂŒrme +Name[uk]=ĐžĐ±Đ”Ń€ĐœŃƒŃ‚Đž ĐżŃ€ĐŸŃ‚Đž ĐłĐŸĐŽĐžĐœĐœĐžĐșĐŸĐČĐŸŃ— стрілĐșĐž +Name[uz]=ĐĄĐŸĐ°Ń‚ Đșўрсатгочога Ò›Đ°Ń€ŃˆĐž Đ°ĐčĐ»Đ°ĐœŃ‚ĐžŃ€ĐžŃˆ +Name[xx]=xxRotate Counter-Clockwisexx +Name[zh_CN]=é€†æ—¶é’ˆæ—‹èœŹ +Icon=rotate_ccw +Exec=jpegorient +270 %F + +#[Desktop Action jpegRot180] +#Name=Rotate 180 +#Icon=misc +#Exec=jpegorient +180 %F + +[Desktop Action jpegFlipV] +Name=Flip Vertically +Name[ar]=ŰȘŰŻÙˆÙŠŰ± Ű±ŰŁŰłÙŠ +Name[az]=ƞaquli Olaraq Çevir +Name[bg]=ВДртОĐșĐ°Đ»ĐœĐŸ ĐŸĐ±Ń€ŃŠŃ‰Đ°ĐœĐ” +Name[ca]=Torna vertical +Name[cs]=PƙevrĂĄtit svisle +Name[cy]=Troi Drosodd yn Fertigol +Name[da]=Flip lodret +Name[de]=Vertikal kippen +Name[el]=Î‘ÎœÎ±ÏƒÏ„ÏÎżÏ†Îź ÎșαταÎșόρυφα +Name[es]=Reflejar verticalmente +Name[et]=Keera ĂŒmber vertikaalselt +Name[eu]=Buruz behera ipini +Name[fi]=KÀÀnnĂ€ pystysuorassa +Name[fr]=Retourner verticalement +Name[ga]=Smeach go hIngearach +Name[he]=Ś©Ś§ŚŁ ŚŚ Ś›Ś™ŚȘ +Name[hi]=à€–à€Ąà€Œà€Ÿ à€Șà€Čà€Ÿà„‡à€‚ +Name[hu]=TĂŒkrözĂ©s fĂŒggƑlegesen +Name[is]=SnĂșa viĂ° um miĂ°ju lóðrĂ©tt +Name[it]=Fletti verticalmente +Name[ja]=義ぼフăƒȘップ +Name[nb]=Speilvend loddrett +Name[nl]=Verticaal omdraaien +Name[nn]=Snu loddrett +Name[pa]=àšČà©°àšŹàš•àšŸàš°à©€ àšàšŸàš•à©‹ +Name[pl]=Odwróć pionowo +Name[pt]=Trocar Verticalmente +Name[pt_BR]=Refletir Verticalmente +Name[ro]=Întoarce pe verticală +Name[ru]=ĐžŃ‚Ń€Đ°Đ·ĐžŃ‚ŃŒ ĐČДртОĐșĐ°Đ»ŃŒĐœĐŸ +Name[sk]=PreklopiĆ„ vertikĂĄlne +Name[sl]=Obrni navpično +Name[sr]=ĐŸŃ€Đ”ĐČŃ€ĐœĐž успраĐČĐœĐŸ +Name[sr@Latn]=Prevrni uspravno +Name[sv]=VĂ€nd vertikalt +Name[ta]=àźźàŻ‡àźČàŻàź•àŻ€àźŽàźŸàź• àź€àźżàź°àŻàźȘàŻàźȘàŻ +Name[tg]=Đ‘Đ°Ń€ĐłĐ°Ń€ĐŽĐŸĐœĐŽĐ°Đœ ба Đ°ĐŒŃƒĐŽÓŁ +Name[tr]=Dik Olarak Dağıtma +Name[uk]=ĐŸĐ”Ń€Đ”ĐșĐžĐœŃƒŃ‚Đž ĐČДртОĐșĐ°Đ»ŃŒĐœĐŸ +Name[uz]=Đ­ĐœĐž бўĐčоча Đ°ĐčĐ»Đ°ĐœŃ‚ĐžŃ€ĐžŃˆ +Name[xx]=xxFlip Verticallyxx +Name[zh_CN]=äžŠäž‹çż»èœŹ +Icon=2uparrow +Exec=jpegorient v %F + +[Desktop Action jpegFlipH] +Name=Flip Horizontally +Name[ar]=ŰȘŰŻÙˆÙŠŰ± ŰŁÙÙ‚ÙŠ +Name[az]=ÜfĂŒqi Olaraq Çevir +Name[bg]=Đ„ĐŸŃ€ĐžĐ·ĐŸĐœŃ‚Đ°Đ»ĐœĐŸ ĐŸĐ±Ń€ŃŠŃ‰Đ°ĐœĐ” +Name[ca]=Torna horitzontal +Name[cs]=PƙevrĂĄtit vodorovně +Name[cy]=Troi Drosodd yn Llorweddol +Name[da]=Flip vandret +Name[de]=Horizontal kippen +Name[el]=Î‘ÎœÎ±ÏƒÏ„ÏÎżÏ†Îź ÎżÏÎčζόΜτÎčα +Name[es]=Reflejar horizontalmente +Name[et]=Keera ĂŒmber horisontaalselt +Name[eu]=Biratu horizontalki +Name[fi]=KÀÀnnĂ€ vaakasuorassa +Name[fr]=Retourner horizontalement +Name[ga]=Smeach go CothromĂĄnach +Name[he]=Ś©Ś§ŚŁ ŚŚ•Ś€Ś§Ś™ŚȘ +Name[hi]=à€†à€Ąà€Œà€Ÿ à€Șà€Čà€Ÿà„‡à€‚ +Name[hu]=TĂŒkrözĂ©s vĂ­zszintesen +Name[is]=SnĂșa viĂ° um miĂ°ju lĂĄrĂ©tt +Name[it]=Fletti orizzontalmente +Name[ja]=æ°Žćčłă«ăƒ•ăƒȘップ +Name[nb]=Speilvend vannrett +Name[nl]=Horizontaal omdraaien +Name[nn]=Snu vassrett +Name[pa]=àš–àšżàš€àšżàšœà©€ àšàšŸàš•à©‹ +Name[pl]=Odwróć poziomo +Name[pt]=Trocar Horizontalmente +Name[pt_BR]=Refletir Horizontalmente +Name[ro]=Întoarce pe orizontală +Name[ru]=ĐžŃ‚Ń€Đ°Đ·ĐžŃ‚ŃŒ ĐłĐŸŃ€ĐžĐ·ĐŸĐœŃ‚Đ°Đ»ŃŒĐœĐŸ +Name[sk]=PreklopiĆ„ horizontĂĄlne +Name[sl]=Obrni vodoravno +Name[sr]=ĐŸŃ€Đ”ĐČŃ€ĐœĐž ĐČĐŸĐŽĐŸŃ€Đ°ĐČĐœĐŸ +Name[sr@Latn]=Prevrni vodoravno +Name[sv]=VĂ€nd horisontellt +Name[ta]=àź‡àźŸàźźàŻàź”àźČàźźàźŸàź• àź€àźżàź°àŻàźȘàŻàźȘàŻàź• +Name[tg]=Đ‘Đ°Ń€ĐłĐ°Ń€ĐŽĐŸĐœĐŽĐ°Đœ ба ŃƒŃ„ŃƒÒ›ÓŁ +Name[tr]=Yatay Olarak Dağıtma +Name[uk]=ĐŸĐ”Ń€Đ”ĐșĐžĐœŃƒŃ‚Đž ĐłĐŸŃ€ĐžĐ·ĐŸĐœŃ‚Đ°Đ»ŃŒĐœĐŸ +Name[uz]=БўĐčĐž бўĐčоча Đ°ĐčĐ»Đ°ĐœŃ‚ĐžŃ€ĐžŃˆ +Name[xx]=xxFlip Horizontallyxx +Name[zh_CN]=ć·Šćłçż»èœŹ +Icon=2rightarrow +Exec=jpegorient h %F diff --git a/src/servicemenus/k3b_audiocd_rip.desktop b/src/servicemenus/k3b_audiocd_rip.desktop new file mode 100644 index 0000000..387d44a --- /dev/null +++ b/src/servicemenus/k3b_audiocd_rip.desktop @@ -0,0 +1,46 @@ +[Desktop Entry] +ServiceTypes=media/audiocd,media/mixedcd +Actions=K3bRip; +X-KDE-Priority=TopLevel + +[Desktop Action K3bRip] +Name=Extract Digital Audio with K3b +Name[af]=Onttrek digitale oudio m.b.v. K3b +Name[ar]= ۧ۳ŰȘŰčمل K3b Ù„Ű§ŰłŰȘ۟۱ۧۏ Ű§Ù„Ű”ÙˆŰȘي Ű§Ù„Ű±Ù‚Ù…ÙŠ. +Name[bg]=ИзĐČĐ»ĐžŃ‡Đ°ĐœĐ” ĐœĐ° Ń†ĐžŃ„Ń€ĐŸĐČ Đ·ĐČуĐș с K3b +Name[br]=Eztennañ klevet niverel gant K3b +Name[ca]=Extreu Ă udio digital amb el K3b +Name[cs]=Extrahovat digitĂĄlnĂ­ zvuk pomocĂ­ K3b +Name[da]=Rip digitallyd med K3b +Name[de]=Digital-Audio mit K3b auslesen +Name[el]=Î•ÎŸÎ±ÎłÏ‰ÎłÎź ψηφÎčαÎșÎżÏ ÎźÏ‡ÎżÏ… ΌΔ Ï„Îż K3b +Name[es]=Extraer audio digital con K3b +Name[et]=Ekstrakti digitaalne audio K3b abil +Name[fa]=ۧ۳ŰȘ۟۱ۧۏ Ű”ÙˆŰȘی Ű±Ù‚Ù…ÛŒ ۚۧ K3b +Name[fi]=Pura sisĂ€ltö digitaalisesti K3b:llĂ€ +Name[fr]=Extraction Audio avec K3b +Name[gl]=Extrair Áudio Dixital con K3b +Name[hu]=DigitĂĄlis hanganyag kimĂĄsolĂĄsa a K3b-vel +Name[is]=Afrita stafrĂŠnt hljóð meĂ° K3b +Name[it]=Estrai audio digitale con K3b +Name[ja]=K3b ă§ăƒ‡ă‚žă‚żăƒ«ă‚ȘăƒŒăƒ‡ă‚Łă‚Șを搾いć‡șし +Name[km]=ážŸáŸ’ážšáž„áŸ‹â€‹áž…áŸáž‰â€‹ážąážŒážŒážžáž™áŸ‰ážŒâ€‹ážŒážžáž‡ážžážáž›â€‹ážŠáŸ„áž™â€‹áž”áŸ’ážšážŸ K3b +Name[lt]=NuraĆĄyti skaitmeninÄŻ audio su K3b +Name[ms]=Ekstrak Audio Digital dengan K3b +Name[nds]=Digitaal Audiodaten mit K3b ruttrecken +Name[nl]=Digitale audio rippen met K3b +Name[pa]=K3b àššàšŸàšČ àšĄàšżàšœàšŒà©€àšŸàšČ àš†àšĄà©€àš“ àš–à©‹àšČ੍àščੋ +Name[pl]=Zgraj utwory za pomocą K3b +Name[pt]=Extrair o Áudio Digital com o K3b +Name[pt_BR]=Extrair Áudio Digital com o K3b +Name[sk]=VytiahnuĆ„ digitĂĄlny zvuk pomocou K3b +Name[sr]=ИзЎĐČĐŸŃ˜ ĐŽĐžĐłĐžŃ‚Đ°Đ»ĐœĐž Đ·ĐČуĐș ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ° +Name[sr@Latn]=Izdvoj digitalni zvuk pomoću K3b-a +Name[sv]=Lagra digitalljud med K3b +Name[tr]=K3b ile Sayısal Ses Aktar +Name[uk]=ВотягуĐČĐ°ĐœĐœŃ Ń†ĐžŃ„Ń€ĐŸĐČĐŸĐłĐŸ Đ°ŃƒĐŽŃ–ĐŸ Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b +Name[uz]=K3b Ń‘Ń€ĐŽĐ°ĐŒĐžĐŽĐ° Ò›ŃžŃˆĐžÒ›Đ»Đ°Ń€ĐœĐž Đ°ŃƒĐŽĐžĐŸ-фаĐčлга Đ°ĐčĐ»Đ°ĐœŃ‚ĐžŃ€ĐžŃˆ +Name[zh_CN]=甹 K3b æć–æ•°ć­—éŸłéą‘ +Name[zh_TW]=äœżç”š K3b 仄敞䜍æ–čćŒæć–éŸłæš‚ +Exec=k3b --cddarip %u +Icon=k3b diff --git a/src/servicemenus/k3b_cd_copy.desktop b/src/servicemenus/k3b_cd_copy.desktop new file mode 100644 index 0000000..fc78f8a --- /dev/null +++ b/src/servicemenus/k3b_cd_copy.desktop @@ -0,0 +1,48 @@ +[Desktop Entry] +ServiceTypes=media/cdrom_unmounted,media/cdwriter_unmounted,media/audiocd +Actions=K3bCDCopy; +X-KDE-Priority=TopLevel + +[Desktop Action K3bCDCopy] +Name=Copy CD with K3b +Name[af]=KopiĂ«er CD m.b.v. K3b... +Name[ar]= Ű§Ù†Ù‚Ù„ Ű§Ù„Ù‚Ű±Ű” Ű§Ù„Ù…ŰŻÙ…ŰŹ ŰšÙˆŰ§ŰłŰ·Ű© K3b . +Name[bg]=ĐšĐŸĐżĐžŃ€Đ°ĐœĐ” ĐœĐ° CD с K3b +Name[br]=Eilañ ur CD gant K3b +Name[ca]=Copia CD amb el K3b +Name[cs]=KopĂ­rovat CD pomocĂ­ K3b +Name[da]=KopiĂ©r cd med K3b +Name[de]=CD mit K3b kopieren +Name[el]=ΑΜτÎčÎłÏÎ±Ï†Îź CD ΌΔ Ï„Îż K3b +Name[es]=Copiar CD con K3b +Name[et]=Kopeeri CD K3b abil +Name[fa]=Ű±ÙˆÙ†ÙˆŰŽŰȘ ŰŻÛŒŰłÚ© ÙŰŽŰ±ŰŻÙ‡ ۚۧ K3b +Name[fi]=Kopioi cd K3b:llĂ€ +Name[fr]=Copier le CD avec K3b +Name[gl]=Copiar CD con K3b +Name[hu]=CD-mĂĄsolĂĄs a K3b-vel +Name[is]=Afrita geisladisk meĂ° K3b +Name[it]=Copia CD con K3b +Name[ja]=K3b で CD ă‚’ă‚łăƒ”ăƒŒ +Name[km]=ចម្លង​ស៊ឞឌឞ​ដោយ​ប្រស K3b +Name[lt]=Kopijuoti CD su K3b +Name[mk]=ĐšĐŸĐżĐžŃ€Đ°Ń˜Ń‚Đ” CD ŃĐŸ K3b +Name[ms]=Salin CD dengan K3b +Name[nds]=CD mit K3b koperen +Name[nl]=CD kopiĂ«ren met K3b +Name[pa]=K3b àššàšŸàšČ CD àššàš•àšČ +Name[pl]=Skopiuj pƂytę CD za pomocą K3b +Name[pt]=Copiar o CD com o K3b +Name[pt_BR]=Copiar CD com o K3b +Name[ru]=Запосать ĐșĐŸĐŒĐżĐ°Đșт-ЎОсĐș, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sk]=KopĂ­rovaĆ„ CD pomocou K3b +Name[sr]=ĐšĐŸĐżĐžŃ€Đ°Ń˜ CD ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ° +Name[sr@Latn]=Kopiraj CD pomoću K3b-a +Name[sv]=Kopiera cd med K3b +Name[tr]=K3b ile CD Kopyala +Name[uk]=ĐšĐŸĐżŃ–ŃŽĐČато КД Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b +Name[uz]=K3b Ń‘Ń€ĐŽĐ°ĐŒĐžĐŽĐ° CD'ĐŽĐ°Đœ ĐœŃƒŃŃ…Đ° ĐŸĐ»ĐžŃˆ +Name[zh_CN]=甹 K3b ć€ćˆ¶ CD +Name[zh_TW]=äœżç”š K3b è€‡èŁœ CD +Exec=k3b --copycd %u +Icon=k3b diff --git a/src/servicemenus/k3b_create_audio_cd.desktop b/src/servicemenus/k3b_create_audio_cd.desktop new file mode 100644 index 0000000..efc1a79 --- /dev/null +++ b/src/servicemenus/k3b_create_audio_cd.desktop @@ -0,0 +1,124 @@ +[Desktop Entry] +Actions=CreateK3bAudioProject; +Encoding=UTF-8 +ServiceTypes=audio/x-mp3,audio/x-vorbis,application/x-ogg,audio/x-mp2,audio/x-mpegurl,audio/x-wav,media/blankcd + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action CreateK3bAudioProject] +Exec=k3b --audiocd %U +Name=Create Audio CD with K3b... +Name[af]=Skep oudio CD met K3b... +Name[bg]=ĐĄŃŠĐ·ĐŽĐ°ĐČĐ°ĐœĐ” ĐœĐ° Đ°ŃƒĐŽĐžĐŸ CD с K3b... +Name[bn]=àŠ•à§‡-àŠ„à§àŠ°àŠż-àŠŹàŠż àŠŠàŠżà§Ÿà§‡ àŠ…àŠĄàŠżàŠ“ àŠžàŠżàŠĄàŠż àŠ€à§ˆàŠ°àŠż àŠ•àŠ°à§‹... +Name[br]=Krouiñ ur CD klevet gant K3b ... +Name[bs]=Napravio audio CD koristeći K3b... +Name[ca]=Crea CD d'Ă udio amb K3b... +Name[cs]=Vytvoƙit zvukovĂ© CD... +#SUSE-Overwrite Name[da]=Lav lyd-cd med K3b... +Name[da]=Lav lyd-CD med K3b... +Name[de]=Audio-CD mit K3b erstellen ... +Name[el]=ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± ÎŒÎżÏ…ÏƒÎčÎșÎżÏ CD ΌΔ Ï„Îż K3b... +Name[es]=Crear CD de audio con K3b... +Name[et]=Kirjuta audio-CD K3b abil... +Name[eu]=Sortu audio cdak K3b-rekin... +Name[fr]=CrĂ©er un CD audio avec K3b... +Name[he]=ŚŠŚ•Śš ŚȘŚ§ŚœŚ™Ś˜Ś•Śš Ś©ŚžŚą Ś‘ŚąŚ–ŚšŚȘ K3b... +Name[hi]=à€•à„‡3à€Źà„€ à€•à„‡ à€žà€Ÿà€„ à€‘à€Ąà€żà€Żà„‹ à€žà„€à€Ąà„€ à€Źà€šà€Ÿà€... +Name[hu]=Hang-CD lĂ©trehozĂĄsa a K3b-vel... +Name[is]=BĂșa til hljóðdisk meĂ° K3b... +Name[it]=Crea CD audio con K3b... +#SUSE-Overwrite Name[ja]=ă‚ȘăƒŒăƒ‡ă‚Łă‚Ș CD を K3b ă§äœœæˆ... +Name[ja]=K3bă«ă‚ˆă‚‹ă‚ȘăƒŒăƒ‡ă‚Łă‚ȘCDăźäœœæˆ... +Name[lt]=Kurkite audio CD su K3b... +Name[mk]=ĐšŃ€Đ”ĐžŃ€Đ°Ń˜Ń‚Đ” Đ°ŃƒĐŽĐžĐŸ-CD ŃĐŸ K3b... +#SUSE-Overwrite Name[nb]=Lag lyd-CD med K3b . . . +Name[nb]=Brenn lyd-CD-er med K3b... +Name[nl]=Audio-cd aanmaken met K3b... +Name[pa]=K3b àššàšŸàšČ àš†àšĄà©€àš“ CD àšŹàšŁàšŸàš“... +Name[pl]=StwĂłrz pƂytę CD Audio za pomocą K3b... +Name[pt]=Criar um CD de Áudio com o K3b... +Name[pt_BR]=Criar CD de Áudio com K3b... +Name[ru]=Запосать Đ°ŃƒĐŽĐžĐŸ ĐșĐŸĐŒĐżĐ°Đșт-ЎОсĐș, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sl]=Ustvari avdio CD s K3b ... +Name[sr]=НапраĐČĐž Đ°ŃƒĐŽĐžĐŸ CD ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ°... +Name[sr@Latn]=Napravi audio CD pomoću K3b-a... +Name[sv]=Skapa ljud-cd med K3b... +Name[ta]=àź’àźČàźżàź•àŻ àź•àŻàź±àŻàźšàŻàź€àź•àźŸàŻàźŸàŻ‹àźŸàŻ K3bàźŻàŻˆ àź‰àź°àŻàź”àźŸàź•àŻàź•àŻàź•... +Name[tr]=K3b ile Ses CD'si oluƟtur... +Name[uk]=СтĐČĐŸŃ€ĐžŃ‚Đž Đ°ŃƒĐŽŃ–ĐŸ-КД Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b... +Name[zh_CN]=甹 K3b 戛ć»ș音鱑 CD... +Icon=k3b + +Name[fi]=Luo ÀÀni-CD K3b:llĂ€ +Name[km]=áž”áž„áŸ’áž€ážŸážâ€‹ážŸáŸŠážžážŒážžâ€‹ážąážŒážŒážžáž™áŸ‰ážŒâ€‹áž‡áž¶áž˜ážœáž™ K3b... +Name[zh_TW]=仄 K3b ć»șç«‹éŸłæ•ˆ CD... diff --git a/src/servicemenus/k3b_create_video_cd.desktop b/src/servicemenus/k3b_create_video_cd.desktop new file mode 100644 index 0000000..45cca6a --- /dev/null +++ b/src/servicemenus/k3b_create_video_cd.desktop @@ -0,0 +1,125 @@ +[Desktop Entry] +Actions=CreateK3bVcdProject; +Encoding=UTF-8 +ServiceTypes=video/mpeg + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action CreateK3bVcdProject] +Exec=k3b --videocd %F +Name=Create Video CD with K3b... +Name[af]=Skep video CD met K3b... +Name[bg]=ĐĄŃŠĐ·ĐŽĐ°ĐČĐ°ĐœĐ” ĐœĐ° ĐČĐžĐŽĐ”ĐŸ CD с K3b... +Name[bn]=àŠ•à§‡-àŠ„à§àŠ°àŠż-àŠŹàŠż àŠŠàŠżà§Ÿà§‡ àŠ­àŠżàŠĄàŠżàŠ“ àŠžàŠżàŠĄàŠż àŠ€à§ˆàŠ°àŠż àŠ•àŠ°à§‹... +Name[br]=Krouiñ ur CD video gant K3b ... +Name[bs]=Napravi video CD koristeći K3b... +Name[ca]=Crea CD de vĂ­deo amb K3b... +Name[cs]=Vytvoƙit video CD... +#SUSE-Overwrite Name[da]=Lav video-cd med K3b... +Name[da]=Lav Video CD med K3b... +Name[de]=Video-CD mit K3b erstellen ... +Name[el]=ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± Video CD ΌΔ Ï„Îż K3b... +Name[es]=Crear Video CD con K3b... +Name[et]=Kirjuta video-CD K3b abil... +Name[eu]=Sortu Bideo CDak K3b-rekin... +Name[fr]=CrĂ©er un CD vidĂ©o avec K3b... +Name[he]=ŚŠŚ•Śš ŚȘŚ§ŚœŚ™Ś˜Ś•ŚšŚ™ Ś•Ś™Ś“ŚŚ• VCD Ś‘ŚąŚ–ŚšŚȘ K3b... +Name[hi]=à€•à„‡3à€Źà„€ à€•à„‡ à€žà€Ÿà€„ à€”à„€à€Ąà€żà€Żà„‹ à€žà„€à€Ąà„€ à€Źà€šà€Ÿà€... +Name[hu]=Video-CD lĂ©trehozĂĄsa a K3b-vel... +Name[is]=BĂșa til vĂ­deĂłdisk meĂ° K3b... +Name[it]=Crea Video CD con K3b... +#SUSE-Overwrite Name[ja]=Video CD を K3b ă§äœœæˆ... +Name[ja]=K3bă«ă‚ˆă‚‹ăƒ“ăƒ‡ă‚ȘCDăźäœœæˆ... +Name[lt]=Kurkite video CD su K3b... +Name[mk]=ĐšŃ€Đ”ĐžŃ€Đ°Ń˜Ń‚Đ” ĐČĐžĐŽĐ”ĐŸ-CD ŃĐŸ K3b... +#SUSE-Overwrite Name[nb]=Lag video-CD med K3b . . . +Name[nb]=Brenn video-CD-er med K3b... +Name[nl]=Video-cd aanmaken K3b... +#SUSE-Overwrite Name[pa]=K3b àššàšŸàšČ àš”à©€àšĄàšżàš“ CD àšŹàšŁàšŸàš“... +Name[pa]=K3b àššàšŸàšČ àš”à©€àšĄàšżàš“ CD àšŹàšŁàšŸàš“ +Name[pl]=StwĂłrz pƂytę Video CD za pomocą K3b... +Name[pt]=Criar um Video CD com o K3b... +Name[pt_BR]=Criar CD de VĂ­deo com K3b... +Name[ru]=Запосать ĐČĐžĐŽĐ”ĐŸ ĐșĐŸĐŒĐżĐ°Đșт-ЎОсĐș, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sl]=Ustvari video CD s K3b ... +Name[sr]=НапраĐČĐž ĐČĐžĐŽĐ”ĐŸ CD ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ°... +Name[sr@Latn]=Napravi video CD pomoću K3b-a... +Name[sv]=Skapa video-cd med K3b... +Name[ta]=àź’àźłàźżàź•àŻ àź•àŻàź±àŻàźšàŻàź€àź•àźŸàŻàźŸàŻ‹àźŸàŻ K3bàź àź‰àź°àŻàź”àźŸàź•àŻàź•àŻàź•... +Name[tr]=K3b ile Video CD'si oluƟtur... +Name[uk]=СтĐČĐŸŃ€ĐžŃ‚Đž ĐČŃ–ĐŽĐ”ĐŸ-КД Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b... +Name[zh_CN]=甹 K3b 戛ć»șè§†éą‘ CD... +Icon=k3b + +Name[fi]=Luo video-CD K3b:llĂ€ +Name[km]=áž”áž„áŸ’áž€ážŸážâ€‹ážŸáŸŠážžážŒážžâ€‹ážœážžážŠáŸážąážŒâ€‹áž‡áž¶áž˜ážœáž™ K3b... +Name[zh_TW]=仄 K3b ć»ș立芖蚊 CD... diff --git a/src/servicemenus/k3b_dvd_copy.desktop b/src/servicemenus/k3b_dvd_copy.desktop new file mode 100644 index 0000000..f85ffcb --- /dev/null +++ b/src/servicemenus/k3b_dvd_copy.desktop @@ -0,0 +1,48 @@ +[Desktop Entry] +ServiceTypes=media/dvdrom_unmounted,media/dvdwriter_unmounted,media/dvdvideo +Actions=K3bDVDCopy; +X-KDE-Priority=TopLevel + +[Desktop Action K3bDVDCopy] +Name=Copy DVD with K3b +Name[af]=KopiĂ«er DVD m.b.v. K3b +Name[ar]= Ű§Ù†ŰłŰź Ű§Ù„Ù‚Ű±Ű” Ű§Ù„Ű±Ù‚Ù…ÙŠ Ű§Ù„Ù…Ű±ŰŠÙŠ (DVD) ŰšÙˆŰ§ŰłŰ·Ű© K3b . +Name[bg]=ĐšĐŸĐżĐžŃ€Đ°ĐœĐ” ĐœĐ° DVD с K3b +Name[br]=Eilañ un DVD gant K3b +Name[ca]=Copia un DVD amb el K3b +Name[cs]=KopĂ­rovat DVD pomocĂ­ K3b +Name[da]=KopiĂ©r dvd med K3b +Name[de]=DVD mit K3b kopieren +Name[el]=ΑΜτÎčÎłÏÎ±Ï†Îź DVD ΌΔ Ï„Îż K3b +Name[es]=Copiar DVD con K3b +Name[et]=Kopeeri DVD K3b abil +Name[fa]=Ű±ÙˆÙ†ÙˆŰŽŰȘ ŰŻÛŒ وی ŰŻÛŒ ۚۧ K3b +Name[fi]=Kopioi dvd K3b:llĂ€ +Name[fr]=Copier le DVD avec K3b +Name[gl]=Copiar DVD con K3b +Name[hu]=DVD-mĂĄsolĂĄs a K3b-vel +Name[is]=Afrita DVD meĂ° K3b +Name[it]=Copia DVD con K3b +Name[ja]=K3b で DVD ă‚’ă‚łăƒ”ăƒŒ... +Name[km]=ចម្លង​ឌឞវឞឌឞ​ដោយ​ប្រស K3b +Name[lt]=Kopijuoti DVD su K3b +Name[mk]=ĐšĐŸĐżĐžŃ€Đ°Ń˜Ń‚Đ” DVD ŃĐŸ K3b... +Name[ms]=Salin DVD dengan K3b +Name[nds]=DVD mit K3b koperen +Name[nl]=DVD kopiĂ«ren met K3b +Name[pa]=K3b àššàšŸàšČ DVD àššàš•àšČ +Name[pl]=Skopiuj DVD za pomocą K3b +Name[pt]=Copiar o DVD com o K3b +Name[pt_BR]=Copiar DVD com o K3b +Name[ru]=ĐšĐŸĐżĐžŃ€ĐŸĐČать DVD, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sk]=VytvoriĆ„ DVD pomocou K3b +Name[sr]=ĐšĐŸĐżĐžŃ€Đ°Ń˜ DVD ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ° +Name[sr@Latn]=Kopiraj DVD pomoću K3b-a +Name[sv]=Kopiera dvd med K3b +Name[tr]=K3b ile Veri DVD'si Kopyala +Name[uk]=ĐšĐŸĐżŃ–ŃŽĐČато DVD Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b +Name[uz]=K3b Ń‘Ń€ĐŽĐ°ĐŒĐžĐŽĐ° DVD'ĐŽĐ°Đœ ĐœŃƒŃŃ…Đ° ĐŸĐ»ĐžŃˆ +Name[zh_CN]=甹 K3b ć€ćˆ¶ DVD +Name[zh_TW]=äœżç”š K3b è€‡èŁœ DVD +Exec=k3b --copydvd %u +Icon=k3b diff --git a/src/servicemenus/k3b_handle_empty_cd.desktop b/src/servicemenus/k3b_handle_empty_cd.desktop new file mode 100644 index 0000000..63f9283 --- /dev/null +++ b/src/servicemenus/k3b_handle_empty_cd.desktop @@ -0,0 +1,114 @@ +[Desktop Entry] +ServiceTypes=media/blankcd +Actions=K3bDataProject;K3bAudioCDProject; +X-KDE-Priority=TopLevel + +[Desktop Action K3bDataProject] +Exec=k3b --device %u --datacd +Name=Create Data CD with K3b... +Name[af]=Skep data CD met K3b... +Name[ar]= Ű§Ù†ŰŽÙŠŰĄ Ű§Ù„Ù‚Ű±Ű” Ű§Ù„Ù…ŰŻÙ…ŰŹ Ù„Ű­ÙŰž Ű§Ù„ŰšÙŠŰ§Ù†Ű§ŰȘ (Data) ŰšÙˆŰ§ŰłŰ·Ű© K3b ... +Name[bg]=ĐĄŃŠĐ·ĐŽĐ°ĐČĐ°ĐœĐ” ĐœĐ° CD с ĐŽĐ°ĐœĐœĐž с K3b... +Name[bn]=àŠ•à§‡-àŠ„à§àŠ°àŠż-àŠŹàŠż àŠŠàŠżà§Ÿà§‡ àŠĄà§‡àŠŸàŠŸ-àŠžàŠżàŠĄàŠż àŠ€à§ˆàŠ°àŠż àŠ•àŠ°à§‹... +Name[br]=Krouiñ ur CD roadoĂč gant K3b ... +Name[bs]=Napravi podatkovni CD koristeći K3b... +Name[ca]=Crea un CD de dades amb el K3b... +Name[cs]=Vytvoƙit datovĂ© CD... +Name[da]=Lav data-cd med K3b... +Name[de]=Daten-CD mit K3b erstellen ... +Name[el]=ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± CD ÎŽÎ”ÎŽÎżÎŒÎ­ÎœÏ‰Îœ ΌΔ Ï„Îż K3b... +Name[es]=Crear CD de datos con K3b... +Name[et]=Kirjuta andme-CD K3b abil... +Name[fa]=Ű§ÛŒŰŹŰ§ŰŻ ŰŻÛŒŰłÚ© ÙŰŽŰ±ŰŻÛ€ ŰŻŰ§ŰŻÙ‡ ۚۧ K3b... +Name[fi]=Luo data-cd K3b:llĂ€... +Name[fr]=CrĂ©er un CD de donnĂ©es avec K3b... +Name[gl]=Criar un CD de Dados con K3b... +Name[he]=ŚŠŚ•Śš ŚȘŚ§ŚœŚ™Ś˜Ś•ŚšŚ™ ŚžŚ™Ś“Śą CD Ś‘ŚąŚ–ŚšŚȘ K3b... +Name[hi]=à€•à„‡3à€Źà„€ à€•à„‡ à€žà€Ÿà€„ à€Ąà€Ÿà€Ÿà€Ÿ à€žà„€à€Ąà„€ à€Źà€šà€Ÿà€... +Name[hu]=Adat-CD lĂ©trehozĂĄsa a K3b-vel... +Name[is]=BĂșa til gagnadisk meĂ° K3b... +Name[it]=Crea CD dati con K3b... +Name[ja]=K3b ă§ăƒ‡ăƒŒă‚ż CD ă‚’äœœæˆ... +Name[km]=បង្កសត​ស៊ឞឌឞ​ទិន្ន័យ​ជាមវយនážčង K3b... +Name[lt]=Kurti duomenĆł CD su K3b... +Name[mk]=ĐšŃ€Đ”ĐžŃ€Đ°Ń˜Ń‚Đ” ĐżĐŸĐŽĐ°Ń‚ĐŸŃ‡ĐœĐŸ CD ŃĐŸ K3b... +Name[ms]= Cipta CD Data dengan K3b... +Name[nb]=Lag data-CD med K3b . . . +Name[nds]=Daten-CD mit K3b opstellen... +Name[ne]=K3b... +Name[nl]=Gegevens-cd aanmaken met K3b... +Name[nn]=Lag data-CD med K3b 
 +Name[pa]=K2b àššàšŸàšČ àšĄàšŸàšŸàšŸ CD àšŹàšŁàšŸàš“... +Name[pl]=StwĂłrz pƂytę CD z danymi za pomocą K3b... +Name[pt]=Criar um CD de Dados com o K3b... +Name[pt_BR]=Criar CD de Dados com o K3b... +Name[ru]=Запосать ĐșĐŸĐŒĐżĐ°Đșт-ЎОсĐș с ĐŽĐ°ĐœĐœŃ‹ĐŒĐž, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sk]=VytvoriĆ„ dĂĄtovĂ© CD pomocou K3b... +Name[sl]=Ustvari podatkovni CD s K3b ... +Name[sr]=НапраĐČĐž CD са ĐżĐŸĐŽĐ°Ń†ĐžĐŒĐ° ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ°... +Name[sr@Latn]=Napravi CD sa podacima pomoću K3b-a... +Name[sv]=Skapa data-cd med K3b... +Name[ta]=àź€àź•àź”àźČàŻ àź•àŻàź±àŻàźšàŻàź€àź•àźŸàŻàźŸàŻ‹àźŸàŻ K3b àź àź‰àź°àŻàź”àźŸàź•àŻàź•àŻàź•... +Name[tg]=Хабт ĐșĐ°Ń€ĐŽĐ°ĐœĐž CD Đ±ĐŸ ĐŒĐ°ŃŠĐ»ŃƒĐŒĐŸŃ‚ÒłĐŸ,Đ±ĐŸ ĐžŃŃ‚ĐžŃ„ĐŸĐŽĐ°Đ±Đ°Ń€ĐžĐž K3b... +Name[tr]=K3b ile Veri CD'si oluƟtur... +Name[uk]=СтĐČĐŸŃ€ĐžŃ‚Đž КД Đ· ĐŽĐ°ĐœĐžĐŒĐž Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b... +Name[uz]=K3b Ń‘Ń€ĐŽĐ°ĐŒĐžĐŽĐ° ĐŒĐ°ŃŠĐ»ŃƒĐŒĐŸŃ‚ CD яратош +Name[xh]=Yenza i CD yolwazi nge K3b... +Name[zh_CN]=甹 K3b 戛ć»șæ•°æź CD... +Name[zh_TW]=äœżç”š K3b ć»șç«‹èł‡æ–™ CD... +Icon=k3b + +[Desktop Action K3bAudioCDProject] +Exec=k3b --device %u --audiocd +Name=Create Audio CD with K3b... +Name[af]=Skep oudio CD met K3b... +Name[ar]= Ű§Ù†ŰŽÙŠŰĄ Ű§Ù„Ù‚Ű±Ű” Ű§Ù„Ù…ŰŻÙ…ŰŹ Ű§Ù„ŰłÙ…Űčي ŰšÙˆŰ§ŰłŰ·Ű© K3b ... +Name[bg]=ĐĄŃŠĐ·ĐŽĐ°ĐČĐ°ĐœĐ” ĐœĐ° Đ°ŃƒĐŽĐžĐŸ CD с K3b... +Name[bn]=àŠ•à§‡-àŠ„à§àŠ°àŠż-àŠŹàŠż àŠŠàŠżà§Ÿà§‡ àŠ…àŠĄàŠżàŠ“ àŠžàŠżàŠĄàŠż àŠ€à§ˆàŠ°àŠż àŠ•àŠ°à§‹... +Name[br]=Krouiñ ur CD klevet gant K3b ... +Name[bs]=Napravio audio CD koristeći K3b... +Name[ca]=Crea un CD d'Ă udio amb el K3b... +Name[cs]=Vytvoƙit zvukovĂ© CD... +Name[da]=Lav lyd-cd med K3b... +Name[de]=Audio-CD mit K3b erstellen ... +Name[el]=ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± CD ÎźÏ‡ÎżÏ… ΌΔ Ï„Îż K3b... +Name[es]=Crear CD de audio con K3b... +Name[et]=Kirjuta audio-CD K3b abil... +Name[fa]=Ű§ÛŒŰŹŰ§ŰŻ ŰŻÛŒŰłÚ© ÙŰŽŰ±ŰŻÛ€ Ű”ÙˆŰȘی ۚۧ K3b... +Name[fi]=Luo musiikki-cd K3b:llĂ€... +Name[fr]=CrĂ©er un CD audio avec K3b... +Name[gl]=Criar un CD de Áudio con K3b... +Name[he]=ŚŠŚ•Śš ŚȘŚ§ŚœŚ™Ś˜Ś•Śš Ś©ŚžŚą Ś‘ŚąŚ–ŚšŚȘ K3b... +Name[hi]=à€•à„‡3à€Źà„€ à€•à„‡ à€žà€Ÿà€„ à€‘à€Ąà€żà€Żà„‹ à€žà„€à€Ąà„€ à€Źà€šà€Ÿà€... +Name[hu]=Hang-CD lĂ©trehozĂĄsa a K3b-vel... +Name[is]=BĂșa til hljóðdisk meĂ° K3b... +Name[it]=Crea CD audio con K3b... +Name[ja]=K3b でă‚ȘăƒŒăƒ‡ă‚Łă‚Ș CD ă‚’äœœæˆ... +Name[km]=áž”áž„áŸ’áž€ážŸážâ€‹ážŸáŸŠážžážŒážžâ€‹ážąážŒážŒážžáž™áŸ‰ážŒâ€‹áž‡áž¶áž˜ážœáž™â€‹áž“ážčង K3b... +Name[lt]=Kurti audio CD su K3b... +Name[mk]=ĐšŃ€Đ”ĐžŃ€Đ°Ń˜Ń‚Đ” Đ°ŃƒĐŽĐžĐŸ-CD ŃĐŸ K3b... +Name[ms]= Cipta Audio CD dengan K3b... +Name[nb]=Lag lyd-CD med K3b . . . +Name[nds]=Audio-CD mit K3b opstellen... +Name[ne]=K3b à€žà€à€— à€…à€Ąà€żà€Żà„‹ à€žà„€à€Ąà„€ à€žà€żà€°à„à€œà€šà€Ÿ à€—à€°à„à€šà„à€čà„‹à€žà„... +Name[nl]=Audio-cd aanmaken met K3b... +Name[nn]=Lag lyd-CD med K3b 
 +Name[pa]=K2b àššàšŸàšČ àš†àšĄà©€àš“ CD àšŹàšŁàšŸàš“... +Name[pl]=StwĂłrz pƂytę CD Audio za pomocą K3b... +Name[pt]=Criar um CD de Áudio com o K3b... +Name[pt_BR]=Criar CD de Áudio com o K3b... +Name[ru]=Запосать Đ°ŃƒĐŽĐžĐŸ ĐșĐŸĐŒĐżĐ°Đșт-ЎОсĐș, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sk]=VytvoriĆ„ zvukovĂ© CD pomocou K3b... +Name[sl]=Ustvari avdio CD s K3b ... +Name[sr]=НапраĐČĐž Đ°ŃƒĐŽĐžĐŸ CD ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ°... +Name[sr@Latn]=Napravi audio CD pomoću K3b-a... +Name[sv]=Skapa ljud-cd med K3b... +Name[ta]=àź’àźČàźżàź•àŻ àź•àŻàź±àŻàźšàŻàź€àź•àźŸàŻàźŸàŻ‹àźŸàŻ K3bàźŻàŻˆ àź‰àź°àŻàź”àźŸàź•àŻàź•àŻàź•... +Name[tg]=Хабт ĐșĐ°Ń€ĐŽĐ°ĐœĐž Đ°ŃƒĐŽĐžĐŸ ĐșĐŸĐŒĐżĐ°Đșт-ЎОсĐș Đ±ĐŸ ĐžŃŃ‚ĐžŃ„ĐŸĐŽĐ°Đž K3b... +Name[tr]=K3b ile Ses CD'si oluƟtur... +Name[uk]=СтĐČĐŸŃ€ĐžŃ‚Đž Đ°ŃƒĐŽŃ–ĐŸ-КД Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b... +Name[uz]=K3b Ń‘Ń€ĐŽĐ°ĐŒĐžĐŽĐ° Đ°ŃƒĐŽĐžĐŸ CD яратош +Name[xh]=Yenza i CD Yokuvakalayo nge K3b... +Name[zh_CN]=甹 K3b 戛ć»ș音鱑 CD... +Name[zh_TW]=äœżç”š K3b ć»șç«‹éŸłæš‚ CD... +Icon=k3b diff --git a/src/servicemenus/k3b_handle_empty_dvd.desktop b/src/servicemenus/k3b_handle_empty_dvd.desktop new file mode 100644 index 0000000..74f8780 --- /dev/null +++ b/src/servicemenus/k3b_handle_empty_dvd.desktop @@ -0,0 +1,103 @@ +[Desktop Entry] +ServiceTypes=media/blankdvd +Actions=K3bDataProject; +X-KDE-Priority=TopLevel + +[Desktop Action K3bDataProject] +Exec=k3b --device %u --datadvd +Name=Create Data CD with K3b... +Name[af]=Skep data CD met K3b... +Name[ar]= Ű§Ù†ŰŽÙŠŰĄ Ű§Ù„Ù‚Ű±Ű” Ű§Ù„Ù…ŰŻÙ…ŰŹ Ù„Ű­ÙŰž Ű§Ù„ŰšÙŠŰ§Ù†Ű§ŰȘ (Data) ŰšÙˆŰ§ŰłŰ·Ű© K3b ... +Name[bg]=ĐĄŃŠĐ·ĐŽĐ°ĐČĐ°ĐœĐ” ĐœĐ° CD с ĐŽĐ°ĐœĐœĐž с K3b... +Name[bn]=àŠ•à§‡-àŠ„à§àŠ°àŠż-àŠŹàŠż àŠŠàŠżà§Ÿà§‡ àŠĄà§‡àŠŸàŠŸ-àŠžàŠżàŠĄàŠż àŠ€à§ˆàŠ°àŠż àŠ•àŠ°à§‹... +Name[br]=Krouiñ ur CD roadoĂč gant K3b ... +Name[bs]=Napravi podatkovni CD koristeći K3b... +Name[ca]=Crea un CD de dades amb el K3b... +Name[cs]=Vytvoƙit datovĂ© CD... +Name[da]=Lav data-cd med K3b... +Name[de]=Daten-CD mit K3b erstellen ... +Name[el]=ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± CD ÎŽÎ”ÎŽÎżÎŒÎ­ÎœÏ‰Îœ ΌΔ Ï„Îż K3b... +Name[es]=Crear CD de datos con K3b... +Name[et]=Kirjuta andme-CD K3b abil... +Name[fa]=Ű§ÛŒŰŹŰ§ŰŻ ŰŻÛŒŰłÚ© ÙŰŽŰ±ŰŻÛ€ ŰŻŰ§ŰŻÙ‡ ۚۧ K3b... +Name[fi]=Luo data-cd K3b:llĂ€... +Name[fr]=CrĂ©er un CD de donnĂ©es avec K3b... +Name[gl]=Criar un CD de Dados con K3b... +Name[he]=ŚŠŚ•Śš ŚȘŚ§ŚœŚ™Ś˜Ś•ŚšŚ™ ŚžŚ™Ś“Śą CD Ś‘ŚąŚ–ŚšŚȘ K3b... +Name[hi]=à€•à„‡3à€Źà„€ à€•à„‡ à€žà€Ÿà€„ à€Ąà€Ÿà€Ÿà€Ÿ à€žà„€à€Ąà„€ à€Źà€šà€Ÿà€... +Name[hu]=Adat-CD lĂ©trehozĂĄsa a K3b-vel... +Name[is]=BĂșa til gagnadisk meĂ° K3b... +Name[it]=Crea CD dati con K3b... +Name[ja]=K3b ă§ăƒ‡ăƒŒă‚ż CD ă‚’äœœæˆ... +Name[km]=បង្កសត​ស៊ឞឌឞ​ទិន្ន័យ​ជាមវយនážčង K3b... +Name[lt]=Kurti duomenĆł CD su K3b... +Name[mk]=ĐšŃ€Đ”ĐžŃ€Đ°Ń˜Ń‚Đ” ĐżĐŸĐŽĐ°Ń‚ĐŸŃ‡ĐœĐŸ CD ŃĐŸ K3b... +Name[ms]= Cipta CD Data dengan K3b... +Name[nb]=Lag data-CD med K3b . . . +Name[nds]=Daten-CD mit K3b opstellen... +Name[ne]=K3b... +Name[nl]=Gegevens-cd aanmaken met K3b... +Name[nn]=Lag data-CD med K3b 
 +Name[pa]=K2b àššàšŸàšČ àšĄàšŸàšŸàšŸ CD àšŹàšŁàšŸàš“... +Name[pl]=StwĂłrz pƂytę CD z danymi za pomocą K3b... +Name[pt]=Criar um CD de Dados com o K3b... +Name[pt_BR]=Criar CD de Dados com o K3b... +Name[ru]=Запосать ĐșĐŸĐŒĐżĐ°Đșт-ЎОсĐș с ĐŽĐ°ĐœĐœŃ‹ĐŒĐž, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sk]=VytvoriĆ„ dĂĄtovĂ© CD pomocou K3b... +Name[sl]=Ustvari podatkovni CD s K3b ... +Name[sr]=НапраĐČĐž CD са ĐżĐŸĐŽĐ°Ń†ĐžĐŒĐ° ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ°... +Name[sr@Latn]=Napravi CD sa podacima pomoću K3b-a... +Name[sv]=Skapa data-cd med K3b... +Name[ta]=àź€àź•àź”àźČàŻ àź•àŻàź±àŻàźšàŻàź€àź•àźŸàŻàźŸàŻ‹àźŸàŻ K3b àź àź‰àź°àŻàź”àźŸàź•àŻàź•àŻàź•... +Name[tg]=Хабт ĐșĐ°Ń€ĐŽĐ°ĐœĐž CD Đ±ĐŸ ĐŒĐ°ŃŠĐ»ŃƒĐŒĐŸŃ‚ÒłĐŸ,Đ±ĐŸ ĐžŃŃ‚ĐžŃ„ĐŸĐŽĐ°Đ±Đ°Ń€ĐžĐž K3b... +Name[tr]=K3b ile Veri CD'si oluƟtur... +Name[uk]=СтĐČĐŸŃ€ĐžŃ‚Đž КД Đ· ĐŽĐ°ĐœĐžĐŒĐž Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b... +Name[uz]=K3b Ń‘Ń€ĐŽĐ°ĐŒĐžĐŽĐ° ĐŒĐ°ŃŠĐ»ŃƒĐŒĐŸŃ‚ CD яратош +Name[xh]=Yenza i CD yolwazi nge K3b... +Name[zh_CN]=甹 K3b 戛ć»șæ•°æź CD... +Name[zh_TW]=äœżç”š K3b ć»șç«‹èł‡æ–™ CD... +Name=Create Data DVD with K3b... +Name[af]=Skep 'n Data DVD m.b.v. K3b... +Name[ar]= Ű§Ù†ŰŽÙŠŰĄ Ű§Ù„Ù‚Ű±Ű” Ű§Ù„Ù…Ű±ŰŠÙŠ Ű§Ù„Ű±Ù‚Ù…ÙŠ (DVD) Ù„Ű­ÙŰž Ű§Ù„ŰšÙŠŰ§Ù†Ű§ŰȘ (Data) ŰšÙˆŰ§ŰłŰ·Ű© K3b ... +Name[bg]=ĐĄŃŠĐ·ĐŽĐ°ĐČĐ°ĐœĐ” ĐœĐ° DVD с ĐŽĐ°ĐœĐœĐž с K3b... +Name[bn]=àŠ•à§‡-àŠ„à§àŠ°àŠż-àŠŹàŠż àŠŠàŠżà§Ÿà§‡ àŠĄà§‡àŠŸàŠŸ-àŠĄàŠżàŠ­àŠżàŠĄàŠż àŠ€à§ˆàŠ°àŠż àŠ•àŠ°à§‹... +Name[br]=Krouiñ un DVD roadoĂč gant K3b ... +Name[ca]=Crea un DVD de dades amb el K3b... +Name[cs]=Vytvoƙit datovĂ© DVD... +Name[da]=Lav data-cd med K3b... +Name[de]=Daten-DVD mit K3b erstellen ... +Name[el]=ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± DVD ÎŽÎ”ÎŽÎżÎŒÎ­ÎœÏ‰Îœ ΌΔ Ï„Îż K3b... +Name[es]=Crear DVD de datos con K3b... +Name[et]=Kirjuta andme-DVD K3b abil... +Name[fa]=Ű§ÛŒŰŹŰ§ŰŻ ŰŻÛŒ وی ŰŻÛŒ ŰŻŰ§ŰŻÙ‡ ۚۧ K3b... +Name[fi]=Luo data-dvd K3b:llĂ€... +Name[fr]=CrĂ©er un DVD de donnĂ©es avec K3b... +Name[gl]=Criar un DVD de Dados con K3b... +Name[he]=ŚŠŚ•Śš ŚȘŚ§ŚœŚ™Ś˜Ś•ŚšŚ™ ŚžŚ™Ś“Śą DVD Ś‘ŚąŚ–ŚšŚȘ K3b... +Name[hu]=Adat-DVD lĂ©trehozĂĄsa a K3b-vel... +Name[is]=BĂșa til DVD gagnadisk meĂ° K3b... +Name[it]=Crea DVD dati con K3b... +Name[ja]=K3b ă§ăƒ‡ăƒŒă‚ż DVD ă‚’äœœæˆ... +Name[km]=បង្កសត​ឌឞវឞឌឞ​ទិន្នន័យ​ដោយ​ប្រស K3b... +Name[lt]=Kurti duomenĆł DVD su K3b... +Name[mk]=ĐšŃ€Đ”ĐžŃ€Đ°Ń˜Ń‚Đ” ĐżĐŸĐŽĐ°Ń‚ĐŸŃ‡ĐœĐŸ DVD ŃĐŸ K3b... +Name[ms]=Cipta DVD Data dengan K3b... +Name[nb]=Lag data-DVD med K3b . . . +Name[nds]=Daten-DVD mit K3b opstellen... +Name[nl]=Gegevens-dvd aanmaken met K3b... +Name[pa]=K3b àššàšŸàšČ àšĄàšŸàšŸàšŸ DVD àšŹàšŁàšŸàš“... +Name[pl]=StwĂłrz pƂytę DVD z danymi za pomocą K3b... +Name[pt]=Criar um DVD de Dados com o K3b... +Name[pt_BR]=Criar DVD de Dados com o K3b... +Name[ru]=Запосать DVD с ĐŽĐ°ĐœĐœŃ‹ĐŒĐž, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sk]=VytvoriĆ„ dĂĄtovĂ© DVD pomocou K3b... +Name[sr]=НапраĐČĐž DVD са ĐżĐŸĐŽĐ°Ń†ĐžĐŒĐ° ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ°... +Name[sr@Latn]=Napravi DVD sa podacima pomoću K3b-a... +Name[sv]=Skapa data-dvd med K3b... +Name[tg]=Хабт ĐșĐ°Ń€ĐŽĐ°ĐœĐž ĐœĐ°ŃŠĐ»ŃƒĐŒĐŸŃ‚ÒłĐŸĐž CD Đ±ĐŸ ĐžŃŃ‚ĐžŃ„ĐŸĐŽĐ°Đ±Đ°Ń€ĐžĐž K3b... +Name[tr]=K3b ile Veri DVD'si oluƟtur... +Name[uk]=СтĐČĐŸŃ€ĐžŃ‚Đž DVD Đ· ĐŽĐ°ĐœĐžĐŒĐž у K3b... +Name[uz]=K3b Ń‘Ń€ĐŽĐ°ĐŒĐžĐŽĐ° ĐŒĐ°ŃŠĐ»ŃƒĐŒĐŸŃ‚ DVD яратош +Name[zh_CN]=甹 K3b 戛ć»șæ•°æź DVD... +Name[zh_TW]=äœżç”š K3b ć»șç«‹èł‡æ–™ DVD... +Icon=k3b diff --git a/src/servicemenus/k3b_videodvd_rip.desktop b/src/servicemenus/k3b_videodvd_rip.desktop new file mode 100644 index 0000000..a915e67 --- /dev/null +++ b/src/servicemenus/k3b_videodvd_rip.desktop @@ -0,0 +1,45 @@ +[Desktop Entry] +ServiceTypes=media/dvdvideo +Actions=K3bRip; +X-KDE-Priority=TopLevel + +[Desktop Action K3bRip] +Name=Rip Video DVD Titles with K3b +Name[af]=KopiĂ«er Video DVD titels m.b.v. K3b +Name[ar]= ۧ۳ŰȘ۟۱ۏ ŰčÙ†Ű§ÙˆÙŠÙ† Ù…Ű±ŰŠÙŠŰ§ŰȘ من Ű§Ù„Ù‚Ű±Ű” Ű§Ù„Ù…Ű±ŰŠÙŠ Ű§Ù„Ű±Ù‚Ù…ÙŠ (DVD) ŰšÙˆŰ§ŰłŰ·Ű© K3b +Name[bg]=ИзĐČĐ»ĐžŃ‡Đ°ĐœĐ” ĐœĐ° DVD заглаĐČоя с K3b +Name[ca]=Extreure pistes de DVD amb el K3b +Name[cs]=Ripovat titulky video DVD pomocĂ­ K3b +Name[da]=Rip dvd-titler med K3b +Name[de]=DVD-Titel mit K3b auslesen +Name[el]=Î•ÎŸÎ±ÎłÏ‰ÎłÎź Ï„ÎŻÏ„Î»Ï‰Îœ DVD ΌΔ Ï„Îż K3b +Name[es]=Extraer DVD de vĂ­deo con K3b +Name[et]=Ripi video-DVD tiitlid K3b abil +Name[fa]=ŰȘŰšŰŻÛŒÙ„ ŰčÙ†Ű§ÙˆÛŒÙ† ŰŻÛŒ وی ŰŻÛŒ ÙˆÛŒŰŻŰŠÙˆÛŒÛŒ ۚۧ K3b +Name[fi]=Pura dvd K3b:llĂ€ +Name[fr]=Extraire les titres du DVD avec K3b +Name[gl]=Gravar tĂ­tulo de VĂ­deo DVD con K3b +Name[hu]=Video DVD-cĂ­mek beolvasĂĄsa a K3b-vel +Name[is]=Afrita DVD titla meĂ° K3b +Name[it]=Estrai titoli DVD video con K3b +Name[ja]=K3b で DVD ă‚żă‚€ăƒˆăƒ«ă‚’ćžă„ć‡șし... +Name[km]=áž…áŸ’ážšáŸ€áž€â€‹áž…áŸ†ážŽáž„â€‹áž‡ážŸáž„â€‹ážŒážžážœážžážŒážžâ€‹ážœážžážŠáŸážąážŒâ€‹ážŠáŸ„áž™â€‹áž”áŸ’ážšážŸ K3b +Name[lt]=NuraĆĄyti video DVD su K3b +Name[ms]=Keluarkan Tajuk Video DVD dengan K3b +Name[nds]=Video-DVD-StĂŒcken mit K3b utlesen +Name[nl]=Video-dvd-titels rippen met K3b +Name[pa]=K3b àššàšŸàšČ àš”à©€àšĄàšżàš“ DVD àšŸàšŸàš‡àšŸàšČ àš°àšżàšȘ +Name[pl]=Zgraj filmy z pƂyty DVD Video za pomocą K3b +Name[pt]=Extrair os TĂ­tulos do DVD de VĂ­deo com o K3b +Name[pt_BR]=Ripar DVD de VĂ­deo com o K3b +Name[sk]=RipovaĆ„ titulky video DVD pomocou K3b +Name[sr]=Исчупај Ń‚ĐžŃ‚Đ»ĐŸĐČĐ” са ĐČĐžĐŽĐ”ĐŸ DVD-Đ° ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ° +Name[sr@Latn]=Isčupaj titlove sa video DVD-a pomoću K3b-a +Name[sv]=Lagra dvd-titlar med K3b +Name[tr]=K3b ile GörĂŒntĂŒ DVD'si BaƟlıklarını Aktar +Name[uk]=ВОЎДртО Đ·Đ°ĐłĐŸĐ»ĐŸĐČĐșĐž Đ· ĐČŃ–ĐŽĐ”ĐŸ-DVD Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b +Name[uz]=K3b Ń‘Ń€ĐŽĐ°ĐŒĐžĐŽĐ° Ń„ĐžĐ»ĐŒĐ»Đ°Ń€ĐœĐž ĐČĐžĐŽĐ”ĐŸ-фаĐčлга Đ°ĐčĐ»Đ°ĐœŃ‚ĐžŃ€ĐžŃˆ +Name[zh_CN]=甹 K3b æć–è§†éą‘ DVD +Name[zh_TW]=äœżç”š K3b æć–èŠ–ćƒ DVD Titles +Exec=k3b --videodvdrip %u +Icon=k3b diff --git a/src/servicemenus/k3b_write_bin_image.desktop b/src/servicemenus/k3b_write_bin_image.desktop new file mode 100644 index 0000000..aaf7967 --- /dev/null +++ b/src/servicemenus/k3b_write_bin_image.desktop @@ -0,0 +1,124 @@ +[Desktop Entry] +Actions=WriteCdImage; +Encoding=UTF-8 +ServiceTypes=application/x-cue + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action WriteCdImage] +Exec=k3b --cdimage %F +Name=Write CD Image with K3b... +Name[af]=Skryf CD beeld met K3b... +Name[bg]=Запос ĐœĐ° CD ĐŸĐ±Ń€Đ°Đ· с K3b... +Name[bn]=àŠ•à§‡-àŠ„à§àŠ°àŠż-àŠŹàŠż àŠŠàŠżà§Ÿà§‡ àŠžàŠżàŠĄàŠż àŠ‡àŠźà§‡àŠœ àŠČà§‡àŠ–à§‹... +Name[br]=srivañ ar skeudenn CD gant K3b ... +Name[bs]=ZapiĆĄi CD image koristeći K3b... +Name[ca]=Escriu imatge per a CD amb K3b... +Name[cs]=VypĂĄlit obraz CD... +#SUSE-Overwrite Name[da]=Skriv cd-billede med K3b... +Name[da]=Skriv CD-billede med K3b... +Name[de]=CD-Abbild mit K3b brennen ... +Name[el]=Î•ÎłÎłÏÎ±Ï†Îź ΔÎčÎșόΜας CD ΌΔ Ï„Îż K3b... +Name[es]=Escribir imagen de CD con K3b... +Name[et]=Kirjuta tĂ”mmis K3b abil plaadile... +Name[eu]=Idatzi CD irudiak K3b-rekin... +Name[fr]=Graver une image CD avec K3b... +Name[he]=Ś›ŚȘŚ•Ś‘ ŚȘŚ‘Ś Ś™ŚȘ CD Ś‘ŚąŚ–ŚšŚȘ K3b... +Name[hi]=à€•à„‡3à€Źà„€ à€•à„‡ à€žà€Ÿà€„ à€žà„€à€Ąà„€ à€‡à€źà„‡à€œ à€Čà€żà€–à„‡à€‚... +Name[hu]=CD-kĂ©pmĂĄsfĂĄjl Ă­rĂĄsa a K3b-vel... +Name[is]=Skrifa diskmynd meĂ° K3b... +Name[it]=Scrivi immagine CD con K3b... +#SUSE-Overwrite Name[ja]=CD ă‚€ăƒĄăƒŒă‚žă‚’ K3b ă§æ›žăèŸŒăż... +Name[ja]=K3bă«ă‚ˆă‚‹CDă‚€ăƒĄăƒŒă‚žăźæ›žèŸŒăż... +Name[lt]=ÄźraĆĄykite CD atvaizdą su K3b... +Name[mk]=Đ—Đ°ĐżĐžŃˆĐ”Ń‚Đ” CD-слОĐșĐ° ŃĐŸ K3b... +#SUSE-Overwrite Name[nb]=Skriv CD-bilde med K3b . . . +Name[nb]=Brenn diskbilde pĂ„ CD med K3b... +Name[nl]=CD-image schrijven met K3b... +Name[pa]=K3b àššàšŸàšČ CD àšȘà©àš°àš€à©€àšŹàšżà©°àšŹ àšČàšżàš–à©‹... +Name[pl]=StwĂłrz obraz pƂyty CD za pomocą K3b... +Name[pt]=Escrever uma Imagem de CD com o K3b... +Name[pt_BR]=Gravar Imagem em CD com K3b... +Name[ru]=Запосать ĐŸĐ±Ń€Đ°Đ· CD, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sl]=ZapiĆĄi sliko CD-ja s K3b ... +Name[sr]=НапраĐČĐž ĐŸĐŽŃ€Đ°Đ· CD-Đ° ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ°... +Name[sr@Latn]=Napravi odraz CD-a pomoću K3b-a... +Name[sv]=Skriv cd-avbild med K3b... +Name[ta]=àź•àŻàź±àŻàźšàŻàź€àź•àźŸàŻàźŸàŻ àźšàźżàźŽàźČàŻàźŸàź©àŻ K3bàź àź‰àź°àŻàź”àźŸàź•àŻàź•àŻàź•... +Name[tr]=K3b ile CD Kalıbı yazdır... +Name[uk]=Запосато ŃˆŃ‚Đ°ĐŒĐż КД Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b... +Name[zh_CN]=甹 K3b ćˆ»ćœ• CD æ˜ ćƒ... +Icon=k3b + +Name[fi]=Kirjoita CD-levynkuva K3b:llĂ€ +Name[km]=សរសេរ​រឌបភាព​ស៊ឞឌឞ​ជាមវយ K3b... +Name[zh_TW]=仄 K3b 燒錄 CD æ˜ ćƒ... diff --git a/src/servicemenus/k3b_write_iso_image.desktop b/src/servicemenus/k3b_write_iso_image.desktop new file mode 100644 index 0000000..8808f80 --- /dev/null +++ b/src/servicemenus/k3b_write_iso_image.desktop @@ -0,0 +1,124 @@ +[Desktop Entry] +Actions=WriteCdImage; +Encoding=UTF-8 +ServiceTypes=application/x-iso,inode/ISO-image + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action WriteCdImage] +Exec=k3b --image %F +Name=Write CD Image with K3b... +Name[af]=Skryf CD beeld met K3b... +Name[bg]=Запос ĐœĐ° CD ĐŸĐ±Ń€Đ°Đ· с K3b... +Name[bn]=àŠ•à§‡-àŠ„à§àŠ°àŠż-àŠŹàŠż àŠŠàŠżà§Ÿà§‡ àŠžàŠżàŠĄàŠż àŠ‡àŠźà§‡àŠœ àŠČà§‡àŠ–à§‹... +Name[br]=srivañ ar skeudenn CD gant K3b ... +Name[bs]=ZapiĆĄi CD image koristeći K3b... +Name[ca]=Escriu imatge per a CD amb K3b... +Name[cs]=VypĂĄlit obraz CD... +#SUSE-Overwrite Name[da]=Skriv cd-billede med K3b... +Name[da]=Skriv CD-billede med K3b... +Name[de]=CD-Abbild mit K3b brennen ... +Name[el]=Î•ÎłÎłÏÎ±Ï†Îź ΔÎčÎșόΜας CD ΌΔ Ï„Îż K3b... +Name[es]=Escribir imagen de CD con K3b... +Name[et]=Kirjuta tĂ”mmis K3b abil plaadile... +Name[eu]=Idatzi CD irudiak K3b-rekin... +Name[fr]=Graver une image CD avec K3b... +Name[he]=Ś›ŚȘŚ•Ś‘ ŚȘŚ‘Ś Ś™ŚȘ CD Ś‘ŚąŚ–ŚšŚȘ K3b... +Name[hi]=à€•à„‡3à€Źà„€ à€•à„‡ à€žà€Ÿà€„ à€žà„€à€Ąà„€ à€‡à€źà„‡à€œ à€Čà€żà€–à„‡à€‚... +Name[hu]=CD-kĂ©pmĂĄsfĂĄjl Ă­rĂĄsa a K3b-vel... +Name[is]=Skrifa diskmynd meĂ° K3b... +Name[it]=Scrivi immagine CD con K3b... +#SUSE-Overwrite Name[ja]=CD ă‚€ăƒĄăƒŒă‚žă‚’ K3b ă§æ›žăèŸŒăż... +Name[ja]=K3bă«ă‚ˆă‚‹CDă‚€ăƒĄăƒŒă‚žăźæ›žèŸŒăż... +Name[lt]=ÄźraĆĄykite CD atvaizdą su K3b... +Name[mk]=Đ—Đ°ĐżĐžŃˆĐ”Ń‚Đ” CD-слОĐșĐ° ŃĐŸ K3b... +#SUSE-Overwrite Name[nb]=Skriv CD-bilde med K3b . . . +Name[nb]=Brenn diskbilde pĂ„ CD med K3b... +Name[nl]=CD-image schrijven met K3b... +Name[pa]=K3b àššàšŸàšČ CD àšȘà©àš°àš€à©€àšŹàšżà©°àšŹ àšČàšżàš–à©‹... +Name[pl]=StwĂłrz obraz pƂyty CD za pomocą K3b... +Name[pt]=Escrever uma Imagem de CD com o K3b... +Name[pt_BR]=Gravar Imagem em CD com K3b... +Name[ru]=Запосать ĐŸĐ±Ń€Đ°Đ· CD, ĐžŃĐżĐŸĐ»ŃŒĐ·ŃƒŃ K3b... +Name[sl]=ZapiĆĄi sliko CD-ja s K3b ... +Name[sr]=НапраĐČĐž ĐŸĐŽŃ€Đ°Đ· CD-Đ° ĐżĐŸĐŒĐŸŃ›Ńƒ K3b-Đ°... +Name[sr@Latn]=Napravi odraz CD-a pomoću K3b-a... +Name[sv]=Skriv cd-avbild med K3b... +Name[ta]=àź•àŻàź±àŻàźšàŻàź€àź•àźŸàŻàźŸàŻ àźšàźżàźŽàźČàŻàźŸàź©àŻ K3bàź àź‰àź°àŻàź”àźŸàź•àŻàź•àŻàź•... +Name[tr]=K3b ile CD Kalıbı yazdır... +Name[uk]=Запосато ŃˆŃ‚Đ°ĐŒĐż КД Đ·Đ° ĐŽĐŸĐżĐŸĐŒĐŸĐłĐŸŃŽ K3b... +Name[zh_CN]=甹 K3b ćˆ»ćœ• CD æ˜ ćƒ... +Icon=k3b + +Name[fi]=Kirjoita CD-levynkuva K3b:llĂ€ +Name[km]=សរសេរ​រឌបភាព​ស៊ឞឌឞ​ជាមវយ K3b... +Name[zh_TW]=仄 K3b 燒錄 CD æ˜ ćƒ... diff --git a/src/servicemenus/kdesktopSetAsBackground.desktop b/src/servicemenus/kdesktopSetAsBackground.desktop new file mode 100644 index 0000000..5606bb5 --- /dev/null +++ b/src/servicemenus/kdesktopSetAsBackground.desktop @@ -0,0 +1,201 @@ +[Desktop Entry] +ServiceTypes=image/* +Actions=setAsBackground;tileAsBackground; +X-KDE-Submenu=Set as Background +X-KDE-Submenu[af]=Stel as agtergrond +X-KDE-Submenu[be]=Đ—Ń€Đ°Đ±Ń–Ń†ŃŒ Ń„ĐŸĐœĐ°ĐČŃ‹ĐŒ ĐŒĐ°Đ»ŃŽĐœĐșĐ°ĐŒ +X-KDE-Submenu[bg]=ĐŁŃŃ‚Đ°ĐœĐŸĐČяĐČĐ°ĐœĐ” ĐșĐ°Ń‚ĐŸ Ń„ĐŸĐœ +X-KDE-Submenu[bn]=àŠȘàŠ¶à§àŠšàŠŸàŠŠà§â€ŒàŠȘàŠŸ àŠčàŠżàŠžàŠŸàŠŹà§‡ àŠŹà§‡àŠ›à§‡ àŠšàŠŸàŠ“ +X-KDE-Submenu[bs]=Postavi kao pozadinu +X-KDE-Submenu[ca]=Estableix com a fons +X-KDE-Submenu[cs]=Nastavit jako pozadĂ­ +X-KDE-Submenu[csb]=ÙstĂŽwi jakno spĂČdlĂ© +X-KDE-Submenu[da]=SĂŠt som baggrund +X-KDE-Submenu[de]=Als Hintergrund setzen +X-KDE-Submenu[el]=ΟρÎčσΌός ως Ï„Î±Ï€Î”Ï„ÏƒÎ±ÏÎŻÎ± +X-KDE-Submenu[eo]=Agordu kiel fono +X-KDE-Submenu[es]=Establecer como fondo +X-KDE-Submenu[et]=Sea taustapildiks +X-KDE-Submenu[eu]=Ezarri atzeko plano gisa +X-KDE-Submenu[fa]=ŰȘÙ†ŰžÛŒÙ… ŰšÙ‡ ŰčÙ†ÙˆŰ§Ù† ŰČمینه +X-KDE-Submenu[fi]=Aseta taustakuvaksi +X-KDE-Submenu[fr]=DĂ©finir comme arriĂšre-plan +X-KDE-Submenu[fy]=As eftergrĂ»n brĂ»ke +X-KDE-Submenu[gl]=PĂłr como Fondo de EscritĂłrio +X-KDE-Submenu[he]=Ś§Ś‘Śą Ś›ŚšŚ§Śą +X-KDE-Submenu[hr]=Postavi kao pozadinu +X-KDE-Submenu[hu]=BeĂĄllĂ­tĂĄs hĂĄttĂ©rkĂ©pnek +X-KDE-Submenu[is]=Setja sem bakgrunn +X-KDE-Submenu[it]=Imposta come sfondo +X-KDE-Submenu[ja]=èƒŒæ™Żăšă—ăŠă‚»ăƒƒăƒˆ +X-KDE-Submenu[kk]=Ая Ń€Đ”Ń‚Ń–ĐœĐŽĐ” ĐŸŃ€ĐœĐ°Ń‚Ńƒ +X-KDE-Submenu[km]=កំណត់​ជា​ផ្ទៃខាងក្រោយ +X-KDE-Submenu[lt]=Nustatyti fonu +X-KDE-Submenu[mk]=ĐŸĐŸŃŃ‚Đ°ĐČĐž ĐșĐ°ĐșĐŸ ĐżĐŸĐŽĐ»ĐŸĐłĐ° +X-KDE-Submenu[nb]=Sett som bakgrunn +X-KDE-Submenu[nds]=As Achtergrund fastleggen +X-KDE-Submenu[ne]=à€Șà„ƒà€·à„à€ à€­à„‚à€źà€żà€•à„‹ à€°à„à€Șà€źà€Ÿ à€žà„‡à€Ÿ à€—à€°à„à€› +X-KDE-Submenu[nl]=Als achtergrond gebruiken +X-KDE-Submenu[nn]=Bruk som bakgrunn +X-KDE-Submenu[pa]=àšȘàšżà©±àš àš­à©‚àšźà©€ àšŹàšŁàšŸàš“ +X-KDE-Submenu[pl]=Ustaw jako tƂo +X-KDE-Submenu[pt]=Definir como Fundo +X-KDE-Submenu[pt_BR]=Configurar como Plano de fundo +X-KDE-Submenu[ro]=Setează ca fundal +X-KDE-Submenu[ru]=ĐĄĐŽĐ”Đ»Đ°Ń‚ŃŒ Ń„ĐŸĐœĐŸĐČŃ‹ĐŒ Ń€ĐžŃŃƒĐœĐșĐŸĐŒ +X-KDE-Submenu[se]=Geavat duogĂĄĆĄgovvan +X-KDE-Submenu[sk]=NastaviĆ„ ako pozadie +X-KDE-Submenu[sl]=Nastavi kot ozadje +X-KDE-Submenu[sr]=ĐŸĐŸŃŃ‚Đ°ĐČĐž ĐșĐ°ĐŸ ĐżĐŸĐ·Đ°ĐŽĐžĐœŃƒ +X-KDE-Submenu[sr@Latn]=Postavi kao pozadinu +X-KDE-Submenu[sv]=AnvĂ€nd som bakgrund +X-KDE-Submenu[th]=àž•àž±àč‰àž‡àčƒàž«àč‰àč€àž›àč‡àž™àžžàž·àč‰àž™àž«àž„àž±àž‡ +X-KDE-Submenu[uk]=Đ’ŃŃ‚Đ°ĐœĐŸĐČото яĐș Ń‚Đ»ĐŸ +X-KDE-Submenu[uz]=Иш ŃŃ‚ĐŸĐ»ĐžĐłĐ° Ò›ŃžĐčОш +X-KDE-Submenu[vi]=Đáș·t lĂ m HĂŹnh nền +X-KDE-Submenu[zh_CN]=èźŸäžșèƒŒæ™Ż +X-KDE-Submenu[zh_TW]=èš­ç‚șèƒŒæ™Ż + +[Desktop Action setAsBackground] +Name=Centered +Name[af]=Gesentreer +Name[ar]=Ù…Ű±ÙƒŰČ +Name[be]=ĐŸĐ°ŃŃŃ€ŃĐŽĐ·Ń–ĐœĐ” +Name[bg]=ĐŠĐ”ĐœŃ‚Ń€ĐžŃ€Đ°ĐœĐŸ +Name[bn]=àŠźàŠŸàŠàŠŸàŠźàŠŸàŠàŠż +Name[br]=Kreizennet +Name[bs]=Centrirano +Name[ca]=Centrat +Name[cs]=Na stƙed +Name[csb]=Na westrzĂłdkĂč +Name[cy]=Canoledig +Name[da]=Centreret +Name[de]=Zentriert +Name[el]=ÎšÎ”ÎœÏ„ÏÎŹÏÎčσΌα +Name[en_GB]=Centred +Name[eo]=Meza +Name[es]=Centrado +Name[et]=Tsentreeritud +Name[eu]=Erdiratua +Name[fa]=Ù…Ű±Ú©ŰČی +Name[fi]=Keskitetty +Name[fr]=CentrĂ© +Name[fy]=sintraal setten +Name[ga]=LĂĄraithe +Name[gl]=Centrado +Name[he]=ŚžŚžŚ•ŚšŚ›Ś– +Name[hi]=à€Źà„€à€šà„‹à€‚-à€Źà„€à€š +Name[hr]=Sredinom +Name[hu]=KözĂ©pre igazĂ­tva +Name[is]=MiĂ°jaĂ° +Name[it]=Centrato +Name[ja]=䞭怟 +Name[kk]=ĐžŃ€Ń‚Đ°Ò“Đ° +Name[km]=កណ្ដាល +Name[lt]=Centruota +Name[lv]=Centrēts +Name[mk]=ĐŠĐ”ĐœŃ‚Ń€ĐžŃ€Đ°Đœ +Name[ms]=Tengah +Name[mt]=Iċċentrat +Name[nb]=Sentrert +Name[nds]=In de Merrn +Name[ne]=à€•à„‡à€šà„à€Šà„à€°à€żà€€ +Name[nl]=Gecentreerd +Name[nn]=Sentrert +Name[pa]=àš•à©‡àš‚àšŠàš°à©€ +Name[pl]=Wyƛrodkowane +Name[pt]=Centrado +Name[pt_BR]=Centralizado +Name[ro]=Centrat +Name[ru]=ĐŸĐŸ Ń†Đ”ĐœŃ‚Ń€Ńƒ +Name[rw]=Biri hagati +Name[se]=Guovdut +Name[sk]=V strede +Name[sl]=Usrediơčeno +Name[sr]=ĐŠĐ”ĐœŃ‚Ń€ĐžŃ€Đ°ĐœĐŸ +Name[sr@Latn]=Centrirano +Name[sv]=Centrerad +Name[ta]=àźźàŻˆàźŻ +Name[te]=à°źà°Šà±à°Żà°š +Name[tg]=МарĐșĐ°Đ·ÓŁ +Name[th]=àžˆàž±àž”àžàž„àžČàž‡ +Name[tr]=OrtalanmÄ±ĆŸ +Name[tt]=ÜzĂ€klĂ€ĆŸep +Name[uk]=ĐŸĐŸ Ń†Đ”ĐœŃ‚Ń€Ńƒ +Name[uz]=МарĐșĐ°Đ·ĐŽĐ° +Name[vi]=Giữa +Name[zh_CN]=ć±…äž­ +Name[zh_TW]=çœźäž­ +Icon=background +Exec=dcop kdesktop KBackgroundIface setWallpaper %u 6 + +[Desktop Action tileAsBackground] +Name=Tiled +Name[af]=GeteĂ«l +Name[ar]=Ù…ŰšÙ„Ù‘Ű· +Name[be]=Đ Đ°ŃŃ†ŃĐłĐœŃƒŃ‚Đ°Đ” +Name[bg]=КасĐșĐ°ĐŽĐœĐŸ +Name[bn]=àŠŸàŠŸàŠ‡àŠČ àŠ•àŠ°àŠŸ +Name[br]=Teolet +Name[bs]=Popločano +Name[ca]=Repetit +Name[cs]=DlaĆŸdice +Name[csb]=KachelkĂČwĂłnĂ© +Name[cy]=Teiledig +Name[da]=Fliselagt +Name[de]=Gekachelt +Name[el]=ΣΔ Ï€Î±ÏÎŹÎžÎ”ÏƒÎ· +Name[eo]=kahela +Name[es]=Mosaico +Name[et]=Paanidena +Name[eu]=Mosaikoa +Name[fa]=Ú©Ű§ŰŽÛŒâ€ŒŰŽŰŻÙ‡ +Name[fi]=VierekkĂ€in +Name[fr]=MosaĂŻque +Name[fy]=Tegele +Name[ga]=Tilithe +Name[gl]=Mosaico +Name[he]=Ś€ŚšŚ•Ś© +Name[hi]=à€šà€Ÿà€Ÿà€ˆ-à€Šà€Ÿà€° +Name[hr]=Popločeno +Name[hu]=MozaikszerƱen +Name[is]=FlĂ­saĂ° +Name[it]=Ripetuto +Name[ja]=ă‚żă‚€ăƒ«çŠ¶ +Name[kk]=ÒšĐ°Ń‚Đ°Ń€Đ»Đ°Đż +Name[km]=ក្បឿង +Name[lt]=IĆĄkloti +Name[mk]=ĐŸĐŸĐżĐ»ĐŸŃ‡Đ”Đœ +Name[ms]=Berjubin +Name[mt]=Madum +Name[nb]=Flislagt +Name[nds]=Kachelt +Name[ne]=à€Ÿà€Ÿà€Żà€Č à€—à€°à€żà€à€•à„‹ +Name[nl]=Tegels +Name[nn]=Jamsides +Name[pa]=àš€àšŁàšżàš† +Name[pl]=Kafelkowane +Name[pt]=Mosaico +Name[pt_BR]=Ladrilhado +Name[ro]=Mozaic +Name[ru]=ЧДрДпОцДĐč +Name[rw]=Byudukaro +Name[se]=BĂĄlddalaga +Name[sk]=DlaĆŸdice +Name[sl]=Razdeljeno +Name[sr]=ĐŸĐŸŃ€Đ”Ń’Đ°ĐœĐŸ +Name[sr@Latn]=Poređano +Name[sv]=Sida vid sida +Name[ta]=àźȘàźżàźŁàŻàźŁàź©àźż +Name[te]=à°Șà°Čకà°Čుగట +Name[tg]=ĐąĐ°Ń…Ń‚Đ°ŃĐ°ĐœĐłÓŁ +Name[th]=àž›àžčàž—àž±àč‰àž‡àž«àž™àč‰àžČàžˆàž­ +Name[tr]=UzatılmÄ±ĆŸ +Name[tt]=BĂŒlengĂ€n +Name[uk]=ĐŸĐ»ĐžŃ‚ĐșĐŸŃŽ +Name[uz]=ĐšĐ°Ń„Đ”Đ»ŃŒ +Name[vi]=Xáșżp ngĂłi +Name[zh_CN]=ćčłé“ș +Name[zh_TW]=æ‹ŒèČŒ +Icon=background +Exec=dcop kdesktop KBackgroundIface setWallpaper %u 2 diff --git a/src/servicemenus/konqgwenview.desktop b/src/servicemenus/konqgwenview.desktop new file mode 100644 index 0000000..1354948 --- /dev/null +++ b/src/servicemenus/konqgwenview.desktop @@ -0,0 +1,53 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=inode/directory +Actions=gwenview; + +[Desktop Action gwenview] +Name=Browse with Gwenview +Name[ar]=ŰȘŰ”ÙŰ­ ŰšÙˆŰ§ŰłŰ·Ű© Gwenview +Name[bg]=ĐŸŃ€Đ”ĐłĐ»Đ”ĐŽ с Gwenview +Name[br]=Furchal gant Gwenview +Name[bs]=Pregledaj sa Gwenview +Name[ca]=Navega amb el Gwenview +Name[cs]=ProhlĂ­ĆŸet pomocĂ­ Gwenview +Name[da]=Gennemse med Gwenview +Name[de]=Dateien mit Gwenview durchsehen +Name[el]=ΕΟΔρΔύΜηση ΌΔ Ï„Îż Gwenview +Name[es]=NavegaciĂłn con Gwenview +Name[et]=Lehitse kasutades Gwenview'd +Name[fi]=Katsele Gwenviewilla +Name[fr]=Naviguer avec Gwenview +Name[ga]=BrabhsĂĄil le Gwenview +Name[gl]=Examinar con Gwenview +Name[he]=ŚąŚ™Ś™ŚŸ Ś‘ŚąŚ–ŚšŚȘ Gwenview +Name[hi]=à€—à„à€”à„‡à€šà€”à„à€Żà„‚ à€•à„‡ à€žà€Ÿà€„ à€Źà„à€°à€Ÿà€‰à€œà€Œ à€•à€°à„‡à€‚ +Name[hr]=PretraĆŸi s Gwenview +Name[hu]=BöngĂ©szĂ©s a Gwenview-val +Name[is]=SkoĂ°a meĂ° Gwenview +Name[it]=Sfoglia con Gwenview +Name[ja]=Gwenview でé–Č芧 +Name[ka]=დათვალიერება Gwenview-ით +Name[ms]= Lungsur dengan Gwenview +Name[nl]=Bladeren met Gwenview +Name[pa]=Gwenview àššàšŸàšČ àš”à©‡àš–à©‹ +Name[pl]=Przeglądaj za pomocą Gwenview +Name[pt]=Navegar com o Gwenview +Name[pt_BR]=Navegar com Gwenview +Name[ru]=ĐŸŃ€ĐŸŃĐŒĐŸŃ‚Ń€Đ”Ń‚ŃŒ ĐČ Gwenview +Name[sk]=PrehliadaĆ„ s Gwenview +Name[sl]=Brskaj z Gwenview +Name[sr]=ĐŸŃ€Đ”ĐłĐ»Đ”ĐŽĐ°Ń˜ ĐżĐŸĐŒĐŸŃ›Ńƒ Gwenview-Đ° +Name[sr@Latn]=Pregledaj pomoću Gwenview-a +Name[sv]=BlĂ€ddra med Gwenview +Name[ta]=GWEN àźȘàźŸàź°àŻàź”àŻˆàźŻàŻˆ àź”àŻˆàź€àŻàź€àŻ àź€àŻ‡àźŸàŻ +Name[tg]=Ò¶ŃƒŃŃ‚Đ°Đœ Đ±ĐŸ ĐĐ°ĐŒĐŸĐžŃˆĐžGwen +Name[tr]=Gwenview ile gözat +Name[uk]=ĐŸĐ”Ń€Đ”ĐłĐ»ŃĐŽ у Gwenview +Name[xh]=Khangela nge Gwenview +Name[xx]=xxBrowse with Gwenviewxx +Name[zh_CN]=甹 Gwenview 攏览 +Name[zh_TW]=仄 Gwenview 瀏芜 +Name[zu]=Cinga nge-Gwenview +Icon=gwenview +Exec=gwenview %u diff --git a/src/servicemenus/konsolehere.desktop b/src/servicemenus/konsolehere.desktop new file mode 100644 index 0000000..a46d1c3 --- /dev/null +++ b/src/servicemenus/konsolehere.desktop @@ -0,0 +1,123 @@ +[Desktop Entry] +ServiceTypes=inode/directory +Actions=openTerminalHere; +X-KDE-AuthorizeAction=shell_access +Encoding=UTF-8 +Type=Application + +Name=Konsole +Name[ar]=Ű·Ű±ÙÙŠŰ© Ű§Ù„ŰȘŰ­ÙƒÙ… +Name[az]=Konsol +Name[be]=ĐšĐ°ĐœŃĐŸĐ»ŃŒ +Name[bg]=ĐšĐŸĐœĐ·ĐŸĐ»Đ° +Name[bn]=àŠ•àŠšàŠžà§‹àŠČ +Name[bs]=Konzola +Name[ca]=Consola +Name[csb]=KĂČnsola +Name[el]=ÎšÎżÎœÏƒÏŒÎ»Î± +Name[eo]=Konzolo +Name[et]=Konsool +Name[eu]=Kontsola +Name[he]=ŚžŚĄŚ•ŚŁ +Name[hi]=à€•à€‚à€žà„‹à€Č +Name[hr]=Konzola +Name[is]=SkjĂĄhermir +Name[ko]=KDE용 윘솔 +Name[lo]=àș„àș­àș™à»‚àșŠàș„ - K +Name[mk]=ĐšĐŸĐœĐ·ĐŸĐ»Đ° +Name[mn]=ĐšĐŸĐœŃĐŸĐ» +Name[nb]=Konsoll +Name[ne]=à€•à€šà„à€žà„‹à€Č +Name[nn]=Konsoll +Name[pa]=àš•à©°àššàšžà©‹àšČ +Name[pl]=Konsola +Name[ro]=Consolă +Name[ru]=ĐšĐŸĐœŃĐŸĐ»ŃŒ +Name[se]=Konsolla +Name[sk]=Konzola +Name[sl]=Konzola +Name[ta]=àź•àźŸàź©àŻàźšàŻ‹àźČàŻ +Name[te]=కటచ్ఞోà°Č్ +Name[tg]=ĐšĐŸĐœŃĐŸĐ» +Name[th]=àž„àž­àž™àč‚àž‹àž„ K +Name[zu]=Ikhonsoli + +[Desktop Action openTerminalHere] +Name=Open Terminal Here +Name[af]=Maak Terminaal Hier Oop +Name[ar]=Ű„ÙŰȘŰ­ Ù…Ű·Ű±Ű§Ù ۳۷۱ Ű§Ù„ŰŁÙˆŰ§Ù…Ű± Ù‡Ù†Ű§ +Name[az]=Terminalı Burada Aç +Name[be]=АЎĐșрыць Ń‚ŃŃ€ĐŒŃ–ĐœĐ°Đ» тут +Name[bg]=ОтĐČĐ°Ń€ŃĐœĐ” ĐœĐ° ĐșĐŸĐœĐ·ĐŸĐ»Đ° туĐș +Name[bn]=àŠàŠ–àŠŸàŠšà§‡ àŠŸàŠŸàŠ°à§àŠźàŠżàŠšàŠŸàŠČ àŠ–à§‹àŠČো +Name[br]=Digeriñ un termenell amañ +Name[bs]=Otvori terminal ovdje +Name[ca]=Obre un terminal aquĂ­ +Name[cs]=Otevƙít terminĂĄl zde +Name[csb]=Òtemknij tuwĂČ terminal +Name[cy]=Agor Terfynell Yma +Name[da]=Åbn terminal her +Name[de]=Terminal öffnen +Name[el]=Î†ÎœÎżÎčÎłÎŒÎ± τΔρΌατÎčÎșÎżÏ ΔΎώ +Name[eo]=Lanĉu terminalon ĉi tie +Name[es]=Abrir terminal aquĂ­ +Name[et]=Ava siin terminal +Name[eu]=Ireki terminala hemen +Name[fa]=ۚۧŰČ Ú©Ű±ŰŻÙ† ÙŸŰ§ÛŒŰ§Ù†Ù‡ ۯ۱ Ű§ÛŒÙ†ŰŹŰ§ +Name[fi]=Avaa komentoikkuna tĂ€hĂ€n +Name[fr]=Ouvrir un terminal ici +Name[fy]=Terminal iepenje +Name[ga]=Oscail TeirminĂ©al Anseo +Name[gl]=Abrir Terminal Aqui +Name[he]=Ś€ŚȘŚ— ŚžŚĄŚ•ŚŁ Ś›ŚŚŸ +Name[hi]=à€Ÿà€°à„à€źà€żà€šà€Č à€Żà€čà€Ÿà€ à€–à„‹à€Čà„‡à€‚ +Name[hr]=Ovdje otvori terminal +Name[hu]=ParancsĂ©rtelmezƑ megnyitĂĄsa itt +Name[is]=Opna skjĂĄhermi hĂ©r +Name[it]=Apri terminale qui +Name[ja]=ă“ă“ă§ă‚żăƒŒăƒŸăƒŠăƒ«ă‚’é–‹ă +Name[kk]=ĐąĐ”Ń€ĐŒĐžĐœĐ°Đ»ĐŽŃ‹ ашу +Name[km]=បសក​ស្ថានឞយ​ទឞនេះ +Name[lo]=ເàș—àș”àșĄàșŽà»€àș™àș„àș‚àș­àș‡ X +Name[lt]=Atverti čia terminalą +Name[lv]=Atvērt termināli ĆĄeit +Name[mk]=ОтĐČĐŸŃ€Đž Ń‚Đ”Ń€ĐŒĐžĐœĐ°Đ» туĐșĐ° +Name[mn]=ĐąĐ”Ń€ĐŒĐžĐœĐ°Đ» ĐœŃŃŃ… +Name[ms]=Buka Terminal Di Sini +Name[mt]=Iftaħ terminal hawn +Name[nb]=Åpne terminal her +Name[nds]=Terminal hier opmaken +Name[ne]=à€Żà€čà€Ÿà€ à€Ÿà€°à„à€źà€żà€šà€Č à€–à„‹à€Čà„à€šà„à€čà„‹à€žà„ +Name[nl]=Terminal openen +Name[nn]=Opna terminal her +Name[nso]=Bula mafelelo Mo +Name[pa]=àšŸàš°àšźà©€àššàšČ àš‡à©±àš„à©‡ àš–à©‹àšČੋ +Name[pl]=OtwĂłrz tutaj terminal +Name[pt]=Abrir um Terminal Aqui +Name[pt_BR]=Abrir Terminal Aqui +Name[ro]=Deschide un terminal aici +Name[ru]=ОтĐșрыть Ń‚Đ”Ń€ĐŒĐžĐœĐ°Đ» ĐČ ŃŃ‚ĐŸĐč папĐșĐ” +Name[rw]= Gufungura Igihera Hano +Name[se]=Raba terminĂĄla dĂĄppe +Name[sk]=Tu otvoriĆ„ terminĂĄl +Name[sl]=Tu odpri terminal +Name[sr]=ОтĐČĐŸŃ€Đž Ń‚Đ”Ń€ĐŒĐžĐœĐ°Đ» ĐŸĐČĐŽĐ” +Name[sr@Latn]=Otvori terminal ovde +Name[ss]=Vula sikhungo lapha +Name[sv]=Öppna terminal hĂ€r +Name[ta]=àźźàŻàź©àŻˆàźŻ àź‡àź™àŻàź•àŻ‡ àź€àźżàź± +Name[tg]=ĐąĐ”Ń€ĐŒĐžĐœĐ°Đ»Ń€ĐŸ Юар ĐžĐœÒ·ĐŸ Đ±ĐŸĐ· ĐșŃƒĐœĐ”ĐŽ +Name[th]=àč€àž›àžŽàž”àč€àž—àž­àžŁàčŒàžĄàžŽàž™àž±àž„àž—àž”àčˆàž™àž”àčˆ +Name[tr]=Terminali Burada Aç +Name[tt]=Terminalnı Monda Açası +Name[uk]=ВіЮĐșрото Ń‚Đ”Ń€ĐŒŃ–ĐœĐ°Đ» +Name[uz]=ĐąĐ”Ń€ĐŒĐžĐœĐ°Đ»ĐœĐž шу ДрЎа ĐŸŃ‡ĐžŃˆ +Name[ven]=Vulani theminala hafhano +Name[vi]=Mở một Thiáșżt bị cuối ở Đùy +Name[wa]=Drovi on terminĂ„ chal +Name[xh]=Vula Isiphelo Sendlela Apha +Name[zh_CN]=ćœšæ­€æ‰“ćŒ€ç»ˆç«Ż +Name[zh_TW]=ćœšé€™èŁĄé–‹ć•Ÿç”‚ç«Żæ©Ÿ +Name[zu]=Vula ithuluzi langaphandle lapha +Icon=konsole +Exec=konsole --workdir %f diff --git a/src/servicemenus/mail_as_attachment.desktop b/src/servicemenus/mail_as_attachment.desktop new file mode 100644 index 0000000..f8a7c23 --- /dev/null +++ b/src/servicemenus/mail_as_attachment.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=all/allfiles +Actions=mail_as_attachment + +[Desktop Action mail_as_attachment] +Name=Mail as Attachment... +Name[de]=Verschicken als Anhang... +Icon=mail_send +Exec=kmail --attach %U diff --git a/src/servicemenus/media_eject.desktop b/src/servicemenus/media_eject.desktop new file mode 100644 index 0000000..151790f --- /dev/null +++ b/src/servicemenus/media_eject.desktop @@ -0,0 +1,158 @@ +[Desktop Entry] +ServiceTypes=media/cdrom_mounted,media/cdrom_unmounted,media/cdwriter_mounted,media/cdwriter_unmounted,media/dvd_mounted,media/dvd_unmounted,media/audiocd,media/blankcd,media/blankdvd,media/dvdvideo,media/svcd,media/vcd +Actions=MediaEject; +X-KDE-Priority=TopLevel +X-KDE-MediaNotifierHide=true + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action MediaEject] +Name=Eject +Name[af]=Uitskiet +Name[ar]=ۧ۟۱ۧۏ +Name[az]=Çıxart +Name[be]=Đ’Ń‹ĐœŃŃ†ŃŒ +Name[bg]=ИзĐČĐ°Đ¶ĐŽĐ°ĐœĐ” +Name[bn]=àŠ‡àŠœà§‡àŠ•à§àŠŸ +Name[br]=Stlepel +Name[bs]=Izbaci +Name[ca]=Expulsa +Name[cs]=Vysunout +Name[cy]=Allfwrw +Name[da]=Skub ud +Name[de]=Auswerfen +Name[el]=Î•ÎŸÎ±ÎłÏ‰ÎłÎź +Name[eo]=Eligo +Name[es]=Expulsar +Name[et]=VĂ€ljastamine +Name[eu]=Kanporatu +Name[fa]=ۧ۟۱ۧۏ +Name[fi]=Poista +Name[fr]=Éjecter +Name[fy]=Utsmytknop +Name[ga]=DĂ­chuir +Name[gl]=Expulsar +Name[he]=Ś”Ś•ŚŠŚ +Name[hi]=à€Źà€Ÿà€čà€° +Name[hr]=Izbaci +#SUSE-Overwrite Name[hu]=KidobĂĄs +Name[hu]=KiadĂĄs +Name[is]=Henda Ășt +Name[it]=Espelli +Name[ja]=揖りć‡șし +#SUSE-Overwrite Name[km]=ច្រាន​ចេញ +Name[km]=ច្រានចេញ +Name[ko]=êșŒë‚Žêž° +Name[lo]=ເàș­àș»àșČແàșœà»ˆàș™àș­àș­àș +Name[lt]=IĆĄmesti +Name[lv]=IzƆemt +Name[mk]=ИзĐČĐ°ĐŽĐž +Name[mn]=Гаргах +Name[ms]=Lenting +Name[mt]=Iftaħ +Name[nb]=LĂžs ut +Name[nds]=Rutsmieten +Name[nl]=Uitwerpen +Name[nn]=LĂžys ut +Name[nso]=Ntsha +Name[oc]=Expulsa +Name[pa]=àšŹàšŸàščàš° àš•à©±àšąà©‹ +Name[pl]=WysuƄ +Name[pt]=Ejectar +Name[pt_BR]=Ejetar +Name[ro]=Ejectează +Name[ru]=ИзĐČĐ»Đ”Ń‡ŃŒ CD +Name[rw]=Gusohora +Name[se]=BĂĄlkes olggos +Name[sk]=VysunĂșĆ„ +Name[sl]=Izvrzi +Name[sr]=Đ˜Đ·Đ±Đ°Ń†Đž +Name[sr@Latn]=Izbaci +Name[ss]=Khafuna +Name[sv]=Mata ut +Name[ta]=àź”àŻ†àźłàźżàź€àŻàź€àźłàŻ +Name[tg]=Đ˜Ń…Ń€ĐŸÒ· +Name[th]=àč€àž­àžČàčàžœàčˆàž™àž­àž­àž +Name[tr]=Çıkart +Name[tt]=Ă‡Ä±ÄŸar +Name[uk]=Đ’ĐžŃˆŃ‚ĐŸĐČŃ…ĐœŃƒŃ‚Đž +Name[uz]=Đ§ĐžÒ›Đ°Ń€ĐžŃˆ +Name[ven]=Bvisa +Name[vi]=Đáș©y ra +Name[wa]=FĂ© rexhe +Name[xh]=Khuphela ngaphandle +Name[zh_CN]=ćŒčć‡ș +Name[zh_TW]=退ć‡ș +Name[zu]=Khipha +Exec=kio_media_mounthelper -e %u + + diff --git a/src/servicemenus/media_mount.desktop b/src/servicemenus/media_mount.desktop new file mode 100644 index 0000000..12fa545 --- /dev/null +++ b/src/servicemenus/media_mount.desktop @@ -0,0 +1,155 @@ +[Desktop Entry] +ServiceTypes=media/cdrom_unmounted,media/cdwriter_unmounted,media/dvd_unmounted,media/floppy5_unmounted,media/floppy_unmounted,media/hdd_unmounted,media/nfs_unmounted,media/removable_unmounted,media/smb_unmounted,media/zip_unmounted,media/camera_unmounted +Actions=MediaMount; +X-KDE-Priority=TopLevel +X-KDE-MediaNotifierHide=true + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action MediaMount] +Name=Mount +Name[af]=Koppel +Name[ar]=Ű­Ù…Ù‘Ù„ +Name[az]=Bağla +Name[bg]=ĐœĐŸĐœŃ‚ĐžŃ€Đ°ĐœĐ” +Name[bn]=àŠźàŠŸàŠ‰àŠšà§àŠŸ +Name[br]=Marc'hañ +Name[bs]=Montiraj +Name[ca]=Munta +Name[cs]=Pƙipojit +Name[cy]=Gosod +Name[da]=MontĂ©r +Name[de]=Laufwerk einbinden +Name[el]=Î ÏÎżÏƒÎŹÏÏ„Î·ÏƒÎ· +Name[eo]=Kroĉo +Name[es]=Montar +Name[et]=Ühenda +Name[eu]=Muntatu +Name[fa]=ŰłÙˆŰ§Ű±Ú©Ű±ŰŻÙ† +Name[fi]=LiitĂ€ +Name[fr]=Monter +Name[fy]=Oankeppelje (mount) +Name[ga]=Feistigh +Name[gl]=Montar +Name[he]=Ś—Ś‘Śš +Name[hi]=à€źà€Ÿà€‰à€šà„à€Ÿ +Name[hr]=Montiraj +Name[hsb]=montować +Name[hu]=CsatlakoztatĂĄs +Name[is]=Tengja +Name[it]=Monta +Name[ja]=マォント +#SUSE-Overwrite Name[km]=រៀបចំ +Name[km]=ម៉ោន +Name[lo]=àșˆà»àșžàșČàșš +Name[lt]=Montuoti +Name[lv]=Piemontēt +Name[mk]=ĐœĐŸĐœŃ‚ĐžŃ€Đ°Ń˜ +Name[mn]=Залгах +Name[ms]=Lekap +Name[mt]=Immonta +Name[nb]=Monter +Name[nds]=Inhangen +Name[nl]=Aankoppelen (mount) +Name[nn]=Monter +Name[nso]=Nameletsa +#SUSE-Overwrite Name[pa]=àšźàšŸàšŠàšŸ +Name[pa]=àšźàšŸàšŠàš‚àšŸ +Name[pl]=Zamontuj +Name[pt]=Montar +Name[pt_BR]=Montar +Name[ro]=Montează +Name[ru]=ĐœĐŸĐœŃ‚ĐžŃ€ĐŸĐČать +Name[rw]=Gushyiramo +Name[se]=Čana +Name[sk]=PripojiĆ„ +Name[sl]=Priklopi +Name[sr]=ĐœĐŸĐœŃ‚ĐžŃ€Đ°Ń˜ +Name[sr@Latn]=Montiraj +Name[sv]=Montera +Name[ta]=àźàź±àŻàź±àŻ +Name[tg]=Васл ĐșŃƒĐœÓŁ +Name[th]=àč€àžĄàč‰àžČàž—àž™àčŒ +Name[tr]=Bağla +Name[tt]=BĂ€ylĂ€p quy +Name[uk]=Đ—ĐŒĐŸĐœŃ‚ŃƒĐČато +Name[uz]=Улаш +Name[ven]=Gonya +Name[vi]=GáșŻn káșżt +Name[wa]=Monter +Name[xh]=Layisha +Name[zh_CN]=挂蜜 +Name[zh_TW]=掛茉 +Name[zu]=Yenyusa +Exec=kio_media_mounthelper -m %u + + diff --git a/src/servicemenus/media_realfolder.desktop b/src/servicemenus/media_realfolder.desktop new file mode 100644 index 0000000..b53f546 --- /dev/null +++ b/src/servicemenus/media_realfolder.desktop @@ -0,0 +1,114 @@ +[Desktop Entry] +ServiceTypes=media/cdrom_mounted,media/cdwriter_mounted,media/dvd_mounted,media/floppy5_mounted,media/floppy_mounted,media/hdd_mounted,media/nfs_mounted,media/smb_mounted,media/removable_mounted,media/zip_mounted +Actions=MediaRealFolder +X-KDE-Priority=TopLevel +X-KDE-MediaNotifierHide=true + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action MediaRealFolder] +Name=Open Medium System Folder +Name[ca]=Obre la carpeta de mitjans del sistema +Name[cs]=Otevƙít systĂ©movou sloĆŸku mĂ©dia +Name[da]=Åbn medium-system-mappen +Name[de]=Systemordner des Mediums öffnen +Name[el]=Î†ÎœÎżÎčÎłÎŒÎ± Ï„ÎżÏ… φαÎșÎ­Î»ÎżÏ… ÏƒÏ…ÏƒÏ„ÎźÎŒÎ±Ï„ÎżÏ‚ Ï„ÎżÏ… ÎŒÎ­ÏƒÎżÏ… +Name[es]=Abrir la carpeta del administrador de medios... +Name[et]=Ava andmekandja sĂŒsteemi kataloog +Name[eu]=Ireki euskarriaren kudeatzailea +Name[fi]=Avaa mediajĂ€rjestelmĂ€n kansio +Name[fr]=Dossier systĂšme d'ouverture de mĂ©dia +Name[he]=Ś€ŚȘŚ— ŚŚȘ ŚȘŚ™Ś§Ś™Ś™ŚȘ ŚžŚ“Ś™Ś™ŚȘ Ś”ŚžŚąŚšŚ›ŚȘ +Name[hu]=A mĂ©diaanyagok rendszerkönyvtĂĄrĂĄnak megnyitĂĄsa +Name[is]=Opin miĂ°ils kerfismappa +Name[it]=Cartella di sistema per l'apertura di supporti +Name[lt]=Atverti sisteminÄŻ ÄŻrenginio aplanką +Name[nb]=Åpne systemmappe for medie +Name[nl]=Systeemmap medium openen +#SUSE-Overwrite Name[pa]=àšźà©€àšĄà©€àš…àšź àšžàšżàšžàšŸàšź àš«à©‹àšČàšĄàš° àš–à©‹àšČੋ +Name[pa]=àšźà©€àšĄàšżàš…àšź àšžàšżàšžàšŸàšź àš«à©‹àšČàšĄàš° àš–à©‹àšČੋ +Name[pl]=OtwĂłrz folder systemowy mediĂłw +Name[pt]=Pasta de Sistema MĂ©dia Aberto +Name[pt_BR]=Abrir a Pasta de MĂ­dias do Sistema +Name[ru]=ОтĐșрыть ŃĐžŃŃ‚Đ”ĐŒĐœŃƒŃŽ папĐșу +Name[sr]=ОтĐČĐŸŃ€Đž ŃĐžŃŃ‚Đ”ĐŒŃĐșу фасцоĐșлу ĐŒĐ”ĐŽĐžŃ˜ŃƒĐŒĐ° +Name[sr@Latn]=Otvori sistemsku fasciklu medijuma +Name[sv]=Öppna mediumsystemkatalog +Name[uk]=ВіЮĐșрото ŃĐžŃŃ‚Đ”ĐŒĐœŃƒ Ń‚Đ”Đșу ĐœĐŸŃŃ–Ń +Name[zh_CN]=æ‰“ćŒ€ä»‹èŽšçł»ç»Ÿæ–‡ä»¶ć€č +Exec=kio_media_realfolder %u + + +Name[bg]=ĐĄĐžŃŃ‚Đ”ĐŒĐœĐ° папĐșĐ° ĐœĐ° Open Medium +Name[ja]=ă‚ȘăƒŒăƒ—ăƒł ăƒĄăƒ‡ă‚Łă‚ąă‚·ă‚čăƒ†ăƒ ăƒ•ă‚©ăƒ«ăƒ€ +Name[km]=បសក​ថត​ប្រព័ន្ធ​មេឌៀ +Name[zh_TW]=開敟ćȘ’é«”çł»ç”±èł‡æ–™ć€Ÿ diff --git a/src/servicemenus/media_safelyremove.desktop b/src/servicemenus/media_safelyremove.desktop new file mode 100644 index 0000000..7d1ccc2 --- /dev/null +++ b/src/servicemenus/media_safelyremove.desktop @@ -0,0 +1,132 @@ +[Desktop Entry] +ServiceTypes=media/removable_mounted,media/removable_unmounted,media/camera_mounted,media/camera_unmounted +Actions=MediaSafelyRemove; +X-KDE-Priority=TopLevel +X-KDE-MediaNotifierHide=true + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action MediaSafelyRemove] +Name=Safely Remove +Name[af]=Verwyder veilig +Name[bg]=Đ‘Đ”Đ·ĐŸĐżĐ°ŃĐœĐŸ ОзĐČĐ°Đ¶ĐŽĐ°ĐœĐ” +Name[bn]=àŠšàŠżàŠ°àŠŸàŠȘàŠŠàŠ­àŠŸàŠŹà§‡ àŠžàŠ°àŠŸàŠ“ +Name[ca]=Extreu amb seguretat +Name[cs]=Bezpečně odstranit +Name[da]=Fjern sikkert +Name[de]=Sicher entfernen +Name[el]=Î‘ÏƒÏ†Î±Î»ÎźÏ‚ Î±Ï†Î±ÎŻÏÎ”ÏƒÎ· +Name[es]=ExtracciĂłn segura +Name[et]=Eemalda turvaliselt +Name[eu]=Atera arriskurik gabe +Name[fi]=Poista turvallisesti +Name[fr]=Enlever en toute sĂ©curitĂ© +Name[fy]=Feilich ferwiderje +Name[gl]=Eliminar de Maneira Segura +Name[he]=Ś©ŚœŚ™Ś€Ś” Ś‘Ś‘Ś˜Ś—Ś” +Name[hu]=BiztonsĂĄgos levĂĄlasztĂĄs +Name[is]=FjarlĂŠgja öruggt +Name[it]=Rimozione sicura +Name[ja]=ćź‰ć…šă«ć–ă‚Šé™€ă +#SUSE-Overwrite Name[km]=យកចេញ​ដោយ​សុវត្ថិភាព +Name[km]=យក​ចេញ​ដោយ​សុវត្ថិភាព +Name[lt]=Saugiai paĆĄalinti +Name[mk]=ĐžŃ‚ŃŃ‚Ń€Đ°ĐœĐž Đ±Đ”Đ·Đ±Đ”ĐŽĐœĐŸ +Name[ms]=Buang Dengan Selamat +Name[nb]=Sikker fjerning +Name[nds]=Seker rutnehmen +Name[nl]=Veilig verwijderen +Name[nn]=Trygg fjerning +#SUSE-Overwrite Name[pa]=àšžà©àš°à©±àš–àšżàš…àš€ àščàšŸàšŸàš“ +Name[pa]=àšžà©àš°à©±àš–àšżàš…àš€ àš°à©‚àšȘ 'àšš àščàšŸàšŸàš“ +Name[pl]=UsuƄ w sposĂłb bezpieczny +Name[pt]=Retirar com Segurança +Name[pt_BR]=Remover de Modo Seguro +Name[ro]=Scoate Ăźn siguranƣă +Name[ru]=Đ‘Đ”Đ·ĐŸĐżĐ°ŃĐœĐŸ ОзĐČĐ»Đ”Ń‡ŃŒ +Name[rw]=Gukuramo Neza +Name[se]=DorvvoĆĄlaĆĄ eretvĂĄldin +Name[sl]=Varno odstrani +Name[sr]=Đ‘Đ”Đ·Đ±Đ”ĐŽĐœĐŸ уĐșĐ»ĐŸĐœĐž +Name[sr@Latn]=Bezbedno ukloni +Name[sv]=SĂ€ker urkoppling +Name[ta]=àźȘàźŸàź€àŻàź•àźŸàźȘàŻàźȘàźŸàź• àźšàŻ€àź•àŻàź•àŻ +Name[th]=àž–àž­àž”àž­àž­àžàč„àž”àč‰àž­àžąàčˆàžČàž‡àž›àž„àž­àž”àž àž±àžą +Name[tr]=GĂŒvenli Kaldır +Name[tt]=Ä°min Ă‡Ä±ÄŸaru +Name[uk]=Đ‘Đ”Đ·ĐżĐ”Ń‡ĐœĐŸ ĐČĐžĐ»ŃƒŃ‡ĐžŃ‚Đž +Name[uz]=Đ­ÒłŃ‚ĐžŃ‘Ń‚Đ»ĐžĐș Đ±ĐžĐ»Đ°Đœ узОш +Name[zh_CN]=ćź‰ć…šćˆ é™€ +Name[zh_TW]=柉慚的移陀 +Exec=kio_media_mounthelper -s %u + + diff --git a/src/servicemenus/media_unmount.desktop b/src/servicemenus/media_unmount.desktop new file mode 100644 index 0000000..b70e3a5 --- /dev/null +++ b/src/servicemenus/media_unmount.desktop @@ -0,0 +1,155 @@ +[Desktop Entry] +ServiceTypes=media/cdrom_mounted,media/cdwriter_mounted,media/dvd_mounted,media/floppy5_mounted,media/floppy_mounted,media/hdd_mounted,media/nfs_mounted,media/smb_mounted,media/zip_mounted,media/vcd,media/svcd,media/dvdvideo +Actions=MediaUnmount; +X-KDE-Priority=TopLevel +X-KDE-MediaNotifierHide=true + +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +X-SuSE-translate=true +[Desktop Action MediaUnmount] +Name=Unmount +Name[af]=Ontkoppel +Name[ar]=ŰŁŰČل Ű§Ù„ŰȘŰ­Ù…ÙŠÙ„ +Name[az]=Ayır +Name[bg]=Đ”Đ”ĐŒĐŸĐœŃ‚ĐžŃ€Đ°ĐœĐ” +Name[bn]=àŠ†àŠšàŠźàŠŸàŠ‰àŠšà§àŠŸ +Name[br]=Divarc'hañ +Name[bs]=Demontiraj +Name[ca]= Desmunta +Name[cs]=Odpojit +Name[cy]=Dadosod +Name[da]=AfmontĂ©r +Name[de]=Laufwerkeinbindung lösen +Name[el]=Î‘Ï€ÎżÏ€ÏÎżÏƒÎŹÏÏ„Î·ÏƒÎ· +Name[eo]=Malkroĉo +Name[es]=Desmontar +Name[et]=Lahuta +Name[eu]=Desmuntatu +Name[fa]=ÙŸÛŒŰ§ŰŻÙ‡ Ú©Ű±ŰŻÙ† +Name[fi]=Irrota +Name[fr]=DĂ©monter (enlever de l'arborescence Linux) +Name[fy]=Ofkeppelje (unmount) +Name[ga]=DĂ­fheistigh +Name[gl]=Desmontar +Name[he]=Ś ŚȘŚ§ +Name[hi]=à€…à€šà€źà€Ÿà€‰à€šà„à€Ÿ +Name[hr]=Demontiraj +Name[hsb]=Wotmontować +Name[hu]=LevĂĄlasztĂĄs +Name[is]=Aftengja +Name[it]=Smonta +Name[ja]=ăƒžă‚Šăƒłăƒˆè§Łé™€ +#SUSE-Overwrite Name[km]=មិន​រៀបចំ +Name[km]=មិន​ម៉ោន +Name[lo]=àș«àș±àș‡àșàșČàș„àș” +Name[lt]=IĆĄmontuoti +Name[lv]=Nomontēt +Name[mk]=Đ”Đ”ĐŒĐŸĐœŃ‚ĐžŃ€Đ°Ń˜ +Name[mn]=Халгах +Name[ms]=Nyahlekap +Name[mt]=Ć»monta +Name[nb]=Avmonter +Name[nds]=Afhangen +Name[nl]=Afkoppelen (unmount) +Name[nn]=Avmonter +Name[nso]=Theosa +#SUSE-Overwrite Name[pa]=àš…àššàšźàšŸàš‰àšŸ +Name[pa]=àš…àšŁ-àšźàšŸàšŠàš‚àšŸ +Name[pl]=Odmontuj +Name[pt]=Desmontar +Name[pt_BR]=Desmontar +Name[ro]=Demontează +Name[ru]=ĐžŃ‚ĐŒĐŸĐœŃ‚ĐžŃ€ĐŸĐČать +Name[rw]=Gukuramo +Name[se]=GĂĄlgga +Name[sk]=OdpojiĆ„ +Name[sl]=Odklopi +Name[sr]=Đ”Đ”ĐŒĐŸĐœŃ‚ĐžŃ€Đ°Ń˜ +Name[sr@Latn]=Demontiraj +Name[sv]=Avmontera +Name[ta]=àź”àŻ†àźłàźżàźŻàŻ‡àź±àŻàź±àŻ +Name[tg]=Ò¶ŃƒĐŽĐŸ ĐșŃƒĐœÓŁ +Name[th]=àžąàžàč€àž„àžŽàžàč€àžĄàč‰àžČàž—àž™àčŒ +Name[tr]=Ayır +Name[tt]=BĂ€ylĂ€wne çiƟ +Name[uk]=Đ”Đ”ĐŒĐŸĐœŃ‚ŃƒĐČато +Name[uz]=УзОш +Name[ven]=Usa gonya +Name[vi]=Gụ +Name[wa]=Dismonter +Name[xh]=Sukuyilayisha +Name[zh_CN]=ćžèœœ +Name[zh_TW]=æœȘ掛茉 +Name[zu]=Yehlisa +Exec=kio_media_mounthelper -u %u + + diff --git a/src/servicemenus/open_in_digikam.desktop b/src/servicemenus/open_in_digikam.desktop new file mode 100644 index 0000000..658df91 --- /dev/null +++ b/src/servicemenus/open_in_digikam.desktop @@ -0,0 +1,29 @@ +[Desktop Action OpenDigikam] +Exec=digikam --download-from %u +Icon=digikam +Name=Open in Digikam + +Name[bg]=ОтĐČĐ°Ń€ŃĐœĐ” ĐČ digiKam +Name[cs]=Otevƙít v digiKamu +Name[el]=Î†ÎœÎżÎčΟΔ ÏƒÏ„Îż Digikam +Name[es]=Abrir en digiKam +Name[fi]=Avaa digiKamissa +Name[fr]=Ouvert dans Digikam +Name[hu]=MegnyitĂĄs Digikammel +Name[ja]=Digikamでă‚ȘăƒŒăƒ—ăƒł +Name[km]=បសក​ក្នុង Digikam +Name[nb]=Åpne i digiKam +Name[nl]=Openen in digiKam +Name[pa]=àšĄàšżàšœàšŒà©€àš•à©ˆàšź 'àšš àš–à©‹àšČੋ +Name[pl]=OtwĂłrz w Digikam +Name[pt]=Abrir no DigiKam +Name[pt_BR]=Aberto no Digikam +Name[sv]=Öppna med Digikam +Name[uk]=ВіЮĐșрото ĐČ Digikam +Name[zh_CN]=朹 Digikam äž­æ‰“ćŒ€ +Name[zh_TW]=朹 Digikam 侭開敟 +[Desktop Entry] +Actions=OpenDigikam; +ServiceTypes=media/gphoto2camera,media/camera_mounted,media/camera_unmounted + +X-SuSE-translate=true diff --git a/src/servicemenus/run_as_root.desktop b/src/servicemenus/run_as_root.desktop new file mode 100644 index 0000000..6ba05c0 --- /dev/null +++ b/src/servicemenus/run_as_root.desktop @@ -0,0 +1,17 @@ +[Desktop Entry] +ServiceTypes=application/x-executable,application/x-shellscript,application/x-python,application/x-perl +Actions=runassu + +[Desktop Action runassu] +Name=Run as Root +Name[de]=Als root ausfĂŒhren +Name[cs]=Spustit jako root +Name[sk]=SpustiĆ„ ako root +Name[hu]=FuttatĂĄs rootkĂ©nt +Name[fr]=Lancer en root +Name[el]=ΕÎșτέλΔση ως Î„Ï€Î”ÏÏ‡ÏÎźÏƒÏ„Î·ïżœName[es]=Ejecutar como Root +Name[pt_br]=Executar como Root +Name[it]=Esegui come Root +Name[pl]=Uruchom jako root +Icon=kfm +Exec=kdesu -c diff --git a/src/servicemenus/smb2rdc.desktop b/src/servicemenus/smb2rdc.desktop new file mode 100644 index 0000000..4b55dea --- /dev/null +++ b/src/servicemenus/smb2rdc.desktop @@ -0,0 +1,55 @@ +# KDE Config File +[Desktop Entry] +ServiceTypes=application/x-smb-server +Actions=smb2rdc + +[Desktop Action smb2rdc] +Name=Open Remote Desktop Connection to This Machine +Name[be]=АЎĐșрыць Đ°ĐŽĐŽĐ°Đ»Đ”ĐœĐ°Đ” Đ·Đ»ŃƒŃ‡ŃĐœĐœĐ” Đ· ĐșĐ°ĐŒĐżŃƒŃ‚Đ°Ń€Đ°ĐŒ +Name[bg]=ВръзĐșĐ° с ĐŸŃ‚ĐŽĐ°Đ»Đ”Ń‡Đ”Đœ Ń€Đ°Đ±ĐŸŃ‚ĐœĐŸ ĐŒŃŃŃ‚ĐŸ с ĐžĐ·Đ±Ń€Đ°ĐœĐžŃ ĐșĐŸĐŒĐżŃŽŃ‚ŃŠŃ€ +Name[bn]=àŠàŠ‡ àŠźà§‡àŠ¶àŠżàŠšà§‡ àŠȘà§àŠ°àŠ€à§àŠŻàŠšà§àŠ€ àŠĄà§‡àŠžà§àŠ•àŠŸàŠȘà§‡àŠ° àŠžàŠ‚àŠŻà§‹àŠ— àŠ–à§‹àŠČো +Name[bs]=Otvori Remote Desktop vezu na ovaj računar +Name[ca]=Obre una connexiĂł remota d'escriptori a aquesta mĂ quina +Name[cs]=Otevƙít vzdĂĄlenĂ© pƙipojenĂ­ plochy k tomuto počítači +Name[da]=Åbn ekstern desktopforbindelse til denne maskine +Name[de]=Verbindung zur ArbeitsflĂ€che dieses Rechners herstellen +Name[el]=ΔηΌÎčÎżÏ…ÏÎłÎŻÎ± σύΜΎΔσης σΔ Î±Ï€ÎżÎŒÎ±ÎșρυσΌέΜη ΔπÎčÏ†ÎŹÎœÎ”Îčα Î”ÏÎłÎ±ÏƒÎŻÎ±Ï‚ σΔ αυτό Ï„Îż ÎŒÎ·Ï‡ÎŹÎœÎ·ÎŒÎ± +Name[es]=Abrir conexiĂłn remota de escritorio a este sistema +Name[et]=Kaugtöölaua ĂŒhenduse avamine sellesse arvutisse +Name[eu]=Open Remote Desktop konexioa makina honetara +Name[fa]=ۚۧŰČ Ú©Ű±ŰŻÙ† ۧŰȘŰ”Ű§Ù„ Ű±ÙˆÙ…ÛŒŰČی Ű±Ű§Ù‡ ŰŻÙˆŰ± ŰšŰ±Ű§ÛŒ Ű§ÛŒÙ† Ù…Ű§ŰŽÛŒÙ† +Name[fi]=Avaa etĂ€työpöytĂ€yhteys tĂ€hĂ€n koneeseen +Name[fr]=Ouvrir une connexion distante au bureau de cette machine +Name[gl]=Abrir ConexiĂłn Remota de Escritorio a Esta MĂĄquina +Name[he]=Ś€ŚȘŚ— Ś—Ś™Ś‘Ś•Śš Ś©Ś•ŚœŚ—ŚŸ ŚąŚ‘Ś•Ś“Ś” ŚžŚšŚ•Ś—Ś§ ŚœŚžŚ›Ś•Ś Ś” Ś–Ś• +Name[hu]=TĂĄvoli munkaasztal nyitĂĄsa itt +Name[is]=Opna fjarlĂŠga skjĂĄborĂ°tengingu til ĂŸessarar vĂ©lar +Name[it]=Apri connessione a desktop remoto a questa macchina +Name[ja]=こぼホă‚čトぞăƒȘăƒąăƒŒăƒˆăƒ‡ă‚čă‚Żăƒˆăƒƒăƒ—æŽ„ç¶šă‚’é–‹ă +Name[kk]=Осы ĐșĐŸĐŒĐżŃŒŃŽŃ‚Đ”Ń€ĐŽĐ”ĐłŃ– ÒŻŃŃ‚Đ”Đ»ĐłĐ” Ò›Đ°ŃˆŃ‹Ò› Ò›ĐŸŃŃ‹Đ»Ń‹ĐŒĐŽŃ‹ ашу +Name[km]=បសក​ការ​ត​ភ្ជាប​ផ្ទៃ​តុ​ពឞ​ចម្ងាយ​ទៅ​ម៉ាស៊ឞន​នេះ +Name[lt]=UĆŸmegzti nutolusio darbastalio prijungimą prie ĆĄio kompiuterio +Name[nb]=Åpne fjerntilkobling til skrivebord til denne maskinen +Name[nds]=Schriefdisch-Feernverbinnen na dissen Reekner opmaken +Name[ne]=à€Żà„‹ à€źà„‡à€¶à€żà€šà€źà€Ÿ à€Ÿà€Ÿà€ąà€Ÿà€•à„‹ à€Ąà„‡à€žà„à€•à€Ÿà€Ș à€œà€Ąà€Ÿà€š à€–à„‹à€Čà„à€šà„à€čà„‹à€žà„ +Name[nl]=Externe bureaubladverbinding met deze computer openen +Name[nn]=Opna samband til skrivebordet over nettverket til denne maskina +Name[pa]=àš‡àšč àšźàšžàšŒà©€àšš àšČàšˆ àš°àšżàšźà©‹àšŸ àšĄà©ˆàšžàš•àšŸàšŸàšȘ àš•à©àššà©ˆàš•àšžàšŒàšš àš–à©‹àšČ੍àščੋ +Name[pl]=OtwĂłrz zdalne poƂączenie z pulpitem na tej maszynie +Name[pt]=Abrir Ligação Remota a EcrĂŁ para Este Computador +Name[pt_BR]=Abre ConexĂ”es Remotas para Essa MĂĄquina +Name[ru]=ОтĐșрыть ŃĐŸĐ”ĐŽĐžĐœĐ”ĐœĐžĐ” Remote Desktop с ŃŃ‚ĐŸĐč ĐŒĐ°ŃˆĐžĐœĐŸĐč +Name[sk]=OtvorĂ­ spojenie na vzdialenĂș pracovnĂș plochu na tomto počítači +Name[sl]=Odpri povezavo z oddaljenim namizjem na tem računalniku +Name[sr]=ОтĐČĐŸŃ€Đž ŃƒĐŽĐ°Ń™Đ”ĐœŃƒ ĐČДзу са Ń€Đ°ĐŽĐœĐŸĐŒ ĐżĐŸĐČŃ€ŃˆĐžĐœĐŸĐŒ ĐœĐ° ĐŸĐČĐŸŃ˜ ĐŒĐ°ŃˆĐžĐœĐž +Name[sr@Latn]=Otvori udaljenu vezu sa radnom povrĆĄinom na ovoj maĆĄini +Name[sv]=Öppna fjĂ€rrskrivbordsanslutning till den hĂ€r datorn +Name[tr]=Bu makinaya Uzak MasaĂŒstĂŒ Bağlantısı aç +Name[uk]=ВіЮĐșрото Đ·'Ń”ĐŽĐœĐ°ĐœĐœŃ Đ· ĐČŃ–ĐŽĐŽĐ°Đ»Đ”ĐœĐŸŃŽ ŃŃ‚Ń–Đ»ŃŒĐœĐžŃ†Đ”ŃŽ ĐŽĐŸ Ń†ŃŒĐŸĐłĐŸ ĐșĐŸĐŒĐż'ютДра +Name[zh_CN]=æ‰“ćŒ€ćˆ°æ­€èźĄçź—æœșçš„èżœçš‹æĄŒéąèżžæŽ„ +Name[zh_HK]=é–‹æ”Ÿé ç«ŻæĄŒéąé€Łç·šćˆ°é€™é›»è…Š +Name[zh_TW]=ćœšæ­€äž»æ©ŸäžŠé–‹ć•Ÿé ç«ŻæĄŒéą +Exec=krdc %u +Icon=krdc + + diff --git a/src/servicemenus/text-ada-print.desktop b/src/servicemenus/text-ada-print.desktop new file mode 100644 index 0000000..c0c04c0 --- /dev/null +++ b/src/servicemenus/text-ada-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-adasrc +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-c++-print.desktop b/src/servicemenus/text-c++-print.desktop new file mode 100644 index 0000000..f34dee4 --- /dev/null +++ b/src/servicemenus/text-c++-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-c++src +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-c++h-print.desktop b/src/servicemenus/text-c++h-print.desktop new file mode 100644 index 0000000..01a8bfc --- /dev/null +++ b/src/servicemenus/text-c++h-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-c++hdr +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-ch-print.desktop b/src/servicemenus/text-ch-print.desktop new file mode 100644 index 0000000..cd3f587 --- /dev/null +++ b/src/servicemenus/text-ch-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-chdr +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-css-print.desktop b/src/servicemenus/text-css-print.desktop new file mode 100644 index 0000000..3659747 --- /dev/null +++ b/src/servicemenus/text-css-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/css +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-diff-print.desktop b/src/servicemenus/text-diff-print.desktop new file mode 100644 index 0000000..a0c39f0 --- /dev/null +++ b/src/servicemenus/text-diff-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-diff +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-html-print.desktop b/src/servicemenus/text-html-print.desktop new file mode 100644 index 0000000..edf95e6 --- /dev/null +++ b/src/servicemenus/text-html-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/html +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-java-print.desktop b/src/servicemenus/text-java-print.desktop new file mode 100644 index 0000000..96dd0d6 --- /dev/null +++ b/src/servicemenus/text-java-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-java +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-log-print.desktop b/src/servicemenus/text-log-print.desktop new file mode 100644 index 0000000..ad44325 --- /dev/null +++ b/src/servicemenus/text-log-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-log +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-makefile-print.desktop b/src/servicemenus/text-makefile-print.desktop new file mode 100644 index 0000000..4f2d679 --- /dev/null +++ b/src/servicemenus/text-makefile-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-makefile +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-pas-print.desktop b/src/servicemenus/text-pas-print.desktop new file mode 100644 index 0000000..e9e303b --- /dev/null +++ b/src/servicemenus/text-pas-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-pascal +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-perl-print.desktop b/src/servicemenus/text-perl-print.desktop new file mode 100644 index 0000000..effdc4a --- /dev/null +++ b/src/servicemenus/text-perl-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-perl +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-print.desktop b/src/servicemenus/text-print.desktop new file mode 100644 index 0000000..2b72284 --- /dev/null +++ b/src/servicemenus/text-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/plain +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-python-print.desktop b/src/servicemenus/text-python-print.desktop new file mode 100644 index 0000000..660f5de --- /dev/null +++ b/src/servicemenus/text-python-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-python +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-tcl-print.desktop b/src/servicemenus/text-tcl-print.desktop new file mode 100644 index 0000000..ce786d1 --- /dev/null +++ b/src/servicemenus/text-tcl-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-tcl +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-tex-print.desktop b/src/servicemenus/text-tex-print.desktop new file mode 100644 index 0000000..32e9c3c --- /dev/null +++ b/src/servicemenus/text-tex-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-tex +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-xml-print.desktop b/src/servicemenus/text-xml-print.desktop new file mode 100644 index 0000000..ad4e8ed --- /dev/null +++ b/src/servicemenus/text-xml-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-xml +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/servicemenus/text-xslt-print.desktop b/src/servicemenus/text-xslt-print.desktop new file mode 100644 index 0000000..c482c0a --- /dev/null +++ b/src/servicemenus/text-xslt-print.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +ServiceTypes=text/x-xslt +Actions=Print; + +[Desktop Action Print] +Name=Print... +Name[af]=Druk... +Name[ar]=۷ۚۧŰčŰ©... +Name[az]=Çap et... +Name[be]=ДруĐșĐ°ĐČаць... +Name[bg]=ĐŸĐ”Ń‡Đ°Ń‚... +Name[bn]=àŠ›àŠŸàŠȘàŠŸàŠ“... +Name[br]=Moulañ ... +Name[bs]=Ć tampaj... +Name[ca]=Imprimeix... +Name[cs]=Tisknout... +Name[csb]=DrĂ«kĂčjĂ«... +Name[cy]=Argraffu... +Name[da]=Udskriv... +Name[de]=Drucken ... +Name[el]=ΕÎșτύπωση... +Name[eo]=Printi... +Name[es]=Imprimir... +Name[et]=TrĂŒki... +Name[eu]=Inprimatu... +Name[fa]=Ú†Ű§ÙŸ... +Name[fi]=Tulosta... +Name[fr]=Imprimer... +Name[fy]=Printsje... +Name[ga]=PriontĂĄil... +Name[gl]=Imprimir... +Name[he]=Ś”Ś“Ś€ŚĄ... +Name[hi]=à€›à€Ÿà€Șà„‡à€‚... +Name[hr]=IspiĆĄi... +Name[hu]=NyomtatĂĄs... +Name[is]=Prenta... +Name[it]=Stampa... +Name[ja]=ć°ćˆ·... +Name[kk]=Басып ŃˆŃ‹Ò“Đ°Ń€Ńƒ... +Name[km]=បោះពុម្ព... +Name[lv]=Drukāt... +Name[mk]=ĐŸĐ”Ń‡Đ°Ń‚Đž... +Name[ms]=Cetak... +Name[mt]=Ipprintja... +Name[nb]=Skriv ut... +Name[nds]=Drucken... +Name[ne]=à€źà„à€Šà„à€°à€Ł... +Name[nl]=Afdrukken... +Name[nn]=Skriv ut ... +Name[pa]=àš›àšȘàšŸàšˆ... +Name[pl]=Drukuj... +Name[pt]=Imprimir... +Name[pt_BR]=Imprimir... +Name[ro]=TipăreƟte... +Name[ru]=ĐŸĐ”Ń‡Đ°Ń‚ŃŒ... +Name[rw]=Gucapa... +Name[se]=Čálit 
 +Name[sk]=Tlač... +Name[sl]=Natisni ... +Name[sr]=ĐšŃ‚Đ°ĐŒĐżĐ°... +Name[sr@Latn]=Ć tampa... +Name[sv]=Skriv ut... +Name[ta]=àź…àźšàŻàźšàźŸàźż... +Name[te]=à°Șà±à°°à°šà±à°°à°żà°‚à°šà±... +Name[tg]=Đ§ĐŸĐż ĐșĐ°Ń€ĐŽĐ°Đœ... +Name[th]=àžžàžŽàžĄàžžàčŒ... +Name[tr]=Yazdır... +Name[tt]=Bastıru... +Name[uk]=ДруĐș... +Name[uz]=Đ‘ĐŸŃĐžĐ± Ń‡ĐžÒ›Đ°Ń€ĐžŃˆ +Name[vi]=In áș„n... +Name[zh_CN]=æ‰“ć°... +Name[zh_TW]=戗捰... +Exec=kprinter -t %n --caption %n --icon %i --miniicon %m %U +Icon=filequickprint diff --git a/src/settingspagebase.cpp b/src/settingspagebase.cpp new file mode 100644 index 0000000..244242c --- /dev/null +++ b/src/settingspagebase.cpp @@ -0,0 +1,33 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "settingspagebase.h" + +SettingsPageBase::SettingsPageBase(QWidget* parent) : + QWidget(parent) +{ +} + +SettingsPageBase::~SettingsPageBase() +{ +} + + +#include "settingspagebase.moc" diff --git a/src/settingspagebase.h b/src/settingspagebase.h new file mode 100644 index 0000000..0d4ec54 --- /dev/null +++ b/src/settingspagebase.h @@ -0,0 +1,46 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef SETTINGSPAGEBASE_H +#define SETTINGSPAGEBASE_H + +#include + +/** + * @brief Base class for the settings pages of the Dolphin settings dialog. + * + * @author Peter Penz + */ +class SettingsPageBase : public QWidget +{ + Q_OBJECT + +public: + SettingsPageBase(QWidget* parent); + virtual ~SettingsPageBase(); + + /** + * Must be implemented by a derived class to + * persistently store the settings. + */ + virtual void applySettings() = 0; +}; + +#endif diff --git a/src/sidebarpage.cpp b/src/sidebarpage.cpp new file mode 100644 index 0000000..ab057d1 --- /dev/null +++ b/src/sidebarpage.cpp @@ -0,0 +1,36 @@ +/*************************************************************************** + * Copyright (C) 2006 by Cvetoslav Ludmiloff * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "sidebarpage.h" +#include "dolphin.h" + +SidebarPage::SidebarPage(QWidget* parent) : + QWidget(parent) +{ + connect(&Dolphin::mainWin(), SIGNAL(activeViewChanged()), + this, SLOT(activeViewChanged())); +} + +SidebarPage::~SidebarPage() +{ +} + +void SidebarPage::activeViewChanged() +{ +} diff --git a/src/sidebarpage.h b/src/sidebarpage.h new file mode 100644 index 0000000..e136016 --- /dev/null +++ b/src/sidebarpage.h @@ -0,0 +1,49 @@ +/*************************************************************************** + * Copyright (C) 2006 by Cvetoslav Ludmiloff * + * Copyright (C) 2006 by Peter Penz + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef _SIDEBARPAGE_H_ +#define _SIDEBARPAGE_H_ + +#include + +class Sidebar; + +/** + * @brief Base widget for all pages that can be embedded into the Sidebar. + * + * TODO + */ +class SidebarPage : public QWidget +{ + Q_OBJECT + +public: + SidebarPage(QWidget* parent); + virtual ~SidebarPage(); + +protected slots: + /** + * Is invoked whenever the active view from Dolphin has been changed. + * The active view can be retrieved by Dolphin::mainWin().activeView(); + */ + virtual void activeViewChanged(); +}; + +#endif // _SIDEBARPAGE_H_ diff --git a/src/sidebars.cpp b/src/sidebars.cpp new file mode 100644 index 0000000..6d401be --- /dev/null +++ b/src/sidebars.cpp @@ -0,0 +1,190 @@ +/*************************************************************************** + * Copyright (C) 2007 by Marcel Juhnke * + * marrat@marrat.homelinux.org * + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include +#include +#include +#include +#include + +#include "dolphinsettings.h" +#include "sidebarssettings.h" +#include "bookmarkssidebarpage.h" +#include "infosidebarpage.h" +#include "sidebars.h" + +#include + +/** + * + * @param parent + */ +leftSidebar::leftSidebar(QWidget* parent) : + QWidget(parent), + m_pagesSelector(0), + m_page(0), + m_layout(0) +{ + m_layout = new QVBoxLayout(this); + + m_pagesSelector = new QComboBox(this); + m_pagesSelector->insertItem(i18n("Bookmarks")); + m_pagesSelector->insertItem(i18n("Information")); + + // Assure that the combo box has the same height as the URL navigator for + // a clean layout. + // TODO: the following 2 lines have been copied from the URLNavigator + // constructor (-> provide a shared height setting?) + //QFontMetrics fontMetrics(font()); + QFontMetrics fontMetrics(font()); + m_pagesSelector->setMinimumHeight(fontMetrics.height() + 8); + + leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); + const int selectedIndex = indexForName(settings->selectedPage()); + m_pagesSelector->setCurrentItem(selectedIndex); + m_layout->addWidget(m_pagesSelector); + + createPage(selectedIndex); + + connect(m_pagesSelector, SIGNAL(activated(int)), + this, SLOT(createPage(int))); +} + +leftSidebar::~leftSidebar() +{ +} + +QSize leftSidebar::sizeHint() const +{ + QSize size(QWidget::sizeHint()); + + leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); + size.setWidth(settings->width()); + return size; +} + +void leftSidebar::createPage(int index) +{ + if (m_page != 0) { + m_page->deleteLater(); + m_page = 0; + } + + switch (index) { + case 0: m_page = new BookmarksSidebarPage(this); break; + case 1: m_page = new InfoSidebarPage(this); break; + default: break; + } + + m_layout->addWidget(m_page); + m_page->show(); + + leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); + settings->setSelectedPage(m_pagesSelector->text(index)); +} + +int leftSidebar::indexForName(const QString& name) const +{ + const int count = m_pagesSelector->count(); + for (int i = 0; i < count; ++i) { + if (m_pagesSelector->text(i) == name) { + return i; + } + } + + return 0; +} + +rightSidebar::rightSidebar(QWidget* parent) : + QWidget(parent), + m_pagesSelector(0), + m_page(0), + m_layout(0) +{ + m_layout = new QVBoxLayout(this); + + m_pagesSelector = new QComboBox(this); + m_pagesSelector->insertItem(i18n("Bookmarks")); + m_pagesSelector->insertItem(i18n("Information")); + + // Assure that the combo box has the same height as the URL navigator for + // a clean layout. + // TODO: the following 2 lines have been copied from the URLNavigator + // constructor (-> provide a shared height setting?) + QFontMetrics fontMetrics(font()); + m_pagesSelector->setMinimumHeight(fontMetrics.height() + 8); + + rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); + const int selectedIndex = indexForName(settings->selectedPage()); + m_pagesSelector->setCurrentItem(selectedIndex); + m_layout->addWidget(m_pagesSelector); + + createPage(selectedIndex); + + connect(m_pagesSelector, SIGNAL(activated(int)), + this, SLOT(createPage(int))); +} + +rightSidebar::~rightSidebar() +{ +} + +QSize rightSidebar::sizeHint() const +{ + QSize size(QWidget::sizeHint()); + + rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); + size.setWidth(settings->width()); + return size; +} + +void rightSidebar::createPage(int index) +{ + if (m_page != 0) { + m_page->deleteLater(); + m_page = 0; + } + + switch (index) { + case 0: m_page = new BookmarksSidebarPage(this); break; + case 1: m_page = new InfoSidebarPage(this); break; + default: break; + } + + m_layout->addWidget(m_page); + m_page->show(); + + rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); + settings->setSelectedPage(m_pagesSelector->text(index)); +} + +int rightSidebar::indexForName(const QString& name) const +{ + const int count = m_pagesSelector->count(); + for (int i = 0; i < count; ++i) { + if (m_pagesSelector->text(i) == name) { + return i; + } + } + + return 0; +} diff --git a/src/sidebars.h b/src/sidebars.h new file mode 100644 index 0000000..d7eac77 --- /dev/null +++ b/src/sidebars.h @@ -0,0 +1,90 @@ +/*************************************************************************** + * Copyright (C) 2007 by Marcel Juhnke * + * marrat@marrat.homelinux.org * + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef _SIDEBARS_H_ +#define _SIDEBARS_H_ + +#include + + +class KURL; +class QComboBox; +class QVBoxLayout; +class SidebarPage; + +class leftSidebar : public QWidget +{ + Q_OBJECT + + public: + leftSidebar(QWidget* parent); + virtual ~leftSidebar(); + + virtual QSize sizeHint() const; + + signals: + /** + * The user selected an item on sidebar widget and item has + * URL property, so inform the parent to go to this URL; + */ + void urlChanged(const KURL& url); + + private slots: + void createPage(int index); + + private: + int indexForName(const QString& name) const; + + QComboBox* m_pagesSelector; + SidebarPage* m_page; + QVBoxLayout* m_layout; +}; + +class rightSidebar : public QWidget +{ + Q_OBJECT + + public: + rightSidebar(QWidget* parent); + virtual ~rightSidebar(); + + virtual QSize sizeHint() const; + + signals: + /** + * The user selected an item on sidebar widget and item has + * URL property, so inform the parent togo to this URL; + */ + void urlChanged(const KURL& url); + + private slots: + void createPage(int index); + + private: + int indexForName(const QString& name) const; + + QComboBox* m_pagesSelector; + SidebarPage* m_page; + QVBoxLayout* m_layout; +}; + +#endif // _SIDEBARS_H_ diff --git a/src/sidebarssettings.cpp b/src/sidebarssettings.cpp new file mode 100644 index 0000000..01ca5c6 --- /dev/null +++ b/src/sidebarssettings.cpp @@ -0,0 +1,96 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "sidebarssettings.h" +#include +#include +#include + +leftSidebarSettings::leftSidebarSettings() : + m_visible(true), + m_width(0) +{ + KConfig* config = kapp->config(); + config->setGroup("leftSidebar"); + + m_visible = config->readBoolEntry("Visible", true); + m_width = config->readNumEntry("Width", 150); + m_selectedPage = config->readEntry("Selected Page", "Bookmarks"); +} + +leftSidebarSettings::~leftSidebarSettings() +{ +} + +void leftSidebarSettings::setWidth(int width) +{ + if (width < 50) { + // prevent that a sidebar gets width which makes + // it look invisible + width = 50; + } + m_width = width; +} + +void leftSidebarSettings::save() +{ + KConfig* config = kapp->config(); + config->setGroup("leftSidebar"); + + config->writeEntry("Visible", m_visible); + config->writeEntry("Width", m_width); + config->writeEntry("Selected Page", m_selectedPage); +} + +rightSidebarSettings::rightSidebarSettings() : + m_visible(true), + m_width(0) +{ + KConfig* config = kapp->config(); + config->setGroup("rightSidebar"); + + m_visible = config->readBoolEntry("Visible", true); + m_width = config->readNumEntry("Width", 150); + m_selectedPage = config->readEntry("Selected Page", "Bookmarks"); +} + +rightSidebarSettings::~rightSidebarSettings() +{ +} + +void rightSidebarSettings::setWidth(int width) +{ + if (width < 50) { + // prevent that a sidebar gets width which makes + // it look invisible + width = 50; + } + m_width = width; +} + +void rightSidebarSettings::save() +{ + KConfig* config = kapp->config(); + config->setGroup("rightSidebar"); + + config->writeEntry("Visible", m_visible); + config->writeEntry("Width", m_width); + config->writeEntry("Selected Page", m_selectedPage); +} diff --git a/src/sidebarssettings.h b/src/sidebarssettings.h new file mode 100644 index 0000000..7ef678d --- /dev/null +++ b/src/sidebarssettings.h @@ -0,0 +1,72 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef SIDEBARSETTINGS_H +#define SIDEBARSETTINGS_H + +#include +#include + + +class leftSidebarSettings +{ +public: + leftSidebarSettings(); + virtual ~leftSidebarSettings(); + void setVisible(bool visible) { m_visible = visible; } + bool isVisible() const { return m_visible; } + + void setWidth(int width); + int width() const { return m_width; } + + void setSelectedPage(const QString& pageName) { m_selectedPage = pageName; } + const QString& selectedPage() const { return m_selectedPage; } + + virtual void save(); + +protected: + bool m_visible; + int m_width; + QString m_selectedPage; +}; + +class rightSidebarSettings +{ +public: + rightSidebarSettings(); + virtual ~rightSidebarSettings(); + void setVisible(bool visible) { m_visible = visible; } + bool isVisible() const { return m_visible; } + + void setWidth(int width); + int width() const { return m_width; } + + void setSelectedPage(const QString& pageName) { m_selectedPage = pageName; } + const QString& selectedPage() const { return m_selectedPage; } + + virtual void save(); + +protected: + bool m_visible; + int m_width; + QString m_selectedPage; +}; + +#endif diff --git a/src/statusbarmessagelabel.cpp b/src/statusbarmessagelabel.cpp new file mode 100644 index 0000000..3c49c7a --- /dev/null +++ b/src/statusbarmessagelabel.cpp @@ -0,0 +1,215 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "statusbarmessagelabel.h" +#include +#include +#include +#include +#include + +StatusBarMessageLabel::StatusBarMessageLabel(QWidget* parent) : + QWidget(parent), + m_type(DolphinStatusBar::Default), + m_state(Default), + m_illumination(0), + m_minTextHeight(-1), + m_timer(0) +{ + setMinimumHeight(KIcon::SizeSmall); + + m_timer = new QTimer(this); + connect(m_timer, SIGNAL(timeout()), + this, SLOT(timerDone())); +} + +StatusBarMessageLabel::~StatusBarMessageLabel() +{ +} + +void StatusBarMessageLabel::setType(DolphinStatusBar::Type type) +{ + if (type != m_type) { + m_type = type; + + m_timer->stop(); + m_illumination = 0; + m_state = Default; + + const char* iconName = 0; + QPixmap pixmap; + switch (type) { + case DolphinStatusBar::OperationCompleted: + iconName = "ok"; + break; + + case DolphinStatusBar::Information: + iconName = "info"; + break; + + case DolphinStatusBar::Error: + iconName = "error"; + m_timer->start(100); + m_state = Illuminate; + break; + + case DolphinStatusBar::Default: + default: break; + } + + m_pixmap = (iconName == 0) ? QPixmap() : SmallIcon(iconName); + assureVisibleText(); + update(); + } +} + +void StatusBarMessageLabel::setText(const QString& text) +{ + if (text != m_text) { + if (m_type == DolphinStatusBar::Error) { + m_timer->start(100); + m_illumination = 0; + m_state = Illuminate; + } + m_text = text; + assureVisibleText(); + update(); + } +} + +void StatusBarMessageLabel::setMinimumTextHeight(int min) +{ + if (min != m_minTextHeight) { + m_minTextHeight = min; + setMinimumHeight(min); + } +} + +void StatusBarMessageLabel::paintEvent(QPaintEvent* /* event */) +{ + QPixmap buffer(size()); + QPainter painter(&buffer); + + // draw background + QColor backgroundColor(colorGroup().background()); + QColor foregroundColor(KGlobalSettings::textColor()); + if (m_illumination > 0) { + backgroundColor = mixColors(backgroundColor, QColor(255, 255, 64), m_illumination); + foregroundColor = mixColors(foregroundColor, QColor(0, 0, 0), m_illumination); + } + painter.setBrush(backgroundColor); + painter.setPen(backgroundColor); + painter.drawRect(QRect(0, 0, width(), height())); + + // draw pixmap + int x = pixmapGap(); + int y = (height() - m_pixmap.height()) / 2; + + if (!m_pixmap.isNull()) { + painter.drawPixmap(x, y, m_pixmap); + x += m_pixmap.width() + pixmapGap(); + } + + // draw text + painter.setPen(foregroundColor); + painter.drawText(QRect(x, 0, width() - x, height()), Qt::AlignVCenter | Qt::WordBreak, m_text); + painter.end(); + + bitBlt(this, 0, 0, &buffer); +} + +void StatusBarMessageLabel::resizeEvent(QResizeEvent* event) +{ + QWidget::resizeEvent(event); + QTimer::singleShot(0, this, SLOT(assureVisibleText())); +} + +void StatusBarMessageLabel::timerDone() +{ + switch (m_state) { + case Illuminate: { + // increase the illumination + if (m_illumination < 100) { + m_illumination += 20; + update(); + } + else { + m_state = Illuminated; + m_timer->start(1000); + } + break; + } + + case Illuminated: { + // start desaturation + m_state = Desaturate; + m_timer->start(100); + break; + } + + case Desaturate: { + // desaturate + if (m_illumination > 0) { + m_illumination -= 5; + update(); + } + else { + m_state = Default; + m_timer->stop(); + } + break; + } + + default: + break; + } +} + +void StatusBarMessageLabel::assureVisibleText() +{ + if (m_text.isEmpty()) { + return; + } + + + int availableWidth = width() - m_pixmap.width() - pixmapGap() * 2; + + QFontMetrics fontMetrics(font()); + QRect bounds(fontMetrics.boundingRect(0, 0, availableWidth, height(), + Qt::AlignVCenter | Qt::WordBreak, + m_text)); + int requiredHeight = bounds.height(); + if (requiredHeight < m_minTextHeight) { + requiredHeight = m_minTextHeight; + } + setMinimumHeight(requiredHeight); + updateGeometry(); +} + +QColor StatusBarMessageLabel::mixColors(const QColor& c1, + const QColor& c2, + int percent) const +{ + const int recip = 100 - percent; + const int red = (c1.red() * recip + c2.red() * percent) / 100; + const int green = (c1.green() * recip + c2.green() * percent) / 100; + const int blue = (c1.blue() * recip + c2.blue() * percent) / 100; + return QColor(red, green, blue); +} diff --git a/src/statusbarmessagelabel.h b/src/statusbarmessagelabel.h new file mode 100644 index 0000000..c743f85 --- /dev/null +++ b/src/statusbarmessagelabel.h @@ -0,0 +1,92 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef STATUSBARMESSAGELABEL_H +#define STATUSBARMESSAGELABEL_H + +#include +#include +#include +#include +class QTimer; + +/** + * @brief Represents a message text label as part of the status bar. + * + * Dependant from the given type automatically a corresponding icon + * is shown in front of the text. For message texts having the type + * DolphinStatusBar::Error a dynamic color blending is done to get the + * attention from the user. + * + * @author Peter Penz + */ +class StatusBarMessageLabel : public QWidget +{ + Q_OBJECT + +public: + StatusBarMessageLabel(QWidget* parent); + virtual ~StatusBarMessageLabel(); + + void setType(DolphinStatusBar::Type type); + DolphinStatusBar::Type type() const { return m_type; } + + void setText(const QString& text); + const QString& text() const { return m_text; } + + // TODO: maybe a better approach is possible with the size hint + void setMinimumTextHeight(int min); + int minimumTextHeight() const { return m_minTextHeight; } + +protected: + /** @see QWidget::paintEvent */ + virtual void paintEvent(QPaintEvent* event); + + /** @see QWidget::resizeEvent */ + virtual void resizeEvent(QResizeEvent* event); + +private slots: + void timerDone(); + void assureVisibleText(); + +private: + enum State { + Default, + Illuminate, + Illuminated, + Desaturate + }; + + DolphinStatusBar::Type m_type; + State m_state; + int m_illumination; + int m_minTextHeight; + QTimer* m_timer; + QString m_text; + QPixmap m_pixmap; + + QColor mixColors(const QColor& c1, + const QColor& c2, + int percent) const; + + int pixmapGap() const { return 3; } +}; + +#endif diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp new file mode 100644 index 0000000..221a4f0 --- /dev/null +++ b/src/statusbarspaceinfo.cpp @@ -0,0 +1,192 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) and * + * and Patrice Tremblay * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "statusbarspaceinfo.h" + +#include +#include +#include +#include +#include +#include + +StatusBarSpaceInfo::StatusBarSpaceInfo(QWidget* parent) : + QWidget(parent), + m_gettingSize(false), + m_kBSize(0), + m_kBAvailable(0) +{ + setMinimumWidth(200); + + // Update the space information each 10 seconds. Polling is useful + // here, as files can be deleted/added outside the scope of Dolphin. + QTimer* timer = new QTimer(this); + connect(timer, SIGNAL(timeout()), this, SLOT(refresh())); + timer->start(10000); +} + +StatusBarSpaceInfo::~StatusBarSpaceInfo() +{ +} + +void StatusBarSpaceInfo::setURL(const KURL& url) +{ + m_url = url; + refresh(); + update(); +} + +void StatusBarSpaceInfo::paintEvent(QPaintEvent* /* event */) +{ + QPainter painter(this); + const int barWidth = width(); + const int barTop = 2; + const int barHeight = height() - 4; + + QString text; + + const int widthDec = 3; // visual decrement for the available width + + const QColor c1 = colorGroup().background(); + const QColor c2 = KGlobalSettings::buttonTextColor(); + const QColor frameColor((c1.red() + c2.red()) / 2, + (c1.green() + c2.green()) / 2, + (c1.blue() + c2.blue()) / 2); + painter.setPen(frameColor); + + const QColor backgrColor = KGlobalSettings::baseColor(); + painter.setBrush(backgrColor); + + painter.drawRect(QRect(0, barTop + 1 , barWidth - widthDec, barHeight)); + + if ((m_kBSize > 0) && (m_kBAvailable > 0)) { + // draw 'used size' bar + painter.setPen(Qt::NoPen); + painter.setBrush(progressColor(backgrColor)); + int usedWidth = barWidth - static_cast((m_kBAvailable * + static_cast(barWidth)) / m_kBSize); + const int left = 1; + int right = usedWidth - (widthDec + 1); + if (right < left) { + right = left; + } + painter.drawRect(QRect(left, barTop + 2, right, barHeight - 2)); + + text = i18n("%1 free") + .arg(KIO::convertSizeFromKB(m_kBAvailable)); + } + else { + if (m_gettingSize) { + text = i18n("Getting size..."); + } + else { + text = ""; + QTimer::singleShot(0, this, SLOT(hide())); + } + } + + // draw text (usually 'Y GB free') + painter.setPen(KGlobalSettings::textColor()); + painter.drawText(QRect(1, 1, barWidth - 2, barHeight + 4), + Qt::AlignHCenter | Qt::AlignVCenter | Qt::WordBreak, + text); +} + + +void StatusBarSpaceInfo::slotFoundMountPoint(const unsigned long& kBSize, + const unsigned long& /* kBUsed */, + const unsigned long& kBAvailable, + const QString& /* mountPoint */) +{ + m_gettingSize = false; + m_kBSize = kBSize; + m_kBAvailable = kBAvailable; + + // Bypass a the issue (?) of KDiskFreeSp that for protocols like + // FTP, SMB the size of root partition is returned. + // TODO: check whether KDiskFreeSp is buggy or Dolphin uses it in a wrong way + const QString protocol(m_url.protocol()); + if (!protocol.isEmpty() && (protocol != "file")) { + m_kBSize = 0; + m_kBAvailable = 0; + } + + update(); +} + +void StatusBarSpaceInfo::slotDone() +{ + m_gettingSize = false; + if ((m_kBSize > 0) && (m_kBAvailable > 0)) { + show(); + } + + update(); +} + +void StatusBarSpaceInfo::refresh() +{ + m_gettingSize = true; + m_kBSize = 0; + m_kBAvailable = 0; + + const QString mountPoint(KIO::findPathMountPoint(m_url.path())); + + KDiskFreeSp* job = new KDiskFreeSp(this); + connect(job, SIGNAL(foundMountPoint(const unsigned long&, + const unsigned long&, + const unsigned long&, + const QString& )), + this, SLOT(slotFoundMountPoint(const unsigned long&, + const unsigned long&, + const unsigned long&, + const QString& ))); + connect(job, SIGNAL(done()), + this, SLOT(slotDone())); + + job->readDF(mountPoint); +} + +QColor StatusBarSpaceInfo::progressColor(const QColor& bgColor) const +{ + QColor color = KGlobalSettings::buttonBackground(); + + // assure that enough contrast is given between the background color + // and the progressbar color + int bgRed = bgColor.red(); + int bgGreen = bgColor.green(); + int bgBlue = bgColor.blue(); + + const int backgrBrightness = qGray(bgRed, bgGreen, bgBlue); + const int progressBrightness = qGray(color.red(), color.green(), color.blue()); + + const int limit = 32; + const int diff = backgrBrightness - progressBrightness; + bool adjustColor = ((diff >= 0) && (diff < limit)) || + ((diff < 0) && (diff > -limit)); + if (adjustColor) { + const int inc = (backgrBrightness < 2 * limit) ? (2 * limit) : -limit; + color = QColor(bgRed + inc, bgGreen + inc, bgBlue + inc); + } + + return color; +} + +#include "statusbarspaceinfo.moc" diff --git a/src/statusbarspaceinfo.h b/src/statusbarspaceinfo.h new file mode 100644 index 0000000..6409c45 --- /dev/null +++ b/src/statusbarspaceinfo.h @@ -0,0 +1,79 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) and * + * and Patrice Tremblay * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef STATUSBARSPACEINFO_H +#define STATUSBARSPACEINFO_H + +#include +#include +#include +#include + +class KDiskFreeSp; + +/** + * @short Shows the available space for the current volume as part + * of the status bar. + */ +class StatusBarSpaceInfo : public QWidget +{ + Q_OBJECT + +public: + StatusBarSpaceInfo(QWidget* parent); + virtual ~StatusBarSpaceInfo(); + + void setURL(const KURL& url); + const KURL& url() const { return m_url; } + +protected: + /** @see QWidget::paintEvent */ + virtual void paintEvent(QPaintEvent* event); + +private slots: + /** + * The strange signature of this method is due to a compiler + * bug (?). More details are given inside the class KDiskFreeSp (see + * KDE Libs documentation). + */ + void slotFoundMountPoint(const unsigned long& kBSize, + const unsigned long& kBUsed, + const unsigned long& kBAvailable, + const QString& mountPoint); + void slotDone(); + + /** Refreshs the space information for the current set URL. */ + void refresh(); + +private: + /** + * Returns a color for the progress bar by respecting + * the given background color \a bgColor. It is assured + * that enough contrast is given to have a visual indication. + */ + QColor progressColor(const QColor& bgColor) const; + + KURL m_url; + bool m_gettingSize; + unsigned long m_kBSize; + unsigned long m_kBAvailable; + +}; + +#endif diff --git a/src/undomanager.cpp b/src/undomanager.cpp new file mode 100644 index 0000000..5869e4b --- /dev/null +++ b/src/undomanager.cpp @@ -0,0 +1,402 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "undomanager.h" +#include +#include +#include +#include + +#include "dolphin.h" +#include "dolphinstatusbar.h" +#include "progressindicator.h" + +DolphinCommand::DolphinCommand() : + m_type(Copy), + m_macroIndex(-1) +{ + // Implementation note: DolphinCommands are stored in a QValueList, whereas + // QValueList requires a default constructor of the added class. + // Instead of expressing this implementation detail to the interface by adding a + // Type::Undefined just Type::Copy is used to assure that all members have + // a defined state. +} + +DolphinCommand::DolphinCommand(Type type, + const KURL::List& source, + const KURL& dest) : + m_type(type), + m_macroIndex(-1), + m_source(source), + m_dest(dest) +{ +} + +DolphinCommand::~DolphinCommand() +{ +} + +DolphinCommand& DolphinCommand::operator = (const DolphinCommand& command) +{ + m_type = command.m_type; + m_source = command.m_source; + m_dest = command.m_dest; + return *this; +} + +UndoManager& UndoManager::instance() +{ + static UndoManager* instance = 0; + if (instance == 0) { + instance = new UndoManager(); + } + return *instance; +} + +void UndoManager::addCommand(const DolphinCommand& command) +{ + ++m_historyIndex; + + if (m_recordMacro) { + DolphinCommand macroCommand = command; + macroCommand.m_macroIndex = m_macroCounter; + m_history.insert(m_history.at(m_historyIndex), macroCommand); + } + else { + m_history.insert(m_history.at(m_historyIndex), command); + } + + emit undoAvailable(true); + emit undoTextChanged(i18n("Undo: %1").arg(commandText(command))); + + // prevent an endless growing of the Undo history + if (m_historyIndex > 10000) { + m_history.erase(m_history.begin()); + --m_historyIndex; + } +} + +void UndoManager::beginMacro() +{ + assert(!m_recordMacro); + m_recordMacro = true; + ++m_macroCounter; +} + +void UndoManager::endMacro() +{ + assert(m_recordMacro); + m_recordMacro = false; +} + +void UndoManager::undo() +{ + if (m_recordMacro) { + endMacro(); + } + + if (m_historyIndex < 0) { + return; + } + + int progressCount = 0; + int macroCount = 1; + calcStepsCount(macroCount, progressCount); + + m_progressIndicator = new ProgressIndicator(i18n("Executing undo operation..."), + i18n("Executed undo operation."), + progressCount); + + for (int i = 0; i < macroCount; ++i) { + const DolphinCommand command = m_history[m_historyIndex]; + --m_historyIndex; + if (m_historyIndex < 0) { + emit undoAvailable(false); + emit undoTextChanged(i18n("Undo")); + } + else { + emit undoTextChanged(i18n("Undo: %1").arg(commandText(m_history[m_historyIndex]))); + } + + if (m_historyIndex < static_cast(m_history.count()) - 1) { + emit redoAvailable(true); + emit redoTextChanged(i18n("Redo: %1").arg(commandText(command))); + } + else { + emit redoAvailable(false); + emit redoTextChanged(i18n("Redo")); + } + + KURL::List sourceURLs = command.source(); + KURL::List::Iterator it = sourceURLs.begin(); + const KURL::List::Iterator end = sourceURLs.end(); + const QString destURL(command.destination().prettyURL(+1)); + + KIO::Job* job = 0; + switch (command.type()) { + case DolphinCommand::Link: + case DolphinCommand::Copy: { + KURL::List list; + while (it != end) { + const KURL deleteURL(destURL + (*it).filename()); + list.append(deleteURL); + ++it; + } + job = KIO::del(list, false, false); + break; + } + + case DolphinCommand::Move: { + KURL::List list; + const KURL newDestURL((*it).directory()); + while (it != end) { + const KURL newSourceURL(destURL + (*it).filename()); + list.append(newSourceURL); + ++it; + } + job = KIO::move(list, newDestURL, false); + break; + } + + case DolphinCommand::Rename: { + assert(sourceURLs.count() == 1); + KIO::NetAccess::move(command.destination(), (*it)); + break; + } + + case DolphinCommand::Trash: { + while (it != end) { + // TODO: use KIO::special for accessing the trash protocol. See + // also Dolphin::slotJobResult() for further details. + const QString originalFileName((*it).filename().section('-', 1)); + KURL newDestURL(destURL + originalFileName); + KIO::NetAccess::move(*it, newDestURL); + ++it; + + m_progressIndicator->execOperation(); + } + break; + } + + case DolphinCommand::CreateFolder: + case DolphinCommand::CreateFile: { + KIO::NetAccess::del(command.destination(), &Dolphin::mainWin()); + break; + } + } + + if (job != 0) { + // Execute the jobs in a synchronous manner and forward the progress + // information to the Dolphin statusbar. + connect(job, SIGNAL(percent(KIO::Job*, unsigned long)), + this, SLOT(slotPercent(KIO::Job*, unsigned long))); + KIO::NetAccess::synchronousRun(job, &Dolphin::mainWin()); + } + + m_progressIndicator->execOperation(); + } + + delete m_progressIndicator; + m_progressIndicator = 0; +} + +void UndoManager::redo() +{ + if (m_recordMacro) { + endMacro(); + } + + const int maxHistoryIndex = m_history.count() - 1; + if (m_historyIndex >= maxHistoryIndex) { + return; + } + ++m_historyIndex; + + int progressCount = 0; + int macroCount = 1; + calcStepsCount(macroCount, progressCount); + + m_progressIndicator = new ProgressIndicator(i18n("Executing redo operation..."), + i18n("Executed redo operation."), + progressCount); + + for (int i = 0; i < macroCount; ++i) { + const DolphinCommand command = m_history[m_historyIndex]; + if (m_historyIndex >= maxHistoryIndex) { + emit redoAvailable(false); + emit redoTextChanged(i18n("Redo")); + } + else { + emit redoTextChanged(i18n("Redo: %1").arg(commandText(m_history[m_historyIndex + 1]))); + } + + emit undoAvailable(true); + emit undoTextChanged(i18n("Undo: %1").arg(commandText(command))); + + Dolphin& dolphin = Dolphin::mainWin(); + + KURL::List sourceURLs = command.source(); + KURL::List::Iterator it = sourceURLs.begin(); + const KURL::List::Iterator end = sourceURLs.end(); + + KIO::Job* job = 0; + switch (command.type()) { + case DolphinCommand::Link: { + job = KIO::link(sourceURLs, command.destination(), false); + break; + } + + case DolphinCommand::Copy: { + job = KIO::copy(sourceURLs, command.destination(), false); + break; + } + + case DolphinCommand::Rename: + case DolphinCommand::Move: { + job = KIO::move(sourceURLs, command.destination(), false); + break; + } + + case DolphinCommand::Trash: { + const QString destURL(command.destination().prettyURL()); + while (it != end) { + // TODO: use KIO::special for accessing the trash protocol. See + // also Dolphin::slotJobResult() for further details. + const QString originalFileName((*it).filename().section('-', 1)); + KURL originalSourceURL(destURL + "/" + originalFileName); + KIO::Job* moveToTrashJob = KIO::trash(originalSourceURL); + KIO::NetAccess::synchronousRun(moveToTrashJob, &dolphin); + ++it; + + m_progressIndicator->execOperation(); + } + break; + } + + case DolphinCommand::CreateFolder: { + KIO::NetAccess::mkdir(command.destination(), &dolphin); + break; + } + + case DolphinCommand::CreateFile: { + m_progressIndicator->execOperation(); + KURL::List::Iterator it = sourceURLs.begin(); + assert(sourceURLs.count() == 1); + KIO::CopyJob* copyJob = KIO::copyAs(*it, command.destination(), false); + copyJob->setDefaultPermissions(true); + job = copyJob; + break; + } + } + + if (job != 0) { + // Execute the jobs in a synchronous manner and forward the progress + // information to the Dolphin statusbar. + connect(job, SIGNAL(percent(KIO::Job*, unsigned long)), + this, SLOT(slotPercent(KIO::Job*, unsigned long))); + KIO::NetAccess::synchronousRun(job, &dolphin); + } + + ++m_historyIndex; + m_progressIndicator->execOperation(); + } + + --m_historyIndex; + + delete m_progressIndicator; + m_progressIndicator = 0; +} + +UndoManager::UndoManager() : + m_recordMacro(false), + m_historyIndex(-1), + m_macroCounter(0), + m_progressIndicator(0) +{ +} + +UndoManager::~UndoManager() +{ + delete m_progressIndicator; + m_progressIndicator = 0; +} + +QString UndoManager::commandText(const DolphinCommand& command) const +{ + QString text; + switch (command.type()) { + case DolphinCommand::Copy: text = i18n("Copy"); break; + case DolphinCommand::Move: text = i18n("Move"); break; + case DolphinCommand::Link: text = i18n("Link"); break; + case DolphinCommand::Rename: text = i18n("Rename"); break; + case DolphinCommand::Trash: text = i18n("Move to Trash"); break; + case DolphinCommand::CreateFolder: text = i18n("Create New Folder"); break; + case DolphinCommand::CreateFile: text = i18n("Create New File"); break; + default: break; + } + return text; +} + +void UndoManager::slotPercent(KIO::Job* /* job */, unsigned long /* percent */) +{ + // It is not allowed to update the progress indicator in the context + // of this slot, hence do an asynchronous triggering. + QTimer::singleShot(0, this, SLOT(updateProgress())); +} + +void UndoManager::updateProgress() +{ + m_progressIndicator->execOperation(); +} + +void UndoManager::calcStepsCount(int& macroCount, int& progressCount) +{ + progressCount = 0; + macroCount = 0; + + const int macroIndex = m_history[m_historyIndex].m_macroIndex; + if (macroIndex < 0) { + // default use case: no macro has been recorded + macroCount = 1; + progressCount = m_history[m_historyIndex].source().count(); + return; + } + + // iterate backward for undo... + int i = m_historyIndex; + while ((i >= 0) && (m_history[i].m_macroIndex == macroIndex)) { + ++macroCount; + progressCount += m_history[i].source().count(); + --i; + } + + // iterate forward for redo... + const int max = m_history.count() - 1; + i = m_historyIndex + 1; + while ((i <= max) && (m_history[i].m_macroIndex == macroIndex)) { + ++macroCount; + progressCount += m_history[i].source().count(); + ++i; + } +} + +#include "undomanager.moc" + + diff --git a/src/undomanager.h b/src/undomanager.h new file mode 100644 index 0000000..fb6f14e --- /dev/null +++ b/src/undomanager.h @@ -0,0 +1,196 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef UNDOMANAGER_H +#define UNDOMANAGER_H + +#include +#include +#include +#include + +class ProgressIndicator; + +/** + * @short Represents a file manager command which can be undone and redone. + * + * A command is specified by a type, a list of source URLs and a + * destination URL. + * + * Due to the fixed set of commands a file manager offers this class is + * a very simplified version of the classic command pattern. + * + * @see UndoManager + * @author Peter Penz + */ +class DolphinCommand +{ +public: + enum Type { + Copy, + Move, + Link, + Rename, + Trash, + CreateFolder, + CreateFile + }; + + DolphinCommand(); + DolphinCommand(Type type, const KURL::List& source, const KURL& dest); + ~DolphinCommand(); // non-virtual + + DolphinCommand& operator = (const DolphinCommand& command); + Type type() const { return m_type; } + void setSource(const KURL::List source) { m_source = source; } + const KURL::List& source() const { return m_source; } + const KURL& destination() const { return m_dest; } + +private: + Type m_type; + int m_macroIndex; + KURL::List m_source; + KURL m_dest; + + friend class UndoManager; // allow to modify m_macroIndex +}; + +/** + * @short Stores all file manager commands which can be undone and redone. + * + * During the undo and redo operations a progress information is + * shown in the status bar. + * + * @author Peter Penz + */ +class UndoManager : public QObject +{ + Q_OBJECT + +public: + static UndoManager& instance(); + + /** + * Adds the command \a command to the undo list. The command + * can be undone by invoking UndoManager::undo(). + */ + void addCommand(const DolphinCommand& command); + + /** + * Allows to summarize several commands into one macro, which + * can be undo in one stop by UndoManager::undo(). Example + * \code + * UndoManager& undoMan = UndoManager.instance(); + * undoMan.beginMacro(); + * undoMan.addCommand(...); + * undoMan.addCommand(...); + * undoMan.addCommand(...); + * undoMan.endMacro(); + * \endcode + * It is not allowed to do nested macro recordings. + */ + void beginMacro(); + + /** + * Marks the end of a macro command. See UndoManager::beginMacro() + * for sample code. + */ + void endMacro(); + +public slots: + /** + * Performs an undo operation on the last command which has + * been added by UndoManager::addCommand(). + */ + void undo(); + + /** + * Performs a redo operation on the last command where an undo + * operation has been applied. + */ + void redo(); + +signals: + /** + * Is emitted if whenever the availability state + * of the current undo operation changes. + */ + void undoAvailable(bool available); + + /** + * Is emitted whenever the text of the current + * undo operation changes + * (e. g. from 'Undo: Delete' to 'Undo: Copy') + */ + void undoTextChanged(const QString& text); + + /** + * Is emitted if whenever the availability state + * of the current redo operation changes. + */ + void redoAvailable(bool available); + + /** + * Is emitted whenever the text of the current + * redo operation changes + * (e. g. from 'Redo: Delete' to 'Redo: Copy') + */ + void redoTextChanged(const QString& text); + +protected: + UndoManager(); + virtual ~UndoManager(); + QString commandText(const DolphinCommand& command) const; + +private slots: + /** + * Slot for the percent information of the I/O slaves. + * Delegates the updating of the progress information + * to UndoManager::updateProgress(). + */ + void slotPercent(KIO::Job* job, unsigned long percent); + + /** + * Updates the progress information of the statusbar + * by accessing the progress indicator information. + */ + void updateProgress(); + +private: + bool m_recordMacro; + int m_historyIndex; + int m_macroCounter; + QValueList m_history; + ProgressIndicator* m_progressIndicator; + + /** + * Dependent from the current history index \a m_historyIndex + * the number of macro commands is written to the output + * parameter \a macroCount. The number of steps for all macro + * commands is written to the output parameter \a progressCount. + * + * Per default \a macroCount is 1 and \a progressCount represents + * the number of operations for one command. + */ + void calcStepsCount(int& macroCount, + int& progressCount); +}; + +#endif diff --git a/src/urlbutton.cpp b/src/urlbutton.cpp new file mode 100644 index 0000000..27ddc81 --- /dev/null +++ b/src/urlbutton.cpp @@ -0,0 +1,96 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) * + * Copyright (C) 2006 by Aaron J. Seigo () * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "urlnavigatorbutton.h" +#include +#include +#include +#include +#include +#include +#include +#include + +#include "urlnavigator.h" +#include "dolphin.h" + + +URLButton::URLButton(URLNavigator* parent) +: QPushButton(parent), + m_displayHint(0), + m_urlNavigator(parent) +{ + setFocusPolicy(QWidget::NoFocus); + setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed); + setMinimumHeight(parent->minimumHeight()); + + connect(this, SIGNAL(clicked()), parent, SLOT(slotRequestActivation())); + connect(&Dolphin::mainWin(), SIGNAL(activeViewChanged()), + this, SLOT(update())); +} + +URLButton::~URLButton() +{ +} + +URLNavigator* URLButton::urlNavigator() const +{ + return m_urlNavigator; +} + +void URLButton::setDisplayHintEnabled(DisplayHint hint, + bool enable) +{ + if (enable) { + m_displayHint = m_displayHint | hint; + } + else { + m_displayHint = m_displayHint & ~hint; + } + update(); +} + +bool URLButton::isDisplayHintEnabled(DisplayHint hint) const +{ + return (m_displayHint & hint) > 0; +} + +void URLButton::enterEvent(QEvent* event) +{ + QPushButton::enterEvent(event); + setDisplayHintEnabled(EnteredHint, true); + update(); +} + +void URLButton::leaveEvent(QEvent* event) +{ + QPushButton::leaveEvent(event); + setDisplayHintEnabled(EnteredHint, false); + update(); +} + +QColor URLButton::mixColors(const QColor& c1, + const QColor& c2) const +{ + const int red = (c1.red() + c2.red()) / 2; + const int green = (c1.green() + c2.green()) / 2; + const int blue = (c1.blue() + c2.blue()) / 2; + return QColor(red, green, blue); +} diff --git a/src/urlbutton.h b/src/urlbutton.h new file mode 100644 index 0000000..3ede7f8 --- /dev/null +++ b/src/urlbutton.h @@ -0,0 +1,69 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) * + * Copyright (C) 2006 by Aaron J. Seigo () * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef URLBUTTON_H +#define URLBUTTON_H + +#include + +class KURL; +class URLNavigator; +class QPainter; + +/** + * @brief Base class for buttons of the URL navigator. + * + * Each button of the URL navigator contains an URL, which + * is set as soon as the button has been clicked. +* + * @author Peter Penz + */ +class URLButton : public QPushButton +{ + Q_OBJECT + +public: + URLButton(URLNavigator* parent); + virtual ~URLButton(); + + URLNavigator* urlNavigator() const; + +protected: + enum DisplayHint { + ActivatedHint = 1, + EnteredHint = 2, + DraggedHint = 4, + PopupActiveHint = 8 + }; + + void setDisplayHintEnabled(DisplayHint hint, bool enable); + bool isDisplayHintEnabled(DisplayHint hint) const; + + virtual void enterEvent(QEvent* event); + virtual void leaveEvent(QEvent* event); + + QColor mixColors(const QColor& c1, const QColor& c2) const; + +private: + int m_displayHint; + URLNavigator* m_urlNavigator; +}; + +#endif diff --git a/src/urlnavigator.cpp b/src/urlnavigator.cpp new file mode 100644 index 0000000..3f0d278 --- /dev/null +++ b/src/urlnavigator.cpp @@ -0,0 +1,501 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) * + * Copyright (C) 2006 by Aaron J. Seigo () * + * Copyright (C) 2006 by Patrice Tremblay * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "urlnavigator.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include "dolphin.h" +#include "dolphinsettings.h" +#include "bookmarkselector.h" +#include "dolphinstatusbar.h" +#include "urlnavigatorbutton.h" +#include "dolphinview.h" + +URLNavigator::HistoryElem::HistoryElem() + : m_url(), + m_currentFileName(), + m_contentsX(0), + m_contentsY(0) +{ +} + +URLNavigator::HistoryElem::HistoryElem(const KURL& url) + : m_url(url), + m_currentFileName(), + m_contentsX(0), + m_contentsY(0) +{ +} + +URLNavigator::HistoryElem::~HistoryElem() +{ +} + +URLNavigator::URLNavigator(const KURL& url, + DolphinView* dolphinView) : + QHBox(dolphinView), + m_historyIndex(0), + m_dolphinView(dolphinView) +{ + m_history.prepend(HistoryElem(url)); + + QFontMetrics fontMetrics(font()); + setMinimumHeight(fontMetrics.height() + 8); + + m_toggleButton = new QPushButton(SmallIcon("editurl"), 0, this); + m_toggleButton->setFlat(true); + m_toggleButton->setToggleButton(true); + m_toggleButton->setFocusPolicy(QWidget::NoFocus); + m_toggleButton->setMinimumHeight(minimumHeight()); + connect(m_toggleButton, SIGNAL(clicked()), + this, SLOT(slotClicked())); + if (DolphinSettings::instance().isURLEditable()) { + m_toggleButton->toggle(); + } + + m_bookmarkSelector = new BookmarkSelector(this); + connect(m_bookmarkSelector, SIGNAL(bookmarkActivated(int)), + this, SLOT(slotBookmarkActivated(int))); + + m_pathBox = new KURLComboBox(KURLComboBox::Directories, true, this); + + KURLCompletion* kurlCompletion = new KURLCompletion(KURLCompletion::DirCompletion); + m_pathBox->setCompletionObject(kurlCompletion); + m_pathBox->setAutoDeleteCompletionObject(true); + + connect(m_pathBox, SIGNAL(returnPressed(const QString&)), + this, SLOT(slotReturnPressed(const QString&))); + connect(m_pathBox, SIGNAL(urlActivated(const KURL&)), + this, SLOT(slotURLActivated(const KURL&))); + + connect(dolphinView, SIGNAL(contentsMoved(int, int)), + this, SLOT(slotContentsMoved(int, int))); + updateContent(); +} + +URLNavigator::~URLNavigator() +{ +} + +void URLNavigator::setURL(const KURL& url) +{ + QString urlStr(url.prettyURL()); + + if (url.protocol() == "zip") { + bool stillInside = false; + if (KMimeType::findByPath(url.url(-1)) + ->is("application/x-zip")) { + stillInside = true; + } + else { + KURL url1 = url.upURL(); + while (url1 != url1.upURL()) { + if (KMimeType::findByPath(url1.url(-1)) + ->is("application/x-zip")) { + stillInside = true; + break; + } + url1 = url1.upURL(); + } + } + if (!stillInside) + { + // Drop the zip:/ protocol since we are not in the zip anymore + urlStr = url.path(); + } + } + else if (url.protocol() == "tar") + { + bool stillInside = false; + KMimeType::Ptr kmp = + KMimeType::findByPath(url.url(-1)); + if (kmp->is("application/x-tar") || + kmp->is("application/x-tarz") || + kmp->is("application/x-tbz") || + kmp->is("application/x-tgz") || + kmp->is("application/x-tzo") + ) { + stillInside = true; + } + else { + KURL url1 = url.upURL(); + while (url1 != url1.upURL()) { + KMimeType::Ptr kmp = + KMimeType::findByPath(url1.url(-1)); + if (kmp->is("application/x-tar") || + kmp->is("application/x-tarz") || + kmp->is("application/x-tbz") || + kmp->is("application/x-tgz") || + kmp->is("application/x-tzo") + ) { + stillInside = true; + break; + } + url1 = url1.upURL(); + } + } + if (!stillInside) + { + // Drop the tar:/ protocol since we are not in the tar anymore + urlStr = url.path(); + } + } + + + if (urlStr.at(0) == '~') { + // replace '~' by the home directory + urlStr.remove(0, 1); + urlStr.insert(0, QDir::home().path()); + } + + const KURL transformedURL(urlStr); + + if (m_historyIndex > 0) { + // Check whether the previous element of the history has the same URL. + // If yes, just go forward instead of inserting a duplicate history + // element. + const KURL& nextURL = m_history[m_historyIndex - 1].url(); + if (transformedURL == nextURL) { + goForward(); + return; + } + } + + const KURL& currURL = m_history[m_historyIndex].url(); + if (currURL == transformedURL) { + // don't insert duplicate history elements + return; + } + + updateHistoryElem(); + + const QValueListIterator it = m_history.at(m_historyIndex); + m_history.insert(it, HistoryElem(transformedURL)); + updateContent(); + emit urlChanged(transformedURL); + emit historyChanged(); + + // Prevent an endless growing of the history: remembering + // the last 100 URLs should be enough... + if (m_historyIndex > 100) { + m_history.erase(m_history.begin()); + --m_historyIndex; + } +} + +const KURL& URLNavigator::url() const +{ + assert(!m_history.empty()); + return m_history[m_historyIndex].url(); +} + +KURL URLNavigator::url(int index) const +{ + assert(index >= 0); + QString path(url().prettyURL()); + path = path.section('/', 0, index); + + if (path.at(path.length()) != '/') + { + path.append('/'); + } + + return path; +} + +const QValueList& URLNavigator::history(int& index) const +{ + index = m_historyIndex; + return m_history; +} + +void URLNavigator::goBack() +{ + updateHistoryElem(); + + const int count = m_history.count(); + if (m_historyIndex < count - 1) { + ++m_historyIndex; + updateContent(); + emit urlChanged(url()); + emit historyChanged(); + } +} + +void URLNavigator::goForward() +{ + if (m_historyIndex > 0) { + --m_historyIndex; + updateContent(); + emit urlChanged(url()); + emit historyChanged(); + } +} + +void URLNavigator::goUp() +{ + setURL(url().upURL()); +} + +void URLNavigator::goHome() +{ + setURL(DolphinSettings::instance().homeURL()); +} + +void URLNavigator::setURLEditable(bool editable) +{ + if (isURLEditable() != editable) { + m_toggleButton->toggle(); + slotClicked(); + } +} + +bool URLNavigator::isURLEditable() const +{ + return m_toggleButton->state() == QButton::On; +} + +void URLNavigator::editURL() +{ + setURLEditable(true); + m_pathBox->setFocus(); +} + +DolphinView* URLNavigator::dolphinView() const +{ + return m_dolphinView; +} + +void URLNavigator::keyReleaseEvent(QKeyEvent* event) +{ + QHBox::keyReleaseEvent(event); + if (isURLEditable() && (event->key() == Qt::Key_Escape)) { + setURLEditable(false); + } +} + +void URLNavigator::slotReturnPressed(const QString& text) +{ + // Parts of the following code have been taken + // from the class KateFileSelector located in + // kate/app/katefileselector.hpp of Kate. + // Copyright (C) 2001 Christoph Cullmann + // Copyright (C) 2001 Joseph Wenninger + // Copyright (C) 2001 Anders Lund + + KURL typedURL(text); + if (typedURL.hasPass()) { + typedURL.setPass(QString::null); + } + + QStringList urls = m_pathBox->urls(); + urls.remove(typedURL.url()); + urls.prepend(typedURL.url()); + m_pathBox->setURLs(urls, KURLComboBox::RemoveBottom); + + setURL(typedURL); + // The URL might have been adjusted by URLNavigator::setURL(), hence + // synchronize the result in the path box. + m_pathBox->setURL(url()); +} + +void URLNavigator::slotURLActivated(const KURL& url) +{ + setURL(url); +} + +void URLNavigator::slotRequestActivation() +{ + m_dolphinView->requestActivation(); +} + +void URLNavigator::slotBookmarkActivated(int index) +{ + m_dolphinView->statusBar()->clear(); + m_dolphinView->requestActivation(); + + KBookmark bookmark = DolphinSettings::instance().bookmark(index); + m_dolphinView->setURL(bookmark.url()); +} + +void URLNavigator::slotContentsMoved(int x, int y) +{ + m_history[m_historyIndex].setContentsX(x); + m_history[m_historyIndex].setContentsY(y); +} + +void URLNavigator::slotClicked() +{ + updateContent(); + if (isURLEditable()) { + m_pathBox->setFocus(); + } + else { + m_dolphinView->setFocus(); + } +} + +void URLNavigator::updateHistoryElem() +{ + assert(m_historyIndex >= 0); + const KFileItem* item = m_dolphinView->currentFileItem(); + if (item != 0) { + m_history[m_historyIndex].setCurrentFileName(item->name()); + } + m_history[m_historyIndex].setContentsX(m_dolphinView->contentsX()); + m_history[m_historyIndex].setContentsY(m_dolphinView->contentsY()); +} + +void URLNavigator::updateContent() +{ + const QObjectList* list = children(); + if (list == 0) { + return; + } + + // set the iterator to the first URL navigator button + QObjectListIterator it(*list); + QObject* object = 0; + while ((object = it.current()) != 0) { + if (object->inherits("URLNavigatorButton")) { + break; + } + ++it; + } + + // delete all existing URL navigator buttons + QPtrList deleteList; + while ((object = it.current()) != 0) { + if (object->inherits("URLNavigatorButton")) { + // Don't close and delete the navigator button immediatly, otherwise + // the iterator won't work anymore and an object would get deleted more + // than once (-> crash). + deleteList.append(static_cast(object)); + } + ++it; + } + + // now close and delete all unused navigator buttons + QPtrListIterator deleteIter(deleteList); + QWidget* widget = 0; + while ((widget = deleteIter.current()) != 0) { + widget->close(); + widget->deleteLater(); + ++deleteIter; + } + + m_bookmarkSelector->updateSelection(url()); + + QToolTip::remove(m_toggleButton); + QString path(url().prettyURL()); + if (m_toggleButton->state() == QButton::On) { + // TODO: don't hardcode the shortcut as part of the text + QToolTip::add(m_toggleButton, i18n("Browse (Ctrl+B, Escape)")); + + setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); + m_pathBox->show(); + m_pathBox->setURL(url()); + } + else { + // TODO: don't hardcode the shortcut as part of the text + QToolTip::add(m_toggleButton, i18n("Edit location (Ctrl+L)")); + + setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + m_pathBox->hide(); + QString dir_name; + + // get the data from the currently selected bookmark + KBookmark bookmark = m_bookmarkSelector->selectedBookmark(); + //int bookmarkIndex = m_bookmarkSelector->selectedIndex(); + + QString bookmarkPath; + if (bookmark.isNull()) { + // No bookmark is a part of the current URL. + // The following code tries to guess the bookmark + // path. E. g. "fish://root@192.168.0.2/var/lib" writes + // "fish://root@192.168.0.2" to 'bookmarkPath', which leads to the + // navigation indication 'Custom Path > var > lib". + int idx = path.find(QString("//")); + idx = path.find("/", (idx < 0) ? 0 : idx + 2); + bookmarkPath = (idx < 0) ? path : path.left(idx); + } + else { + bookmarkPath = bookmark.url().prettyURL(); + } + const uint len = bookmarkPath.length(); + + // calculate the start point for the URL navigator buttons by counting + // the slashs inside the bookmark URL + int slashCount = 0; + for (uint i = 0; i < len; ++i) { + if (bookmarkPath.at(i) == QChar('/')) { + ++slashCount; + } + } + if ((len > 0) && bookmarkPath.at(len - 1) == QChar('/')) { + assert(slashCount > 0); + --slashCount; + } + + // create URL navigator buttons + int idx = slashCount; + bool hasNext = true; + do { + dir_name = path.section('/', idx, idx); + const bool isFirstButton = (idx == slashCount); + hasNext = isFirstButton || !dir_name.isEmpty(); + if (hasNext) { + URLNavigatorButton* button = new URLNavigatorButton(idx, this); + if (isFirstButton) { + // the first URL navigator button should get the name of the bookmark + // instead of the directory name + QString text = bookmark.text(); + if (text.isEmpty()) { + text = bookmarkPath; + } + button->setText(text); + } + button->show(); + ++idx; + } + } while (hasNext); + } +} + +#include "urlnavigator.moc" diff --git a/src/urlnavigator.h b/src/urlnavigator.h new file mode 100644 index 0000000..706215a --- /dev/null +++ b/src/urlnavigator.h @@ -0,0 +1,210 @@ +/*************************************************************************** +* Copyright (C) 2006 by Peter Penz * +* peter.penz@gmx.at * +* * +* 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 2 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, write to the * +* Free Software Foundation, Inc., * +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * +***************************************************************************/ + +#ifndef URLNAVIGATOR_H +#define URLNAVIGATOR_H + +#include +#include +#include + +class DolphinView; +class QPopupMenu; +class QPushButton; +class QComboBox; +class BookmarkSelector; +class KURLComboBox; +class KFileItem; + +/** + * @brief Navigation bar which contains the current shown URL. + * + * The URL navigator offers two modes: + * - Editable: Represents the 'classic' mode, where the current URL + * is editable inside a line editor. + * - Non editable: The URL is represented by a number of buttons, where + * clicking on a button results in activating the URL + * the button represents. This mode also supports drag + * and drop of items. + * + * The mode can be changed by a toggle button located on the left side of + * the navigator. + * + * The URL navigator also remembers the URL history and allows to go + * back and forward within this history. + * + * @author Peter Penz +*/ +class URLNavigator : public QHBox +{ + Q_OBJECT + +public: + /** + * @brief Represents the history element of an URL. + * + * A history element contains the URL, the name of the current file + * (the 'current file' is the file where the cursor is located) and + * the x- and y-position of the content. + */ + class HistoryElem { + public: + HistoryElem(); + HistoryElem(const KURL& url); + ~HistoryElem(); // non virtual + + const KURL& url() const { return m_url; } + + void setCurrentFileName(const QString& name) { m_currentFileName = name; } + const QString& currentFileName() const { return m_currentFileName; } + + void setContentsX(int x) { m_contentsX = x; } + int contentsX() const { return m_contentsX; } + + void setContentsY(int y) { m_contentsY = y; } + int contentsY() const { return m_contentsY; } + + private: + KURL m_url; + QString m_currentFileName; + int m_contentsX; + int m_contentsY; + }; + + URLNavigator(const KURL& url, DolphinView* dolphinView);; + virtual ~URLNavigator(); + + /** + * Sets the current active URL. + * The signals URLNavigator::urlChanged and URLNavigator::historyChanged + * are submitted. + */ + void setURL(const KURL& url); + + /** Returns the current active URL. */ + const KURL& url() const; + + /** Returns the portion of the current active URL up to the button at index. */ + KURL url(int index) const; + + /** + * Returns the complete URL history. The index 0 indicates the oldest + * history element. + * @param index Output parameter which indicates the current + * index of the location. + */ + const QValueList& history(int& index) const; + + /** + * Goes back one step in the URL history. The signals + * URLNavigator::urlChanged and URLNavigator::historyChanged + * are submitted. + */ + void goBack(); + + /** + * Goes forward one step in the URL history. The signals + * URLNavigator::urlChanged and URLNavigator::historyChanged + * are submitted. + */ + void goForward(); + + /** + * Goes up one step of the URL path. The signals + * URLNavigator::urlChanged and URLNavigator::historyChanged + * are submitted. + */ + void goUp(); + + /** + * Goes to the home URL. The signals URLNavigator::urlChanged + * and URLNavigator::historyChanged are submitted. + */ + void goHome(); + + /** + * Allows to edit the URL of the navigation bar if \a editable + * is true. If \a editable is false, each part of + * the URL is presented by a button for a fast navigation. + */ + void setURLEditable(bool editable); + + /** + * @return True, if the URL is editable by the user within a line editor. + * If false is returned, each part of the URL is presented by a button + * for fast navigation. + */ + bool isURLEditable() const; + + /** + * Switches to the edit mode and assures that the keyboard focus + * is assigned. + */ + void editURL(); + + DolphinView* dolphinView() const; + +signals: + void urlChanged(const KURL& url); + void historyChanged(); + +protected: + /** If the Escape key is pressed, the navigation bar should switch + to the browse mode. */ + virtual void keyReleaseEvent(QKeyEvent* event); + +private slots: + void slotReturnPressed(const QString& text); + void slotURLActivated(const KURL& url); + + void slotRequestActivation(); + void slotBookmarkActivated(int index); + + /** + * Stores the coordinates of the moved content into + * the current history element. Is usually triggered + * by the signal 'contentsMoved' emitted by DolphinView. + */ + void slotContentsMoved(int x, int y); + + /** + * Switches the navigation bar between the editable and noneditable + * state (see setURLEditable()) and is connected to the clicked signal + * of the navigation bar button. + */ + void slotClicked(); + +private: + int m_historyIndex; + DolphinView* m_dolphinView; + QValueList m_history; + QPushButton* m_toggleButton; + BookmarkSelector* m_bookmarkSelector; + KURLComboBox* m_pathBox; + + /** + * Updates the history element with the current file item + * and the contents position. + */ + void updateHistoryElem(); + void updateContent(); +}; + +#endif diff --git a/src/urlnavigatorbutton.cpp b/src/urlnavigatorbutton.cpp new file mode 100644 index 0000000..1cc5bcc --- /dev/null +++ b/src/urlnavigatorbutton.cpp @@ -0,0 +1,393 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) * + * Copyright (C) 2006 by Aaron J. Seigo () * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "urlnavigatorbutton.h" +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "urlnavigator.h" +#include "dolphinview.h" +#include "dolphin.h" + +URLNavigatorButton::URLNavigatorButton(int index, URLNavigator* parent) : + URLButton(parent), + m_index(-1), + m_listJob(0) +{ + setAcceptDrops(true); + setMinimumWidth(arrowWidth()); + setIndex(index); + connect(this, SIGNAL(clicked()), this, SLOT(updateNavigatorURL())); + + m_popupDelay = new QTimer(this); + connect(m_popupDelay, SIGNAL(timeout()), this, SLOT(startListJob())); + connect(this, SIGNAL(pressed()), this, SLOT(startPopupDelay())); +} + +URLNavigatorButton::~URLNavigatorButton() +{ +} + +void URLNavigatorButton::setIndex(int index) +{ + if (index < 0) { + index = 0; + } + + m_index = index; + QString path(urlNavigator()->url().prettyURL()); + setText(path.section('/', index, index)); + + // Check whether the button indicates the full path of the URL. If + // this is the case, the button is marked as 'active'. + ++index; + QFont adjustedFont(font()); + if (path.section('/', index, index).isEmpty()) { + setDisplayHintEnabled(ActivatedHint, true); + adjustedFont.setBold(true); + } + else { + setDisplayHintEnabled(ActivatedHint, false); + adjustedFont.setBold(false); + } + + setFont(adjustedFont); + update(); +} + +int URLNavigatorButton::index() const +{ + return m_index; +} + +void URLNavigatorButton::drawButton(QPainter* painter) +{ + const int buttonWidth = width(); + const int buttonHeight = height(); + + QColor backgroundColor; + QColor foregroundColor; + const bool isHighlighted = isDisplayHintEnabled(EnteredHint) || + isDisplayHintEnabled(DraggedHint) || + isDisplayHintEnabled(PopupActiveHint); + if (isHighlighted) { + backgroundColor = KGlobalSettings::highlightColor(); + foregroundColor = KGlobalSettings::highlightedTextColor(); + } + else { + backgroundColor = colorGroup().background(); + foregroundColor = KGlobalSettings::buttonTextColor(); + } + + // dimm the colors if the parent view does not have the focus + const DolphinView* parentView = urlNavigator()->dolphinView(); + const Dolphin& dolphin = Dolphin::mainWin(); + + const bool isActive = (dolphin.activeView() == parentView); + if (!isActive) { + QColor dimmColor(colorGroup().background()); + foregroundColor = mixColors(foregroundColor, dimmColor); + if (isHighlighted) { + backgroundColor = mixColors(backgroundColor, dimmColor); + } + } + + // draw button background + painter->setPen(NoPen); + painter->setBrush(backgroundColor); + painter->drawRect(0, 0, buttonWidth, buttonHeight); + + int textWidth = buttonWidth; + if (isDisplayHintEnabled(ActivatedHint) && isActive || isHighlighted) { + painter->setPen(foregroundColor); + } + else { + // dimm the foreground color by mixing it with the background + foregroundColor = mixColors(foregroundColor, backgroundColor); + painter->setPen(foregroundColor); + } + + if (!isDisplayHintEnabled(ActivatedHint)) { + // draw arrow + const int border = 2; // horizontal border + const int middleY = height() / 2; + const int width = arrowWidth(); + const int startX = (buttonWidth - width) - (2 * border); + const int startTopY = middleY - (width - 1); + const int startBottomY = middleY + (width - 1); + for (int i = 0; i < width; ++i) { + painter->drawLine(startX, startTopY + i, startX + i, startTopY + i); + painter->drawLine(startX, startBottomY - i, startX + i, startBottomY - i); + } + + textWidth = startX - border; + } + + const bool clipped = isTextClipped(); + const int align = clipped ? Qt::AlignVCenter : Qt::AlignCenter; + painter->drawText(QRect(0, 0, textWidth, buttonHeight), align, text()); + + if (clipped) { + // Blend the right area of the text with the background, as the + // text is clipped. + // TODO: use alpha blending in Qt4 instead of drawing the text that often + const int blendSteps = 16; + + QColor blendColor(backgroundColor); + const int redInc = (foregroundColor.red() - backgroundColor.red()) / blendSteps; + const int greenInc = (foregroundColor.green() - backgroundColor.green()) / blendSteps; + const int blueInc = (foregroundColor.blue() - backgroundColor.blue()) / blendSteps; + for (int i = 0; i < blendSteps; ++i) { + painter->setClipRect(QRect(textWidth - i, 0, 1, buttonHeight)); + painter->setPen(blendColor); + painter->drawText(QRect(0, 0, textWidth, buttonHeight), align, text()); + + blendColor.setRgb(blendColor.red() + redInc, + blendColor.green() + greenInc, + blendColor.blue() + blueInc); + } + } +} + +void URLNavigatorButton::enterEvent(QEvent* event) +{ + URLButton::enterEvent(event); + + // if the text is clipped due to a small window width, the text should + // be shown as tooltip + if (isTextClipped()) { + QToolTip::add(this, text()); + } +} + +void URLNavigatorButton::leaveEvent(QEvent* event) +{ + URLButton::leaveEvent(event); + QToolTip::remove(this); +} + +void URLNavigatorButton::dropEvent(QDropEvent* event) +{ + KURL::List urls; + if (KURLDrag::decode(event, urls) && !urls.isEmpty()) { + setDisplayHintEnabled(DraggedHint, true); + + QString path(urlNavigator()->url().prettyURL()); + path = path.section('/', 0, m_index); + + Dolphin::mainWin().dropURLs(urls, KURL(path)); + + setDisplayHintEnabled(DraggedHint, false); + update(); + } +} + +void URLNavigatorButton::dragEnterEvent(QDragEnterEvent* event) +{ + event->accept(KURLDrag::canDecode(event)); + + setDisplayHintEnabled(DraggedHint, true); + update(); +} + +void URLNavigatorButton::dragLeaveEvent(QDragLeaveEvent* event) +{ + URLButton::dragLeaveEvent(event); + + setDisplayHintEnabled(DraggedHint, false); + update(); +} + + +void URLNavigatorButton::updateNavigatorURL() +{ + URLNavigator* navigator = urlNavigator(); + assert(navigator != 0); + navigator->setURL(navigator->url(m_index)); +} + +void URLNavigatorButton::startPopupDelay() +{ + if (m_popupDelay->isActive() || m_listJob) { + return; + } + + m_popupDelay->start(300, true); +} + +void URLNavigatorButton::stopPopupDelay() +{ + m_popupDelay->stop(); + if (m_listJob) { + m_listJob->kill(); + m_listJob = 0; + } +} + +void URLNavigatorButton::startListJob() +{ + if (m_listJob) { + return; + } + + KURL url = urlNavigator()->url(m_index); + m_listJob = KIO::listDir(url, false, false); + m_subdirs.clear(); // just to be ++safe + + connect(m_listJob, SIGNAL(entries(KIO::Job*, const KIO::UDSEntryList &)), + this, SLOT(entriesList(KIO::Job*, const KIO::UDSEntryList&))); + connect(m_listJob, SIGNAL(result(KIO::Job*)), this, SLOT(listJobFinished(KIO::Job*))); +} + +void URLNavigatorButton::entriesList(KIO::Job* job, const KIO::UDSEntryList& entries) +{ + if (job != m_listJob) { + return; + } + + KIO::UDSEntryList::const_iterator it = entries.constBegin(); + KIO::UDSEntryList::const_iterator itEnd = entries.constEnd(); + while (it != itEnd) { + QString name; + bool isDir = false; + KIO::UDSEntry entry = *it; + KIO::UDSEntry::const_iterator atomIt = entry.constBegin(); + KIO::UDSEntry::const_iterator atomEndIt = entry.constEnd(); + + while (atomIt != atomEndIt) { + switch ((*atomIt).m_uds) { + case KIO::UDS_NAME: + name = (*atomIt).m_str; + break; + case KIO::UDS_FILE_TYPE: + isDir = S_ISDIR((*atomIt).m_long); + break; + default: + break; + } + ++atomIt; + } + + if (isDir) { + m_subdirs.append(name); + } + + ++it; + } + + m_subdirs.sort(); +} + +void URLNavigatorButton::listJobFinished(KIO::Job* job) +{ + if (job != m_listJob) { + return; + } + + if (job->error() || m_subdirs.isEmpty()) { + // clear listing + return; + } + + setDisplayHintEnabled(PopupActiveHint, true); + update(); // ensure the button is drawn highlighted + QPopupMenu* dirsMenu = new QPopupMenu(this); + //setPopup(dirsMenu); + QStringList::const_iterator it = m_subdirs.constBegin(); + QStringList::const_iterator itEnd = m_subdirs.constEnd(); + int i = 0; + while (it != itEnd) { + dirsMenu->insertItem(*it, i); + ++i; + ++it; + } + + int result = dirsMenu->exec(urlNavigator()->mapToGlobal(geometry().bottomLeft())); + + if (result >= 0) { + KURL url = urlNavigator()->url(m_index); + url.addPath(*m_subdirs.at(result)); + urlNavigator()->setURL(url); + } + + m_listJob = 0; + m_subdirs.clear(); + delete dirsMenu; + setDisplayHintEnabled(PopupActiveHint, false); +} + +int URLNavigatorButton::arrowWidth() const +{ + int width = (height() / 2) - 7; + if (width < 4) { + width = 4; + } + return width; +} + +bool URLNavigatorButton::isTextClipped() const +{ + int availableWidth = width(); + if (!isDisplayHintEnabled(ActivatedHint)) { + availableWidth -= arrowWidth() + 1; + } + + QFontMetrics fontMetrics(font()); + return fontMetrics.width(text()) >= availableWidth; +} + + +void URLNavigatorButton::mousePressEvent(QMouseEvent * event) +{ + if (event->button() == LeftButton) + dragPos = event->pos(); + URLButton::mousePressEvent(event); +} + +void URLNavigatorButton::mouseMoveEvent(QMouseEvent * event) +{ + if (event->state() & LeftButton) { + int distance = (event->pos() - dragPos).manhattanLength(); + if (distance > QApplication::startDragDistance()*2)//don't start on small move (for submenu usability) + startDrag(); + } + URLButton::mouseMoveEvent(event); +} + +void URLNavigatorButton::startDrag() +{ + KURL url = urlNavigator()->url(m_index); + KURL::List lst; + lst.append( url ); + KURLDrag *drag = new KURLDrag(lst, this); + drag->drag(); +} diff --git a/src/urlnavigatorbutton.h b/src/urlnavigatorbutton.h new file mode 100644 index 0000000..de71fd6 --- /dev/null +++ b/src/urlnavigatorbutton.h @@ -0,0 +1,88 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) * + * Copyright (C) 2006 by Aaron J. Seigo () * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef URLNAVIGATORBUTTON_H +#define URLNAVIGATORBUTTON_H + +#include + +#include + +#include + +class KURL; +class URLNavigator; +class QPainter; + +namespace KIO +{ + class Job; +} + +/** + * @brief Button of the URL navigator which contains one part of an URL. + * + * It is possible to drop a various number of items to an URL button. In this case + * a context menu is opened where the user must select whether he wants + * to copy, move or link the dropped items to the URL part indicated by + * the button. + */ +class URLNavigatorButton : public URLButton +{ + Q_OBJECT + +public: + URLNavigatorButton(int index, URLNavigator* parent = 0); + virtual ~URLNavigatorButton(); + void setIndex(int index); + int index() const; + +protected: + virtual void drawButton(QPainter* painter); + virtual void enterEvent(QEvent* event); + virtual void leaveEvent(QEvent* event); + //drag + void mousePressEvent( QMouseEvent *event ); + void mouseMoveEvent( QMouseEvent *event ); + //drop + virtual void dropEvent(QDropEvent* event); + virtual void dragEnterEvent(QDragEnterEvent* event); + virtual void dragLeaveEvent(QDragLeaveEvent* event); + +private slots: + void updateNavigatorURL(); + void startPopupDelay(); + void stopPopupDelay(); + void startListJob(); + void entriesList(KIO::Job* job, const KIO::UDSEntryList& entries); + void listJobFinished(KIO::Job* job); + +private: + int arrowWidth() const; + bool isTextClipped() const; + void startDrag(); + + int m_index; + QTimer* m_popupDelay; + KIO::Job* m_listJob; + QStringList m_subdirs; + QPoint dragPos; +}; + +#endif diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp new file mode 100644 index 0000000..66d5935 --- /dev/null +++ b/src/viewproperties.cpp @@ -0,0 +1,362 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include + +#include +#include +#include + +#include +#include +#include + +#include "viewproperties.h" +#include "dolphinsettings.h" + +#define FILE_NAME "/.d3lphinview" + +ViewProperties::ViewProperties(KURL url) : + m_changedProps(false), + m_autoSave(true), + m_subDirValidityHidden(false) +{ + url.cleanPath(true); + m_filepath = url.path(); + + if ((m_filepath.length() < 1) || (m_filepath.at(0) != QChar('/'))) { + return; + } + + // we try and save it to a file in the directory being viewed + // if the directory is not writable by the user or the directory is not local + // we store the properties information in a local file + DolphinSettings& settings = DolphinSettings::instance(); + if (settings.isSaveView()) { + QString rootDir("/"); // TODO: should this be set to the root of the bookmark, if any? + if (url.isLocalFile()) { + QFileInfo info(m_filepath); + + if (!info.isWritable()) { + QString basePath = KGlobal::instance()->instanceName(); + basePath.append("/view_properties/local"); + rootDir = locateLocal("data", basePath); + m_filepath = rootDir + m_filepath; + } + } + else { + QString basePath = KGlobal::instance()->instanceName(); + basePath.append("/view_properties/remote/").append(url.host()); + rootDir = locateLocal("data", basePath); + m_filepath = rootDir + m_filepath; + } + + QDir dir(m_filepath); + QFile file(m_filepath + FILE_NAME); + + + PropertiesNode node(&file); + + const bool isValidForSubDirs = !node.isEmpty() && node.isValidForSubDirs(); + while ((dir.path() != rootDir) && dir.cdUp()) { + QFile file(dir.path() + FILE_NAME); + PropertiesNode parentNode(&file); + if (!parentNode.isEmpty()) { + const bool inheritProps = parentNode.isValidForSubDirs() && + (parentNode.subDirProperties().m_timeStamp > + node.localProperties().m_timeStamp); + + if (inheritProps) { + node.setLocalProperties(parentNode.subDirProperties()); + break; + } + } + } + + m_node = node; + + if (isValidForSubDirs) { + m_subDirValidityHidden = true; + } + m_node.setValidForSubDirs(false); + } +} + +ViewProperties::~ViewProperties() +{ + if (m_changedProps && m_autoSave) { + save(); + } +} + +void ViewProperties::setViewMode(DolphinView::Mode mode) +{ + if (m_node.localProperties().m_viewMode != mode) { + m_node.setViewMode(mode); + updateTimeStamp(); + } +} + +DolphinView::Mode ViewProperties::viewMode() const +{ + return m_node.localProperties().m_viewMode; +} + +void ViewProperties::setShowHiddenFilesEnabled(bool show) +{ + if (m_node.localProperties().m_showHiddenFiles != show) { + m_node.setShowHiddenFilesEnabled(show); + updateTimeStamp(); + } +} + +bool ViewProperties::isShowHiddenFilesEnabled() const +{ + return m_node.localProperties().m_showHiddenFiles; +} + +void ViewProperties::setSorting(DolphinView::Sorting sorting) +{ + if (m_node.localProperties().m_sorting != sorting) { + m_node.setSorting(sorting); + updateTimeStamp(); + } +} + +DolphinView::Sorting ViewProperties::sorting() const +{ + return m_node.localProperties().m_sorting; +} + +void ViewProperties::setSortOrder(Qt::SortOrder sortOrder) +{ + if (m_node.localProperties().m_sortOrder != sortOrder) { + m_node.setSortOrder(sortOrder); + updateTimeStamp(); + } +} + +Qt::SortOrder ViewProperties::sortOrder() const +{ + return m_node.localProperties().m_sortOrder; +} + +void ViewProperties::setValidForSubDirs(bool valid) +{ + if (m_node.isValidForSubDirs() != valid) { + m_node.setValidForSubDirs(valid); + updateTimeStamp(); + } +} + +bool ViewProperties::isValidForSubDirs() const +{ + return m_node.isValidForSubDirs(); +} + +void ViewProperties::setAutoSaveEnabled(bool autoSave) +{ + m_autoSave = autoSave; +} + +bool ViewProperties::isAutoSaveEnabled() const +{ + return m_autoSave; +} + +void ViewProperties::save() +{ + DolphinSettings& settings = DolphinSettings::instance(); + if (settings.isSaveView()) { + QFile file(m_filepath + FILE_NAME); + KStandardDirs::makeDir(m_filepath); + if (!file.open(IO_WriteOnly)) { + return; + } + + const Properties& props = m_node.localProperties(); + char viewMode = static_cast(props.m_viewMode) + '0'; + char sorting = static_cast(props.m_sorting) + '0'; + const bool isValidForSubDirs = m_node.isValidForSubDirs() || m_subDirValidityHidden; + + QTextStream stream(&file); + stream << "V01" + << viewMode + << (props.m_showHiddenFiles ? '1' : '0') + << props.m_timeStamp.toString("yyyyMMddhhmmss") + << sorting + << ((props.m_sortOrder == Qt::Ascending) ? 'A' : 'D') + << (isValidForSubDirs ? '1' : '0'); + + if (m_node.isValidForSubDirs()) { + m_node.setSubDirProperties(props); + } + + if (isValidForSubDirs) { + const Properties& subDirProps = m_node.subDirProperties(); + viewMode = static_cast(subDirProps.m_viewMode) + '0'; + sorting = static_cast(subDirProps.m_sorting) + '0'; + stream << viewMode + << (subDirProps.m_showHiddenFiles ? '1' : '0') + << subDirProps.m_timeStamp.toString("yyyyMMddhhmmss") + << sorting + << ((subDirProps.m_sortOrder == Qt::Ascending) ? 'A' : 'D'); + } + file.flush(); + file.close(); + + m_changedProps = false; + } +} + +void ViewProperties::updateTimeStamp() +{ + m_changedProps = true; + m_node.setTimeStamp(QDateTime::currentDateTime()); +} + +ViewProperties::Properties::Properties() : + m_showHiddenFiles(false), + m_viewMode(DolphinView::IconsView), + m_sorting(DolphinView::SortByName), + m_sortOrder(Qt::Ascending) +{ + m_timeStamp.setDate(QDate(1999, 12, 31)); + m_timeStamp.setTime(QTime(23, 59, 59)); + + m_viewMode = DolphinSettings::instance().defaultViewMode(); +} + +ViewProperties::Properties::~Properties() +{ +} + +ViewProperties::PropertiesNode::PropertiesNode(QFile* file) : + m_empty(true) +{ + m_isValidForSubDirs = false; + + if ((file != 0) && file->open(IO_ReadOnly)) { + m_empty = false; + + const int max_len = 41; + static char buffer[max_len]; + + // TODO: use memset + for (int i = 0; i < max_len; ++i) { + buffer[i] = 0; + } + + file->readLine(buffer, max_len); + + // Check version of viewproperties file. The initial format + // sadly had no version numbering, which is indicated by a missing 'V' + // as first letter. The current scheme uses V + 2 digits. + int version = 0; + int startInc = 0; + if (buffer[0] == 'V') { + startInc = 3; // skip version info (e. g. V01) + version = 1; + // currently no further versions are available: + assert(buffer[1] == '0'); + assert(buffer[2] == '1'); + } + + int readBytes = readProperties(m_props, &buffer[startInc], version); + assert(readBytes >= 0); + + // check whether sub directory properties are available + m_isValidForSubDirs = (buffer[startInc + readBytes] != '0'); + if (m_isValidForSubDirs) { + readBytes = readProperties(m_subDirProps, + &buffer[startInc + readBytes + 1], + version); + } + file->close(); + + m_empty = (readBytes <= 0); + } +} + +ViewProperties::PropertiesNode::~PropertiesNode() +{ +} + +ViewProperties::PropertiesNode& + ViewProperties::PropertiesNode::operator = (const PropertiesNode& node) +{ + if (&node != this) { + m_empty = node.m_empty; + m_isValidForSubDirs = node.m_isValidForSubDirs; + m_props = node.m_props; + m_subDirProps = node.m_subDirProps; + } + + return *this; +} + +int ViewProperties::PropertiesNode::toInt(const char* buffer, int count) const +{ + assert(buffer != 0); + + int value = 0; + for (int i = 0; i < count; ++i) { + value = value * 10 + static_cast(buffer[i] - '0'); + } + + return value; +} + +int ViewProperties::PropertiesNode::readProperties(Properties& props, + const char* buffer, + int version) +{ + props.m_viewMode = static_cast(buffer[0] - '0'); + props.m_showHiddenFiles = (buffer[1] != '0'); + + // read date + QDateTime timeStamp; + const int year = toInt(&(buffer[2]), 4); + const int month = toInt(&(buffer[6]), 2); + const int day = toInt(&(buffer[8]), 2); + QDate date(year, month, day); + timeStamp.setDate(date); + + // read time + const int hour = toInt(&(buffer[10]), 2); + const int minute = toInt(&(buffer[12]), 2); + const int second = toInt(&(buffer[14]), 2); + QTime time(hour, minute, second); + timeStamp.setTime(time); + + props.m_timeStamp = timeStamp; + + int readCount = 16; + if (version >= 1) { + // read sorting type and sorting order + props.m_sorting = static_cast(buffer[16] - '0'); + props.m_sortOrder = (buffer[17] == 'A') ? Qt::Ascending : Qt::Descending; + readCount = 18; + } + + return (date.isValid() && time.isValid()) ? readCount : -1; +} + + diff --git a/src/viewproperties.h b/src/viewproperties.h new file mode 100644 index 0000000..77f0a05 --- /dev/null +++ b/src/viewproperties.h @@ -0,0 +1,129 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef VIEWPROPERTIES_H +#define VIEWPROPERTIES_H + +#include +#include +#include +class QFile; + +/** + * @short Maintains the view properties like 'view mode' or 'show hidden files' for a directory. + * + * The view properties are automatically stored inside + * the directory as hidden file called '.dolphinview'. To read out the view properties + * just construct an instance by passing the URL of the directory: + * \code + * ViewProperties props(KURL("/home/peter/Documents")); + * const DolphinView::Mode mode = props.viewMode(); + * const bool showHiddenFiles = props.isShowHiddenFilesEnabled(); + * \endcode + * When modifying a view property, the '.dolphinview' file is automatically updated + * inside the destructor. + * + * @author Peter Penz + */ +// TODO: provide detailed design description, as mapping the user model to +// the physical modal is not trivial. +class ViewProperties +{ +public: + ViewProperties(KURL url); + virtual ~ViewProperties(); + + void setViewMode(DolphinView::Mode mode); + DolphinView::Mode viewMode() const; + + void setShowHiddenFilesEnabled(bool show); + bool isShowHiddenFilesEnabled() const; + + void setSorting(DolphinView::Sorting sorting); + DolphinView::Sorting sorting() const; + + void setSortOrder(Qt::SortOrder sortOrder); + Qt::SortOrder sortOrder() const; + + void setValidForSubDirs(bool valid); + bool isValidForSubDirs() const; + + void setAutoSaveEnabled(bool autoSave); + bool isAutoSaveEnabled() const; + + void updateTimeStamp(); + void save(); + +private: + class Properties + { + public: + Properties(); + ~Properties(); // non virtual + + bool m_showHiddenFiles; + DolphinView::Mode m_viewMode; + QDateTime m_timeStamp; + DolphinView::Sorting m_sorting; + Qt::SortOrder m_sortOrder; + }; + + class PropertiesNode + { + public: + PropertiesNode(QFile* file = 0); + ~PropertiesNode(); + PropertiesNode& operator = (const PropertiesNode& node); + bool isEmpty() const { return m_empty; } + + void setValidForSubDirs(bool valid) { m_isValidForSubDirs = valid; } + bool isValidForSubDirs() const { return m_isValidForSubDirs; } + + void setLocalProperties(const Properties& props) { m_props = props; } + const Properties& localProperties() const { return m_props; } + + void setShowHiddenFilesEnabled(bool show) { m_props.m_showHiddenFiles = show; } + void setViewMode(DolphinView::Mode mode) { m_props.m_viewMode = mode; } + void setTimeStamp(const QDateTime timeStamp) { m_props.m_timeStamp = timeStamp; } + const QDateTime& timeStamp() const { return m_props.m_timeStamp; } + void setSorting(DolphinView::Sorting sorting) { m_props.m_sorting = sorting; } + void setSortOrder(Qt::SortOrder sortOrder) { m_props.m_sortOrder = sortOrder; } + + void setSubDirProperties(const Properties& props) { m_subDirProps = props; } + const Properties& subDirProperties() const { return m_subDirProps; } + + private: + int toInt(const char* buffer, int count) const; + int readProperties(Properties& props, const char* buffer, int version); + + bool m_empty; + bool m_isValidForSubDirs; + Properties m_props; + Properties m_subDirProps; + }; + + bool m_changedProps; + bool m_autoSave; + bool m_subDirValidityHidden; + QString m_filepath; + PropertiesNode m_node; +}; + +#endif diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp new file mode 100644 index 0000000..0739ad8 --- /dev/null +++ b/src/viewpropertiesdialog.cpp @@ -0,0 +1,235 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "viewpropertiesdialog.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "viewproperties.h" +#include "dolphinview.h" + +ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : + KDialogBase(Plain, i18n("View Properties"), + Ok|Apply|Cancel, Ok), + m_isDirty(false), + m_dolphinView(dolphinView) +{ + assert(dolphinView != 0); + + const int margin = KDialog::marginHint(); + const QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + + const KURL& url = dolphinView->url(); + m_viewProps = new ViewProperties(url); + m_viewProps->setAutoSaveEnabled(false); + + QVBoxLayout* topLayout = new QVBoxLayout(plainPage(), 0, spacingHint()); + + // create 'Properties' group containing view mode, sorting, sort order and show hidden files + QGroupBox* propsGroup = new QGroupBox(2, Qt::Horizontal, i18n("Properties"), plainPage()); + propsGroup->setSizePolicy(sizePolicy); + propsGroup->setMargin(margin); + + new QLabel(i18n("View mode:"), propsGroup); + m_viewMode = new QComboBox(propsGroup); + m_viewMode->insertItem(SmallIcon("view_icon"), i18n("Icons")); + m_viewMode->insertItem(SmallIcon("view_text"), i18n("Details")); + m_viewMode->insertItem(SmallIcon("gvdirpart"), i18n("Previews")); + const int index = static_cast(m_viewProps->viewMode()); + m_viewMode->setCurrentItem(index); + + new QLabel(i18n("Sorting:"), propsGroup); + m_sorting = new QComboBox(propsGroup); + m_sorting->insertItem("By Name"); + m_sorting->insertItem("By Size"); + m_sorting->insertItem("By Date"); + int sortingIdx = 0; + switch (m_viewProps->sorting()) { + case DolphinView::SortByName: sortingIdx = 0; break; + case DolphinView::SortBySize: sortingIdx = 1; break; + case DolphinView::SortByDate: sortingIdx = 2; break; + default: break; + } + m_sorting->setCurrentItem(sortingIdx); + + new QLabel(i18n("Sort order:"), propsGroup); + m_sortOrder = new QComboBox(propsGroup); + m_sortOrder->insertItem(i18n("Ascending")); + m_sortOrder->insertItem(i18n("Descending")); + const int sortOrderIdx = (m_viewProps->sortOrder() == Qt::Ascending) ? 0 : 1; + m_sortOrder->setCurrentItem(sortOrderIdx); + + m_showHiddenFiles = new QCheckBox(i18n("Show hidden files"), propsGroup); + m_showHiddenFiles->setChecked(m_viewProps->isShowHiddenFilesEnabled()); + + // create 'Apply view properties to:' group + QButtonGroup* buttonGroup = new QButtonGroup(3, + Qt::Vertical, + i18n("Apply view properties to:"), + plainPage()); + buttonGroup->setSizePolicy(sizePolicy); + buttonGroup->setMargin(margin); + + m_applyToCurrentFolder = new QRadioButton(i18n("Current folder"), buttonGroup); + buttonGroup->insert(m_applyToCurrentFolder); + + m_applyToSubFolders = new QRadioButton(i18n("Current folder including all sub folders"), buttonGroup); + buttonGroup->insert(m_applyToSubFolders); + + m_applyToAllFolders = new QRadioButton(i18n("All folders"), buttonGroup); + buttonGroup->insert(m_applyToAllFolders); + + if (m_viewProps->isValidForSubDirs()) { + m_applyToSubFolders->setChecked(true); + } + else { + m_applyToCurrentFolder->setChecked(true); + } + + topLayout->addWidget(propsGroup); + topLayout->addWidget(buttonGroup); + + connect(m_viewMode, SIGNAL(activated(int)), + this, SLOT(slotViewModeChanged(int))); + connect(m_sorting, SIGNAL(activated(int)), + this, SLOT(slotSortingChanged(int))); + connect(m_sortOrder, SIGNAL(activated(int)), + this, SLOT(slotSortOrderChanged(int))); + connect(m_showHiddenFiles, SIGNAL(clicked()), + this, SLOT(slotShowHiddenFilesChanged())); + connect(m_applyToCurrentFolder, SIGNAL(clicked()), + this, SLOT(slotApplyToCurrentFolder())); + connect(m_applyToSubFolders, SIGNAL(clicked()), + this, SLOT(slotApplyToSubFolders())); + connect(m_applyToAllFolders, SIGNAL(clicked()), + this, SLOT(slotApplyToAllFolders())); +} + +ViewPropertiesDialog::~ViewPropertiesDialog() +{ + m_isDirty = false; + delete m_viewProps; + m_viewProps = 0; +} + +void ViewPropertiesDialog::slotOk() +{ + applyViewProperties(); + KDialogBase::slotOk(); +} + +void ViewPropertiesDialog::slotApply() +{ + applyViewProperties(); + KDialogBase::slotApply(); +} + +void ViewPropertiesDialog::slotViewModeChanged(int index) +{ + assert((index >= 0) && (index <= 2)); + m_viewProps->setViewMode(static_cast(index)); + m_isDirty = true; +} + +void ViewPropertiesDialog::slotSortingChanged(int index) +{ + DolphinView::Sorting sorting = DolphinView::SortByName; + switch (index) { + case 1: sorting = DolphinView::SortBySize; break; + case 2: sorting = DolphinView::SortByDate; break; + default: break; + } + m_viewProps->setSorting(sorting); + m_isDirty = true; +} + +void ViewPropertiesDialog::slotSortOrderChanged(int index) +{ + Qt::SortOrder sortOrder = (index == 0) ? Qt::Ascending : Qt::Descending; + m_viewProps->setSortOrder(sortOrder); + m_isDirty = true; +} + +void ViewPropertiesDialog::slotShowHiddenFilesChanged() +{ + const bool show = m_showHiddenFiles->isChecked(); + m_viewProps->setShowHiddenFilesEnabled(show); + m_isDirty = true; +} + +void ViewPropertiesDialog::slotApplyToCurrentFolder() +{ + m_viewProps->setValidForSubDirs(false); + m_isDirty = true; +} + +void ViewPropertiesDialog::slotApplyToSubFolders() +{ + m_viewProps->setValidForSubDirs(true); + m_isDirty = true; +} + +void ViewPropertiesDialog::slotApplyToAllFolders() +{ + m_isDirty = true; +} + +void ViewPropertiesDialog::applyViewProperties() +{ + if (m_applyToAllFolders->isChecked()) { + if (m_isDirty) { + const QString text(i18n("The view properties of all folders will be replaced. Do you want to continue?")); + if (KMessageBox::questionYesNo(this, text) == KMessageBox::No) { + return; + } + } + + ViewProperties props(QDir::homeDirPath()); + props.setViewMode(m_viewProps->viewMode()); + props.setSorting(m_viewProps->sorting()); + props.setSortOrder(m_viewProps->sortOrder()); + props.setShowHiddenFilesEnabled(m_viewProps->isShowHiddenFilesEnabled()); + props.setValidForSubDirs(true); + } + else if (m_applyToSubFolders->isChecked() && m_isDirty) { + const QString text(i18n("The view properties of all sub folders will be replaced. Do you want to continue?")); + if (KMessageBox::questionYesNo(this, text) == KMessageBox::No) { + return; + } + } + + m_viewProps->save(); + m_dolphinView->setViewProperties(*m_viewProps); + m_isDirty = false; +} + +#include "viewpropertiesdialog.moc" diff --git a/src/viewpropertiesdialog.h b/src/viewpropertiesdialog.h new file mode 100644 index 0000000..0731a27 --- /dev/null +++ b/src/viewpropertiesdialog.h @@ -0,0 +1,78 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef VIEWPROPERTIESDIALOG_H +#define VIEWPROPERTIESDIALOG_H + +#include + +class QCheckBox; +class QButtonGroup; +class QComboBox; +class QRadioButton; +class ViewProperties; +class DolphinView; + +/** + * @brief Dialog for changing the current view properties of a directory. + * + * It is possible to specify the view mode and whether hidden files + * should be shown. The properties can be assigned to the current folder, + * recursively to all sub folders or to all folders. + * + * @author Peter Penz + */ +class ViewPropertiesDialog : public KDialogBase +{ + Q_OBJECT + +public: + ViewPropertiesDialog(DolphinView* dolphinView); + virtual ~ViewPropertiesDialog(); + +protected slots: + virtual void slotOk(); + virtual void slotApply(); + +private slots: + void slotViewModeChanged(int index); + void slotSortingChanged(int index); + void slotSortOrderChanged(int index); + void slotShowHiddenFilesChanged(); + void slotApplyToCurrentFolder(); + void slotApplyToSubFolders(); + void slotApplyToAllFolders(); + +private: + bool m_isDirty; + DolphinView* m_dolphinView; + ViewProperties* m_viewProps; + + QComboBox* m_viewMode; + QComboBox* m_sorting; + QComboBox* m_sortOrder; + QCheckBox* m_showHiddenFiles; + QRadioButton* m_applyToCurrentFolder; + QRadioButton* m_applyToSubFolders; + QRadioButton* m_applyToAllFolders; + + void applyViewProperties(); +}; + +#endif diff --git a/src/viewsettingspage.cpp b/src/viewsettingspage.cpp new file mode 100644 index 0000000..ccfa80e --- /dev/null +++ b/src/viewsettingspage.cpp @@ -0,0 +1,66 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "viewsettingspage.h" +#include +#include +#include +#include +#include +#include "iconsviewsettingspage.h" +#include "detailsviewsettingspage.h" + +ViewSettingsPage::ViewSettingsPage(QWidget *parent) : + SettingsPageBase(parent), + m_iconsPage(0), + m_detailsPage(0), + m_previewsPage(0) +{ + QVBoxLayout* topLayout = new QVBoxLayout(parent, 0, KDialog::spacingHint()); + + QTabWidget* tabWidget = new QTabWidget(parent); + + // initialize 'Icons' tab + m_iconsPage = new IconsViewSettingsPage(DolphinIconsView::Icons, tabWidget); + tabWidget->addTab(m_iconsPage, SmallIcon("view_icon"), i18n("Icons")); + + // initialize 'Details' tab + m_detailsPage = new DetailsViewSettingsPage(tabWidget); + tabWidget->addTab(m_detailsPage, SmallIcon("view_text"), i18n("Details")); + + // initialize 'Previews' tab + m_previewsPage = new IconsViewSettingsPage(DolphinIconsView::Previews, tabWidget); + tabWidget->addTab(m_previewsPage, SmallIcon("gvdirpart"), i18n("Previews")); + + topLayout->addWidget(tabWidget, 0, 0 ); +} + +ViewSettingsPage::~ViewSettingsPage() +{ +} + +void ViewSettingsPage::applySettings() +{ + m_iconsPage->applySettings(); + m_detailsPage->applySettings(); + m_previewsPage->applySettings(); +} + +#include "viewsettingspage.moc" diff --git a/src/viewsettingspage.h b/src/viewsettingspage.h new file mode 100644 index 0000000..06017dd --- /dev/null +++ b/src/viewsettingspage.h @@ -0,0 +1,55 @@ +/*************************************************************************** + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef VIEWSETTINGSPAGE_H +#define VIEWSETTINGSPAGE_H + +#include +#include + +class IconsViewSettingsPage; +class DetailsViewSettingsPage; + +/** + * @brief Page for the 'View' settings of the Dolphin settings dialog. + * + * The vies settings allow to set the properties for the icons mode, + * the details mode and the previews mode. + * + * @author Peter Penz + */ +class ViewSettingsPage : public SettingsPageBase +{ + Q_OBJECT + +public: + ViewSettingsPage(QWidget* parent); + + virtual ~ViewSettingsPage(); + + /** @see SettingsPageBase::applySettings */ + virtual void applySettings(); + +private: + IconsViewSettingsPage* m_iconsPage; + DetailsViewSettingsPage* m_detailsPage; + IconsViewSettingsPage* m_previewsPage; +}; + +#endif diff --git a/stamp-h.in b/stamp-h.in new file mode 100644 index 0000000..e69de29 diff --git a/subdirs b/subdirs new file mode 100644 index 0000000..0e67810 --- /dev/null +++ b/subdirs @@ -0,0 +1,3 @@ +doc +po +src diff --git a/templates/cpp b/templates/cpp new file mode 100644 index 0000000..1a05134 --- /dev/null +++ b/templates/cpp @@ -0,0 +1,21 @@ +/*************************************************************************** + * Copyright (C) 2007 by Marcel Juhnke * + * marrat@marrat.homelinux.org * + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ diff --git a/templates/h b/templates/h new file mode 100644 index 0000000..1a05134 --- /dev/null +++ b/templates/h @@ -0,0 +1,21 @@ +/*************************************************************************** + * Copyright (C) 2007 by Marcel Juhnke * + * marrat@marrat.homelinux.org * + * Copyright (C) 2006 by Peter Penz * + * peter.penz@gmx.at * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/