Index: .arcconfig =================================================================== --- .arcconfig +++ /dev/null @@ -1,3 +0,0 @@ -{ - "phabricator.uri" : "https://phabricator.kde.org/" -} Index: CMakeLists.txt =================================================================== --- CMakeLists.txt +++ CMakeLists.txt @@ -1,17 +1,64 @@ -PROJECT(cirkuit) - -cmake_minimum_required(VERSION 2.6) +# root CMakeLists.txt +# +# Note: Install path by default is CMAKE_INSTALL_PREFIX:PATH=/usr/local +# An alternative path can be given on the command line, e.g. -DCMAKE_INSTALL_PREFIX=/usr/bin +# +#set(CMAKE_VERBOSE_MAKEFILE ON) -find_package(KDE4 REQUIRED) -include(KDE4Defaults) -include(MacroLibrary) +cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) +project(CIRKUIT VERSION "0.5.0") -MESSAGE(STATUS " KDE4 support enabled : ${KDE4_DATA_DIR}") -add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) +set(QT_MIN_VERSION "5.3.0") +set(KF5_MIN_VERSION "5.3.0") +set(SHARED_MIME_INFO_MINIMUM_VERSION "0.30") -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake_modules) +find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) +set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules) -SET(CIRKUIT_VERSION "0.4.2") +#include(CheckIncludeFile) +include(KDEInstallDirs) +include(ECMInstallIcons) +include(KDECMakeSettings) +include(KDECompilerSettings NO_POLICY_SCOPE) +include(FeatureSummary) + +# Find Qt modules +find_package(Qt5 ${QT5_MIN_VERSION} REQUIRED COMPONENTS + Core # QCommandLineParser, QStringLiteral + Widgets # QApplication + Gui +) + +# Find KF5 modules +find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS + CoreAddons # KAboutData + I18n # KLocalizedString + WidgetsAddons # KMessageBox + Completion # KCombobox + Parts + TextWidgets + TextEditor + Service + KIO + XmlGui + Crash + IconThemes + Config + NewStuff + Archive +) + +find_library( LIBPOPPLER_QT5 poppler-qt5 REQUIRED) +# Poppler_INCLUDE_DIRS does not seem to be available on some systems +if(NOT EXISTS ${Poppler_INCLUDE_DIRS}) + set(Poppler_INCLUDE_DIRS "/usr/include/poppler/qt5") +endif() + +# For compilation/link +set( CMAKE_AUTOMOC ON) +set( CMAKE_INCLUDE_CURRENT_DIR ON) +set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin ) # for the executable +set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/sharedlib ) # shared libraries # configure a header file to pass some of the CMake settings # to the source code @@ -19,9 +66,29 @@ "${PROJECT_SOURCE_DIR}/cirkuitconfig.h.in" "${PROJECT_BINARY_DIR}/cirkuitconfig.h" ) -include_directories("${PROJECT_BINARY_DIR}") -add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) +# For installation of backends (plugin shared object files) +set (BACKEND_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cirkuit_backends ) + +add_definitions( + -DQT_DEPRECATED_WARNINGS + -DQT_DISABLE_DEPRECATED_BEFORE=0x050700 +# -DQT_NO_SIGNALS_SLOTS_KEYWORDS # when defining -DQT_NO_KEYWORDS, must use Q_SLOTS instead of slots, Q_SIGNALS + -DQT_NO_URL_CAST_FROM_STRING + -DQT_STRICT_ITERATORS + -DBACKEND_INSTALL_DIR=\"${BACKEND_INSTALL_DIR}\" # do not use PLUGIN_INSTALL_DIR as this refers to Qt5 plugins +) + +if (Qt5_POSITION_INDEPENDENT_CODE) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) +endif() + +# recurse into the following ... add_subdirectory(src) add_subdirectory(icons) -add_subdirectory(doc) + +include(ECMOptionalAddSubdirectory) +ecm_optional_add_subdirectory( po ) + +feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) + Index: COPYING-CMAKE-SCRIPTS =================================================================== --- /dev/null +++ COPYING-CMAKE-SCRIPTS @@ -0,0 +1,22 @@ +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Index: Changelog =================================================================== --- Changelog +++ Changelog @@ -1,3 +1,6 @@ +- 0.5.0 +Port to KF5 and Qt5 + - 0.4.2 More informative messages Fixed wrong reassignment of Save and Save as actions Index: README =================================================================== --- README +++ README @@ -1,40 +1,81 @@ Description ----------- -Cirkuit is a KDE4 interface for LaTeX graphic tools (such as TikZ, Gnuplot, Circuit Macros) to produce publication-ready pictures. -Cirkuit can also be used as a GUI for Circuit macros by Dwight Aplevich, which is a set of macros for drawing high-quality line diagrams to include in TeX, LaTeX, or similar documents. Cirkuit builds a live preview of the source code and can export the resulting images in various formats. Cirkuit supports also live preview of TikZ and Gnuplot sources. +Cirkuit is a GUI interface for LaTeX graphic tools (such as TikZ, Gnuplot, +Circuit Macros) to produce publication-ready pictures. -Source code ------------ -Cirkuit source code is now hosted on git.kde.org. The project homepage is http://projects.kde.org/cirkuit. +Cirkuit can also be used as a GUI for Circuit macros by Dwight Aplevich, which +is a set of macros for drawing high-quality line diagrams to include in TeX, +LaTeX, or similar documents. Cirkuit builds a live preview of the source code +and can export the resulting images in various formats. Cirkuit supports also +live preview of TikZ and Gnuplot sources. + +MA + + +Notes for version 0.5.0 +----------------------- + +Version 0.5.0 of Cirkuit is a port of version 0.4.3 to Qt5 and KF5. It will +run on recent Linux distributions (tested on Mint 19). Error reporting has +been improved and some examples included in the distribution. -Requirements ------------- -To run this application you need to have the following applications installed: +Cirkuits supports 'backends' for m4 circuit macros, pstricks, tikz and +gnuplot. It is probably most useful for the circuit macros. For Pstricks +and Tikz there are alternatives that may be more satisfactory: QTikz and +the the on-line www.overleaf.com. The Gnuplot backend does not work +currently with Greek characters. -* latex -* m4 -* gs -* dvips -* epstopdf -* ps2eps +m4 is now executed with the library path set with -I option, so statements +such as include(HOMELIB_`'darrow.m4) can generally be removed from +m4 scripts. + +If upgrading from Cirkuit 0.4.3 copy your templates to +~/.local/share/cirkuit/templates/ + +AG + + +Source code +----------- -On Debian-based systems (e.g. Ubuntu/Kubuntu) type the following command to install the required apps: +Cirkuit source code is now hosted on git.kde.org. The project homepage is +http://projects.kde.org/cirkuit. -sudo apt-get install texlive-latex-base texlive-latex-recommended texlive-pstricks texlive-base-bin texlive-extra-utils preview-latex-style m4 ghostscript pdf2svg -To build Cirkuit you need CMake and the KDE4 and Qt4 dev packages. To install them on Debian-based systems, type +Build instructions +------------------ -sudo apt-get install cmake kdelibs5-dev libqt4-dev libpoppler-qt4 +Open a terminal and type: -Packages are also available for Arch Linux (in AUR). +sudo apt-get install g++ cmake extra-cmake-modules qtbase5-dev libkf5windowsystem5 libkf5texteditor-dev libkf5archive-dev libkf5newstuff-dev libkf5crash-dev libpoppler-qt5-dev -To build the application from source, follow the usual KDE4/CMake procedure: +Then: tar xzvf cirkuit-x.y.z.tar.gz cd cirkuit-x.y.z mkdir build cd build -cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -make +cmake .. && make sudo make install + +To make it run you will a number of KF5 and Qt5 components. +You also need TexLive and a number of its packages. If LaTeX +reports that style files (*.sty) are missing use web searches +to identify the packages needed. + +Most of the required packages can be loaded with: + +sudo apt-get install epstool dpic ghostscript m4 pdf2svg imagemagick + +sudo apt-get install texlive-latex-base texlive-latex-recommended texlive-pstricks texlive-base-bin texlive-extra-utils preview-latex-style texlive-font-utils texlive-latex-extra + +You might also need texlive-fonts-extra texlive-fonts-recommended and lmodern + +To look at the help files (Help menu) a pdf reader such as Okular must be installed. + +See: https://wwwu.uni-klu.ac.at/magostin/cirkuit.html + + + + Index: classes.xmi =================================================================== --- classes.xmi +++ /dev/null @@ -1,343 +0,0 @@ - - - - - umbrello uml modeller http://uml.sf.net - 1.5.8 - UnicodeUTF8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: cmake_modules/FindPoppler.cmake =================================================================== --- cmake_modules/FindPoppler.cmake +++ cmake_modules/FindPoppler.cmake @@ -22,32 +22,32 @@ # in the FIND_PATH() and FIND_LIBRARY() calls INCLUDE(FindPkgConfig) -pkg_search_module(poppler-qt4 _PopplerIncDir _PopplerLinkDir _PopplerLinkFlags _PopplerCflags) +pkg_search_module(poppler-qt5 _PopplerIncDir _PopplerLinkDir _PopplerLinkFlags _PopplerCflags) if(_PopplerLinkFlags) - # query pkg-config asking for a poppler-qt4 >= 0.5.4 - EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=0.5.4 poppler-qt4 RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull ) + # query pkg-config asking for a poppler-qt5 >= 0.5.4 + EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=0.5.4 poppler-qt5 RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull ) if(_return_VALUE STREQUAL "0") set(POPPLER_FOUND TRUE) endif(_return_VALUE STREQUAL "0") else(_PopplerLinkFlags) # try to find poppler without pkgconfig find_library( LIBPOPPLER poppler ) - find_library( LIBPOPPLER_QT4 poppler-qt4 ) - find_path( INCLUDEPOPPLER_QT4 poppler/qt4/poppler-qt4.h ) - find_path( INCLUDEPOPPLER poppler-qt4.h PATHS ${INCLUDEPOPPLER_QT4}/poppler/qt4 ) - if( LIBPOPPLER_QT4 AND LIBPOPPLER AND INCLUDEPOPPLER ) + find_library( LIBPOPPLER_QT5 poppler-qt5 ) + find_path( INCLUDEPOPPLER_QT5 poppler/qt5/poppler-qt5.h ) + find_path( INCLUDEPOPPLER poppler-qt5.h PATHS ${INCLUDEPOPPLER_QT5}/poppler/qt5 ) + if( LIBPOPPLER_QT5 AND LIBPOPPLER AND INCLUDEPOPPLER ) set( POPPLER_FOUND TRUE ) - set(_PopplerLinkFlags ${LIBPOPPLER} ${LIBPOPPLER_QT4}) + set(_PopplerLinkFlags ${LIBPOPPLER} ${LIBPOPPLER_QT5}) set(POPPLER_INCLUDE_DIR ${INCLUDEPOPPLER}) - endif( LIBPOPPLER_QT4 AND LIBPOPPLER AND INCLUDEPOPPLER ) + endif( LIBPOPPLER_QT5 AND LIBPOPPLER AND INCLUDEPOPPLER ) endif(_PopplerLinkFlags) if (POPPLER_FOUND) set(POPPLER_LIBRARY ${_PopplerLinkFlags}) - # the cflags for poppler-qt4 can contain more than one include path + # the cflags for poppler-qt5 can contain more than one include path separate_arguments(_PopplerCflags) foreach(_includedir ${_PopplerCflags}) string(REGEX REPLACE "-I(.+)" "\\1" _includedir "${_includedir}") @@ -58,7 +58,7 @@ set(CMAKE_REQUIRED_INCLUDES ${POPPLER_INCLUDE_DIR} ${QT_INCLUDE_DIR}) set(CMAKE_REQUIRED_LIBRARIES ${POPPLER_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY}) check_cxx_source_compiles(" -#include +#include int main() { @@ -69,7 +69,7 @@ } " HAVE_POPPLER_0_6 ) check_cxx_source_compiles(" -#include +#include #include int main() { @@ -88,19 +88,19 @@ set(popplerVersionMessage "0.5.4") endif (HAVE_POPPLER_0_8) if (NOT Poppler_FIND_QUIETLY) - message(STATUS "Found Poppler-Qt4: ${POPPLER_LIBRARY}, (>= ${popplerVersionMessage})") + message(STATUS "Found Poppler-Qt5: ${POPPLER_LIBRARY}, (>= ${popplerVersionMessage})") endif (NOT Poppler_FIND_QUIETLY) else (POPPLER_FOUND) if (Poppler_FIND_REQUIRED) - message(FATAL_ERROR "Could NOT find Poppler-Qt4") + message(FATAL_ERROR "Could NOT find Poppler-Qt5") endif (Poppler_FIND_REQUIRED) - message(STATUS "Could not find OPTIONAL package Poppler-Qt4") + message(STATUS "Could not find OPTIONAL package Poppler-Qt5") endif (POPPLER_FOUND) # ensure that they are cached -set(POPPLER_INCLUDE_DIR ${POPPLER_INCLUDE_DIR} CACHE INTERNAL "The Poppler-Qt4 include path") -set(POPPLER_LIBRARY ${POPPLER_LIBRARY} CACHE INTERNAL "The Poppler-Qt4 library") -set(HAVE_POPPLER_0_6 ${HAVE_POPPLER_0_6} CACHE INTERNAL "Whether the version of Poppler-Qt4 is >= 0.6") -set(HAVE_POPPLER_0_8 ${HAVE_POPPLER_0_8} CACHE INTERNAL "Whether the version of Poppler-Qt4 is >= 0.8") +set(POPPLER_INCLUDE_DIR ${POPPLER_INCLUDE_DIR} CACHE INTERNAL "The Poppler-Qt5 include path") +set(POPPLER_LIBRARY ${POPPLER_LIBRARY} CACHE INTERNAL "The Poppler-Qt5 library") +set(HAVE_POPPLER_0_6 ${HAVE_POPPLER_0_6} CACHE INTERNAL "Whether the version of Poppler-Qt5 is >= 0.6") +set(HAVE_POPPLER_0_8 ${HAVE_POPPLER_0_8} CACHE INTERNAL "Whether the version of Poppler-Qt5 is >= 0.8") endif(POPPLER_INCLUDE_DIR AND POPPLER_LIBRARY) Index: doc/CMakeLists.txt =================================================================== --- doc/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR cirkuit) Index: doc/index.docbook =================================================================== --- doc/index.docbook +++ /dev/null @@ -1,277 +0,0 @@ - -Cirkuit"> - - - - -]> - - - -The &cirkuit; Handbook - - - - -Matteo -Agostinelli - -agostinelli@gmail.com - - - - - -2011 -Matteo Agostinelli - -&FDLNotice; - -2011-09-12 -0.1 - - - -&cirkuit; is an application to produce high-quality publication-ready -graphics. It provides a uniform interface to various graphics description -languages. As of today, the supported languages are Circuit Macros, TikZ, PSTricks -and Gnuplot. - - - - -KDE -graphics -TikZ -plot -publication - - - - - -Introduction - - -&cirkuit; is an application that provides a &kde; interface to various tools -used for the production of publication-ready graphics. The main feature of -&cirkuit; is to provide a live preview of the code the user enters to produce a -plot. It is probably worth noting that &cirkuit; is not a point-and-click editor -(like xfig for example), but instead the user is required to provide code to -produce an output. - - - - -Using &cirkuit; - - -Screenshot: - -Here is a screenshot of &cirkuit;, showing a typical -use-case scenario. - - - - - - Screenshot - - - - - - -&cirkuit; features - - Quick preview of the code to speed up the -production of your graphics. - Optional automatic generation of the -preview when the code has changed. - Zoomable preview to allow fine-tuning in -specific areas. - Output is exportable to many popular -graphics formats (PDF, EPS, SVG, PNG, JPG). - Full LaTeX support for the labels. - Powerful text editor (using &kate; part), -which allows line numbering, VI mode, and much more. - Inspectable log to debug the code -describing the graphics. - Editable templates to customize the build -process. - Easy plugin-based structure to allow different backends to be -added. This means that several description languages can be -supported, but with a unified interface. - GetHotNewStuff integration to allow example graphics to be -downloaded (or uploaded.) - Syntax highlighting. - - - -The &cirkuit; backends - - &cirkuit; offers you several choices for the backends you wish to use with -it, providing a unified interface to produce graphics. In general, each backend -supports a different graphics description language, allowing the user to employ -his favourite tools. - - - Currently the following backends are available: - - - Circuit Macros: - - - Circuit Macros is a set of macros for drawing high-quality line diagrams. - - Fundamental electric circuit elements and basic logic gates are included -with several tools and examples of other types of diagrams. Elements can be -scaled or drawn in any orientation and are easy to modify. The advantages and -disadvantages of such a system are similar to those of TeX itself, which is -macro-based and non-wysiwyg, with ordinary character input. - - - &cirkuit; automatically downloads the macros from the Internet (if a -working connection is detected) and configures it properly. The macros are -installed in the user's home directory, typically -$HOME/.kde/share/apps/cirkuit. Please check the requirements before using the backend. - - - See the project homepage for -more information. - - - - - TikZ: - - - PGF/TikZ is a tandem of languages for producing vector graphics -from a geometric/algebraic description. PGF is a lower-level language, while -TikZ is a set of higher-level macros that use PGF. The top-level PGF and TikZ -commands are invoked as TeX macros, but in contrast with PSTricks, the PGF/TikZ -graphics themselves are described in a language that resembles MetaPost. - - - - - - - - - - - - -Credits and License - - -&cirkuit; - - -Program copyright 2011 Matteo Agostinelli -matteo@agostinelli.me - - - -Documentation Copyright © 2011 Matteo Agostinelli -matteo@agostinelli.me - - - - -&underFDL; -&underGPL; - - - -Installation - - -How to obtain &cirkuit; - -&install.intro.documentation; - - - - -Requirements - - -In order to successfully use &cirkuit;, you need &kde; 4 and a working LaTeX -distribution. The individual backends might have additional requirements. Here -is a (partial) list of the default backends' requirements: - - - - - Circuit Macros: - - -To use the Circuit Macros backend, a PIC interpreter must be installed. At the -moment, two interpreters are supported: - - - - Dpic -(recommended) - - - &GNU; pic, also known - as gpic or simply pic - - - -Additionally, m4 and a working LaTeX distribution are -required. - - - - - - - - - - - - -Compilation and Installation - -&install.compile.documentation; - - - - -Configuration - - - Depending on your system, you may need to adjust the paths to the - different applications used by &cirkuit;. - - - - - - -&documentation.index; - - Index: icons/CMakeLists.txt =================================================================== --- icons/CMakeLists.txt +++ icons/CMakeLists.txt @@ -1,4 +1,5 @@ -find_package(KDE4 REQUIRED) +#find_package(KF5 REQUIRED) +include(ECMInstallIcons) -kde4_install_icons( ${ICON_INSTALL_DIR} ) +ecm_install_icons( ${ICON_INSTALL_DIR} ) install (FILES application-x-cirkuit.svgz DESTINATION ${ICON_INSTALL_DIR}/oxygen/scalable/mimetypes) Index: po/CMakeLists.txt =================================================================== --- /dev/null +++ po/CMakeLists.txt @@ -0,0 +1,26 @@ +find_package(Gettext REQUIRED) +if (NOT GETTEXT_MSGMERGE_EXECUTABLE) +MESSAGE(FATAL_ERROR "Please install msgmerge binary") +endif (NOT GETTEXT_MSGMERGE_EXECUTABLE) +if (NOT GETTEXT_MSGFMT_EXECUTABLE) +MESSAGE(FATAL_ERROR "Please install msgmerge binary") +endif (NOT GETTEXT_MSGFMT_EXECUTABLE) +add_subdirectory(lt) +add_subdirectory(ug) +add_subdirectory(ga) +add_subdirectory(fr) +add_subdirectory(sv) +add_subdirectory(ru) +add_subdirectory(it) +add_subdirectory(ja) +add_subdirectory(pl) +add_subdirectory(es) +add_subdirectory(cs) +add_subdirectory(pt) +add_subdirectory(km) +add_subdirectory(nds) +add_subdirectory(pt_BR) +add_subdirectory(uk) +add_subdirectory(nl) +add_subdirectory(de) +add_subdirectory(et) Index: po/cs/CMakeLists.txt =================================================================== --- /dev/null +++ po/cs/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(cs ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/cs/cirkuit.po =================================================================== --- /dev/null +++ po/cs/cirkuit.po @@ -0,0 +1,540 @@ +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# Vít Pelčák , 2010, 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-10-19 10:26+0200\n" +"Last-Translator: Vít Pelčák \n" +"Language-Team: Czech \n" +"Language: csX-Generator: Lokalize 1.1\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" +"X-Generator: Lokalize 1.2\n" + +#: widgets/imageview.cpp:81 +#, fuzzy +msgid "Zoom to fit" +msgstr "Přizpůsobit velikost" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +#, fuzzy +msgid "Template manager" +msgstr "Správce předloh" + +#: widgets/templatechoosedialog.cpp:193 +#, fuzzy +msgid "Template name" +msgstr "Název předlohy" + +#: widgets/templatechoosedialog.cpp:193 +#, fuzzy +msgid "Insert the template name" +msgstr "Vložit název předlohy" + +#: widgets/templatechoosedialog.cpp:217 +#, fuzzy +msgid "Do you really want to delete the selected template?" +msgstr "Opravdu chcete smazat vybranou předlohu?" + +#: widgets/templatechoosedialog.cpp:218 +#, fuzzy +msgid "Confirm deletion" +msgstr "Potvrdit smazání" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Podívejte se na %3 " +"kvůli dalším informacím
" + +#: widgets/backendchoosedialog.cpp:33 +#, fuzzy +#| msgid "Backends" +msgid "Backend selection" +msgstr "Výběr jádra" + +#: main.cpp:30 +#, fuzzy +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +#, fuzzy +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Program na vytváření obrázků připravených pro publikování. Jde o rozhraní " +"KDE pro Circuit Macros od J. D. Apleviche, TikZ a Gnuplotu.

Navštivte " +"stránky Circuit " +"Macros a TikZ pro další " +"informace." + +#: main.cpp:30 +#, fuzzy +#| msgid "(c) 2010 Matteo Agostinelli" +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2011 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Správce" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Dokument k otevření" + +#: generatorthread.cpp:55 +#, fuzzy +msgid "No backend could be selected!" +msgstr "Nepodařilo se vybrat žádné jádro" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Nepodařilo se nalézt součást textový editor KDE.\n" +"Prověřte, prosím, svou instalaci KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Náhled" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Záznam" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Exportovat..." + +#: mainwindow.cpp:162 +#, fuzzy +msgid "Build preview" +msgstr "Sestavit náhled" + +#: mainwindow.cpp:168 +#, fuzzy +msgid "Open preview" +msgstr "Otevřít náhled" + +#: mainwindow.cpp:178 +#, fuzzy +msgid "Show manual" +msgstr "Ukázat příručku" + +#: mainwindow.cpp:182 +#, fuzzy +msgid "Show examples" +msgstr "Ukázat příklady" + +#: mainwindow.cpp:190 +#, fuzzy +msgid "Download Examples" +msgstr "Stáhnout příklady" + +#: mainwindow.cpp:195 +#, fuzzy +msgid "Upload Example" +msgstr "Nahrát příklad" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "&Otevřít příklad" + +#: mainwindow.cpp:238 +#, fuzzy +msgid "Open file - Cirkuit" +msgstr "Otevřít soubor - Cirkuit" + +#: mainwindow.cpp:281 +#, fuzzy +msgid "Save file - Cirkuit" +msgstr "Uložit soubor - Cirkuit" + +#: mainwindow.cpp:313 +#, fuzzy +msgid "Export image - Cirkuit" +msgstr "Vyvést obrázek - Cirkuit" + +#: mainwindow.cpp:402 +#, fuzzy, kde-format +msgid "Backend %1 not found" +msgstr "Jádro %1 nenalezeno" + +#: mainwindow.cpp:411 +#, fuzzy +msgid "No valid backend selected." +msgstr "Není vybráno žádné platné jádro." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Obecné" + +#: mainwindow.cpp:519 +#, fuzzy +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Makra Circuit (Circuit Macros) se ve vašem systému najít nepodařilo. Program " +"nebude pracovat, pokud makra nebudou nainstalována. Chcete pokračovat v " +"instalaci?" + +#: mainwindow.cpp:519 +#, fuzzy +msgid "Installation needed" +msgstr "Instalace je nezbytná" + +#: mainwindow.cpp:524 +#, fuzzy +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Stahují se Circuit Macros. Počkejte, prosím, ..." + +#: mainwindow.cpp:532 +#, fuzzy, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Je dostupná nová verze Circuit Macros (verze %1). Chcete provést povýšení " +"verze?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Aktualizovat" + +#: mainwindow.cpp:550 +#, fuzzy +msgid "Unable to generate a preview for the current input" +msgstr "Pro současný vstup nelze vytvořit náhled" + +#: mainwindow.cpp:577 +#, fuzzy +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Nebylo nalezeno žádné pracující jádro. Cirkuit není schopen vytvořit žádný " +"obrázek." + +#: mainwindow.cpp:577 +#, fuzzy +msgid "No backends found" +msgstr "Nenalezena žádná jádra" + +#: mainwindow.cpp:610 +#, fuzzy, kde-format +msgid "%1 manual" +msgstr "%1 ruční" + +#: mainwindow.cpp:611 +#, fuzzy, kde-format +msgid "%1 examples" +msgstr "%1 příklady" + +#: mainwindow.cpp:630 +#, fuzzy +msgid "Save the current document before uploading it" +msgstr "Uložit nynější dokument před jeho nahráním" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Vít Pelčák" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "vit@pelcak.org" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +#, fuzzy +msgid "The location of the Circuit Macros template." +msgstr "Umístění předlohy Circuit Macros." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +#, fuzzy +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "Umístění předlohy Circuit Macros s jádrem TikZ." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +#, fuzzy +msgid "The default arguments called in the latex executable" +msgstr "Výchozí argumenty volané v latexovém spustitelném souboru" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +#, fuzzy +msgid "Template path:" +msgstr "Cesta k předloze:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +#, fuzzy +msgid "Pic interpreter" +msgstr "Překladač fotek" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +#, fuzzy +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +#, fuzzy +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +#, fuzzy +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +#, fuzzy +msgid "The location of the Gnuplot template." +msgstr "Umístění předlohy pro Gnuplot." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +#, fuzzy +msgid "The location of the TikZ template." +msgstr "Umístění předlohy pro TikZ." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +#, fuzzy +msgid "The location of the PSTricks template." +msgstr "Umístění předlohy pro PSTricks." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Vybrat podpůrnou vrstvu, která se bude používat:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Nastavit toto jako vychozí podpůdnou vrstvu" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Podpůrná vrstva:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Nový" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Upravit" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Odstranit" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Stáhnout" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Odeslat" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +#, fuzzy +msgid "Default backend." +msgstr "Výchozí jádro." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +#, fuzzy +msgid "Automatic backend selection" +msgstr "Automatický výběr jádra" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +#, fuzzy +msgid "Preview generation refresh timeout." +msgstr "Přestávka pro obnovu vytvoření náhledu." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +#, fuzzy +msgid "Enable automatic refresh." +msgstr "Povolit automatickou obnovu." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +#, fuzzy +msgid "Refresh when document is saved." +msgstr "Obnovit při uložení dokumentu." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +#, fuzzy +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "Automaticky zvětšit náhled tak, aby se přizpůsobil oknu s náhledem" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +#, fuzzy +msgid "PNG and JPEG resolution." +msgstr "Rozlišení PNG a JPEG." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Obecná nastavení" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Podpůrné vrstvy" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +#, fuzzy +msgid "Default backend:" +msgstr "Výchozí jádro:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +#, fuzzy +msgid "Preview refresh interval (sec):" +msgstr "Interval pro obnovu náhledu (s):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +#, fuzzy +msgid "Automatic preview generation" +msgstr "Automatické vytvoření náhledu" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +#, fuzzy +msgid "Refresh the preview when saving the document" +msgstr "Obnovit náhled při uložení dokumentu" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +#, fuzzy +msgid "PNG and JPEG resolution (DPI):" +msgstr "Rozlišení PNG a JPEG (DPI):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Soubor" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "Náhle&d" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "Po&hled" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "Nápo&věda" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Hlavní nástrojová lišta" + + + + +#, fuzzy \ No newline at end of file Index: po/de/CMakeLists.txt =================================================================== --- /dev/null +++ po/de/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(de ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/de/cirkuit.po =================================================================== --- /dev/null +++ po/de/cirkuit.po @@ -0,0 +1,482 @@ +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# Panagiotis Papadopoulos , 2010. +# Burkhard Lück , 2011. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-11-12 19:30+0100\n" +"Last-Translator: Burkhard Lück \n" +"Language-Team: German \n" +"Language: deX-Generator: Lokalize 1.1\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Lokalize 1.2\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Auf Ansichtsgröße zoomen" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Vorlagenverwaltung" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Name der Vorlage" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Geben Sie den Namen der Vorlage ein" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Möchten Sie die ausgewählte Vorlage wirklich löschen?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Löschen bestätigen" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Weitere Informationen finden Sie auf %3
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Modulauswahl" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2011 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Betreuer" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Zu öffnendes Dokument" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Es konnte kein Modul ausgewählt werden." + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Es wurde keine KDE-Editorkomponente gefunden\n" +"Bitte überprüfen Sie Ihre KDE-Installation." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Vorschau" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Protokoll" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Exportieren ..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Vorschau erstellen" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Vorschau öffnen" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Handbuch anzeigen" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Beispiele anzeigen" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Beispiele herunterladen" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Beispiele hochladen" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "&Beispiele öffnen " + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Datei öffnen – Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Datei speichern – Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Bild exportieren – Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Modul %1 wurde nicht gefunden" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Kein gültiges Modul ausgewählt." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Allgemein" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Installation erforderlich" + +#: mainwindow.cpp:524 +#, fuzzy +#| msgid "Download Circuit Macros. Please wait..." +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Circuit-Makros werden heruntergeladen, bitte warten ..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Eine neue Version der Circuit-Makros (Version %1) ist verfügbar. Möchten Sie " +"sie aktualisieren?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Aktualisieren" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Die Vorschau für die aktuelle Eingabe kann nicht erstellt werden" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Es wurden keine funktionsfähigen Module gefunden. Cirkuit kann keine " +"Grafiken generieren." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "Keine Module gefunden" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "%1 Handbuch" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "%1 Beispiele" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Das aktuelle Dokument vor dem Hochladen speichern" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Panagiotis Papadopoulos" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "pano_90@gmx.net" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "Der Speicherort der Circuit-Makros-Vorlage." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "Der Speicherort der Circuit-Makros-Vorlage mit dem TikZ-Modul." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "Das Standardargument zu Aufruf des Programms LaTex" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Pfad zur Vorlage:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Pic-Interpreter" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "Der Speicherort der Gnuplot-Vorlage." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "Der Speicherort der TikZ-Vorlage." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "Der Speicherort der PSTricks-Vorlage." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Wählen Sie das zu verwendende Modul:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Ausgewähltes als Standard-Modul einstellen" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Modul:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Neu" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Bearbeiten" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Entfernen" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Herunterladen" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Hochladen" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Standard-Modul." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Automatische Wahl des Moduls" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "" + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Automatisches Aktualisieren aktivieren" + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Aktualisieren wenn das Dokument gespeichert ist." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "PNG- und JPEG-Auflösung." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Allgemeine Einstellungen" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Module" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Standard-Modul:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Aktualisierungsintervall der Vorschau (in Sekunden):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Automatisches Erstellen von Vorschauen" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Beim Speichern des Dokuments Vorschau aktualisieren" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "PNG- und JPEG-Auflösung (DPI):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Datei" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Vorschau" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Ansicht" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Hilfe" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Haupt-Werkzeugleiste" + + + + +#, fuzzy \ No newline at end of file Index: po/es/CMakeLists.txt =================================================================== --- /dev/null +++ po/es/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(es ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/es/cirkuit.po =================================================================== --- /dev/null +++ po/es/cirkuit.po @@ -0,0 +1,482 @@ +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# Eloy Cuadra , 2011. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-12-17 13:13+0100\n" +"Last-Translator: Eloy Cuadra \n" +"Language-Team: Spanish \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.2\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Ampliar para ajustar" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Gestor de plantillas" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Nombre de la plantilla" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Inserte el nombre de la plantilla" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "¿Realmente desea borrar la plantilla seleccionada?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Confirme el borrado" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Consulte %3 para más " +"información
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Selección del motor" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Una aplicación para generar figuras listas para su publicación. Se trata de " +"una interfaz de KDE para Circuit Macros, por J. D. Aplevich, TikZ y Gnuplot. " +"

Visite los sitios web Circuit Macros y TikZ para obtener más información." + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "© 2011 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Encargado" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Documento a abrir" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "No se puede seleccionar ningún motor." + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"No fue posible encontrar un componente de edición de texto de KDE\n" +"Compruebe su instalación de KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Vista previa" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Registro" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Exportar..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Construir vista previa" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Abrir vista previa" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Mostrar manual" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Mostrar ejemplos" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Descargar ejemplos" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Enviar ejemplo" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "&Abrir ejemplo" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Abrir archivo - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Guardar archivo - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Exportar imagen - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "No se encuentra el motor %1" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "No se ha seleccionado un motor válido." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "General" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"No se puede encontrar Circuit Macros en su sistema. La aplicación no " +"funcionará si las macros no están instaladas. ¿Desea continuar con la " +"instalación?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Instalación necesaria" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Descargando Circuit Macros. Espere, por favor..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Está disponible una nueva versión de Circuit Macros (versión %1). ¿Desea " +"actualizarse a ella?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Actualizar" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "No ha sido posible generar una vista previa para la entrada actual" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"No se ha encontrado un motor funcional. Cirkuit no puede generar ninguna " +"figura." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "No se han encontrado motores" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "Manual %1" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "%1 ejemplos" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Guardar el documento actual antes de enviarlo" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Eloy Cuadra" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "ecuadra@eloihr.net" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "La ubicación de la plantilla de Circuit Macros." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "La ubicación de la plantilla de Circuit Macros con el motor TikZ." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "Los argumentos por omisión usados con el ejecutable «latex»" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Ruta de la plantilla:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Intérprete PIC" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "La ubicación de la plantilla de Gnuplot." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "La ubicación de la plantilla de TikZ." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "La ubicación de la plantilla de PSTricks." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Escoja el motor a usar:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Hacer que este sea el motor por omisión" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Motor:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Nuevo" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Editar" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Eliminar" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Descargar" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Enviar" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Motor por omisión." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Selección automática del motor" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Intervalo de refresco de la generación de la vista previa." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Activar el refresco automático." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Refrescar cuando se guarda el documento." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "Ampliar automáticamente la vista previa para ajustarse a su ventana" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Resolución PNG y JPEG." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Preferencias generales" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Motores" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Motor por omisión:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Intervalo de refresco de la vista previa (seg):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Generación automática de vista previa" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Refrescar la vista previa cuando se guarda el documento" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "Resolución (PPP) de PNG y JPEG:" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Archivo" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "Vista &previa" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Vista" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "A&yuda" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Barra de herramientas principal" \ No newline at end of file Index: po/et/CMakeLists.txt =================================================================== --- /dev/null +++ po/et/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(et ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/et/cirkuit.po =================================================================== --- /dev/null +++ po/et/cirkuit.po @@ -0,0 +1,483 @@ +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# Marek Laane , 2011. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-03-14 20:39+0200\n" +"Last-Translator: Marek Laane \n" +"Language-Team: Estonian \n" +"Language: et\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.2\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Suurendus sobivaks" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Mallide haldur" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Malli nimi" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Lisa malli nimi" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Kas tõesti kustutada valitud mall?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Kustutamise kinnitus" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Täpsemalt räägib sellest " +"%3
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Taustaprogrammi valik" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Rakendus avaldamiskõlblike jooniste loomiseks. See kujutab endast J. D. " +"Aplevichi, TikZi ja Gnuploti vooluringimakrode KDE kasutajaliidest. " +"

Täpsemat teavet leiab vooluringimakrode ja TikZi veebilehekülgedelt." + +#: main.cpp:30 +#, fuzzy +#| msgid "(c) 2010 Matteo Agostinelli" +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2010: Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Hooldaja" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Avatav dokument" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Ühtegi taustaprogrammi ei õnnestu valida!" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"KDE tekstiredaktori komponenti ei leitud.\n" +"Palun kontrolli oma KDE paigaldust." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Eelvaatlus" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Logi" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Ekspordi..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Loo eelvaatlus" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Ava eelvaatlus" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Ava käsiraamat" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Ava näidised" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Laadi alla näidiseid" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Laadi näidis üles" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "&Ava näidis" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Faili avamine - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Faili salvestamine - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Pildi eksport - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Taustaprogrammi %1 ei leitud" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Sobivat taustaprogrammi pole valitud." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Üldine" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Vooluringimakrosid sinu süsteemist ei leitud. Rakendus ei tööta, kui makrod " +"pole paigaldatud. Kas asuda neid paigaldama?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Vajalik on paigaldamine" + +#: mainwindow.cpp:524 +#, fuzzy +#| msgid "Download Circuit Macros. Please wait..." +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Vooluringimakrode allalaadimine. Palun oota..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "Saadaval on uus vooluringimakrode versioon (%1). Kas soovid uuendada?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Uuenda" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Aktiivse sisendi eelvaatluse loomine nurjus" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Ühtegi töötavat taustaprogrammi ei leitud. Cirkuit ei suuda jooniseid " +"genereerida." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "Ühtegi taustaprogrammi ei leitud" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "Taustaprogrammi %1 käsiraamat" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "Taustaprogrammi %1 näidised" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Salvesta aktiivne dokument enne selle üleslaadimist" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Marek Laane" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "bald@smail.ee" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "Vooluringimakrode malli asukoht." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "TikZi taustaprogrammiga vooluringimakrode asukoht." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "LaTeXi teostusfailile vaikimisi edastatavad argumendid" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Malli asukoht:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Pildi interpretaator:" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "Gnuploti malli asukoht." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "TikZi malli asukoht." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "PSTricksi malli asukoht." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Kasutatav taustaprogramm:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Määramine vaikimisi taustaprogrammiks" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Taustaprogramm:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Uus" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Muuda" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Eemalda" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Laadi alla" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Laadi üles" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Vaikimisi taustaprogramm." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Automaatne taustaprogrammi valik" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Eelvaatluse loomise värskendamise ajaületus." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Automaatse värskendamise lubamine." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Värskendamine dokumendi salvestamisel." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "Eelvaatluse suuruse automaatne muutmine sobivaks eelvaatlusvidinaga" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "PNG ja JPEG lahutus." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Üldised seadistused" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Taustaprogrammid" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Vaikimisi taustaprogramm:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Eelvaatluse värskendamise intervall (sek):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Eelvaatluse automaatne loomine" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Eelvaatluse värskendamine dokumendi salvestamisel" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "PNG ja JPEG lahutus (DPI):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Fail" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Eelvaatlus" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Vaade" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Abi" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Peamine tööriistariba" \ No newline at end of file Index: po/fr/CMakeLists.txt =================================================================== --- /dev/null +++ po/fr/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(fr ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/fr/cirkuit.po =================================================================== --- /dev/null +++ po/fr/cirkuit.po @@ -0,0 +1,487 @@ +# translation of cirkuit.po to Français +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# Joëlle Cornavin , 2011. +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-09-28 12:05+0200\n" +"Last-Translator: Joëlle Cornavin \n" +"Language-Team: French \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Adapter à la taille" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Gestionnaire de modèles" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Nom du modèle" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Insérez le nom du modèle" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Voulez-vous vraiment supprimer le modèle sélectionné ?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Confirmer la suppression" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Consultez %3 pour " +"plusieurs d'informations
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Sélection du moteur" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Une application pour générer des figures prêtes pour la publication. Il " +"s'agit d'une interface KDE pour Circuit Macros de J. D. Aplevich, TikZ et " +"Gnuplot.

Consultez les sites web Circuit Macros et TikZ pour plus d'informations." + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2011 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Mainteneur" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Document à ouvrir" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Impossible de sélectionner un moteur !" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Impossible de trouver un composant éditeur de texte pour KDE.\n" +"Veuillez vérifier votre installation KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Aperçu" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Journal" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Exporter..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Créer un aperçu" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Ouvrir un aperçu" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Afficher un manuel" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Afficher des exemples" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Télécharger des exemples" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Envoyer un exemple" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "&Ouvrir un exemple" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Ouvrir un fichier - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Enregistrer un fichier - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Exporter une image - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Moteur %1 introuvable" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Aucun moteur valable n'a été sélectionné." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Général" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Impossible de trouver Circuit Macros sur votre système. L'application ne " +"fonctionnera pas si les macros ne sont pas installées. Voulez-vous " +"poursuivre l'installation ?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Installation nécessaire" + +#: mainwindow.cpp:524 +#, fuzzy +#| msgid "Download Circuit Macros. Please wait..." +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Téléchargement de Circuit Macros. Veuillez patienter..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Une nouvelle version de Circuit Macros (version %1) est disponible. Voulez-" +"vous effectuer une mise à niveau ?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Mettre à niveau" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Impossible de générer un aperçu pour les données d'entrée actuelles" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Aucun moteur opérationnel n'a été trouvé. Cirkuit n'est pas en mesure de " +"générer un quelconque schéma." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "Aucun moteur n'a été trouvé" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "%1 manuel" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "%1 exemples" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Enregistrer le document actuel avant de l'envoyer" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Joëlle Cornavin" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "jcorn@free.fr" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "L'emplacement du modèle de Circuit Macros." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "L'emplacement du modèle de Circuit Macros avec le moteur TikZ." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "Les arguments par défaut appelés dans l'exécutable latex" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Emplacement des modèles :" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Interpréteur « pic »" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "L'emplacement du modèle de Gnuplot." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "L'emplacement du modèle de TikZ." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "L'emplacement du modèle de PSTricks." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Choisissez le moteur à utiliser :" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Faire de ce moteur le moteur par défaut" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Programme principal :" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Nouveau" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Modifier" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Supprimer" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Télécharger" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Envoyer" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Moteur par défaut." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Sélection automatique du moteur" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "" +"Le temps imparti au rafraîchissement de la génération d'aperçu a expiré." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Active le rafraîchissement automatique." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Rafraîchir lorsqu'un document est enregistré." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "" +"Adapter automatiquement l'aperçu à la taille de l'aperçu du composant " +"graphique" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Résolution de PNG et JPEG." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Réglages généraux" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Moteurs" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Moteur par défaut :" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Intervalle de rafraîchissement de l'aperçu (sec) :" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Génération automatique de l'aperçu" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Rafraîchir l'aperçu lors de l'enregistrement du document" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "Résolution de PNG et JPEG (en DPI) :" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Fichier" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "A&perçu" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Affichage" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Aide" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Barre principale" \ No newline at end of file Index: po/ga/CMakeLists.txt =================================================================== --- /dev/null +++ po/ga/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(ga ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/ga/cirkuit.po =================================================================== --- /dev/null +++ po/ga/cirkuit.po @@ -0,0 +1,468 @@ +# Irish translation of cirkuit +# Copyright (C) 2011 This_file_is_part_of_KDE +# This file is distributed under the same license as the cirkuit package. +# Kevin Scannell , 2011. +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-12-28 12:28-0500\n" +"Last-Translator: Kevin Scannell \n" +"Language-Team: Irish \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=5; plural=n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n < 11 ? " +"3 : 4\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Dearbhaigh an scriosadh" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Cothaitheoir" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Cáipéis le hoscailt" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Níor aimsíodh comhpháirt eagarthóra KDE;\n" +"seiceáil do shuiteáil KDE le do thoil." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Réamhamharc" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Logáil" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Easpórtáil..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Íosluchtaigh Samplaí" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "" + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Ginearálta" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "" + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Uasghrádú" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "" + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "" + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Nua" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Eagar" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Bain" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Íosluchtaigh" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Uasluchtaigh" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "" + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "" + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "" + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "" + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Socruithe ginearálta" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Innill" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Comhad" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Réamhamharc" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Amharc" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Príomhbharra Uirlisí" \ No newline at end of file Index: po/it/CMakeLists.txt =================================================================== --- /dev/null +++ po/it/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(it ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/it/cirkuit.po =================================================================== --- /dev/null +++ po/it/cirkuit.po @@ -0,0 +1,517 @@ +# translation of cirkuit.po to Italian +# Matteo Agostinelli , 2011. +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-01-04 16:19+0100\n" +"Last-Translator: Matteo Agostinelli \n" +"Language-Team: Italian \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Ridimensiona automaticamente" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +#, fuzzy +#| msgid "Template path:" +msgid "Template manager" +msgstr "Percorso del template:" + +#: widgets/templatechoosedialog.cpp:193 +#, fuzzy +#| msgid "Template path:" +msgid "Template name" +msgstr "Percorso del template:" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Inserire il nome del template" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Sei sicuro di voler eliminare il template selezionato?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Conferma cancellazione" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" + +#: widgets/backendchoosedialog.cpp:33 +#, fuzzy +#| msgid "No valid backend selected!" +msgid "Backend selection" +msgstr "Nessun backend valido!" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Un'applicazione per generare figure di qualità elevata. È un'interfaccia KDE " +"per Circuit Macros di J. D. Aplevich, TikZ e Gnuplot.

Visita i siti di Circuit Macros " +"e TikZ per maggiori informazioni." + +#: main.cpp:30 +#, fuzzy +#| msgid "(c) 2010 Matteo Agostinelli" +msgid "(c) 2011 Matteo Agostinelli" +msgstr "© 2010 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Sviluppatore principale" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Documento da aprire" + +#: generatorthread.cpp:55 +#, fuzzy +#| msgid "No backend could be selected!" +msgid "No backend could be selected!" +msgstr "Non è possibile selezionare alcun backend" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Non è possibile trovare il componente editor di testo KDE;\n" +"prego controllare la propria installazione KDE" + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +#, fuzzy +#| msgid "&Preview" +msgid "Preview" +msgstr "&Anteprima" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Log" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Esporta..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Crea anteprima" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Apri anteprima" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Mostra manuale" + +#: mainwindow.cpp:182 +#, fuzzy +#| msgid "Show Circuit Macros examples" +msgid "Show examples" +msgstr "Mostra degli esempi di Circuit Macros" + +#: mainwindow.cpp:190 +#, fuzzy +#| msgid "Show Circuit Macros examples" +msgid "Download Examples" +msgstr "Mostra degli esempi di Circuit Macros" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Carica esempio" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "Apri esempio" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Apri file - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Salva file - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Esporta immagine - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Backend %1 non trovato" + +#: mainwindow.cpp:411 +#, fuzzy +#| msgid "No valid backend selected!" +msgid "No valid backend selected." +msgstr "Nessun backend valido!" + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Generale" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Circuit Macros non è stato trovato nel tuo sistema. L'applicazione non " +"funzionerà a meno che Circuit Macros non sia installato. Vuoi procedere con " +"l'installazione?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Necessaria installazione" + +#: mainwindow.cpp:524 +#, fuzzy +#| msgid "Download Circuit Macros. Please wait..." +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Scarico Circuit Macros. Prego attendere..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Una nuova versione di Circuit Macros (versione %1) è disponibile. Vuoi " +"aggiornare?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Aggiorna" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Impossibile generare un'anteprima per l'input attuale" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" + +#: mainwindow.cpp:577 +#, fuzzy +#| msgid "Backend %1 not found" +msgid "No backends found" +msgstr "Backend %1 non trovato" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "Manuale di %1" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "Esempi di %1" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Salvare il documento prima di caricarlo" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Matteo Agostinelli" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "agostinelli@gmail.com" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "La locazione del template per Circuit Macros" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "La locazione del template per Circuit Macros con il backend TikZ" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Percorso del template:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Interprete pic:" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "La locazione del template Gnuplot" + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "La locazione del template TikZ" + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +#, fuzzy +#| msgid "The location of the Circuit Macros template." +msgid "The location of the PSTricks template." +msgstr "La locazione del template per Circuit Macros" + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Selezionare il backend che si intende usare:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +#, fuzzy +#| msgid "Default backend:" +msgid "Make this the default backend" +msgstr "Backend predefinito:" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +#, fuzzy +#| msgid "&New" +msgid "New" +msgstr "&Nuovo" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Modifica" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Elimina" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +#, fuzzy +#| msgid "Show Circuit Macros examples" +msgid "Download" +msgstr "Mostra degli esempi di Circuit Macros" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +#, fuzzy +#| msgid "Upgrade" +msgid "Upload" +msgstr "Aggiorna" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Backend predefinito." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +#, fuzzy +#| msgid "No valid backend selected!" +msgid "Automatic backend selection" +msgstr "Nessun backend valido!" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Intervallo di generazione automatica dell'anteprima" + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Generazione automatica dell'anteprima" + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Risoluzione dei file PNG e JPEG" + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "Larghezza della finestra principale" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Altezza della finestra principale" + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Impostazioni generali" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Backend predefinito:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Intervallo di generazione dell'anteprima (sec):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +#, fuzzy +#| msgid "Enable automatic preview generation" +msgid "Automatic preview generation" +msgstr "Abilita generazione automatica dell'anteprima" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Aggiorna l'anteprima quando si salva il documento" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +#, fuzzy +#| msgid "PNG and JPEG resolution (in DPI)" +msgid "PNG and JPEG resolution (DPI):" +msgstr "Risoluzione dei file PNG e JPG (in DPI)" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&File" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Anteprima" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Visualizza" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Aiuto" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Barra dgli strumenti" + + + + +#, fuzzy \ No newline at end of file Index: po/ja/CMakeLists.txt =================================================================== --- /dev/null +++ po/ja/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(ja ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/ja/cirkuit.po =================================================================== --- /dev/null +++ po/ja/cirkuit.po @@ -0,0 +1,463 @@ +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2010-12-12 15:04-0800\n" +"Last-Translator: Japanese KDE translation team \n" +"Language-Team: Japanese \n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Accelerator-Marker: &\n" +"X-Text-Markup: kde4\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "" + +#: main.cpp:36 +msgid "Document to open" +msgstr "" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "" + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "" + +#: mainwindow.cpp:460 +msgid "General" +msgstr "" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "" + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "" + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "" + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "" + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "" + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "" + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "" + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "" \ No newline at end of file Index: po/km/CMakeLists.txt =================================================================== --- /dev/null +++ po/km/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(km ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/km/cirkuit.po =================================================================== --- /dev/null +++ po/km/cirkuit.po @@ -0,0 +1,484 @@ +# translation of cirkuit.po to Khmer +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# Khoem Sokhem , 2011. +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-06-28 07:39+0700\n" +"Last-Translator: Khoem Sokhem \n" +"Language-Team: Khmer \n" +"Language: \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" +"X-Language: km-KH\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "ពង្រីក​ឲ្យ​សម" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "កម្មវិធី​គ្រប់គ្រង​ពុម្ព" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "ឈ្មោះពុម្ព​" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "បញ្ចូល​ឈ្មោះ​ពុម្ព" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "តើ​អ្នក​ពិតជា​ចង់​លុប​ពុម្ព​ដែល​បាន​ជ្រើស​នេះ​មែន​ទេ ?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "អះអាង​ការ​លុប" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

មើល %3 សម្រាប់​ព័ត៌មាន​បន្ថែម" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "ការ​ជ្រើស​កម្មវិធី​ខាងក្រោយ" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"កម្មវិធី​សម្រាប់​បង្កើត​រូបភាព​ពន្យល់​ការ​បោះពុម្ព​រួចហើយ ។ វា​គឺជា​កម្មវិធី​ខាងមុខ​របស់​ KDE សម្រាប់ " +"Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

ចូល​មើល​តំបន់​បណ្ដាញ Circuit Macros " +"និង TikZ សម្រាប់​ព័ត៌មាន​លម្អិត ។" + +#: main.cpp:30 +#, fuzzy +#| msgid "(c) 2010 Matteo Agostinelli" +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2010 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "អ្នក​ថែទាំ" + +#: main.cpp:36 +msgid "Document to open" +msgstr "ឯកសារ​ដែល​ត្រូវ​បើក" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "គ្មាន​កម្មវិធី​ខាងក្រោយ​ត្រូវ​បាន​ជ្រើស​ទេ !" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"មិន​អាច​រក​ឃើញ​សមាសភាគ​កម្មវិធី​និពន្ធ​អត្ថបទ​របស់ KDE \n" +"សូម​ពិនិត្យ​ការ​ដំឡើង​ KDE របស់​អ្នក ។" + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "មើល​ជាមុន" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "ចុះ​កំណត់ហេតុ" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "នាំចេញ..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "ស្ថាបនា​ការ​មើល​ជាមុន" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "បើក​ការ​មើល​ជាមុន" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "បង្ហាញ​សៀវភៅ​ដៃ" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "បង្ហាញ​ឧទាហរណ៍" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "ទាញ​យក​ឧទាហរណ៍" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "ផ្ទុក​ឧទាហរណ៍​ឡើង" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "បើក​ឧទាហរណ៍" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "បើក​ឯកសារ Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "រក្សាទុក​ឯកសារ Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "នាំចេញ​រូបភាព Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "រក​មិន​ឃើញ​កម្មវិធី​ខាងក្រោយ %1" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "មិន​បាន​ជ្រើស​កម្មវិធី​ខាងក្រោយ​ដែល​ត្រឹមត្រូវ​ទេ ។" + +#: mainwindow.cpp:460 +msgid "General" +msgstr "ទូទៅ" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"មិន​អាច​រក​ឃើញ ​Circuit​ ម៉ាក្រូ​​នៅ​លើ​ប្រព័ន្ធ​របស់​អ្នក ។ កម្មវិធី​នឹង​មិន​ដំណើរការ​ទេ ប្រសិនបើ​មិន​បាន​ដំឡើង​" +"ម៉ាក្រូ​ ។ តើ​អ្នក​ចង់​បន្ត​ការ​ដំឡើង​ដែរ ឬ​ទេ ?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "តម្រូវ​ឲ្យ​មាន​ការ​ដំឡើង" + +#: mainwindow.cpp:524 +#, fuzzy +#| msgid "Download Circuit Macros. Please wait..." +msgid "Downloading Circuit Macros. Please wait..." +msgstr "កំពុង​ទាញ​យក​ Circuit ​ម៉ាក្រូ ។ សូម​រង់ចាំ..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "មាន​កំណែ​ថ្មី​របស់​ Circuit ​ម៉ាក្រូ (កំណែ %1) ។ តើ​អ្នក​ចង់​ធ្វើ​ឲ្យ​ប្រសើរ​ដែរ ឬ​ទេ ?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "ធ្វើ​ឲ្យ​ប្រសើរ" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "មិន​អាច​បង្កើត​ការ​មើល​ជាមុន​សម្រាប់​ការ​បញ្ចូល​បច្ចុប្បន្ន" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"រក​មិន​ឃើញ​កម្មវិធី​​ខាងក្រោយ​ដែល​កំពុង​ធ្វើការ​ទេ ។ Cirkuit មិន​អាច​បង្កើត​រូបភាព​ពន្យល់​ណាមួយ​ឡើយ ។" + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "រក​មិន​ឃើញ​កម្មវិធី​ខាងក្រោយ" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "សៀវភៅ​ដៃ %1" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "ឧទាហរណ៍ %1" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "រក្សាទុក​ឯកសារ​បច្ចុប្បន្ន​មុន​ពេល​ផ្ទុក​វា​ឡើង" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "ខឹម សុខែម, ម៉ន ម៉េត, សេង សុត្ថា, ចាន់ សម្បត្តិរតនៈ, សុខ សុភា" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "" +"khoemsokhem@khmeros.info,​​mornmet@khmeros.info,sutha@khmeros.info," +"ratanak@khmeros.info,sophea@khmeros.info" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "ទីតាំង​របស់​ពុម្ព Circuit ម៉ាក្រូ ។" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "ទីតាំង​របស់​ពុម្ព Circuit ម៉ាក្រូ​ដែល​មាន​កម្មវិធី​ខាងក្រោយ TikZ ។" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "អាគុយម៉ង់​លំនាំដើម​ដែល​បាន​ហៅ​នៅ​ក្នុង​ឯកសារ​ប្រតិបត្តិ latex" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "ផ្លូវ​ពុម្ព ៖" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "កម្មវិធី​បកប្រែ​រូបភាព" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "ទីតាំង​របស់​ពុម្ព Gnuplot ។" + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "ទីតាំង​របស់​ពុម្ព TikZ ។" + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "ទីតាំង​របស់​ពុម្ព PSTricks ។" + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "ជ្រើស​កម្មវិធី​ខាងក្រោយ​ដែល​ត្រូវ​ប្រើ ៖" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "ដាក់​វា​ជា​កម្មវិធី​ខាងក្រោយ​លំនាំដើម" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "កម្មវិធី​ខាងក្រោយ ៖" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "ថ្មី" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "កែសម្រួល" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "យកចេញ" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "ទាញ​យក" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "ផ្ទុក​ឡើង" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "កម្មវិធី​ខាងក្រោយ​លំនាំដើម ។" + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "ការ​ជ្រើស​កម្មវិធី​ខាងក្រោយ​ដោយ​ស្វ័យប្រវត្តិ" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "អស់​ពេល​ធ្វើ​ឲ្យ​ស្រស់​​ការ​បង្កើត​មើល​ជា​មុន" + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "បើក​ការ​ធ្វើ​ឲ្យ​ស្រស់​ដោយ​ស្វ័យប្រវត្តិ ។" + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "ធ្វើ​ឲ្យ​ស្រស់​ពេល​ឯកសារ​ត្រូវ​បាន​រក្សាទុក ។" + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "ពង្រីក​ការ​មើល​ជាមុន​ដោយ​ស្វ័យប្រវត្តិ​ឲ្យ​សម​ទៅ​នឹង​ការ​មើល​ជាមុន​ធាតុ​ក្រាហ្វិក" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "គុណភាព​បង្ហាញ PNG និង JPEG ។" + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "ការ​កំណត់​ទូទៅ" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "កម្មវិធី​ខាងក្រោយ" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "កម្មវិធី​ខាងក្រោយ​លំនាំដើម ៖" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "ចន្លោះ​ពេល​ការ​ធ្វើ​ឲ្យ​ស្រស់​មើល​ជាមុន (វិ.) ៖" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "ការ​បង្កើត​មើល​ជាមុន​ដោយ​ស្វ័យប្រវត្តិ" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "ធ្វើ​ឲ្យ​ស្រស់​ការ​មើល​ជាមុន​ពេល​កំពុង​រក្សាទុក​ឯកសារ" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "គុណភាព​បង្ហាញ PNG និង JPEG (DPI) ៖" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "ឯកសារ" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "មើល​ជាមុន" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "មើល" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "ជំនួយ" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "របារ​ឧបករណ៍​មេ" \ No newline at end of file Index: po/lt/CMakeLists.txt =================================================================== --- /dev/null +++ po/lt/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(lt ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/lt/cirkuit.po =================================================================== --- /dev/null +++ po/lt/cirkuit.po @@ -0,0 +1,469 @@ +# Lithuanian translations for l package. +# Copyright (C) 2011 This_file_is_part_of_KDE +# This file is distributed under the same license as the l package. +# +# Automatically generated, 2011. +# Remigijus Jarmalavičius , 2011. +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-10-20 18:45+0300\n" +"Last-Translator: Remigijus Jarmalavičius \n" +"Language-Team: Lithuanian \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n%10>=2 && (n%100<10 || n" +"%100>=20) ? 1 : n%10==0 || (n%100>10 && n%100<20) ? 2 : 3);\n" +"X-Generator: Lokalize 1.2\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Talpinti visą" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Šablono pavadinimas" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2011 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Prižiūrėtojas" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Atidaryti dokumentą" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "" + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "" + +#: mainwindow.cpp:460 +msgid "General" +msgstr "" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "" + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "" + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "" + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "" + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "" + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "" + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "" + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "" \ No newline at end of file Index: po/nds/CMakeLists.txt =================================================================== --- /dev/null +++ po/nds/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(nds ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/nds/cirkuit.po =================================================================== --- /dev/null +++ po/nds/cirkuit.po @@ -0,0 +1,480 @@ +# translation of cirkuit.po to Low Saxon +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# Manfred Wiese , 2010, 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-06-05 06:16+0200\n" +"Last-Translator: Manfred Wiese \n" +"Language-Team: Low Saxon \n" +"Language: nds\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.0\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Grött topassen" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Vörlaagnaam" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Wegdoon beglöven" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Op %3 laat sik mehr " +"Informatschonen finnen.
" + +#: widgets/backendchoosedialog.cpp:33 +#, fuzzy +#| msgid "Backends" +msgid "Backend selection" +msgstr "Hülpprogrammen" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" + +#: main.cpp:30 +#, fuzzy +#| msgid "(c) 2010 Matteo Agostinelli" +msgid "(c) 2011 Matteo Agostinelli" +msgstr "© 2010: Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Pleger" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Dokment, dat Du opmaken wullt" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Dor lett sik keen KDE-Texteditorkomponent finnen.\n" +"Prööv bitte Dien KDE-Installatschoon." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Vöransicht" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Logbook" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Exporteren..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Vöransicht opmaken" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Handbook wiesen" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Bispelen wiesen" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Bispillen daalladen" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Bispill hoochladen" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "Bispill &opmaken" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Datei opmaken - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Datei sekern - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Bild exporteren - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Hülpprogramm \"%1\" lett sik nich finnen." + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "" + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Allgemeen" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Installeren deit noot" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "" + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Opgraderen" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "%1 Handbook" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "%1 Bispelen" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Manfred Wiese" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "m.j.wiese@web.de" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic un PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic un TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "" + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "" + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Hülpprogramm:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Nieg" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Bewerken" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Wegmaken" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Daalladen" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Hoochladen" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Standard-Hülpprogramm" + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "" + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Automaatsch Opfrischen anmaken" + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "" + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Oplösen för PNG un JPEG" + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Allgemeen Instellen" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Hülpprogrammen" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Standard-Hülpprogramm" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "Oplösen för PNG un JPEG (in DPI)" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Datei" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Vöransicht" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Ansicht" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Hülp" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Hööft-Warktüüchbalken" + + + + +#, fuzzy \ No newline at end of file Index: po/nl/CMakeLists.txt =================================================================== --- /dev/null +++ po/nl/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(nl ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/nl/cirkuit.po =================================================================== --- /dev/null +++ po/nl/cirkuit.po @@ -0,0 +1,493 @@ +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# Freek de Kruijf , 2010, 2011. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-11-18 18:28+0100\n" +"Last-Translator: Freek de Kruijf \n" +"Language-Team: Dutch \n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.2\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Passend maken" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Sjabloonbeheerder" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Naam sjabloon" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "De sjabloonnaam invoegen" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Wilt u het geselecteerde sjabloon verwijderen?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Verwijderen bevestigen" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Zie %3 voor meer " +"informatie
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Backend-selectie" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Een toepassing om figuren klaar te maken voor publicatie. Het is een KDE " +"frontend voor 'Circuit Macros' door J. D. Aplevich, TikZ en Gnuplot. " +"

Bezoek de websites Circuit Macros en TikZ voor verdere informatie." + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2011 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Onderhouder" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Te openen document" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Er kon geen backend geselecteerd worden!" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Er is geen KDE-tekstbewerkingscomponent gevonden.\n" +"Controleer de installatie van KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Voorbeeld" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Log" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Exporteren..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Bouwvoorbeeld" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Voorbeeld openen" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Handleiding tonen" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Voorbeelden tonen" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Voorbeelden downloaden" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Voorbeeld uploaden" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "Voorbeeld &openen" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Bestand openen - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Bestand opslaan - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Afbeelding exporteren - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Backend %1 niet gevonden" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Geen geldige backend geselecteerd." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Algemeen" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Circuit Macros konden niet op uw systeem worden gevonden. De toepassing zal " +"niet werken als de macros niet zijn geïnstalleerd. Wilt u doorgaan met de " +"installatie?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Installatie is nodig" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Circuit Macros downloaden. Even geduld a.u.b..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Er is een nieuwe versie van Circuit Macros (versie %1) beschikbaar. Wilt u " +"opwaarderen?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Opwaarderen" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Kan geen voorbeeld van de huidige invoer aanmaken" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Er is geen werkende backend gevonden. Cirkuit kan geen enkel figuur " +"genereren." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "Geen backends gevonden" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "%1 handleiding" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "%1 voorbeelden" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Het huidige document opslaan alvorens het te uploaden" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Freek de Kruijf" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "freekdekruijf@kde.nl" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "De locatie van het sjabloon van Circuit Macros." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "De locatie van het sjabloon van Circuit Macros met TikZ-backend." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "De standaard argumenten aangeroepen in het uitvoerbare programma latex" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Pad van sjabloon:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Pic-interpreter" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "De locatie van het sjabloon van Gnuplot." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "De locatie van het sjabloon van TikZ." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "De locatie van het sjabloon van PSTricks." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Kies het te gebruiken backend:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Dit backend standaard maken" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Backend:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Nieuw" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Bewerken" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Verwijderen" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Downloaden" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Uploaden" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Standaard backend." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Automatische backend-selectie" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Verversingtijdslimiet voor het maken van een voorbeeld." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Automatisch verversen inschakelen." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Verversen wanneer document is opgeslagen." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "Automatisch het voorbeeld zoomen om te passen in het voorbeeldwidget" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "PNG en JPEG-resolutie." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Algemene instellingen" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Backends" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Standaard backend:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Verversingsinterval van voorbeeld (sec):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Automatisch voorbeeld aanmaken" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Het voorbeeld verversen wanneer document wordt opgeslagen" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "PNG- en JPEG-resolutie (DPI):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Bestand" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Voorbeeld" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "Beel&d" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Help" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Hoofdwerkbalk" + + + + + + + + + + +#, fuzzy \ No newline at end of file Index: po/pl/CMakeLists.txt =================================================================== --- /dev/null +++ po/pl/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(pl ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/pl/cirkuit.po =================================================================== --- /dev/null +++ po/pl/cirkuit.po @@ -0,0 +1,487 @@ +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# Łukasz Wojniłowicz , 2011. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-07-25 17:57+0200\n" +"Last-Translator: Łukasz Wojniłowicz \n" +"Language-Team: Polish \n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.2\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Powiększ tak, aby dopasować" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Menadżer szablonów" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Nazwa szablonu" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Wstaw nazwę szablonu" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Czy na pewno chcesz usunąć wybrany szablon?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Potwierdź usunięcie" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Zobacz %3 po więcej " +"informacji
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Wybór silnika" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Program generujący rysunki gotowe do publikacji. Jest to nakładka dla KDE " +"dla Circuit Macros napisanych przez J. D. Aplevich, TikZ i Gnuplot. " +"

Odwiedź stronyCircuit Macros i TikZ po dalsze informacje." + +#: main.cpp:30 +#, fuzzy +#| msgid "(c) 2010 Matteo Agostinelli" +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2010 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Opiekun" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Dokument do otwarcia" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Nie można wybrać żadnego silnika!" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Nie znaleziono komponentu edytora tekstowego dla KDE;\n" +"proszę sprawdzić swoją instalację KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Podgląd" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Dziennik" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Eksportuj..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Zbuduj podgląd" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Otwórz podgląd" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Pokaż instrukcję" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Pokaż przykłady" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Pobierz przykłady" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Wyślij przykłady" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "&Otwórz przykład" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Otwórz plik - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Zapisz plik - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Eksportuj obraz - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Nie znaleziono silnika %1" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Nie wybrano poprawnego silnika." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Ogólne" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Nie można znaleźć Circuit Macros na twoim systemie. Program nie zadziała, " +"jeśli te makra nie zostaną zainstalowane. Czy chcesz kontynuować z " +"instalacją?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Potrzebna instalacja" + +#: mainwindow.cpp:524 +#, fuzzy +#| msgid "Download Circuit Macros. Please wait..." +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Pobierz Circuit Macros. Proszę czekać..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Jest dostępna nowa wersja Circuit Macros (wersja %1). Czy chcesz uaktualnić?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Uaktualnij" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Nie można wygenerować podglądu dla bieżącego wejścia" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Nie znaleziono działającego silnika. Cirkuit nie może wygenerować " +"jakiegokolwiek rysunku." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "Nie znaleziono żadnego silnika" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "Instrukcja %1" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "Przykłady %1" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Zapisz bieżący dokument przed jego wysłaniem" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Łukasz Wojniłowicz" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "lukasz.wojnilowicz@gmail.com" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "Położenie szablonu Circuit Macros." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "Położenie szablonu Circuit Macros z silnikiem TikZ." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "Domyślne argumenty wywoływane w pliku wykonywalnym latex" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Ścieżka szablonu:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Program interpretujący pic" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "Położenie szablonu Gnuplot." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "Położenie szablonu TikZ." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "Położenie szablonu PSTricks." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Wybierz wykorzystywany silnik:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Uczyń ten silnik domyślnym" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Silnik:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Nowy" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Edytuj" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Usuń" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Pobierz" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Wyślij" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Domyślny silnik." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Automatyczny wybór silnika" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Czas oczekiwania na odświeżenie generowania podglądu." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Włącz automatyczne odświeżanie." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Odśwież, gdy dokument zostanie zapisany." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "" +"Automatycznie powiększ podgląd, aby dopasować do elementu interfejsu podglądu" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Rozdzielczość PNG i JPEG." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Ustawienia ogólne" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Silniki" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Domyślny silnik:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Przedział odświeżania podglądu (sek):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Automatyczna generacja podglądu" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Odśwież podgląd przy zapisywaniu dokumentu" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "Rozdzielczości PNG i JPEG (DPI):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Plik" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Podgląd" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Widok" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Pomoc" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Główny pasek narzędzi" \ No newline at end of file Index: po/pt/CMakeLists.txt =================================================================== --- /dev/null +++ po/pt/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(pt ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/pt/cirkuit.po =================================================================== --- /dev/null +++ po/pt/cirkuit.po @@ -0,0 +1,480 @@ +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-11-17 11:10+0000\n" +"Last-Translator: José Nuno Coelho Pires \n" +"Language-Team: Portuguese \n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-POFile-SpellExtra: Aplevich TikZ Agostinelli Gnuplot pic Matteo dpic\n" +"X-POFile-SpellExtra: PSTricks gpic Circuit Cirkuit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Ampliar para caber" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Gestor de modelos" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Nome do modelo" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Inserir o nome do modelo" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Deseja mesmo apagar o modelo seleccionado?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Confirmar a remoção" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Veja %3 para mais " +"informações
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Selecção da infra-estrutura" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Uma aplicação para gerar figuras prontas para publicação. É uma interface em " +"KDE para o Circuit Macros de J. D. Aplevich, TikZ e Gnuplot.

Visite as " +"páginas Web do Circuit Macros e do TikZ para obter mais informações." + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2011 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Manutenção" + +#: main.cpp:36 +msgid "Document to open" +msgstr "O documento a abrir" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Não foi possível seleccionar nenhuma infra-estrutura!" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Não foi possível encontrar um componente de edição de texto para o KDE;\n" +"verifique por favor a sua instalação do KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Antevisão" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Registo" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Exportar..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Criar a antevisão" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Abrir a antevisão" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Mostrar o manual" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Mostrar os exemplos" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Obter Exemplos" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Enviar o Exemplo" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "Abrir &o Exemplo" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Abrir um ficheiro - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Gravar o ficheiro - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Exportar a imagem - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "A infra-estrutura %1 não foi encontrada" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Não foi seleccionada nenhuma infra-estrutura válida." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Geral" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Não foi possível encontrar o Circuit Macros no seu sistema. A aplicação não " +"irá funcionar se as macros não forem instaladas. Deseja continuar com a " +"instalação?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Instalação necessária" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "A obter o Circuit Macros. Espere por favor..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Está disponível uma nova versão do Circuit Macros (versão %1). Deseja " +"actualizá-la?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Actualizar" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Não foi possível gerar uma antevisão para os dados de entrada actuais" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Não foi encontrada nenhuma infra-estrutura funcional. O Cirkuit não consegue " +"gerar nenhuma imagem." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "Não foram encontradas infra-estruturas" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "manual do %1" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "exemplos do %1" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Gravar o documento actual antes de o enviar" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "José Nuno Pires" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "zepires@gmail.com" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "A localização do modelo do Circuit Macros." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "" +"A localização do modelo do Circuit Macros com a infra-estrutura do TikZ." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "Os argumentos predefinidos invocados no executável 'latex'" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Localização do modelo:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Interpretador 'pic'" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "A localização do modelo do Gnuplot." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "A localização do modelo do TikZ." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "A localização do modelo do PSTricks." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Escolha a infra-estrutura a usar:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Usar esta infra-estrutura por omissão" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Infra-estrutura:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Nova" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Editar" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Remover" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Obter" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Enviar" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "A infra-estrutura por omissão." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Selecção automática da infra-estrutura" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Expirou o tempo-limite de actualização da antevisão." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Activar a actualização automática." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Actualizar ao gravar o documento." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "Ampliar automaticamente a antevisão para caber no item respectivo" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Resolução do PNG e do JPEG." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Configuração geral" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Infra-Estruturas" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Infra-estrutura por omissão:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Intervalo de actualização da antevisão (s):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Geração automática da antevisão" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Actualizar a antevisão ao gravar o documento" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "Resolução do PNG e JPEG (PPP):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Ficheiro" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "Ante&visão" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Ver" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "A&juda" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Barra Principal" \ No newline at end of file Index: po/pt_BR/CMakeLists.txt =================================================================== --- /dev/null +++ po/pt_BR/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(pt_BR ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/pt_BR/cirkuit.po =================================================================== --- /dev/null +++ po/pt_BR/cirkuit.po @@ -0,0 +1,487 @@ +# Tradução do cirkuit.po para Brazilian Portuguese +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# André Marcelo Alvarenga , 2010, 2011. +# Aracele Torres , 2010. +# Marcus Gama , 2011. +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-11-17 20:27-0300\n" +"Last-Translator: Marcus Gama \n" +"Language-Team: Brazilian Portuguese \n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.2\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Zoom para ajustar" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Gerenciador de modelos" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Nome do modelo" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Insira o nome do modelo" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Deseja realmente excluir o modelo selecionado?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Confirmar exclusão" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Veja em %3 para mais " +"informações
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Seleção de infraestrutura" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Um aplicativo para gerar figuras prontas para publicação. É uma interface do " +"Circuit Macros para o KDE de J. D. Aplevich, TikZ e Gnuplot.

Visite as " +"páginas Web do Circuit Macros e do TikZ para obter mais informações." + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "(c) 2011 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Mantenedor" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Documento a ser aberto" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Nenhuma infraestrutura pôde ser selecionada!" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Não foi possível encontrar um componente de edição de texto para o KDE.\n" +"Verifique a sua instalação do KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Visualização" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Registro" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Exportar..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Criar a visualização" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Abrir visualização" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Mostrar o manual" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Mostrar exemplos" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Baixar exemplos" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Enviar exemplo" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "&Abrir exemplo" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Abrir arquivo - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Salvar arquivo - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Exportar imagem - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "A infraestrutura %1 não foi encontrada" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Nenhuma infraestrutura válida selecionada." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Geral" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Não foi possível encontrar o Circuit Macros no seu sistema. O aplicativo não " +"funcionará se as macros não forem instaladas. Deseja continuar com a " +"instalação?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Instalação necessária" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Baixando o Circuit Macros. Por favor, aguarde..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Está disponível uma nova versão do Circuit Macros (versão %1). Deseja " +"atualizá-la?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Atualizar" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "" +"Não foi possível gerar uma visualização para os dados de entrada atuais" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Não foi encontrada uma infraestrutura funcional. O Cirkuit não consegue " +"gerar nenhuma imagem." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "Nenhuma infraestrutura encontrada" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "Manual do %1" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "Exemplos do %1" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Salvar o documento atual antes de enviá-lo" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "André Marcelo Alvarenga" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "andrealvarenga@gmx.net" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "A localização do modelo do Circuit Macros." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "" +"A localização do modelo do Circuit Macros com a infraestrutura do TikZ." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "Os argumentos predefinidos carregados no executável latex" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Caminho do modelo:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Interpretador pic" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "A localização do modelo do Gnuplot." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "A localização do modelo do TikZ." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "A localização do modelo do PSTricks." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Escolha a infraestrutura a usar:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Usar esta infraestrutura por padrão" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Infraestrutura:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Novo" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Editar" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Remover" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Baixar" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Enviar" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Infraestrutura padrão." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Seleção automática de infraestrutura" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Expirou o tempo-limite de atualização da visualização." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Habilitar a atualização automática." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Atualizar ao salvar o documento." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "Ampliar automaticamente a visualização para ajustar-se ao widget" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Resolução do PNG e do JPEG." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Configurações gerais" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Infraestruturas" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Infraestrutura padrão:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Intervalo de atualização da visualização (s):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Geração automática da visualização" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Atualizar a visualização ao salvar o documento" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "Resolução do PNG e JPEG (em PPP):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Arquivo" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Visualização" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "E&xibir" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "Aj&uda" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Barra de ferramentas principal" \ No newline at end of file Index: po/ru/CMakeLists.txt =================================================================== --- /dev/null +++ po/ru/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(ru ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/ru/cirkuit.po =================================================================== --- /dev/null +++ po/ru/cirkuit.po @@ -0,0 +1,493 @@ +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# Артем Назаров Алексеевич , 2011. +# Yuri Efremov , 2011. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-03-01 21:48+0300\n" +"Last-Translator: Yuri Efremov \n" +"Language-Team: Russian \n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.2\n" +"Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n" +"%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Environment: kde\n" +"X-Accelerator-Marker: &\n" +"X-Text-Markup: kde4\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Вместить в окно" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Управление шаблонами" + +#: widgets/templatechoosedialog.cpp:193 +#, fuzzy +#| msgid "Template manager" +msgid "Template name" +msgstr "Управление шаблонами" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Дополнительную информацию можно узнать по " +"адресу %3
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Выбор механизмов обработки" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Circuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Приложение для создания графики для публикаций и презентаций. Это интерфейс " +"KDE для Circuit Macros от j.D.Aplevich, Tikz и Gnuplot.

Для " +"дополнительной информации посетите сайты Circuit Macros и Tikz." + +#: main.cpp:30 +#, fuzzy +#| msgid "(c) 2010 Matteo Agostinelli" +msgid "(c) 2011 Matteo Agostinelli" +msgstr "© Matteo Agostinelli, 2010" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Сопровождающий" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Открываемый документ" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Не удалось выбрать механизм обработки." + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Не удалось найти компонент текстового редактора KDE.\n" +"Проверьте правильность установки KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Просмотр" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Журнал" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Экспорт..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Создать просмотр" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Открыть просмотр" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Показать руководство" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Показать примеры" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Загрузить примеры" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Опубликовать примеры" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "&Открыть пример" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Открытие файла — Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Сохранение файла — Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Экспорт изображения — Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Механизм обработки %1 не найден" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Выбран недопустимый механизм обработки." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Основное" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Circuit Macros не найден в вашей системе. Приложение не будет работать без " +"установленных макросов. Приступить к установке?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Требуется установка" + +#: mainwindow.cpp:524 +#, fuzzy +#| msgid "Download Circuit Macros. Please wait..." +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Загрузка Cirkuit Macros. Подождите..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "Доступна новая версия Cirkuit Macros (версия %1). Обновить программу?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Обновление" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Не удалось создать предварительный просмотр для текущих входных данных" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" + +#: mainwindow.cpp:577 +#, fuzzy +#| msgid "Backend %1 not found" +msgid "No backends found" +msgstr "Механизм обработки %1 не найден" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "%1 руководство" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "%1 примеры" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Сохранить текущий документ перед публикацией" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Артём Назаров" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "nazarov-1990@bk.ru" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "Расположение шаблона Circuit Macros." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "Расположение шаблона Circuit Macros с модулем TikZ." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "" +"Параметры по умолчанию, используемые при вызове исполняемого файла latex" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Путь к шаблонам:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Интерпретатор Pic" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + Tikz" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "Расположение шаблона Gnuplot." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "Расположение шаблона Tikz." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +#, fuzzy +#| msgid "The location of the TikZ template." +msgid "The location of the PSTricks template." +msgstr "Расположение шаблона Tikz." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Выбор механизма обработки:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Сделать этот механизм по умолчанию" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Механизм:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Изменить" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Загрузить" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Опубликовать" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Механизм обработки по умолчанию." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Автоматический выбор механизма обработки" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Интервал обновления просмотра." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Включить автоматическое обновление." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Обновлять при сохранении документа." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "Автоматически изменять размер просмотра до размера окна" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Разрешение PNG и JPEG." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Основные параметры" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Механизмы обработки" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Механизм по умолчанию:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Интервал обновления просмотра (сек):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Автоматическое создание просмотра" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Обновление просмотра при сохранении документа" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "Разрешение PNG и JPEG (dpi):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Файл" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Просмотр" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Вид" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Справка" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Основная панель инструментов" \ No newline at end of file Index: po/sv/CMakeLists.txt =================================================================== --- /dev/null +++ po/sv/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(sv ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/sv/cirkuit.po =================================================================== --- /dev/null +++ po/sv/cirkuit.po @@ -0,0 +1,480 @@ +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# Stefan Asserhall , 2010, 2011. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-11-17 18:20+0100\n" +"Last-Translator: Stefan Asserhall \n" +"Language-Team: Swedish \n" +"Language: svX-Generator: Lokalize 1.1\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Lokalize 1.2\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Anpassa" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Mallhantering" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Mallnamn" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Infoga mallnamnet" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Vill du verkligen ta bort markerad mall?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Bekräfta borttagning" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Se %3 för mer " +"information
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Gränssnittsval" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Ett program för att skapa publiceringsklara figurer. Det är ett KDE-" +"gränssnitt för Circuit Macros av J. D. Aplevich, TikZ och Gnuplot.

Besök " +"webbplatserna Circuit Macros och TikZ för ytterligare information." + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "© 2011 Matteo Agostinelli" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Underhåll" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Dokument att öppna" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Inget gränssnitt kunde väljas." + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"En KDE-texteditorkomponent kunde inte hittas.\n" +"Kontrollera installationen av KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Förhandsgranskning" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Logg" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Exportera..." + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Skapa förhandsgranskning" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Öppna förhandsgranskning" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Visa handbok" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Visa exempel" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Ladda ner exempel" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Ladda upp exempel" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "Ö&ppna exempel" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Öppna fil - Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Spara fil - Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Exportera bild - Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Gränssnitt %1 hittades inte" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Inget giltigt gränssnitt valt." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Allmänt" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Circuit Macros kunde inte hittas på systemet. Programmet fungerar inte om " +"inte makrona är installerade. Vill du fortsätta med att installera dem?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Installation nödvändig" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Laddar ner Circuit Macros. Vänta ..." + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"En ny version av Circuit Macros (version %1) är tillgänglig. Vill du " +"uppgradera till den?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Uppgradera" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Kan inte skapa förhandsgranskning av nuvarande indata" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Inget fungerande gränssnitt har hittats. Cirkuit kan inte skapa någon figur." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "Inga gränssnitt hittades" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "Handbok %1" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "Exempel %1" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Spara nuvarande dokument innan det laddas upp" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Stefan Asserhäll" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "stefan.asserhall@comhem.se" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "Platsen för Circuit Macros-mallen." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "Platsen för Circuit Macros-mallen. med TikZ-gränssnitt." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "Standardargument anropade i det körbara Latex-programmet" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Mallsökväg:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Pic-tolk" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "Platsen för Gnuplot-mallen." + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "Platsen för TikZ-mallen." + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "Platsen för PSTricks-mallen." + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Välj gränssnitt att använda:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Gör detta till standardgränssnitt" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Gränssnitt:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Ny" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Redigera" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Ta bort" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Ladda ner" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Ladda upp" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Standardgränssnitt." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Automatiskt gränssnittsval." + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Tidsgräns för uppdatering när förhandsgranskning skapas." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Aktivera automatisk uppdatering." + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Uppdatera när dokument sparas." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "Zooma automatiskt förhandsgranskning att passa i grafisk komponent" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Upplösning för PNG och JPEG." + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Allmänna inställningar" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Gränssnitt" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Standardgränssnitt:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Uppdateringsintervall för förhandsgranskning (sek):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Skapa förhandsgranskning automatiskt" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Uppdatera förhandsgranskning när dokumentet sparas" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "Upplösning för PNG och JPEG (i punkter/tum):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Arkiv" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Förhandsgranskning" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "&Visa" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Hjälp" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Huvudverktygsrad" \ No newline at end of file Index: po/ug/CMakeLists.txt =================================================================== --- /dev/null +++ po/ug/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(ug ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/ug/cirkuit.po =================================================================== --- /dev/null +++ po/ug/cirkuit.po @@ -0,0 +1,470 @@ +# Uyghur translation for cirkuit. +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# Sahran , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: cirkuit\n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-05-09 19:00+0900\n" +"Last-Translator: Sahran \n" +"Language-Team: Uyghur Computer Science Association \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "ئۆچۈرۈش جەزملە" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

تېخىمۇ كوپ ئۆچۈر ئۈچۈن%3 قاراڭ
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "مەسئۇل كىشى" + +#: main.cpp:36 +msgid "Document to open" +msgstr "ئاچىدىغان پۈتۈك" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "" + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"ك د ئې(KDE) تەھرىرلىگۈچ بۆلىكى تېپىلمىدى؛\n" +" ك د ئې(KDE) نىڭ ئورنىتىلىشىنى تەكشۈرۈڭ." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "ئالدىن كۆزەت" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "خاتىرە" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "چىقار…" + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "مىسالنى ئاچ(&O)" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "" + +#: mainwindow.cpp:460 +msgid "General" +msgstr "ئادەتتىكى" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "" + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Upgrade قىل" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "ئابدۇقادىر ئابلىز, غەيرەت كەنجى" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "sahran.ug@gmail.com, gheyret@gmail.com" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "" + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "" + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "يېڭى" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "تەھرىر" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "چىقىرىۋەت" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "چۈشۈر" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "يۈكلە" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "" + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "" + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "" + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "" + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "ئادەتتىكى تەڭشەك" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "ھۆججەت(&F)" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "ئالدىن كۆزەت(&P)" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "كۆرۈنۈش(&V)" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "ياردەم(&H)" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "ئاساسىي قورال بالداق" \ No newline at end of file Index: po/uk/CMakeLists.txt =================================================================== --- /dev/null +++ po/uk/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB _po_files *.po) +GETTEXT_PROCESS_PO_FILES(uk ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) Index: po/uk/cirkuit.po =================================================================== --- /dev/null +++ po/uk/cirkuit.po @@ -0,0 +1,486 @@ +# Copyright (C) YEAR This_file_is_part_of_KDE +# This file is distributed under the same license as the PACKAGE package. +# +# Yuri Chornoivan , 2010, 2011. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugs.kde.org\n" +"POT-Creation-Date: 2011-11-18 05:01+0100\n" +"PO-Revision-Date: 2011-11-17 08:22+0200\n" +"Last-Translator: Yuri Chornoivan \n" +"Language-Team: Ukrainian \n" +"Language: uk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n" +"%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Lokalize 1.2\n" + +#: widgets/imageview.cpp:81 +msgid "Zoom to fit" +msgstr "Підібрати за розмірами" + +#: widgets/templatechoosedialog.cpp:103 mainwindow.cpp:174 +msgid "Template manager" +msgstr "Керування шаблонами" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Template name" +msgstr "Назва шаблона" + +#: widgets/templatechoosedialog.cpp:193 +msgid "Insert the template name" +msgstr "Вставте назву шаблона" + +#: widgets/templatechoosedialog.cpp:217 +msgid "Do you really want to delete the selected template?" +msgstr "Ви дійсно хочете вилучити позначений шаблон?" + +#: widgets/templatechoosedialog.cpp:218 +msgid "Confirm deletion" +msgstr "Підтвердження вилучення" + +#: widgets/backendchoosedialog.cpp:26 +#, kde-format +msgid "" +"

%1

%2

See %3 for more " +"information
" +msgstr "" +"

%1

%2

Докладніше про програму можна дізнатися за " +"адресою %3.
" + +#: widgets/backendchoosedialog.cpp:33 +msgid "Backend selection" +msgstr "Вибір модуля обробки" + +#: main.cpp:30 +msgid "Cirkuit" +msgstr "Cirkuit" + +#: main.cpp:30 +msgid "" +"An application to generate publication-ready figures. It is a KDE frontend " +"for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros " +"and TikZ websites for further " +"information." +msgstr "" +"Програма для створення готових для друку зображень. Ця програма є графічною " +"оболонкою KDE до макроса Circuit Macros, автором якого є J. D. Aplevich, " +"TikZ та Gnuplot.

Відвідайте вебсайти макроса Circuit та TikZ, щоб дізнатися більше." + +#: main.cpp:30 +msgid "(c) 2011 Matteo Agostinelli" +msgstr "© Matteo Agostinelli, 2011" + +#: main.cpp:31 +msgid "Matteo Agostinelli" +msgstr "Matteo Agostinelli" + +#: main.cpp:31 +msgid "Maintainer" +msgstr "Супровідник" + +#: main.cpp:36 +msgid "Document to open" +msgstr "Документ, який слід відкрити" + +#: generatorthread.cpp:55 +msgid "No backend could be selected!" +msgstr "Не вдалося вибрати модуль обробки." + +#: mainwindow.cpp:81 +msgid "" +"A KDE text-editor component could not be found;\n" +"please check your KDE installation." +msgstr "" +"Не вдалося знайти компонент текстового редактора KDE.\n" +"Будь ласка, перевірте, чи належним чином встановлено KDE." + +#. i18n: file: cirkuit_general_settings.ui:65 +#. i18n: ectx: property (title), widget (QGroupBox, groupBox) +#: mainwindow.cpp:90 rc.cpp:121 +msgid "Preview" +msgstr "Перегляд" + +#: mainwindow.cpp:96 +msgid "Log" +msgstr "Журнал" + +#: mainwindow.cpp:158 +msgid "Export..." +msgstr "Експортувати…" + +#: mainwindow.cpp:162 +msgid "Build preview" +msgstr "Зібрати документ попереднього перегляду" + +#: mainwindow.cpp:168 +msgid "Open preview" +msgstr "Відкрити попередній перегляд" + +#: mainwindow.cpp:178 +msgid "Show manual" +msgstr "Показати підручник" + +#: mainwindow.cpp:182 +msgid "Show examples" +msgstr "Показати приклади" + +#: mainwindow.cpp:190 +msgid "Download Examples" +msgstr "Звантажити приклади" + +#: mainwindow.cpp:195 +msgid "Upload Example" +msgstr "Вивантажити приклад" + +#: mainwindow.cpp:200 +msgid "&Open Example" +msgstr "&Відкрити приклад" + +#: mainwindow.cpp:238 +msgid "Open file - Cirkuit" +msgstr "Відкриття файла — Cirkuit" + +#: mainwindow.cpp:281 +msgid "Save file - Cirkuit" +msgstr "Збереження файла — Cirkuit" + +#: mainwindow.cpp:313 +msgid "Export image - Cirkuit" +msgstr "Експортування зображення — Cirkuit" + +#: mainwindow.cpp:402 +#, kde-format +msgid "Backend %1 not found" +msgstr "Модуля обробки %1 не знайдено" + +#: mainwindow.cpp:411 +msgid "No valid backend selected." +msgstr "Не позначено коректного модуля обробки." + +#: mainwindow.cpp:460 +msgid "General" +msgstr "Загальне" + +#: mainwindow.cpp:519 +msgid "" +"Circuit Macros could not be found on your system. The application will not " +"work if the macros are not installed. Do you want to proceed with the " +"installation?" +msgstr "" +"Не вдалося виявити макрос Circuit у вашій системі. Програма не зможе " +"нормально працювати, якщо макрос не буде встановлено. Бажаєте перейти до " +"встановлення макроса?" + +#: mainwindow.cpp:519 +msgid "Installation needed" +msgstr "Потрібне встановлення" + +#: mainwindow.cpp:524 +msgid "Downloading Circuit Macros. Please wait..." +msgstr "Звантаження макроса Circuit. Будь ласка, зачекайте…" + +#: mainwindow.cpp:532 +#, kde-format +msgid "" +"A new version of Circuit Macros (version %1) is available. Do you want to " +"upgrade?" +msgstr "" +"Доступна нова версія макроса Circuit (версія %1). Бажаєте оновити макрос?" + +#: mainwindow.cpp:532 +msgid "Upgrade" +msgstr "Оновити" + +#: mainwindow.cpp:550 +msgid "Unable to generate a preview for the current input" +msgstr "Не вдалося створити попередній перегляд поточних вхідних даних" + +#: mainwindow.cpp:577 +msgid "" +"No working backend has been found. Cirkuit is unable to generate any figure." +msgstr "" +"Не знайдено працездатного модуля обробки. Cirkuit не зможе створювати " +"рисунки." + +#: mainwindow.cpp:577 +msgid "No backends found" +msgstr "Не знайдено жодного модуля обробки" + +#: mainwindow.cpp:610 +#, kde-format +msgid "%1 manual" +msgstr "Підручник з %1" + +#: mainwindow.cpp:611 +#, kde-format +msgid "%1 examples" +msgstr "Приклади %1" + +#: mainwindow.cpp:630 +msgid "Save the current document before uploading it" +msgstr "Збережіть поточний документ, перш ніж його вивантажувати" + +#: rc.cpp:1 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "Юрій Чорноіван" + +#: rc.cpp:2 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "yurchor@ukr.net" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:18 +#. i18n: ectx: label, entry (templateurl), group (CircuitMacrosBackend) +#: rc.cpp:5 +msgid "The location of the Circuit Macros template." +msgstr "Розташування шаблону макроса Circuit Macros" + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:22 +#. i18n: ectx: label, entry (tikztemplateurl), group (CircuitMacrosBackend) +#: rc.cpp:8 +msgid "The location of the Circuit Macros template with TikZ backend." +msgstr "Розташування шаблону макроса Circuit Macros з модулем TikZ." + +#. i18n: file: backends/circuitmacros/circuitmacrosbackend.kcfg:26 +#. i18n: ectx: label, entry (latexargs), group (CircuitMacrosBackend) +#. i18n: file: backends/tikz/tikzbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (TikzBackend) +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:14 +#. i18n: ectx: label, entry (latexargs), group (PstricksBackend) +#. i18n: file: cirkuit.kcfg:38 +#. i18n: ectx: label, entry (LatexArgs), group (general) +#: rc.cpp:11 rc.cpp:47 rc.cpp:54 rc.cpp:106 +msgid "The default arguments called in the latex executable" +msgstr "" +"Типові параметри, що використовуються під час виклику виконуваного файла " +"latex" + +#. i18n: file: backends/circuitmacros/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_template) +#. i18n: file: backends/circuitmacros/settings.ui:27 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/gnuplot/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/tikz/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_tikztemplate) +#. i18n: file: backends/pstricks/settings.ui:17 +#. i18n: ectx: property (text), widget (QLabel, lbl_pstrickstemplate) +#: rc.cpp:16 rc.cpp:19 rc.cpp:38 rc.cpp:41 rc.cpp:58 +msgid "Template path:" +msgstr "Шлях до шаблонів:" + +#. i18n: file: backends/circuitmacros/settings.ui:37 +#. i18n: ectx: property (text), widget (QLabel, label_4) +#: rc.cpp:22 +msgid "Pic interpreter" +msgstr "Інтерпретатор Pic" + +#. i18n: file: backends/circuitmacros/settings.ui:45 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:25 +msgid "dpic + PSTricks" +msgstr "dpic + PSTricks" + +#. i18n: file: backends/circuitmacros/settings.ui:50 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:28 +msgid "dpic + TikZ" +msgstr "dpic + TikZ" + +#. i18n: file: backends/circuitmacros/settings.ui:55 +#. i18n: ectx: property (text), item, widget (KComboBox, kcfg_PicInterpreter) +#: rc.cpp:31 +msgid "gpic" +msgstr "gpic" + +#. i18n: file: backends/gnuplot/gnuplotbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (GnuplotBackend) +#: rc.cpp:34 +msgid "The location of the Gnuplot template." +msgstr "Розташування шаблону Gnuplot" + +#. i18n: file: backends/tikz/tikzbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (TikzBackend) +#: rc.cpp:44 +msgid "The location of the TikZ template." +msgstr "Розташування шаблону TikZ" + +#. i18n: file: backends/pstricks/pstricksbackend.kcfg:10 +#. i18n: ectx: label, entry (templateurl), group (PstricksBackend) +#: rc.cpp:51 +msgid "The location of the PSTricks template." +msgstr "Розташування шаблону PSTricks" + +#. i18n: file: widgets/backendchooser.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:61 +msgid "Choose the Backend to use:" +msgstr "Виберіть модуль обробки:" + +#. i18n: file: widgets/backendchooser.ui:59 +#. i18n: ectx: property (text), widget (QCheckBox, makeDefault) +#: rc.cpp:64 +msgid "Make this the default backend" +msgstr "Зробити цей модуль типовим" + +#. i18n: file: widgets/templatechooser.ui:17 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:67 +msgid "Backend:" +msgstr "Модуль:" + +#. i18n: file: widgets/templatechooser.ui:48 +#. i18n: ectx: property (text), widget (KPushButton, btnAdd) +#: rc.cpp:70 +msgid "New" +msgstr "Створити" + +#. i18n: file: widgets/templatechooser.ui:55 +#. i18n: ectx: property (text), widget (KPushButton, btnEdit) +#: rc.cpp:73 +msgid "Edit" +msgstr "Змінити" + +#. i18n: file: widgets/templatechooser.ui:62 +#. i18n: ectx: property (text), widget (KPushButton, btnRemove) +#: rc.cpp:76 +msgid "Remove" +msgstr "Вилучити" + +#. i18n: file: widgets/templatechooser.ui:69 +#. i18n: ectx: property (text), widget (KPushButton, btnDownload) +#: rc.cpp:79 +msgid "Download" +msgstr "Звантажити" + +#. i18n: file: widgets/templatechooser.ui:76 +#. i18n: ectx: property (text), widget (KPushButton, btnUpload) +#: rc.cpp:82 +msgid "Upload" +msgstr "Вивантажити" + +#. i18n: file: cirkuit.kcfg:10 +#. i18n: ectx: label, entry (DefaultBackend), group (general) +#: rc.cpp:85 +msgid "Default backend." +msgstr "Типовий модуль обробки." + +#. i18n: file: cirkuit.kcfg:14 +#. i18n: ectx: label, entry (AutoSelectBackend), group (general) +#. i18n: file: cirkuit_general_settings.ui:52 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoSelectBackend) +#: rc.cpp:88 rc.cpp:118 +msgid "Automatic backend selection" +msgstr "Автоматичний вибір модуля обробки" + +#. i18n: file: cirkuit.kcfg:18 +#. i18n: ectx: label, entry (RefreshInterval), group (general) +#: rc.cpp:91 +msgid "Preview generation refresh timeout." +msgstr "Проміжок між оновленнями попереднього перегляду." + +#. i18n: file: cirkuit.kcfg:22 +#. i18n: ectx: label, entry (AutoRefresh), group (general) +#: rc.cpp:94 +msgid "Enable automatic refresh." +msgstr "Увімкнути автоматичне оновлення" + +#. i18n: file: cirkuit.kcfg:26 +#. i18n: ectx: label, entry (RefreshOnSave), group (general) +#: rc.cpp:97 +msgid "Refresh when document is saved." +msgstr "Оновлення під час збереження документа." + +#. i18n: file: cirkuit.kcfg:30 +#. i18n: ectx: label, entry (ZoomToFit), group (general) +#: rc.cpp:100 +msgid "Automatically zoom the preview to fit the preview widget" +msgstr "" +"Автоматично змінювати розміри зображення перегляду відповідно до розмірів " +"віджета перегляду" + +#. i18n: file: cirkuit.kcfg:34 +#. i18n: ectx: label, entry (ResolutionPpm), group (general) +#: rc.cpp:103 +msgid "PNG and JPEG resolution." +msgstr "Роздільна здатність PNG і JPEG" + +#. i18n: file: cirkuit_general_settings.ui:14 +#. i18n: ectx: property (windowTitle), widget (QWidget, CirkuitGeneralForm) +#: rc.cpp:109 +msgid "General settings" +msgstr "Загальні параметри" + +#. i18n: file: cirkuit_general_settings.ui:23 +#. i18n: ectx: property (title), widget (QGroupBox, groupBackend) +#: rc.cpp:112 +msgid "Backends" +msgstr "Сервери" + +#. i18n: file: cirkuit_general_settings.ui:29 +#. i18n: ectx: property (text), widget (QLabel, label_3) +#: rc.cpp:115 +msgid "Default backend:" +msgstr "Типовий модуль обробки:" + +#. i18n: file: cirkuit_general_settings.ui:71 +#. i18n: ectx: property (text), widget (QLabel, label) +#: rc.cpp:124 +msgid "Preview refresh interval (sec):" +msgstr "Проміжок між оновленнями перегляду (у сек):" + +#. i18n: file: cirkuit_general_settings.ui:103 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_AutoRefresh) +#: rc.cpp:127 +msgid "Automatic preview generation" +msgstr "Автоматичне створення попереднього перегляду" + +#. i18n: file: cirkuit_general_settings.ui:113 +#. i18n: ectx: property (text), widget (QCheckBox, kcfg_RefreshOnSave) +#: rc.cpp:130 +msgid "Refresh the preview when saving the document" +msgstr "Оновлювати зображення після збереження документа" + +#. i18n: file: cirkuit_general_settings.ui:129 +#. i18n: ectx: property (text), widget (QLabel, label_2) +#: rc.cpp:133 +msgid "PNG and JPEG resolution (DPI):" +msgstr "Роздільна здатність PNG і JPEG (у т./д. (DPI)):" + +#. i18n: file: cirkuitui.rc:5 +#. i18n: ectx: Menu (file) +#: rc.cpp:136 +msgid "&File" +msgstr "&Файл" + +#. i18n: file: cirkuitui.rc:26 +#. i18n: ectx: Menu (build) +#: rc.cpp:139 +msgid "&Preview" +msgstr "&Переглянути" + +#. i18n: file: cirkuitui.rc:33 +#. i18n: ectx: Menu (view) +#: rc.cpp:142 +msgid "&View" +msgstr "П&ерегляд" + +#. i18n: file: cirkuitui.rc:46 +#. i18n: ectx: Menu (help) +#: rc.cpp:145 +msgid "&Help" +msgstr "&Довідка" + +#. i18n: file: cirkuitui.rc:54 +#. i18n: ectx: ToolBar (mainToolBar) +#: rc.cpp:148 +msgid "Main Toolbar" +msgstr "Головна панель" \ No newline at end of file Index: src/.directory =================================================================== --- src/.directory +++ /dev/null @@ -1,3 +0,0 @@ -[Dolphin] -Timestamp=2009,1,20,15,33,3 -ViewMode=1 Index: src/CMakeLists.txt =================================================================== --- src/CMakeLists.txt +++ src/CMakeLists.txt @@ -1,23 +1,14 @@ -project(cirkuit) - -find_package(KDE4 REQUIRED) -find_package(Poppler REQUIRED) -include_directories(${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/widgets ${QT_QTNETWORK_INCLUDE_DIR} ${POPPLER_INCLUDE_DIR}) - -if( ${KDE_VERSION} VERSION_EQUAL "4.7" OR ${KDE_VERSION} VERSION_GREATER "4.7" ) - MESSAGE( STATUS "Configuring Message Widget for KDE SC >= 4.7" ) - add_definitions(-DENABLE_KMESSAGEWIDGET) -else( ${KDE_VERSION} VERSION_EQUAL "4.7" OR ${KDE_VERSION} VERSION_GREATER "4.7" ) - MESSAGE( STATUS "Disabling Message Widget for KDE SC < 4.7" ) -endif( ${KDE_VERSION} VERSION_EQUAL "4.7" OR ${KDE_VERSION} VERSION_GREATER "4.7" ) -CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) +cmake_policy(SET CMP0063 NEW) +set(CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) add_subdirectory( mimetypes ) add_subdirectory( syntax ) add_subdirectory( lib ) -include_directories( lib ${CMAKE_CURRENT_BINARY_DIR}/lib) +include_directories( lib ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} ) add_subdirectory( backends ) add_subdirectory( widgets ) +add_subdirectory( examples ) set(cirkuit_SRCS main.cpp @@ -25,19 +16,42 @@ circuitmacrosmanager.cpp generatorthread.cpp renderthread.cpp + lib/failcodes.cpp ) -kde4_add_kcfg_files(cirkuit_SRCS GENERATE_MOC cirkuitsettings.kcfgc) -kde4_add_ui_files(cirkuit_SRCS cirkuit_general_settings.ui) -kde4_add_executable(cirkuit ${cirkuit_SRCS}) - -target_link_libraries(cirkuit ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${KDE4_KNEWSTUFF3_LIBS} ${POPPLER_LIBRARY} cirkuitlibs cirkuitwidgets) +kconfig_add_kcfg_files(cirkuit_SRCS GENERATE_MOC cirkuitsettings.kcfgc) +qt5_wrap_ui(cirkuit_SRCS cirkuit_general_settings.ui) +add_executable(${PROJECT_NAME} ${cirkuit_SRCS}) +set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "cirkuit") + +# Does not seem to find poppler automatically, so add this. +include_directories(${Poppler_INCLUDE_DIRS}) + + +target_link_libraries( CIRKUIT + Qt5::Widgets + KF5::CoreAddons + KF5::I18n + KF5::WidgetsAddons + KF5::TextWidgets + KF5::TextEditor + KF5::Service + KF5::KIOCore + KF5::Completion + KF5::ConfigCore + KF5::ConfigGui + KF5::Archive + KF5::KIONTLM + + ${LIBPOPPLER_QT5} + cirkuitwidgets + cirkuitlibs +) -install(TARGETS cirkuit ${INSTALL_TARGETS_DEFAULT_ARGS}) -install(FILES cirkuitui.rc -DESTINATION ${DATA_INSTALL_DIR}/cirkuit) -install(FILES cirkuit.kcfg DESTINATION ${KCFG_INSTALL_DIR}) +install(TARGETS CIRKUIT ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(FILES cirkuitui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/cirkuit) +#install(FILES cirkuit.kcfg DESTINATION ${KCFG_INSTALL_DIR}) install(FILES cirkuit_example.knsrc cirkuit_template.knsrc DESTINATION ${CONFIG_INSTALL_DIR} ) - install( FILES cirkuit.notifyrc DESTINATION ${DATA_INSTALL_DIR}/cirkuit) install (PROGRAMS cirkuit.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) + Index: src/Messages.sh =================================================================== --- src/Messages.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp -$XGETTEXT `find . -name \*.cpp` -o $podir/cirkuit.pot -rm -f rc.cpp Index: src/backends/CMakeLists.txt =================================================================== --- src/backends/CMakeLists.txt +++ src/backends/CMakeLists.txt @@ -1,5 +1,9 @@ +set (CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + add_subdirectory(null) add_subdirectory(circuitmacros) add_subdirectory(tikz) add_subdirectory(gnuplot) -add_subdirectory(pstricks) \ No newline at end of file +add_subdirectory(pstricks) + Index: src/backends/circuitmacros/CMakeLists.txt =================================================================== --- src/backends/circuitmacros/CMakeLists.txt +++ src/backends/circuitmacros/CMakeLists.txt @@ -1,21 +1,25 @@ -include_directories(${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) +add_subdirectory(templates) -add_subdirectory (templates) +set (CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) -set( CircuitMacrosBackend_SRCS dpiclogparser.cpp +set( CircuitMacrosBackend_SRCS + dpiclogparser.cpp circuitmacrosbackend.cpp circuitmacrosdocumentsettings.cpp circuitmacrosgenerator.cpp settingswidget.cpp ) -kde4_add_kcfg_files(CircuitMacrosBackend_SRCS GENERATE_MOC settings.kcfgc) -install(FILES circuitmacrosbackend.kcfg DESTINATION ${KCFG_INSTALL_DIR}) -kde4_add_ui_files(CircuitMacrosBackend_SRCS settings.ui) +kconfig_add_kcfg_files(CircuitMacrosBackend_SRCS GENERATE_MOC settings.kcfgc) +#install(FILES circuitmacrosbackend.kcfg DESTINATION ${KCFG_INSTALL_DIR}) -kde4_add_plugin( cirkuit_circuitmacrosbackend ${CircuitMacrosBackend_SRCS} ) -target_link_libraries( cirkuit_circuitmacrosbackend ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} cirkuitlibs) +qt5_wrap_ui(CircuitMacrosBackend_SRCS settings.ui) +add_library( cirkuit_circuitmacrosbackend SHARED ${CircuitMacrosBackend_SRCS} ) +target_link_libraries( cirkuit_circuitmacrosbackend KF5::ConfigCore KF5::ConfigGui cirkuitlibs) + install( FILES circuitmacrosbackend.desktop DESTINATION ${SERVICES_INSTALL_DIR}/cirkuit) -install(TARGETS cirkuit_circuitmacrosbackend DESTINATION ${PLUGIN_INSTALL_DIR}) +install(TARGETS cirkuit_circuitmacrosbackend DESTINATION ${BACKEND_INSTALL_DIR}) + Index: src/backends/circuitmacros/circuitmacrosbackend.h =================================================================== --- src/backends/circuitmacros/circuitmacrosbackend.h +++ src/backends/circuitmacros/circuitmacrosbackend.h @@ -21,10 +21,11 @@ #ifndef CIRCUITMACROSBACKEND_H #define CIRCUITMACROSBACKEND_H -#include "backend.h" +#include "backend_interface.h" #include #include +#include namespace Cirkuit { @@ -35,6 +36,10 @@ class CircuitMacrosBackend : public Cirkuit::Backend { Q_OBJECT + Q_PLUGIN_METADATA(IID "circuitmacrosbackend" FILE "circuitmacrosbackend.json") + Q_INTERFACES(Cirkuit::Backend) + + public: explicit CircuitMacrosBackend( QObject* parent = 0, const QList args = QList()); ~CircuitMacrosBackend(); @@ -47,8 +52,8 @@ virtual KConfigSkeletonItem* configTemplateUrl() const; virtual QWidget* settingsWidget(QWidget* parent) const; - virtual KUrl helpUrl() const; - virtual KUrl examplesUrl() const; + virtual QString helpUrl() const; + virtual QString examplesUrl() const; QString id() const; Index: src/backends/circuitmacros/circuitmacrosbackend.cpp =================================================================== --- src/backends/circuitmacros/circuitmacrosbackend.cpp +++ src/backends/circuitmacros/circuitmacrosbackend.cpp @@ -24,21 +24,19 @@ #include "settings.h" #include "settingswidget.h" -#include "kdebug.h" - -#include "cirkuit_macros.h" +#include #include CircuitMacrosBackend::CircuitMacrosBackend( QObject* parent, const QList args ) : Cirkuit::Backend( parent ) { Q_UNUSED(args) - kDebug()<<"Creating CircuitMacrosBackend"; + qDebug()<<"Creating CircuitMacrosBackend"; } CircuitMacrosBackend::~CircuitMacrosBackend() { - kDebug()<<"Destroying CircuitMacrosBackend"; + qDebug()<<"Destroying CircuitMacrosBackend"; } bool CircuitMacrosBackend::checkRequirements() const @@ -78,14 +76,14 @@ return words; } -KUrl CircuitMacrosBackend::examplesUrl() const +QString CircuitMacrosBackend::examplesUrl() const { - return KStandardDirs::locateLocal("data", "cirkuit/circuit_macros/examples/examples.ps"); + return QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/circuit_macros/examples/examples.ps",QStandardPaths::LocateFile); } -KUrl CircuitMacrosBackend::helpUrl() const +QString CircuitMacrosBackend::helpUrl() const { - return KStandardDirs::locateLocal("data", "cirkuit/circuit_macros/doc/CMman.pdf"); + return QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/circuit_macros/doc/Circuit_macros.pdf",QStandardPaths::LocateFile); } KConfigSkeletonItem* CircuitMacrosBackend::configTemplateUrl() const @@ -98,5 +96,3 @@ } - -K_EXPORT_CIRKUIT_PLUGIN(circuitmacrosbackend, CircuitMacrosBackend) Index: src/backends/circuitmacros/circuitmacrosbackend.desktop =================================================================== --- src/backends/circuitmacros/circuitmacrosbackend.desktop +++ src/backends/circuitmacros/circuitmacrosbackend.desktop @@ -2,22 +2,15 @@ Type=Service Icon=cirkuit Name=Circuit Macros -Name[bs]=Circuit Macros Name[de]=Circuit-Makros Name[es]=Circuit Macros Name[et]=Vooluringimakrod Name[fr]=Circuit Macros -Name[gl]=Macros de Circuit -Name[hu]=Circuit Macros -Name[it]=Macro di circuito Name[km]=Circuit Macros -Name[ko]=Circuit 매크로 -Name[mr]=सर्कीट मेक्रोज Name[nl]=Circuit Macros Name[pl]=Circuit Macros Name[pt]=Circuit Macros Name[pt_BR]=Circuit Macros -Name[sk]=Makrá Cirkuit Name[sv]=Circuit Macros Name[uk]=Макрос Circuit Name[x-test]=xxCircuit Macrosxx @@ -28,22 +21,14 @@ X-KDE-PluginInfo-License=GPL X-KDE-PluginInfo-Website=http://www.ece.uwaterloo.ca/~aplevich/Circuit_macros Comment=Backend for Circuit Macros -Comment[bs]=Pozadina za Circuit Macros -Comment[de]=Modul für Circuit-Makros Comment[es]=Motor para Circuit Macros Comment[et]=Vooluringimakrode taustaprogramm -Comment[fr]=Moteur pour « Circuit Macros » -Comment[gl]=Infraestrutura para macros de Circuit. -Comment[hu]=A Circuit Macros háttérprogramja -Comment[it]=Backend per Macro di Circuito +Comment[fr]=Moteur pour Circuit Macros Comment[km]=កម្មវិធី​ខាងក្រោយ​របស់ Circuit Macros -Comment[ko]=Circuit 매크로 백엔드 -Comment[mr]=सर्कीट मेक्रोज करिता बॅकएन्ड Comment[nl]=Backend voor Circuit Macros Comment[pl]=Silnik dla Circuit Macros Comment[pt]=Infra-Estrutura do Circuit Macros Comment[pt_BR]=Infraestrutura para o Circuit Macros -Comment[sk]=Backend pre makrá Cirkuit Comment[sv]=Gränssnitt för Circuit Macros Comment[uk]=Модуль обробки для макроса Circuit Comment[x-test]=xxBackend for Circuit Macrosxx Index: src/backends/circuitmacros/circuitmacrosbackend.json =================================================================== --- /dev/null +++ src/backends/circuitmacros/circuitmacrosbackend.json @@ -0,0 +1,2 @@ +{ "Keys": ["CircuitMacrosBackend"] } + Index: src/backends/circuitmacros/circuitmacrosbackend.kcfg =================================================================== --- src/backends/circuitmacros/circuitmacrosbackend.kcfg +++ src/backends/circuitmacros/circuitmacrosbackend.kcfg @@ -4,7 +4,8 @@ xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > - kstandarddirs.h + QStandardPaths + KCoreConfigSkeleton @@ -16,11 +17,11 @@ - KStandardDirs::locate("data", "cirkuit/templates/cm_latex.ckt") + QUrl(QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/templates/cm_latex.ckt")) - KStandardDirs::locate("data", "cirkuit/templates/cm_tikz.ckt") + QUrl(QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/templates/cm_tikz.ckt")) Index: src/backends/circuitmacros/circuitmacrosgenerator.h =================================================================== --- src/backends/circuitmacros/circuitmacrosgenerator.h +++ src/backends/circuitmacros/circuitmacrosgenerator.h @@ -30,7 +30,7 @@ explicit CircuitMacrosGenerator(Cirkuit::Backend* backend = 0, QObject* parent = 0); virtual ~CircuitMacrosGenerator(); - virtual bool convert(const Cirkuit::Format& in, const Cirkuit::Format& out); + virtual int convert(const Cirkuit::Format& in, const Cirkuit::Format& out); }; #endif // CIRCUITMACROSGENERATOR_H Index: src/backends/circuitmacros/circuitmacrosgenerator.cpp =================================================================== --- src/backends/circuitmacros/circuitmacrosgenerator.cpp +++ src/backends/circuitmacros/circuitmacrosgenerator.cpp @@ -24,13 +24,14 @@ #include "settings.h" #include "logparser.h" #include "dpiclogparser.h" +#include "failcodes.h" #include -#include -#include -#include -#include +#include +#include +#include +#include using namespace Cirkuit; @@ -45,38 +46,41 @@ } -bool CircuitMacrosGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) +int CircuitMacrosGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) { - kDebug() << "Inside the CircuitMacros generator..."; - - // Check if the conversion can be handled by the super-class - bool done = Cirkuit::Generator::convert(in, out); - if (done) return true; + // Check if the conversion can be handled by the super-class + int fail = Cirkuit::Generator::convert(in, out); + if (fail==NoFail) return NoFail; + if (fail != Fail_unimplemented_conversion) return fail; + + qDebug() << "Inside the CircuitMacros generator..."; + if (in == Format::Source) { tempFile()->open(); QTextStream tmpStream(tempFile()); tmpStream << document()->text(); tempFile()->close(); - QStringList env = KProcess::systemEnvironment(); - env << QString("M4PATH=%1:%2").arg(KStandardDirs::locate("data", "cirkuit/circuit_macros/")).arg(QDir(document()->directory()).absolutePath()); - QStringList m4args; + // Specify library directory (the circuit macros) with -I + // Assume we have a recent m4 installed + m4args << QString("-I") << QStandardPaths::locate(QStandardPaths::GenericDataLocation, + "cirkuit/circuit_macros",QStandardPaths::LocateDirectory); + if (CircuitMacrosSettings::picInterpreter() == CircuitMacrosSettings::EnumPicInterpreter::dpic_ps) { - m4args << KStandardDirs::locate("data", "cirkuit/circuit_macros/pstricks.m4"); + m4args << QString("pstricks.m4"); } else if (CircuitMacrosSettings::picInterpreter() == CircuitMacrosSettings::EnumPicInterpreter::dpic_pgf) { - m4args << KStandardDirs::locate("data", "cirkuit/circuit_macros/pgf.m4"); + m4args << QString("pgf.m4"); } else if (CircuitMacrosSettings::picInterpreter() == CircuitMacrosSettings::EnumPicInterpreter::gpic) { - m4args << KStandardDirs::locate("data", "cirkuit/circuit_macros/gpic.m4"); + m4args << QString("gpic.m4"); } - m4args << KStandardDirs::locate("data", "cirkuit/circuit_macros/libcct.m4") - << tempFileInfo()->fileName(); + m4args << QString("libcct.m4") << tempFileInfo()->fileName(); Command* m4command = new Command("m4", "", m4args); - m4command->setEnvironment(env); - m4command->setWorkingDirectory(workingDir().path()); - if (!execute(m4command)) return false; + // m4command->setEnvironment(env); + m4command->setWorkingDirectory(getWorkingDir()); // the working directory is searched first by m4 + if (!execute(m4command)) return Fail_m4; QString m4out = m4command->stdOutput(); @@ -86,15 +90,18 @@ picArgs << "-p"; picCommand = new Command("dpic", m4out, picArgs); picCommand->setLogParser(new DpicLogParser); + if (!execute(picCommand)) return Fail_dpic; } else if (CircuitMacrosSettings::picInterpreter() == CircuitMacrosSettings::EnumPicInterpreter::dpic_pgf) { picArgs << "-g"; picCommand = new Command("dpic", m4out, picArgs); picCommand->setLogParser(new DpicLogParser); + if (!execute(picCommand)) return Fail_dpic; } else { picArgs << "-t"; picCommand = new Command("pic", m4out, picArgs); + if (!execute(picCommand)) return Fail_pic; } - if (!execute(picCommand)) return false; + QString picout = picCommand->stdOutput(); @@ -105,12 +112,14 @@ QTextStream stream(&fileout); stream << picout; fileout.close(); - return true; + return NoFail; } QStringList environment = QProcess::systemEnvironment(); - // the following environment variable is needed to find boxdims.sty in the circuit maaros distribution - QString dirString = QString("TEXINPUTS=.:%1:%2:").arg(KStandardDirs::locate("data", "cirkuit/circuit_macros/")).arg(QDir(document()->directory()).absolutePath()); + // LaTeX searches (in order) circuit_macros dir, dir that contains editor document, local dir + // The search of circuit_macros is needed to find boxdims.sty + QString dirString = QString("TEXINPUTS=%1:%2:.:").arg(QStandardPaths::locate(QStandardPaths::GenericDataLocation, + "cirkuit/circuit_macros/",QStandardPaths::LocateDirectory)).arg(QDir(document()->directory()).absolutePath()); environment << dirString; QStringList latexArgs; @@ -125,27 +134,42 @@ DocumentTemplate latexTemplate(CircuitMacrosSettings::tikztemplateurl().path()); latexDoc = latexTemplate.insert(picout); latexCmd = new Command("pdflatex", latexDoc, latexArgs); + latexCmd->setWorkingDirectory(getWorkingDir()); + latexCmd->setEnvironment(environment); + latexCmd->setLogParser(new LatexLogParser); + if (!execute(latexCmd)) return Fail_LateXExec; } else { DocumentTemplate latexTemplate(CircuitMacrosSettings::templateurl().path()); latexDoc = latexTemplate.insert(picout); latexCmd = new Command("latex", latexDoc, latexArgs); + latexCmd->setWorkingDirectory(getWorkingDir()); + latexCmd->setEnvironment(environment); + latexCmd->setLogParser(new LatexLogParser); + if (!execute(latexCmd)) Fail_PdfLateXExec; } - latexCmd->setWorkingDirectory(workingDir().path()); - latexCmd->setEnvironment(environment); - latexCmd->setLogParser(new LatexLogParser); - if (!execute(latexCmd)) return false; + - // Now that a DVI has been generated, convert it to the + // Now that a PDF or DVI has been generated, convert it to the // desired output format - if (CircuitMacrosSettings::picInterpreter() == CircuitMacrosSettings::EnumPicInterpreter::dpic_pgf) { + if (CircuitMacrosSettings::picInterpreter() == CircuitMacrosSettings::EnumPicInterpreter::dpic_pgf) + { + if (!QFileInfo(formatPath(Format::Pdf)).exists()) // check we have the pdf file in temp directory. + { + return Fail_PdfLateXNoOutput; + } return Generator::convert(Format::Pdf, out); - } else { + } else + { + if (!QFileInfo(formatPath(Format::Dvi)).exists()) // check we have the dvi file in temp directory. + { + return Fail_LateXNoOutput; + } return Generator::convert(Format::Dvi, out); } + return NoFail; - return true; } - return false; + return NoFail; // nothing to be done } Index: src/backends/circuitmacros/settings.ui =================================================================== --- src/backends/circuitmacros/settings.ui +++ src/backends/circuitmacros/settings.ui @@ -14,22 +14,30 @@ - Template path: + Template file: - + + + <html><head/><body><p>Template filename and full path</p></body></html> + + - Template path: + Template file: - + + + <html><head/><body><p>Template filename and full path</p></body></html> + + Index: src/backends/circuitmacros/templates/CMakeLists.txt =================================================================== --- src/backends/circuitmacros/templates/CMakeLists.txt +++ src/backends/circuitmacros/templates/CMakeLists.txt @@ -1 +1,6 @@ -install( FILES cm_tikz.ckt cm_latex.ckt DESTINATION ${DATA_INSTALL_DIR}/cirkuit/templates ) +install( FILES cm_tikz.ckt + cm_latex.ckt + cm_latex_cmss.ckt + cm_latex_kpss.ckt + cm_latex_sf.ckt + DESTINATION ${DATA_INSTALL_DIR}/cirkuit/templates ) Index: src/backends/circuitmacros/templates/cm_latex_cmss.ckt =================================================================== --- /dev/null +++ src/backends/circuitmacros/templates/cm_latex_cmss.ckt @@ -0,0 +1,31 @@ +%%backend=circuitmacros%% +\documentclass{article} +\usepackage[utf8x]{inputenc} +\usepackage{pstricks,pst-eps,graphicx,ifpdf,pst-grad,amsmath,wasysym} +\pagestyle{empty} +\thispagestyle{empty} + +\begin{document} +% ppl - palatino +% pbk = bookman +% phv = helvetiva +% cmtt - computer modern +% cmr - computer modern roman - default +% ptm - times +% cmss - computer modern san serif +% lmtt - latin modern typewriter +% jkpl - kp light +% jkp - kp +% jkptt - teletype +% jkpss - san serif +% see: http://www.tug.dk/FontCatalogue/ + +{\fontfamily{cmss}\selectfont +\newbox\graph +\begin{TeXtoEPS} +%%SOURCE%% +\box +\graph +\end{TeXtoEPS} +} % end fontfamily +\end{document} Index: src/backends/circuitmacros/templates/cm_latex_kpss.ckt =================================================================== --- /dev/null +++ src/backends/circuitmacros/templates/cm_latex_kpss.ckt @@ -0,0 +1,31 @@ +%%backend=circuitmacros%% +\documentclass{article} +\usepackage[utf8x]{inputenc} +\usepackage{pstricks,pst-eps,graphicx,ifpdf,pst-grad,amsmath,wasysym} +\pagestyle{empty} +\thispagestyle{empty} + +\begin{document} +% ppl - palatino +% pbk = bookman +% phv = helvetiva +% cmtt - computer modern +% cmr - computer modern roman - default +% ptm - times +% cmss - computer modern san serif +% lmtt - latin modern typewriter +% jkpl - kp light +% jkp - kp +% jkptt - teletype +% jkpss - san serif +% see: http://www.tug.dk/FontCatalogue/ + +{\fontfamily{jkpss}\selectfont +\newbox\graph +\begin{TeXtoEPS} +%%SOURCE%% +\box +\graph +\end{TeXtoEPS} +} % end fontfamily +\end{document} Index: src/backends/circuitmacros/templates/cm_latex_sf.ckt =================================================================== --- /dev/null +++ src/backends/circuitmacros/templates/cm_latex_sf.ckt @@ -0,0 +1,21 @@ +%%backend=circuitmacros%% +\documentclass{article} +\usepackage[utf8x]{inputenc} + +\usepackage{pstricks,pst-eps,graphicx,ifpdf,pst-grad,amsmath,wasysym} +\usepackage{sansmath} +\usepackage{lmodern} +\pagestyle{empty} +\thispagestyle{empty} + +\begin{document} +\newbox\graph +\sffamily +\sansmath +\begin{TeXtoEPS} +%%SOURCE%% +\box +\graph +\end{TeXtoEPS} +\end{document} + Index: src/backends/gnuplot/CMakeLists.txt =================================================================== --- src/backends/gnuplot/CMakeLists.txt +++ src/backends/gnuplot/CMakeLists.txt @@ -1,20 +1,24 @@ -include_directories(${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) - add_subdirectory (templates) +#include_directories(${PROJECT_SOURCE_DIR} +# ${PROJECT_BINARY_DIR} +#) +set (CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + set( GnuplotBackend_SRCS gnuplotbackend.cpp gnuplotdocumentsettings.cpp gnuplotgenerator.cpp ) -kde4_add_kcfg_files(GnuplotBackend_SRCS GENERATE_MOC settings.kcfgc) -install(FILES gnuplotbackend.kcfg DESTINATION ${KCFG_INSTALL_DIR}) +kconfig_add_kcfg_files(GnuplotBackend_SRCS GENERATE_MOC settings.kcfgc) +#install(FILES gnuplotbackend.kcfg DESTINATION ${KCFG_INSTALL_DIR}) -kde4_add_ui_files(GnuplotBackend_SRCS settings.ui) +qt5_wrap_ui(GnuplotBackend_SRCS settings.ui) -kde4_add_plugin( cirkuit_gnuplotbackend ${GnuplotBackend_SRCS} ) -target_link_libraries( cirkuit_gnuplotbackend ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} cirkuitlibs) +add_library( cirkuit_gnuplotbackend SHARED ${GnuplotBackend_SRCS} ) +target_link_libraries( cirkuit_gnuplotbackend ${KF5_KFUI_LIBS} ${KF5_KIO_LIBS} cirkuitlibs) install( FILES gnuplotbackend.desktop DESTINATION ${SERVICES_INSTALL_DIR}/cirkuit) -install(TARGETS cirkuit_gnuplotbackend DESTINATION ${PLUGIN_INSTALL_DIR}) +install(TARGETS cirkuit_gnuplotbackend DESTINATION ${BACKEND_INSTALL_DIR}) Index: src/backends/gnuplot/gnuplotbackend.h =================================================================== --- src/backends/gnuplot/gnuplotbackend.h +++ src/backends/gnuplot/gnuplotbackend.h @@ -21,7 +21,7 @@ #ifndef GNUPLOTBACKEND_H #define GNUPLOTBACKEND_H -#include "backend.h" +#include "backend_interface.h" #include #include @@ -35,6 +35,9 @@ class GnuplotBackend : public Cirkuit::Backend { Q_OBJECT + Q_PLUGIN_METADATA(IID "gnuplotbackend" FILE "gnuplotbackend.json") + Q_INTERFACES(Cirkuit::Backend) + public: explicit GnuplotBackend( QObject* parent = 0, const QList args = QList()); ~GnuplotBackend(); @@ -45,8 +48,8 @@ Cirkuit::Generator* generator() const; virtual KConfigSkeleton* config() const; virtual QWidget* settingsWidget(QWidget* parent) const; - virtual KUrl helpUrl() const; - virtual KUrl examplesUrl() const; + virtual QString helpUrl() const; + virtual QString examplesUrl() const; QString id() const; Index: src/backends/gnuplot/gnuplotbackend.cpp =================================================================== --- src/backends/gnuplot/gnuplotbackend.cpp +++ src/backends/gnuplot/gnuplotbackend.cpp @@ -24,21 +24,18 @@ #include "settings.h" #include "ui_settings.h" -#include "kdebug.h" - -#include "cirkuit_macros.h" - +#include #include GnuplotBackend::GnuplotBackend( QObject* parent, const QList args ) : Cirkuit::Backend( parent ) { Q_UNUSED(args) - kDebug()<<"Creating GnuplotBackend"; + qDebug()<<"Creating GnuplotBackend"; } GnuplotBackend::~GnuplotBackend() { - kDebug()<<"Destroying GnuplotBackend"; + qDebug()<<"Destroying GnuplotBackend"; } bool GnuplotBackend::checkRequirements() const @@ -81,16 +78,14 @@ return words; } -KUrl GnuplotBackend::helpUrl() const +QString GnuplotBackend::helpUrl() const { - return KUrl("http://www.gnuplot.info/documentation.html"); + return QString("http://www.gnuplot.info/documentation.html"); } -KUrl GnuplotBackend::examplesUrl() const +QString GnuplotBackend::examplesUrl() const { - return KUrl("http://gnuplot.sourceforge.net/demo/"); + return QString("http://gnuplot.sourceforge.net/demo/"); } - -K_EXPORT_CIRKUIT_PLUGIN(gnuplotbackend, GnuplotBackend) Index: src/backends/gnuplot/gnuplotbackend.desktop =================================================================== --- src/backends/gnuplot/gnuplotbackend.desktop +++ src/backends/gnuplot/gnuplotbackend.desktop @@ -2,25 +2,16 @@ Type=Service Icon=gnuplotbackend Name=Gnuplot -Name[ast]=Gnuplot -Name[bs]=Gnuplot Name[de]=Gnuplot Name[es]=Gnuplot Name[et]=Gnuplot Name[fr]=Gnuplot -Name[ga]=Gnuplot -Name[gl]=Gnuplot -Name[hu]=Gnuplot -Name[it]=Gnuplot Name[km]=Gnuplot -Name[ko]=Gnuplot -Name[mr]=जीएनयु-प्लोट Name[nds]=Gnuplot Name[nl]=Gnuplot Name[pl]=Gnuplot Name[pt]=Gnuplot Name[pt_BR]=Gnuplot -Name[sk]=Gnuplot Name[sv]=Gnuplot Name[uk]=Gnuplot Name[x-test]=xxGnuplotxx @@ -31,23 +22,14 @@ X-KDE-PluginInfo-License=GPL X-KDE-PluginInfo-Website=http://www.gnuplot.org Comment=Backend for Gnuplot -Comment[bs]=Pozadina za Gnuplot -Comment[de]=Modul für Gnuplot Comment[es]=Motor para Gnuplot Comment[et]=Gnuploti taustaprogramm Comment[fr]=Moteur pour Gnuplot -Comment[ga]=Inneall le haghaidh Gnuplot -Comment[gl]=Infraestrutura para Gnuplot. -Comment[hu]=A Gnuplot háttérprogramja -Comment[it]=Backend per Gnuplot Comment[km]=កម្មវិធី​ខាងក្រោយ​របស់ Gnuplot -Comment[ko]=Gnuplot 백엔드 -Comment[mr]=जीएनयु-प्लोट करिता बॅकएन्ड Comment[nl]=Backend voor Gnuplot Comment[pl]=Silnik dla Gnuplot Comment[pt]=Infra-Estrutura do Gnuplot Comment[pt_BR]=Infraestrutura para o Gnuplot -Comment[sk]=Backend pre Gnuplot Comment[sv]=Gränssnitt för Gnuplot Comment[uk]=Модуль для Gnuplot Comment[x-test]=xxBackend for Gnuplotxx Index: src/backends/gnuplot/gnuplotbackend.json =================================================================== --- /dev/null +++ src/backends/gnuplot/gnuplotbackend.json @@ -0,0 +1,2 @@ +{ "Keys": ["GnuplotBackend"] } + Index: src/backends/gnuplot/gnuplotbackend.kcfg =================================================================== --- src/backends/gnuplot/gnuplotbackend.kcfg +++ src/backends/gnuplot/gnuplotbackend.kcfg @@ -4,11 +4,11 @@ xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > - kstandarddirs.h + QStandardPaths - KStandardDirs::locate("data", "cirkuit/templates/gnuplot_latex.ckt") + QUrl(QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/templates/gnuplot_latex.ckt")) Index: src/backends/gnuplot/gnuplotgenerator.h =================================================================== --- src/backends/gnuplot/gnuplotgenerator.h +++ src/backends/gnuplot/gnuplotgenerator.h @@ -30,7 +30,7 @@ explicit GnuplotGenerator(Cirkuit::Backend* backend = 0, QObject* parent = 0); virtual ~GnuplotGenerator(); - virtual bool convert(const Cirkuit::Format& in, const Cirkuit::Format& out); + virtual int convert(const Cirkuit::Format& in, const Cirkuit::Format& out); }; #endif // GNUPLOTGENERATOR_H Index: src/backends/gnuplot/gnuplotgenerator.cpp =================================================================== --- src/backends/gnuplot/gnuplotgenerator.cpp +++ src/backends/gnuplot/gnuplotgenerator.cpp @@ -22,13 +22,14 @@ #include "documenttemplate.h" #include "command.h" #include "settings.h" +#include "failcodes.h" #include -#include -#include -#include -#include +#include +#include +#include +//#include using namespace Cirkuit; @@ -42,15 +43,14 @@ } -bool GnuplotGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) +int GnuplotGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) { - // Check if the conversion can be handled by the super-class - bool done = Generator::convert(in, out); - if (done) { - return true; - } + // Check if the conversion can be handled by the super-class + int fail = Cirkuit::Generator::convert(in, out); + if (fail==NoFail) return NoFail; + if (fail != Fail_unimplemented_conversion) return fail; - kDebug() << "Inside the Gnuplot backend..."; + qDebug() << "Inside the Gnuplot backend..."; if (in == Format::Source) { QTextStream stream(tempFile()); @@ -103,30 +103,60 @@ } tempFile()->close(); - if (!execute(gnuplot)) return false; + if (!execute(gnuplot)) return Fail_gnuplot; if (out == Format::Tex) { - return true; + return NoFail; } DocumentTemplate gpTemplate(GnuplotSettings::templateurl().path()); QString latexDoc = gpTemplate.insert(gnuplotOutputFile); QStringList environment = QProcess::systemEnvironment(); - // the following environment variable is needed to find boxdims.sty in the circuit maaros distribution - QString dirString = QString("TEXINPUTS=.:%1:").arg(QDir(document()->directory()).absolutePath()); + // LaTeX searches (in order) circuit_macros dir, dir that contains editor document, local dir + // The search of circuit_macros is needed to find boxdims.sty + QString dirString = QString("TEXINPUTS=%1:%2:.:").arg(QStandardPaths::locate(QStandardPaths::GenericDataLocation, + "cirkuit/circuit_macros/",QStandardPaths::LocateDirectory)).arg(QDir(document()->directory()).absolutePath()); + environment << dirString; QStringList latexArgs; latexArgs << QString("-jobname=%1").arg(tempFileInfo()->baseName()); - Command* latexCmd = new Command("pdflatex", latexDoc, latexArgs); - latexCmd->setWorkingDirectory(workingDir().path()); + Command* latexCmd = new Command("latex", latexDoc, latexArgs); + latexCmd->setWorkingDirectory(getWorkingDir()); latexCmd->setEnvironment(environment); - if (!execute(latexCmd)) return false; + + if (!execute(latexCmd)) return Fail_LateXExec; + + if (!QFileInfo(formatPath(Format::Dvi)).exists()) // check we have the dvi file in temp directory. + { + return Fail_LateXNoOutput; + }; - return convert(Format::Pdf, out); + return convert(Format::Dvi, out); } + return convert(Format::Dvi, out); +} + + +/* + * Command* latexCmd = new Command("pdflatex", latexDoc, latexArgs); + latexCmd->setWorkingDirectory(getWorkingDir()); + latexCmd->setEnvironment(environment); + + if (!execute(latexCmd)) return Fail_PdfLateXExec; + + if (!QFileInfo(formatPath(Format::Pdf)).exists()) // check we have the pdf file in temp directory. + { + return Fail_LateXNoOutput; + }; + + return convert(Format::Pdf, out); + } + return convert(Format::Pdf, out); } + +*/ Index: src/backends/gnuplot/settings.ui =================================================================== --- src/backends/gnuplot/settings.ui +++ src/backends/gnuplot/settings.ui @@ -19,7 +19,11 @@ - + + + <html><head/><body><p>Template filename and full path</p></body></html> + + @@ -28,6 +32,7 @@ KUrlRequester QFrame

kurlrequester.h
+ 1 Index: src/backends/gnuplot/templates/gnuplot_latex.ckt =================================================================== --- src/backends/gnuplot/templates/gnuplot_latex.ckt +++ src/backends/gnuplot/templates/gnuplot_latex.ckt @@ -1,18 +1,33 @@ %%backend=gnuplot%% \documentclass{article} \usepackage[utf8x]{inputenc} -\usepackage{tikz,amsmath,siunitx} +\usepackage{amsmath,siunitx} \usepackage{gnuplot-lua-tikz} \usetikzlibrary{arrows,snakes,backgrounds,patterns,matrix,shapes,fit,calc,shadows,plotmarks} -\usepackage[graphics,tightpage,active]{preview} -\PreviewEnvironment{tikzpicture} -\PreviewEnvironment{equation} -\PreviewEnvironment{equation*} -\newlength{\imagewidth} -\newlength{\imagescale} +\usetikzlibrary{positioning,patterns,decorations.markings} \pagestyle{empty} \begin{document} \thispagestyle{empty} + +% ppl - palatino +% pbk = bookman +% phv = helvetiva +% cmtt - computer modern +% cmr - computer modern roman - default +% ptm - times +% cmss - computer modern san serif +% lmtt - latin modern typewriter +% jkpl - kp light +% jkp - kp +% jkptt - teletype +% jkpss - san serif +% see: http://www.tug.dk/FontCatalogue/ + +{\fontfamily{ppl}\selectfont +\newbox +\graph \input %%SOURCE%% +\noindent +} % end fontfamily \end{document} Index: src/backends/null/CMakeLists.txt =================================================================== --- src/backends/null/CMakeLists.txt +++ src/backends/null/CMakeLists.txt @@ -1,11 +1,16 @@ +set (CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + set( NullBackend_SRCS nullbackend.cpp nulldocumentsettings.cpp nullgenerator.cpp ) -kde4_add_plugin( cirkuit_nullbackend ${NullBackend_SRCS} ) -target_link_libraries( cirkuit_nullbackend ${KDE4_KDEUI_LIBS} cirkuitlibs) +add_library( cirkuit_nullbackend SHARED ${NullBackend_SRCS} ) +target_link_libraries( cirkuit_nullbackend cirkuitlibs) install( FILES nullbackend.desktop DESTINATION ${SERVICES_INSTALL_DIR}/cirkuit) -install(TARGETS cirkuit_nullbackend DESTINATION ${PLUGIN_INSTALL_DIR}) +install(TARGETS cirkuit_nullbackend DESTINATION ${BACKEND_INSTALL_DIR}) + + Index: src/backends/null/nullbackend.h =================================================================== --- src/backends/null/nullbackend.h +++ src/backends/null/nullbackend.h @@ -22,7 +22,7 @@ #ifndef _NULLBACKEND_H #define _NULLBACKEND_H -#include "backend.h" +#include "backend_interface.h" #include #include @@ -36,6 +36,8 @@ class NullBackend : public Cirkuit::Backend { Q_OBJECT + Q_PLUGIN_METADATA(IID "nullbackend" FILE "nullbackend.json") + Q_INTERFACES(Cirkuit::Backend) public: explicit NullBackend( QObject* parent = 0, const QList args = QList()); ~NullBackend(); Index: src/backends/null/nullbackend.cpp =================================================================== --- src/backends/null/nullbackend.cpp +++ src/backends/null/nullbackend.cpp @@ -23,19 +23,17 @@ #include "nullgenerator.h" #include "nulldocumentsettings.h" -#include "kdebug.h" - -#include "cirkuit_macros.h" +#include NullBackend::NullBackend( QObject* parent, const QList args ) : Cirkuit::Backend( parent ) { Q_UNUSED(args) - kDebug()<<"Creating NullBackend"; + qDebug()<<"Creating NullBackend"; } NullBackend::~NullBackend() { - kDebug()<<"Destroying NullBackend"; + qDebug()<<"Destroying NullBackend"; } bool NullBackend::checkRequirements() const @@ -58,5 +56,3 @@ return new NullGenerator(); } - -K_EXPORT_CIRKUIT_PLUGIN(nullbackend, NullBackend) Index: src/backends/null/nullbackend.desktop =================================================================== --- src/backends/null/nullbackend.desktop +++ src/backends/null/nullbackend.desktop @@ -2,23 +2,15 @@ Type=Service Icon=nullbackend Name=Nullbackend -Name[bs]=Bez pozadine -Name[de]=Null-Modul Name[es]=Nullbackend Name[et]=Nullbackend -Name[fr]=Moteur vide -Name[gl]=Nullbackend -Name[hu]=Üres háttérprogram -Name[it]=Nullbackend +Name[fr]=Nullbackend Name[km]=Nullbackend -Name[ko]=빈 백엔드 -Name[mr]=नल-बॅकएन्ड Name[nds]=Leddig Hülpprogramm Name[nl]=Nullbackend Name[pl]=Zerowy silnik Name[pt]=Infra-Estrutura Nula Name[pt_BR]=Nullbackend -Name[sk]=Nullbackend Name[sv]=Testgränssnitt Name[uk]=Тестовий модуль Name[x-test]=xxNullbackendxx @@ -28,22 +20,14 @@ X-KDE-PluginInfo-Depends= X-KDE-PluginInfo-License=GPL Comment=Backend for Cirkuit for testing purposes -Comment[bs]=Pozadina za Cirkuit za testne namjene -Comment[de]=Modul für Cirkuit zum Testen Comment[es]=Motor para Cirkuit con propósito de pruebas Comment[et]=Cirkuiti taustaprogramm testimiseks Comment[fr]=Moteur pour Cirkuit à des fins de tests -Comment[gl]=Infraestrutura de Cirkuit para probas. -Comment[hu]=Háttérprogram a Cirkuithez tesztelési célokra -Comment[it]=Backend di Cirkuit per scopi di prova Comment[km]=កម្មវិធី​ខាងក្រោយ​របស់​ Cirkuit for សម្រាប់​គោលបំណង​សាកល្បង -Comment[ko]=Cirkuit 테스트용 더미 백엔드 -Comment[mr]=चाचणी सर्कीट करिता बॅकएन्ड Comment[nl]=Backend voor Cirkuit voor testdoeleinden Comment[pl]=Silnik dla Cirkuit do celów testowych Comment[pt]=Infra-estrutura do Cirkuit para fins de testes Comment[pt_BR]=Infraestrutura do Cirkuit para testes -Comment[sk]=Backend pre Cirkuit na testovacie účely Comment[sv]=Gränssnitt för Cirkuit i testsyfte Comment[uk]=Тестовий модуль для Cirkuit Comment[x-test]=xxBackend for Cirkuit for testing purposesxx Index: src/backends/null/nullbackend.json =================================================================== --- /dev/null +++ src/backends/null/nullbackend.json @@ -0,0 +1,2 @@ +{ "Keys": ["NullBackend"] } + Index: src/backends/null/nullgenerator.h =================================================================== --- src/backends/null/nullgenerator.h +++ src/backends/null/nullgenerator.h @@ -29,7 +29,7 @@ public: explicit NullGenerator(Cirkuit::Backend* backend = 0, QObject* parent = 0); virtual ~NullGenerator(); - virtual bool convert(const Cirkuit::Format& in, const Cirkuit::Format& out); + virtual int convert(const Cirkuit::Format& in, const Cirkuit::Format& out); }; #endif // NULLGENERATOR_H Index: src/backends/null/nullgenerator.cpp =================================================================== --- src/backends/null/nullgenerator.cpp +++ src/backends/null/nullgenerator.cpp @@ -28,7 +28,7 @@ } -bool NullGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) +int NullGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) { return Cirkuit::Generator::convert(in, out); } Index: src/backends/pstricks/CMakeLists.txt =================================================================== --- src/backends/pstricks/CMakeLists.txt +++ src/backends/pstricks/CMakeLists.txt @@ -1,6 +1,10 @@ -include_directories(${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) +add_subdirectory(templates) -add_subdirectory (templates) +#include_directories(${PROJECT_SOURCE_DIR} +# ${PROJECT_BINARY_DIR} +#) +set (CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) set( PstricksBackend_SRCS pstricksbackend.cpp @@ -8,13 +12,13 @@ pstricksgenerator.cpp ) -kde4_add_kcfg_files(PstricksBackend_SRCS GENERATE_MOC settings.kcfgc) -install(FILES pstricksbackend.kcfg DESTINATION ${KCFG_INSTALL_DIR}) +kconfig_add_kcfg_files(PstricksBackend_SRCS GENERATE_MOC settings.kcfgc) +#install(FILES pstricksbackend.kcfg DESTINATION ${KCFG_INSTALL_DIR}) -kde4_add_ui_files(PstricksBackend_SRCS settings.ui) +qt5_wrap_ui(PstricksBackend_SRCS settings.ui) -kde4_add_plugin( cirkuit_pstricksbackend ${PstricksBackend_SRCS} ) +add_library( cirkuit_pstricksbackend SHARED ${PstricksBackend_SRCS} ) target_link_libraries( cirkuit_pstricksbackend ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} cirkuitlibs) install( FILES pstricksbackend.desktop DESTINATION ${SERVICES_INSTALL_DIR}/cirkuit) -install(TARGETS cirkuit_pstricksbackend DESTINATION ${PLUGIN_INSTALL_DIR}) \ No newline at end of file +install(TARGETS cirkuit_pstricksbackend DESTINATION ${BACKEND_INSTALL_DIR}) Index: src/backends/pstricks/pstricksbackend.h =================================================================== --- src/backends/pstricks/pstricksbackend.h +++ src/backends/pstricks/pstricksbackend.h @@ -21,7 +21,7 @@ #ifndef PSTRICKSBACKEND_H #define PSTRICKSBACKEND_H -#include "backend.h" +#include "backend_interface.h" #include #include @@ -35,6 +35,8 @@ class PstricksBackend : public Cirkuit::Backend { Q_OBJECT + Q_PLUGIN_METADATA(IID "pstricksbackend" FILE "pstricksbackend.json") + Q_INTERFACES(Cirkuit::Backend) public: explicit PstricksBackend( QObject* parent = 0, const QList args = QList()); ~PstricksBackend(); @@ -46,8 +48,8 @@ virtual KConfigSkeleton* config() const; virtual QWidget* settingsWidget(QWidget* parent) const; - virtual KUrl helpUrl() const; - virtual KUrl examplesUrl() const; + virtual QString helpUrl() const; + virtual QString examplesUrl() const; QString id() const; Index: src/backends/pstricks/pstricksbackend.cpp =================================================================== --- src/backends/pstricks/pstricksbackend.cpp +++ src/backends/pstricks/pstricksbackend.cpp @@ -24,19 +24,17 @@ #include "settings.h" #include "ui_settings.h" -#include - -#include "cirkuit_macros.h" +#include PstricksBackend::PstricksBackend(QObject* parent, const QList< QVariant > args): Backend(parent, args) { Q_UNUSED(args) - kDebug() << "Creating PstricksBackend"; + qDebug() << "Creating PstricksBackend"; } PstricksBackend::~PstricksBackend() { - kDebug() << "Destroying Pstricksbackend"; + qDebug() << "Destroying Pstricksbackend"; } QString PstricksBackend::id() const @@ -56,14 +54,14 @@ return words; } -KUrl PstricksBackend::helpUrl() const +QString PstricksBackend::helpUrl() const { - return KUrl("http://mirror.ctan.org/graphics/pstricks/base/doc/pstricks-doc.pdf"); + return QString("http://mirror.ctan.org/graphics/pstricks/base/doc/pstricks-doc.pdf"); } -KUrl PstricksBackend::examplesUrl() const +QString PstricksBackend::examplesUrl() const { - return KUrl("http://tug.org/PSTricks/main.cgi?file=examples"); + return QString("http://tug.org/PSTricks/main.cgi?file=examples"); } Cirkuit::DocumentSettings* PstricksBackend::documentSettings() const @@ -89,4 +87,3 @@ return new PstricksGenerator(); } -K_EXPORT_CIRKUIT_PLUGIN(pstricksbackend, PstricksBackend) Index: src/backends/pstricks/pstricksbackend.desktop =================================================================== --- src/backends/pstricks/pstricksbackend.desktop +++ src/backends/pstricks/pstricksbackend.desktop @@ -2,24 +2,16 @@ Type=Service Icon=pstricks Name=PSTricks -Name[bs]=PSTricks Name[de]=PSTricks Name[es]=PSTricks Name[et]=PSTricks Name[fr]=PSTricks -Name[ga]=PSTricks -Name[gl]=PSTricks -Name[hu]=PSTricks -Name[it]=PSTricks Name[km]=PSTricks -Name[ko]=PSTricks -Name[mr]=पीएस-ट्रिक्स Name[nds]=PSTricks Name[nl]=PSTricks Name[pl]=PSTricks Name[pt]=PSTricks Name[pt_BR]=PSTricks -Name[sk]=PSTricks Name[sv]=PSTricks Name[uk]=PSTricks Name[x-test]=xxPSTricksxx @@ -30,22 +22,14 @@ X-KDE-PluginInfo-License=GPL X-KDE-PluginInfo-Website=http://tug.org/PSTricks/main.cgi Comment=Backend for PSTricks -Comment[bs]=Pozadina za PSTricks -Comment[de]=Modul für PSTricks Comment[es]=Motor para PSTricks Comment[et]=PSTricksi taustaprogramm Comment[fr]=Moteur pour PSTricks -Comment[gl]=Infraestrutura para PSTricks. -Comment[hu]=A PSTricks háttérprogramja -Comment[it]=Backend per PSTricks Comment[km]=កម្មវិធី​ខាងក្រោយ​របស់ PSTricks -Comment[ko]=PSTricks 백엔드 -Comment[mr]=पीएस-ट्रिक्स करिता बॅकएन्ड Comment[nl]=Backend voor PSTricks Comment[pl]=Silnik dla PSTricks Comment[pt]=Infra-Estrutura do PSTricks Comment[pt_BR]=Infraestrutura para o PSTricks -Comment[sk]=Backend pre PSTricks Comment[sv]=Gränssnitt för PSTricks Comment[uk]=Модуль для PSTricks Comment[x-test]=xxBackend for PSTricksxx Index: src/backends/pstricks/pstricksbackend.json =================================================================== --- /dev/null +++ src/backends/pstricks/pstricksbackend.json @@ -0,0 +1,3 @@ +{ "Keys": ["PstricksBackend"] } + + Index: src/backends/pstricks/pstricksbackend.kcfg =================================================================== --- src/backends/pstricks/pstricksbackend.kcfg +++ src/backends/pstricks/pstricksbackend.kcfg @@ -4,11 +4,11 @@ xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > - kstandarddirs.h + QStandardPaths - KStandardDirs::locate("data", "cirkuit/templates/pst_latex.ckt") + QUrl(QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/templates/pst_latex.ckt")) Index: src/backends/pstricks/pstricksgenerator.h =================================================================== --- src/backends/pstricks/pstricksgenerator.h +++ src/backends/pstricks/pstricksgenerator.h @@ -29,7 +29,7 @@ explicit PstricksGenerator(Cirkuit::Backend* backend = 0, QObject* parent = 0); virtual ~PstricksGenerator(); - virtual bool convert(const Cirkuit::Format& in, const Cirkuit::Format& out); + virtual int convert(const Cirkuit::Format& in, const Cirkuit::Format& out); }; #endif // PSTRICKSGENERATOR_H Index: src/backends/pstricks/pstricksgenerator.cpp =================================================================== --- src/backends/pstricks/pstricksgenerator.cpp +++ src/backends/pstricks/pstricksgenerator.cpp @@ -23,13 +23,13 @@ #include "command.h" #include "settings.h" #include "logparser.h" - +#include "failcodes.h" #include -#include -#include -#include -#include +#include +#include +//#include +//#include using namespace Cirkuit; @@ -43,16 +43,16 @@ } -bool PstricksGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) +int PstricksGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) { + // Check if the conversion can be handled by the super-class - bool done = Generator::convert(in, out); - if (done) { - return true; - } - - kDebug() << "Inside the PsTricks backend..."; - + int fail = Cirkuit::Generator::convert(in, out); + if (fail==NoFail) return NoFail; + if (fail != Fail_unimplemented_conversion) return fail; + + qDebug() << "Inside the PsTricks backend..."; + if (in == Format::Source) { DocumentTemplate pstTemplate(PstricksSettings::templateurl().path()); QString latexDoc = pstTemplate.insert(document()->text()); @@ -63,12 +63,15 @@ QTextStream stream(&fileout); stream << document()->text(); fileout.close(); - return true; + return NoFail; } QStringList environment = QProcess::systemEnvironment(); - // the following environment variable is needed to find boxdims.sty in the circuit maaros distribution - QString dirString = QString("TEXINPUTS=.:%1:").arg(QDir(document()->directory()).absolutePath()); + // LaTeX searches (in order) circuit_macros dir, dir that contains editor document, local dir + // The search of circuit_macros is needed to find boxdims.sty + QString dirString = QString("TEXINPUTS=%1:%2:.:").arg(QStandardPaths::locate(QStandardPaths::GenericDataLocation, + "cirkuit/circuit_macros/",QStandardPaths::LocateDirectory)).arg(QDir(document()->directory()).absolutePath()); + environment << dirString; QStringList latexArgs; @@ -78,13 +81,14 @@ latexArgs << QString("-jobname=%1").arg(tempFileInfo()->baseName()); Command* latexCmd = new Command("latex", latexDoc, latexArgs); - latexCmd->setWorkingDirectory(workingDir().path()); + latexCmd->setWorkingDirectory(getWorkingDir()); latexCmd->setEnvironment(environment); latexCmd->setLogParser(new LatexLogParser); - if (!execute(latexCmd)) return false; - + if (!execute(latexCmd)) return Fail_LateXExec; + // check we have the dvi file in temp directory. + if (!QFileInfo(formatPath(Format::Dvi)).exists()) return Fail_LateXNoOutput; return convert(Format::Dvi, out); } - return false; + return NoFail; // Nothing to be done } Index: src/backends/pstricks/settings.ui =================================================================== --- src/backends/pstricks/settings.ui +++ src/backends/pstricks/settings.ui @@ -19,7 +19,11 @@ - + + + <html><head/><body><p>Template filename and full path</p></body></html> + + @@ -28,6 +32,7 @@ KUrlRequester QFrame
kurlrequester.h
+ 1 Index: src/backends/pstricks/templates/CMakeLists.txt =================================================================== --- src/backends/pstricks/templates/CMakeLists.txt +++ src/backends/pstricks/templates/CMakeLists.txt @@ -1 +1 @@ -install( FILES pst_latex.ckt DESTINATION ${DATA_INSTALL_DIR}/cirkuit/templates ) +install( FILES pst_latex.ckt pst_latex_kpss.ckt DESTINATION ${DATA_INSTALL_DIR}/cirkuit/templates ) Index: src/backends/pstricks/templates/pst_latex_kpss.ckt =================================================================== --- /dev/null +++ src/backends/pstricks/templates/pst_latex_kpss.ckt @@ -0,0 +1,54 @@ +%%backend=pstricks%% +\documentclass{article} +\usepackage[utf8x]{inputenc} + +\usepackage[dvipsnames,svgnames]{pstricks} +\usepackage{pst-eps,graphicx,pst-grad,pst-circ,amsmath} +\usepackage{pst-node} +\usepackage{pst-coil} +\usepackage{pst-ob3d} +\usepackage{pstricks-add} +\usepackage{pst-labo} +\usepackage{pst-optic} +\usepackage{pst-osci} +\usepackage{pst-spectra} +\usepackage{pst-eucl} +\usepackage{pst-bar} +\usepackage{filecontents} +\usepackage{pst-func} +\usepackage{pst-blur} + +\pagestyle{empty} +\thispagestyle{empty} + +% ppl - palatino +% pbk = bookman +% phv = helvetiva +% cmtt - computer modern +% cmr - computer modern roman - default +% ptm - times +% cmss - computer modern san serif +% lmtt - latin modern typewriter +% see: http://www.tug.dk/FontCatalogue/ +% +% in texlive-fonts-extra kp and other fonts +% listing installed files gives internsl names. +% at present time installing this package causes psfont errors in PyX +% jkpl - kp light +% jkp - kp +% jkptt - teletype +% jkpss - san serif + +\begin{document} +{\fontfamily{jkpss}\selectfont +\newbox +\graph + +\begin{TeXtoEPS} +%%SOURCE%% +\box +\graph +\end{TeXtoEPS} +} +\end{document} + Index: src/backends/tikz/CMakeLists.txt =================================================================== --- src/backends/tikz/CMakeLists.txt +++ src/backends/tikz/CMakeLists.txt @@ -1,6 +1,10 @@ -include_directories(${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) +add_subdirectory(templates) -add_subdirectory (templates) +#include_directories(${PROJECT_SOURCE_DIR} +# ${PROJECT_BINARY_DIR} +#) +set (CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) set( TikzBackend_SRCS tikzbackend.cpp @@ -8,13 +12,13 @@ tikzgenerator.cpp ) -kde4_add_kcfg_files(TikzBackend_SRCS GENERATE_MOC settings.kcfgc) -install(FILES tikzbackend.kcfg DESTINATION ${KCFG_INSTALL_DIR}) +kconfig_add_kcfg_files(TikzBackend_SRCS GENERATE_MOC settings.kcfgc) +#install(FILES tikzbackend.kcfg DESTINATION ${KCFG_INSTALL_DIR}) -kde4_add_ui_files(TikzBackend_SRCS settings.ui) +qt5_wrap_ui(TikzBackend_SRCS settings.ui) -kde4_add_plugin( cirkuit_tikzbackend ${TikzBackend_SRCS} ) +add_library( cirkuit_tikzbackend SHARED ${TikzBackend_SRCS} ) target_link_libraries( cirkuit_tikzbackend ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} cirkuitlibs) install( FILES tikzbackend.desktop DESTINATION ${SERVICES_INSTALL_DIR}/cirkuit) -install(TARGETS cirkuit_tikzbackend DESTINATION ${PLUGIN_INSTALL_DIR}) +install(TARGETS cirkuit_tikzbackend DESTINATION ${BACKEND_INSTALL_DIR}) Index: src/backends/tikz/settings.ui =================================================================== --- src/backends/tikz/settings.ui +++ src/backends/tikz/settings.ui @@ -19,7 +19,11 @@ - + + + <html><head/><body><p>Template filename and full path</p></body></html> + + @@ -28,6 +32,7 @@ KUrlRequester QFrame
kurlrequester.h
+ 1 Index: src/backends/tikz/templates/tikz_latex.ckt =================================================================== --- src/backends/tikz/templates/tikz_latex.ckt +++ src/backends/tikz/templates/tikz_latex.ckt @@ -1,16 +1,18 @@ %%backend=tikz%% -\documentclass{article} -\usepackage[utf8x]{inputenc} -\usepackage{tikz,amsmath} -\usepackage[siunitx]{circuitikz} +%\documentclass{article} +\documentclass[tikz, border=10pt, 12pt]{standalone} -\usetikzlibrary{arrows,snakes,backgrounds,patterns,matrix,shapes,fit,calc,shadows,plotmarks} +\usepackage{amsmath} +\usepackage{tikz} +\usepackage{verbatim} +\usepackage[europeanresistors,americaninductors,siunitx]{circuitikz} +\usetikzlibrary{arrows,decorations,backgrounds,patterns,matrix,shapes,fit,calc,shadows,plotmarks} \usepackage[graphics,tightpage,active]{preview} +\usepackage{smartdiagram} + \PreviewEnvironment{tikzpicture} \PreviewEnvironment{equation} \PreviewEnvironment{equation*} -\newlength{\imagewidth} -\newlength{\imagescale} \pagestyle{empty} \begin{document} Index: src/backends/tikz/tikzbackend.h =================================================================== --- src/backends/tikz/tikzbackend.h +++ src/backends/tikz/tikzbackend.h @@ -21,7 +21,7 @@ #ifndef TIKZBACKEND_H #define TIKZBACKEND_H -#include "backend.h" +#include "backend_interface.h" #include #include @@ -35,6 +35,8 @@ class TikzBackend : public Cirkuit::Backend { Q_OBJECT + Q_PLUGIN_METADATA(IID "tikzbackend" FILE "tikzbackend.json") + Q_INTERFACES(Cirkuit::Backend) public: explicit TikzBackend( QObject* parent = 0, const QList args = QList()); ~TikzBackend(); @@ -46,8 +48,8 @@ virtual KConfigSkeleton* config() const; virtual QWidget* settingsWidget(QWidget* parent) const; - virtual KUrl helpUrl() const; - virtual KUrl examplesUrl() const; + virtual QString helpUrl() const; + virtual QString examplesUrl() const; QString id() const; Index: src/backends/tikz/tikzbackend.cpp =================================================================== --- src/backends/tikz/tikzbackend.cpp +++ src/backends/tikz/tikzbackend.cpp @@ -24,21 +24,18 @@ #include "settings.h" #include "ui_settings.h" -#include "kdebug.h" - -#include "cirkuit_macros.h" - +#include #include TikzBackend::TikzBackend( QObject* parent, const QList args ) : Cirkuit::Backend( parent ) { Q_UNUSED(args) - kDebug()<<"Creating TikzBackend"; + qDebug()<<"Creating TikzBackend"; } TikzBackend::~TikzBackend() { - kDebug()<<"Destroying TikzBackend"; + qDebug()<<"Destroying TikzBackend"; } bool TikzBackend::checkRequirements() const @@ -77,20 +74,18 @@ QStringList TikzBackend::identifyingWords() const { QStringList words; - words << "\\path" << "tikzpicture" << "\\draw" << "node"; + words << "\\path" << "tikzpicture" << "\\draw" << "node" << "smartdiagram"; return words; } -KUrl TikzBackend::examplesUrl() const +QString TikzBackend::examplesUrl() const { - return KUrl("http://www.texample.net/tikz/"); + return QString("http://www.texample.net/tikz/"); } -KUrl TikzBackend::helpUrl() const +QString TikzBackend::helpUrl() const { - return KUrl("http://tug.org/svn/texlive/trunk/Master/texmf-dist/doc/generic/pgf/pgfmanual.pdf"); + return QString("http://tug.org/svn/texlive/trunk/Master/texmf-dist/doc/generic/pgf/pgfmanual.pdf"); } - -K_EXPORT_CIRKUIT_PLUGIN(tikzbackend, TikzBackend) Index: src/backends/tikz/tikzbackend.desktop =================================================================== --- src/backends/tikz/tikzbackend.desktop +++ src/backends/tikz/tikzbackend.desktop @@ -2,24 +2,16 @@ Type=Service Icon=tikzbackend Name=TikZ -Name[bs]=TikZ Name[de]=TikZ Name[es]=TikZ Name[et]=TikZ Name[fr]=TikZ -Name[ga]=TikZ -Name[gl]=TikZ -Name[hu]=TikZ -Name[it]=TikZ Name[km]=TikZ -Name[ko]=TikZ -Name[mr]=टिक्झ Name[nds]=TikZ Name[nl]=TikZ Name[pl]=TikZ Name[pt]=TikZ Name[pt_BR]=TikZ -Name[sk]=TikZ Name[sv]=TikZ Name[uk]=TikZ Name[x-test]=xxTikZxx @@ -30,22 +22,14 @@ X-KDE-PluginInfo-License=GPL X-KDE-PluginInfo-Website=http://www.texample.net/tikz Comment=Backend for TikZ -Comment[bs]=Pozadina za TikZ -Comment[de]=Modul für TikZ Comment[es]=Motor para TikZ Comment[et]=TikZi taustaprogramm Comment[fr]=Moteur pour TikZ -Comment[gl]=Infraestrutura para TikZ. -Comment[hu]=A TikZ háttérprogramja -Comment[it]=Backend per TikZ Comment[km]=កម្មវិធី​ខាងក្រោយ​របស់ TikZ -Comment[ko]=TikZ 백엔드 -Comment[mr]=टिक्झ करिता बॅकएन्ड Comment[nl]=Backend voor TikZ Comment[pl]=Silnik dla TikZ Comment[pt]=Infra-Estrutura do TikZ Comment[pt_BR]=Infraestrutura para o TikZ -Comment[sk]=Backend pre TikZ Comment[sv]=Gränssnitt för TikZ Comment[uk]=Модуль для TikZ Comment[x-test]=xxBackend for TikZxx Index: src/backends/tikz/tikzbackend.json =================================================================== --- /dev/null +++ src/backends/tikz/tikzbackend.json @@ -0,0 +1,2 @@ +{ "Keys": ["TikzBackend"] } + Index: src/backends/tikz/tikzbackend.kcfg =================================================================== --- src/backends/tikz/tikzbackend.kcfg +++ src/backends/tikz/tikzbackend.kcfg @@ -4,11 +4,11 @@ xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > - kstandarddirs.h + QStandardPaths - KStandardDirs::locate("data", "cirkuit/templates/tikz_latex.ckt") + QUrl(QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/templates/tikz_latex.ckt")) Index: src/backends/tikz/tikzgenerator.h =================================================================== --- src/backends/tikz/tikzgenerator.h +++ src/backends/tikz/tikzgenerator.h @@ -30,7 +30,7 @@ explicit TikzGenerator(Cirkuit::Backend* backend = 0, QObject* parent = 0); virtual ~TikzGenerator(); - virtual bool convert(const Cirkuit::Format& in, const Cirkuit::Format& out); + virtual int convert(const Cirkuit::Format& in, const Cirkuit::Format& out); }; #endif // TIKZGENERATOR_H Index: src/backends/tikz/tikzgenerator.cpp =================================================================== --- src/backends/tikz/tikzgenerator.cpp +++ src/backends/tikz/tikzgenerator.cpp @@ -23,13 +23,13 @@ #include "command.h" #include "settings.h" #include "logparser.h" +#include "failcodes.h" #include - -#include -#include -#include -#include +#include +#include +//#include +//#include using namespace Cirkuit; @@ -43,15 +43,14 @@ } -bool TikzGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) +int TikzGenerator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) { // Check if the conversion can be handled by the super-class - bool done = Generator::convert(in, out); - if (done) { - return true; - } + int fail = Cirkuit::Generator::convert(in, out); + if (fail==NoFail) return NoFail; + if (fail != Fail_unimplemented_conversion) return fail; - kDebug() << "Inside the TikZ backend..."; + qDebug() << "Inside the TikZ backend..."; if (in == Format::Source) { DocumentTemplate tikzTemplate(TikzSettings::templateurl().path()); @@ -63,12 +62,15 @@ QTextStream stream(&fileout); stream << document()->text(); fileout.close(); - return true; + return NoFail; } QStringList environment = QProcess::systemEnvironment(); - // the following environment variable is needed to find boxdims.sty in the circuit maaros distribution - QString dirString = QString("TEXINPUTS=.:%1:").arg(QDir(document()->directory()).absolutePath()); + // LaTeX searches (in order) circuit_macros dir, dir that contains editor document, local dir + // The search of circuit_macros is needed to find boxdims.sty + QString dirString = QString("TEXINPUTS=%1:%2:.:").arg(QStandardPaths::locate(QStandardPaths::GenericDataLocation, + "cirkuit/circuit_macros/",QStandardPaths::LocateDirectory)).arg(QDir(document()->directory()).absolutePath()); + environment << dirString; QStringList latexArgs; @@ -78,10 +80,12 @@ latexArgs << QString("-jobname=%1").arg(tempFileInfo()->baseName()); Command* latexCmd = new Command("pdflatex", latexDoc, latexArgs); - latexCmd->setWorkingDirectory(workingDir().path()); + latexCmd->setWorkingDirectory(getWorkingDir()); latexCmd->setEnvironment(environment); latexCmd->setLogParser(new LatexLogParser); - if (!execute(latexCmd)) return false; + if (!execute(latexCmd)) return Fail_PdfLateXExec; + // check we have the pdf file in temp directory. + if (!QFileInfo(formatPath(Format::Pdf)).exists()) return Fail_PdfLateXNoOutput; return convert(Format::Pdf, out); } Index: src/circuitmacrosmanager.cpp =================================================================== --- src/circuitmacrosmanager.cpp +++ src/circuitmacrosmanager.cpp @@ -22,14 +22,15 @@ #include -#include +#include #include -#include -#include -#include -#include - +#include +//#include +//#include +#include +#include #include +#include CircuitMacrosManager::CircuitMacrosManager(): QObject() { @@ -39,8 +40,9 @@ bool CircuitMacrosManager::checkExistence() const { QStringList paths; - paths << KStandardDirs::locateLocal("data", "cirkuit/circuit_macros/libcct.m4", true) - << KStandardDirs::locate("data", "cirkuit/circuit_macros/libcct.m4"); + + paths << QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/circuit_macros", QStandardPaths::LocateDirectory) + << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "cirkuit/circuit_macros/libcct.m4", QStandardPaths::LocateFile); foreach(const QString& cm_path, paths) { @@ -54,49 +56,62 @@ void CircuitMacrosManager::downloadLatest() { - KUrl origin = KUrl("http://www.ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz"); - KUrl dest = KStandardDirs::locateLocal("data", "cirkuit/Circuit_macros.tar.gz", true); - + QUrl origin = QUrl("http://www.ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz"); + QString DestDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/cirkuit"; + QDir dir(DestDir); + if (!dir.exists()) {dir.mkpath(".");} + qDebug() << "Cirkuit macros will be saved in " << DestDir; + QUrl dest = QUrl::fromLocalFile(DestDir+"/Circuit_macros.tar.gz"); KIO::Job* getJob = KIO::file_copy(origin, dest, -1, KIO::Overwrite | KIO::HideProgressInfo); connect( getJob, SIGNAL(result(KJob*)), this, SLOT(unpackCircuitMacros()) ); } void CircuitMacrosManager::unpackCircuitMacros() { - KTar tarfile(KStandardDirs::locateLocal("data", "cirkuit/Circuit_macros.tar.gz", true)); - tarfile.open(QIODevice::ReadOnly); - + qDebug () << QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/Circuit_macros.tar.gz", QStandardPaths::LocateFile); + KTar tarfile(QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/Circuit_macros.tar.gz", QStandardPaths::LocateFile)); + bool ok = tarfile.open(QIODevice::ReadOnly); + if (!ok) {qDebug() << "Error: Circuit_macros.tar.gz not present !!";} + + QString DestDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/cirkuit/circuit_macros"; + QDir dir(DestDir); + if (!dir.exists()) {dir.mkpath(".");} + qDebug() << DestDir; const KArchiveDirectory* root = tarfile.directory(); - const KArchiveDirectory* mainDir = (KArchiveDirectory*) root->entry(root->entries().at(0)); - mainDir->copyTo(KStandardDirs::locateLocal("data", "cirkuit/circuit_macros/", true), true); - + mainDir->copyTo( DestDir, true); configureCircuitMacros(); } void CircuitMacrosManager::configureCircuitMacros() { - QString homelibFilename = KStandardDirs::locateLocal("data", "cirkuit/circuit_macros/homelib.txt", false); - QString defineString = QString("`define(`HOMELIB_',`%1')')").arg(KStandardDirs::locateLocal("data", "cirkuit/circuit_macros/", false)); - - QFile homelibFile(homelibFilename); + qDebug() << "Configuring macros ..."; + QString homelibLocation = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/cirkuit/circuit_macros"; + QDir dir(homelibLocation); + if (!dir.exists()) {dir.mkpath(".");} + + // code below from vs 0.4.3 for creating file homelib.txt in circuit_macros directory now seems to be unnecessary + /* + QFile homelibFile(homelibLocation+"/homelib.txt"); if (!homelibFile.open(QIODevice::WriteOnly | QIODevice::Text)) { return; } + + QString defineString = QString("`define(`HOMELIB_',`%1')')").arg(homelibLocation); QTextStream out(&homelibFile); out << defineString << "\n"; - homelibFile.close(); QStringList args; args << "homelib"; - KProcess configProcess; - configProcess.setProgram("make", args); - configProcess.setWorkingDirectory(KStandardDirs::locateLocal("data", "cirkuit/circuit_macros/")); - configProcess.startDetached(); - QFile::remove(KStandardDirs::locateLocal("data", "cirkuit/Circuit_macros.tar.gz", false)); - kDebug() << "Circuit macros configured"; + QProcess configProcess; + configProcess.setWorkingDirectory(QStandardPaths::locate(QStandardPaths::GenericDataLocation, "cirkuit/circuit_macros/", + QStandardPaths::LocateDirectory)); + configProcess.startDetached("make", args); +*/ + QFile::remove(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QString("cirkuit/Circuit_macros.tar.gz"), QStandardPaths::LocateFile)); + qDebug() << "Circuit macros configured"; emit(configured()); } @@ -106,25 +121,25 @@ return ""; } - QString filename = KStandardDirs::locateLocal("data", "cirkuit/circuit_macros/README", false); + QString filename = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QString("cirkuit/circuit_macros/README"), QStandardPaths::LocateFile); return findVersion(filename); } void CircuitMacrosManager::checkOnlineVersion() { - KUrl origin = KUrl("http://www.ece.uwaterloo.ca/~aplevich/Circuit_macros/README"); - KUrl dest = KStandardDirs::locateLocal("tmp", "cirkuit/README", true); + QString origin = QString("http://www.ece.uwaterloo.ca/~aplevich/Circuit_macros/README"); + QString dest = QStandardPaths::locate(QStandardPaths::TempLocation, "cirkuit/README", QStandardPaths::LocateFile); - KIO::Job* getJob = KIO::file_copy(origin, dest, -1, KIO::Overwrite | KIO::HideProgressInfo); + KIO::Job* getJob = KIO::file_copy(QUrl(origin), QUrl(dest), -1, KIO::Overwrite | KIO::HideProgressInfo); connect( getJob, SIGNAL(result(KJob*)), this, SLOT(readVersion()) ); } void CircuitMacrosManager::readVersion() { - QString onlineVersion = findVersion(KStandardDirs::locateLocal("tmp", "cirkuit/README", false)); + QString onlineVersion = findVersion(QStandardPaths::locate(QStandardPaths::TempLocation, QString("cirkuit/README"), QStandardPaths::LocateFile)); QString installVersion = installedVersion(); - kDebug() << "ONLINE version: " << onlineVersion; - kDebug() << "INSTALLED version: " << installVersion; + qDebug() << "ONLINE version: " << onlineVersion; + qDebug() << "INSTALLED version: " << installVersion; if (onlineVersion > installVersion) { emit newVersionAvailable(onlineVersion); Index: src/cirkuit.desktop =================================================================== --- src/cirkuit.desktop +++ src/cirkuit.desktop @@ -1,65 +1,41 @@ # KDE Config File [Desktop Entry] Name=Cirkuit -Name[bs]=Cirkuit Name[cs]=Cirkuit Name[de]=Cirkuit Name[es]=Cirkuit Name[et]=Cirkuit Name[fr]=Cirkuit -Name[ga]=Cirkuit -Name[gl]=Cirkuit -Name[hu]=Áramkör -Name[it]=Cirkuit Name[km]=Cirkuit -Name[ko]=Cirkuit -Name[mr]=सर्कीट Name[nds]=Cirkuit Name[nl]=Cirkuit Name[pl]=Cirkuit Name[pt]=Cirkuit Name[pt_BR]=Cirkuit -Name[sk]=Cirkuit Name[sv]=Cirkuit Name[uk]=Cirkuit Name[x-test]=xxCirkuitxx GenericName=Circuit drawer -GenericName[bs]=Crtač kola -GenericName[de]=Circuit-Zeichenprogramm GenericName[es]=Dibujar circuitos GenericName[et]=Vooluringide joonistaja GenericName[fr]=Outil de tracé de circuits -GenericName[gl]=Debuxante de circuítos -GenericName[hu]=Áramkör rajzoló -GenericName[it]=Disegnatore di circuiti GenericName[km]=កម្មវិធី​គូរ​រូប Circuit -GenericName[ko]=회로 그리기 -GenericName[mr]=सर्कीट ड्रोअर GenericName[nl]=Schema tekenprogramma GenericName[pl]=Rysownik obwodów GenericName[pt]=Desenhador de circuitos GenericName[pt_BR]=Desenho de circuitos -GenericName[sk]=Kreslič obvodov GenericName[sv]=Kretsritare GenericName[uk]=Малювання ланцюгів GenericName[x-test]=xxCircuit drawerxx Comment=A program to draw circuits and diagrams -Comment[bs]=Program za crtanje kola i dijagrama -Comment[de]=Programm für Schaltkreise und Diagramme Comment[es]=Un programa para dibujar circuitos y diagramas Comment[et]=Programm vooluringide ja skeemide joonistamiseks Comment[fr]=Un programme pour tracer des circuits et des diagrammes -Comment[gl]=Un programa para debuxar circuítos e diagramas. -Comment[hu]=Egy program áramkörök és diagramok rajzolásához -Comment[it]=Un programma per disegnare circuiti e diagrammi Comment[km]=កម្មវិធី​គូរ​រូប​សៀគ្វី និង​ដ្យាក្រាម -Comment[ko]=회로와 다이어그램을 그리는 프로그램 -Comment[mr]=सर्कीट व आकृत्या काढणारा एक कार्यक्रम Comment[nl]=Een programma om schema's en diagrammen te tekenen Comment[pl]=Program do rysowania obwodów i diagramów Comment[pt]=Um programa para desenhar circuitos e diagramas Comment[pt_BR]=Um programa para desenhar circuitos e diagramas -Comment[sk]=Program na kreslenie obvodov a diagramov Comment[sv]=Ett program för att rita kretsar och diagram Comment[uk]=Програма для малювання ланцюгів та діаграм Comment[x-test]=xxA program to draw circuits and diagramsxx @@ -69,4 +45,3 @@ Terminal=false MimeType=application/x-cirkuit; Categories=Qt;KDE;Graphics;VectorGraphics;Science; -X-DocPath=cirkuit/index.html Index: src/cirkuit.kcfg =================================================================== --- src/cirkuit.kcfg +++ src/cirkuit.kcfg @@ -4,7 +4,7 @@ xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > - kstandarddirs.h + QStandardPaths Index: src/cirkuit.notifyrc =================================================================== --- src/cirkuit.notifyrc +++ src/cirkuit.notifyrc @@ -1,69 +1,44 @@ [Global] -IconName=cirkuit Comment=Cirkuit -Comment[bs]=Cirkuit Comment[cs]=Cirkuit Comment[de]=Cirkuit Comment[es]=Cirkuit Comment[et]=Cirkuit Comment[fr]=Cirkuit -Comment[ga]=Cirkuit -Comment[gl]=Cirkuit -Comment[hu]=Áramkör -Comment[it]=Cirkuit Comment[km]=Cirkuit -Comment[ko]=Cirkuit -Comment[mr]=सर्कीट Comment[nds]=Cirkuit Comment[nl]=Cirkuit Comment[pl]=Cirkuit Comment[pt]=Cirkuit Comment[pt_BR]=Cirkuit -Comment[sk]=Cirkuit Comment[sv]=Cirkuit Comment[uk]=Cirkuit Comment[x-test]=xxCirkuitxx [Event/Preview Generated] Name=Preview generated -Name[bs]=Pregled generisan -Name[de]=Vorschau generiert Name[es]=Vista previa generada Name[et]=Eelvaatlus on loodud Name[fr]=Aperçu généré -Name[gl]=Xerouse a vista previa -Name[hu]=Előnézet előállítva -Name[it]=Anteprima creata Name[km]=​បាន​បង្កើត​​ការ​មើល​ជាមុន -Name[ko]=미리 보기 생성됨 -Name[mr]=निर्माण केलेले पूर्वावलोकन Name[nds]=Vöransicht opstellt... Name[nl]=Voorbeeld aangemaakt Name[pl]=Podgląd wygenerowany Name[pt]=Antevisão gerada Name[pt_BR]=Visualização gerada -Name[sk]=Náhľad vygenerovaný Name[sv]=Förhandsgranskning skapades Name[uk]=Створено зображення попереднього перегляду Name[x-test]=xxPreview generatedxx Comment=The preview has been generated -Comment[bs]=Pregled je upravo generisan -Comment[de]=Die Vorschau wurde generiert Comment[es]=Se ha generado la vista previa Comment[et]=Eelvaatlus on loodud Comment[fr]=L'aperçu a été généré -Comment[gl]=Xerouse a vista previa. -Comment[hu]=Az előnézet előállítva -Comment[it]=L'anteprima è stata generata Comment[km]=​បាន​បង្កើត​​ការ​មើល​ជាមុន -Comment[ko]=미리 보기가 생성됨 -Comment[mr]=पूर्वावलोकन निर्माण केलेले आहे Comment[nds]=De Vöransicht wöör opstellt... Comment[nl]=Het voorbeeld is aangemaakt Comment[pl]=Podgląd został wygenerowany Comment[pt]=A antevisão foi gerada Comment[pt_BR]=A visualização foi gerada -Comment[sk]=Náhľad bol vygenerovaný Comment[sv]=Förhandsgranskningen har skapats Comment[uk]=Завершено створення зображення попереднього перегляду Comment[x-test]=xxThe preview has been generatedxx @@ -71,97 +46,65 @@ [Event/Download progress] Name=Download progress -Name[bs]=Napredak preuzimanja Name[de]=Fortschritt des Herunterladens Name[es]=Progreso de la descarga Name[et]=Allalaadimise edenemine Name[fr]=Progression du téléchargement -Name[ga]=Dul chun cinn an íosluchtaithe -Name[gl]=Progreso da descarga -Name[hu]=Letöltési folyamat -Name[it]=Avanzamento dello scaricamento Name[km]=វឌ្ឍនភាព​ទាញ​យក -Name[ko]=다운로드 진행 -Name[mr]=डाउनलोड प्रगती Name[nds]=Daalladen-Vörankamen Name[nl]=Downloadvoortgang Name[pl]=Postęp pobierania Name[pt]=Transferência em curso Name[pt_BR]=Progresso do download -Name[sk]=Ukazovateľ priebehu Name[sv]=Nerladdning pågår -Name[uk]=Поступ отримання +Name[uk]=Поступ звантаження Name[x-test]=xxDownload progressxx Comment=Download progress -Comment[bs]=Napredak preuzimanja Comment[de]=Fortschritt des Herunterladens Comment[es]=Progreso de la descarga Comment[et]=Allalaadimise edenemine Comment[fr]=Progression du téléchargement -Comment[ga]=Dul chun cinn an íosluchtaithe -Comment[gl]=Progreso da descarga. -Comment[hu]=Letöltési folyamat -Comment[it]=Avanzamento dello scaricamento Comment[km]=វឌ្ឍនភាព​ទាញ​យក -Comment[ko]=다운로드 진행 -Comment[mr]=डाउनलोड प्रगती Comment[nds]=Daalladen-Vörankamen Comment[nl]=Downloadvoortgang Comment[pl]=Postęp pobierania Comment[pt]=Transferência em curso Comment[pt_BR]=Progresso do download -Comment[sk]=Ukazovateľ priebehu Comment[sv]=Nerladdning pågår -Comment[uk]=Поступ отримання +Comment[uk]=Поступ звантаження Comment[x-test]=xxDownload progressxx Action=Popup [Event/Download finished] Name=Download finished -Name[bs]=Preuzimanje završeno -Name[de]=Download abgeschlossen +Name[de]=Herunterladen abgeschlossen Name[es]=Descarga terminada Name[et]=Allalaadimine lõpetatud Name[fr]=Téléchargement terminé -Name[ga]=Íosluchtú críochnaithe -Name[gl]=Rematou a descarga -Name[hu]=Letöltés befejezve -Name[it]=Scaricamento terminato Name[km]=បាន​បញ្ចប់​ការ​ទាញ​យក -Name[ko]=다운로드 완료됨 -Name[mr]=डाउनलोड संपले Name[nds]=Daalladen afslaten Name[nl]=Download voltooid Name[pl]=Pobieranie zakończone Name[pt]=Transferência terminada Name[pt_BR]=Download concluído -Name[sk]=Sťahovanie ukončené Name[sv]=Nerladdning klar Name[ug]=چۈشۈرۈش تاماملاندى -Name[uk]=Отримання завершено +Name[uk]=Звантаження завершено Name[x-test]=xxDownload finishedxx Comment=Download finished -Comment[bs]=Preuzimanje završeno Comment[de]=Herunterladen abgeschlossen Comment[es]=La descarga ha terminado Comment[et]=Allalaadimine lõpetatud Comment[fr]=Téléchargement terminé -Comment[ga]=Íosluchtú críochnaithe -Comment[gl]=Rematou a descarga. -Comment[hu]=Letöltés befejezve -Comment[it]=Scaricamento terminato Comment[km]=បាន​បញ្ចប់​ការ​ទាញ​យក -Comment[ko]=다운로드 완료됨 -Comment[mr]=डाउनलोड संपले Comment[nds]=Daalladen afslaten Comment[nl]=Download voltooid Comment[pl]=Pobieranie zakończone Comment[pt]=Transferência terminada Comment[pt_BR]=Download concluído -Comment[sk]=Sťahovanie ukončené Comment[sv]=Nerladdning klar Comment[ug]=چۈشۈرۈش تاماملاندى -Comment[uk]=Отримання завершено +Comment[uk]=Звантаження завершено Comment[x-test]=xxDownload finishedxx Action=Popup Index: src/cirkuit_general_settings.ui =================================================================== --- src/cirkuit_general_settings.ui +++ src/cirkuit_general_settings.ui @@ -34,7 +34,7 @@ - + 0 @@ -159,9 +159,9 @@ - KComboBox + QComboBox QComboBox -
kcombobox.h
+
QComboBox
Index: src/cirkuitconfig.h =================================================================== --- /dev/null +++ src/cirkuitconfig.h @@ -0,0 +1 @@ +#define VERSION "0.5.0" Index: src/cirkuitsettings.kcfgc =================================================================== --- src/cirkuitsettings.kcfgc +++ src/cirkuitsettings.kcfgc @@ -1,4 +1,4 @@ -File=cirkuit.kcfg +File=cirkuit.kcfg ClassName=CirkuitSettings Singleton=true -Mutators=true \ No newline at end of file +Mutators=true Index: src/cirkuitui.rc =================================================================== --- src/cirkuitui.rc +++ src/cirkuitui.rc @@ -7,10 +7,12 @@ + +<--> Index: src/config.h.cmake =================================================================== --- src/config.h.cmake +++ /dev/null @@ -1,8 +0,0 @@ -#cmakedefine ENABLE_KMESSAGEWIDGET - -#ifdef ENABLE_KMESSAGEWIDGET - #define ENABLE_KMESSAGEWIDGET -#else - #undef ENABLE_KMESSAGEWIDGET -#endif - Index: src/examples/CMakeLists.txt =================================================================== --- /dev/null +++ src/examples/CMakeLists.txt @@ -0,0 +1,8 @@ +install( FILES colpitts_tikz.tex + flowdiag_tikz.tex + dice-pstricks.tex + simple-circuitmacros.m4 + cap-circuitmacros.m4 + sinewave.gp + + DESTINATION ${DATA_INSTALL_DIR}/cirkuit/examples ) Index: src/examples/cap-circuitmacros.m4 =================================================================== --- /dev/null +++ src/examples/cap-circuitmacros.m4 @@ -0,0 +1,76 @@ +% cap-circuitmacros.m4 +.PS + +gen_init +elen = 0.5 +linethick_(1.0) + +darrow_init + +define(`black2',`0.0, 0.0, 0.0') +define(`grey',`0.9, 0.9, 0.9') +define(`grey4',`0.3, 0.3, 0.5') +define(`coord',`(elen*(`$1'),elen*(`$2'))') + + box at coord(0, 0.6) ht 0.3*elen wid 3*elen fill 0.7 + h = 0.3 + + rgbfill(grey, line from coord(1.5,0.0) to coord(-1.5,0.0) \ + to coord(-1.5,h) \ + to coord(1.5,h) \ + to coord(1.5,0.0) + ) + +thinlines_ +box at coord(0, 0.15) ht 0.3*elen wid 1.42*elen fill 1.0 +box at coord(0, 0.15) ht 0.3*elen wid 1.36*elen fill 0.7 +thicklines_ +line from coord(1.5,0.0) to coord(-1.5,0.0) +line from coord(1.5,h) to coord(-1.5,h) + +thinlines_ +box at coord(0, 0.35) ht 0.05*elen wid 4*elen fill 0.3 +thicklines_ +box at coord(0, 0.6) ht 0.3*elen wid 3*elen fill 0.7 +box at coord(0, 1.25) ht 1.0*elen wid 0.8*elen fill 0.7 + +rgbdraw(grey4, arrow from coord(2.3, 1.0) to coord(1.8, 0.38) ) +rgbdraw(grey4, arrow from coord(1.1, -0.5) to coord(0.7, -0.02) ) +setrgb(grey4) + +darrow(from (0.6*elen,1.41*elen) down_ 0.2,,t,0.1*elen,,,->) +darrow(from (0.6*elen,1.4*elen) up_ 0.2,,t,0.1*elen,,,->) + +setrgb(black2) + +move to coord(-1.2,0.0) +line thick 2.0*elen to coord(-1.2,-0.2) +line thick 2.0*elen to coord(-1.8,-0.2) +dot +move left_ 0.5*elen +"Shield" + +move to coord(-1.0,0.75) +line thick 2.0*elen to coord(-1.0,1.4) +line thick 2.0*elen to coord(-1.4,1.4) +dot + +move left_ 0.98*elen +"\lq Low\rq \,terminal" +move to coord(0.0,-0.0) +line thick 2.0*elen to coord(0.0,-0.7) +line thick 2.0*elen to coord(-0.4,-0.7) +dot + +move left_ 0.98*elen +"\lq High\rq \,terminal" + +move to coord(2.95,1.0) +"Specimen" + +move to coord(1.7,-0.5) +"Insulator" + + +.PE') + Index: src/examples/colpitts_tikz.tex =================================================================== --- /dev/null +++ src/examples/colpitts_tikz.tex @@ -0,0 +1,24 @@ +% Colpitts oscillator, with npn transistor. Author: Ramón Jaramillo +% http://texample.net/tikz/examples/collpits/ +\begin{tikzpicture} +\draw +% Draw npn transistor +(0,0) node[npn](npn1){} +% Making connections from transistor using relative coordinates +(npn1.E) node[right=7mm, above=5mm]{2N2222} % Labelling the transistor +(npn1.B) -- ++(-1,0) to [R,l_=10<\kilo\ohm>,*-*] ++(0,-3) +(npn1.B) -- ++(-3,0) to [C,l_=100<\nano\farad>] ++(0,-3) node(gnd1){} +(npn1.E) to [R,l_=10<\kilo\ohm>,*-*] (0,-3) +(npn1.E) -- ++(2,0) to [C,l=10<\pico\farad>,*-*] (2,-3) +(npn1.B) -- ++(-1,0) to [R,l_=10<\kilo\ohm>,*-] ++(0,3) node(con1){} +(npn1.C) to [L,l_=150<\micro\henry>,*-] (0,3) +(npn1.C) -- ++(2,0) to [C,l=10<\pico\farad>,*-*] ++(0,-1.5) +% Drawing shorts and ground connection +(-1,3)to[short,*-o] (-1,4) node[right]{$V_{DD}=6 VDC$} % Power supply +% Output sinusoidal waveform at approximately 50 MHz +(npn1.C) -- ++(4,0) to [short,-o] + ++(0,0) node[right]{$V_o (\approx \SI{50}{\MHz})$} +(0,-3) node[ground]{}% Define this node as ground +(gnd1) ++(0,0) to[short,-o] ++(7.85,0) + (con1)to[short] ++(1.85,0) ; +\end{tikzpicture} Index: src/examples/dice-pstricks.tex =================================================================== --- /dev/null +++ src/examples/dice-pstricks.tex @@ -0,0 +1,30 @@ +%% +%% A DANTE-Edition example +%% +%% Example 23-02-5 on page 348. +%% +%% Copyright (C) 2011 Herbert Voss +%% +%% It may be distributed and/or modified under the conditions +%% of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% +%% See http://www.latex-project.org/lppl.txt for details. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% Modified for use with Cirkuit software. + +\setlength\textwidth{375.57637pt} +\setlength\parindent{0pt} + +\begin{pspicture}(-1.0,-0.8)(\linewidth,2.0) + \psset{fillstyle=solid,fillcolor=yellow,RandomFaces=true} + \rput(0,0){\PstDie[viewpoint=1 -5 1]}\rput(1.5,0){\PstDie[viewpoint=1 -3 1]} + \rput(3,-0.5){\PstDie[unit=1.5,dotscale=2,viewpoint=1 -1 1]} + \rput(4.5,0){\PstDie[viewpoint=1 -0.3 1]}\rput(6,0){\PstDie[viewpoint=1 0.3 1]} + \rput(7.5,0){\PstCube[viewpoint=1 1 1,fillcolor=magenta]{2}{1}{1}} + \rput(9,0){\PstCube[viewpoint=1 3 3,fillcolor=cyan]{2}{1}{1}} +\end{pspicture} Index: src/examples/flowdiag_tikz.tex =================================================================== --- /dev/null +++ src/examples/flowdiag_tikz.tex @@ -0,0 +1,5 @@ +% Author: Stefan Kottwitz +% http://www.texample.net/tikz/examples/smart-flowchart/ +% tikz +\smartdiagram[flow diagram:horizontal]{Edit, + \LaTeX, Bib\TeX/ biber, make\-index, \LaTeX} Index: src/examples/simple-circuitmacros.m4 =================================================================== --- /dev/null +++ src/examples/simple-circuitmacros.m4 @@ -0,0 +1,23 @@ +% simple-circuitmacros.m4 +% +% From "M4 Macros for Electric Circuit Diagrams in LaTeX Documents" (author Dwight Aplevich). +% +.PS # Pic input begins with .PS +cct_init # Set defaults + +elen = 0.75 +Origin: Here + source(up_ elen); llabel(-,v_s,+) + resistor(right_ elen); rlabel(,R,) + dot + { + capacitor(down_ to (Here,Origin)) #(Here,Origin) = (Here.x,Origin.y) + rlabel(+,v,-); llabel(,C,) + dot + } + line right_ elen*2/3 + inductor(down_ Here.y-Origin.y); rlabel(,L,); b_current(i) + line to Origin + +.PE # Pic input ends with .PE + Index: src/examples/sinewave.gp =================================================================== --- /dev/null +++ src/examples/sinewave.gp @@ -0,0 +1,43 @@ +# From http://psy.swansea.ac.uk/staff/carter/gnuplot/gnuplot_sine.htm + +set terminal lua tikz originreset + + +# Clear any previous plots. +clear + +# Reset all plotting variables to their default values. +reset + +# We don't need a key (or legend) for this simple graph. +set key off + +# Set the title for the graph. +set title "Sine against Phase" + +# We want the graph to cover a full sine wave. +set xrange [0:6.28] + +# Set the label for the X axis. +set xlabel "Phase (radians) [Greek symbols not working?]" + +# Set the tick-marks for the X-axis. Use the Postscript +# symbol for Pi. +set xtics ("0" 0,"0.5{/Symbol p}" pi/2, "{/Symbol p}" pi, \ + "1.5{/Symbol p}" 1.5*pi, "2{/Symbol p}" 2*pi) + +# Draw a horizontal centreline. +set xzeroaxis + +# Pure sine wave amplitude ranges from +1 to -1. +set yrange [-1:1] + +# No tick-marks are needed for the Y-axis . +unset ytics + +# The wxt terminal is the default, but we need to turn on +# the enhanced feature in order to get the Greek symbols. +#set terminal wxt enhanced + +# Plot the curve. +plot sin(x) Index: src/generatorthread.h =================================================================== --- src/generatorthread.h +++ src/generatorthread.h @@ -59,7 +59,7 @@ void error(const QString& appname, const QString& msg); void output(const QString& appname, const QString& msg); - void fail(); + void fail(const int); void success(); void backendChanged(QString); Index: src/generatorthread.cpp =================================================================== --- src/generatorthread.cpp +++ src/generatorthread.cpp @@ -19,14 +19,14 @@ ***************************************************************************/ #include "generatorthread.h" -#include "backend.h" +#include "backend_interface.h" #include "generator.h" #include "document.h" #include "command.h" #include "cirkuitsettings.h" #include "renderthread.h" - -#include +#include "failcodes.h" +#include #include using namespace Cirkuit; @@ -52,12 +52,14 @@ } if (!m_backend) { - kError() << i18n("No backend could be selected!"); + qCritical() << i18n("No backend could be selected!"); return; } else { - kDebug() << m_backend->id(); - kDebug() << m_backend->name(); - kDebug() << m_backend->description(); + qDebug() << "GENERATOR THREAD STARTED"; + qDebug() << "m_backend->id()" << m_backend->id(); + qDebug() << "m_backend->name()" << m_backend->name(); + qDebug() << "m_backend->description()" << m_backend->description(); + qDebug() << "m_input" << m_input.extension() << "m_output" << m_output.extension(); } Cirkuit::Generator* gen = m_backend->generator(); @@ -65,11 +67,15 @@ connect(gen, SIGNAL(error(QString,QString)), this, SIGNAL(error(QString,QString))); connect(gen, SIGNAL(error(QString,QString)), this, SLOT(quit())); connect(gen, SIGNAL(output(QString,QString)), this, SIGNAL(output(QString,QString))); - connect(gen, SIGNAL(fail()), this, SIGNAL(fail())); + connect(gen, SIGNAL(fail(const int)), this, SIGNAL(fail(const int))); gen->setDocument(m_doc); gen->setResolution(CirkuitSettings::resolutionPpm()); - if (!gen->convert(m_input, m_output)) { - emit fail(); + + int fcode = gen->convert(m_input, m_output); + + if (fcode!=NoFail) { + qDebug() << "Conversion failed. Emit(" << fcode << ")"; + emit fail(fcode); return; } Index: src/lib/CMakeLists.txt =================================================================== --- src/lib/CMakeLists.txt +++ src/lib/CMakeLists.txt @@ -1,30 +1,33 @@ -set(GENERIC_LIB_VERSION "1.0.0") -set(GENERIC_LIB_SOVERSION "1") +set(GENERIC_LIB_VERSION "2.0.0") +set(GENERIC_LIB_SOVERSION "2") + +set (CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) set ( cirkuit_LIB_SRCS - backend.cpp + backend_interface.cpp command.cpp document.cpp generator.cpp format.cpp documenttemplate.cpp logparser.cpp + failcodes.cpp ) set( cirkuit_LIB_HDRS cirkuit_export.h ) -kde4_add_library( cirkuitlibs SHARED ${cirkuit_LIB_SRCS} ) +add_library( cirkuitlibs SHARED ${cirkuit_LIB_SRCS} ) -target_link_libraries( cirkuitlibs - ${KDE4_KDECORE_LIBS} ${KDE4_KTEXTEDITOR_LIBS} -) set_target_properties( cirkuitlibs - PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} + PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) +target_link_libraries( cirkuitlibs Qt5::Core Qt5::Widgets KF5::TextEditor KF5::TextWidgets KF5::Parts KF5::Service KF5::KIOCore) + install( TARGETS cirkuitlibs ${INSTALL_TARGETS_DEFAULT_ARGS} ) install( FILES cirkuit_backend.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) Index: src/lib/backend_interface.h =================================================================== --- src/lib/backend_interface.h +++ src/lib/backend_interface.h @@ -17,8 +17,8 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef BACKEND_H -#define BACKEND_H +#ifndef BACKENDINT_H +#define BACKENDINT_H #include "cirkuit_export.h" @@ -26,7 +26,7 @@ #include class KConfigSkeletonItem; -class KUrl; +class QUrl; class KConfigSkeleton; namespace Cirkuit @@ -107,20 +107,20 @@ * Returns the Url of the Homepage for the Backend * @return the url */ - KUrl url() const; + QUrl url() const; /** * Returns an Url pointing to the Help of the Backend * The method should be overwritten by all Backends(who have an online help) * @return Url of the help */ - virtual KUrl helpUrl() const; + virtual QString helpUrl() const; /** * Returns an Url pointing to the Examples of the Backend * The method should be overwritten by all Backends(who have an online help) * @return Url of the examples */ - virtual KUrl examplesUrl() const; + virtual QString examplesUrl() const; /** * Returns a longer description of the Backend, e.g. purpose, strengths etc. @@ -195,6 +195,10 @@ BackendPrivate* d; }; -} +} // namespace -#endif // BACKEND_H +#define Backend_iid "cirkuit.CirkuitBackend" + +Q_DECLARE_INTERFACE(Cirkuit::Backend, Backend_iid) + +#endif // BACKENDINT_H Index: src/lib/backend_interface.cpp =================================================================== --- src/lib/backend_interface.cpp +++ src/lib/backend_interface.cpp @@ -17,24 +17,26 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "backend.h" +#include "backend_interface.h" // plugins = backends #include "document.h" #include -#include -#include +#include +#include #include #include #include +#include #include +#include class Cirkuit::BackendPrivate { public: QString name; QString comment; QString icon; - KUrl url; + QUrl url; }; using namespace Cirkuit; @@ -76,19 +78,19 @@ return d->icon; } -KUrl Backend::url() const +QUrl Backend::url() const { return d->url; } -KUrl Backend::helpUrl() const +QString Backend::helpUrl() const { - return KUrl(); + return QString(); } -KUrl Backend::examplesUrl() const +QString Backend::examplesUrl() const { - return KUrl(); + return QString(); } bool Backend::operator==(const QString& rhs) const @@ -140,29 +142,35 @@ KServiceTypeTrader* trader = KServiceTypeTrader::self(); services = trader->query("Cirkuit/Backend"); - - KService::List::const_iterator iter; + if (services.length() == 0) + { + qDebug() << "Plugins (Cirkuit/Backend services) not found"; + } + + + KService::List::iterator iter; // changed from const_iterator 2018 + QDir pluginsDir(BACKEND_INSTALL_DIR); for (iter = services.begin(); iter < services.end(); ++iter) { - QString error; KService::Ptr service = *iter; - - KPluginFactory *factory = KPluginLoader(service->library()).factory(); - if (!factory) { - kError(5001) << "error: " << error; + QString libname(service->library()); + QPluginLoader loader(pluginsDir.absoluteFilePath(libname)); + QObject *obj = loader.instance(); + if (!obj) { + qDebug() << "Error loading" << libname << loader.errorString(); continue; } - - Backend* backend = factory->create(0); + + Backend* backend = qobject_cast(obj); if (!backend) { - kDebug() << "error: " << error; + qCritical() << "Error: Failed to create backend for" << libname; continue; } - + KPluginInfo info(service); backend->d->name = info.name(); backend->d->comment = info.comment(); backend->d->icon = info.icon(); - backend->d->url = info.website(); + backend->d->url = QUrl::fromLocalFile(info.website()); backendCache << backend; } return backendCache; @@ -220,13 +228,13 @@ float best = 0.0; foreach (Backend* b, availableBackends()) { float index = b->identifyIndex(doc); - kDebug() << "Identify index for backend " << b->name() << " = " << index; + qDebug() << "Identify index for backend " << b->name() << " = " << index; if (index > best) { bb = b; best = index; } } - kDebug() << "And the winner is ... " << bb->name(); + qDebug() << "And the winner is ... " << bb->name(); return bb; } Index: src/lib/cirkuit_backend.desktop =================================================================== --- src/lib/cirkuit_backend.desktop +++ src/lib/cirkuit_backend.desktop @@ -2,22 +2,14 @@ Type=ServiceType X-KDE-ServiceType=Cirkuit/Backend Comment=A Backend for Cirkuit -Comment[bs]=Pozadina za Cirkuit -Comment[de]=Ein Modul für Cirkuit Comment[es]=Un motor para Cirkuit Comment[et]=Cirkuiti taustaprogramm Comment[fr]=Un moteur pour Cirkuit -Comment[gl]=Unha infraestrutura para Cirkuit. -Comment[hu]=A Cirkuit háttérprogramja -Comment[it]=Un backend per Cirkuit Comment[km]=កម្មវិធី​ខាងក្រោយ​របស់ Cirkuit -Comment[ko]=Cirkuit 백엔드 -Comment[mr]=सर्कीट करिता बॅकएन्ड Comment[nl]=Een backend voor Cirkuit Comment[pl]=Silnik dla Cirkuit Comment[pt]=Uma infra-estrutura para o Cirkuit Comment[pt_BR]=Uma infraestrutura para o Cirkuit -Comment[sk]=Backend pre Cirkuit Comment[sv]=Ett gränssnitt för Cirkuit Comment[uk]=Модуль для Cirkuit Comment[x-test]=xxA Backend for Cirkuitxx Index: src/lib/cirkuit_export.h =================================================================== --- src/lib/cirkuit_export.h +++ src/lib/cirkuit_export.h @@ -21,16 +21,17 @@ #ifndef CIRKUIT_EXPORT_H #define CIRKUIT_EXPORT_H -// needed for KDE_EXPORT and KDE_IMPORT macros -#include +// needed for EXPORT and IMPORT macros +//#include +#include #ifndef CIRKUIT_EXPORT # if defined(MAKE_CIRKUITLIBS_LIB) // We are building this library -# define CIRKUIT_EXPORT KDE_EXPORT + #define CIRKUIT_EXPORT Q_DECL_EXPORT # else // We are using this library -# define CIRKUIT_EXPORT KDE_IMPORT + #define CIRKUIT_EXPORT Q_DECL_IMPORT # endif #endif Index: src/lib/cirkuit_macros.h =================================================================== --- src/lib/cirkuit_macros.h +++ /dev/null @@ -1,37 +0,0 @@ -/*************************************************************************** -* Copyright (C) 2011 by Matteo Agostinelli * -* agostinelli@gmail.com * -* * -* 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 CIRKUIT_MACROS_H -#define CIRKUIT_MACROS_H - -#include -#include -#include - -#define CIRKUIT_VERSION 1 - -/** - Exports Backend plugin. -*/ -#define K_EXPORT_CIRKUIT_PLUGIN(libname, classname) \ - K_PLUGIN_FACTORY(factory, registerPlugin();) \ - K_EXPORT_PLUGIN(factory("cirkuit_" #libname)) \ - K_EXPORT_PLUGIN_VERSION(CIRKUIT_VERSION) - -#endif /* CIRKUIT_MACROS_H */ Index: src/lib/command.cpp =================================================================== --- src/lib/command.cpp +++ src/lib/command.cpp @@ -24,9 +24,9 @@ #include #include #include -#include +#include #include -#include +#include using namespace Cirkuit; @@ -98,7 +98,8 @@ if (!args.isEmpty()) setArgs(args); if (!checkExistence()) { - kError() << "Program not found!!"; + //kError(5001) << "error: " << error() << "Program not found!!"; + qCritical() << "error (log 5001): " << error() << "Program not found!!"; return false; } @@ -129,7 +130,7 @@ bool Command::checkExistence() const { - return !KStandardDirs::findExe(d->name).isEmpty(); + return !QStandardPaths::findExecutable(d->name).isEmpty(); } QString Command::stdError() const @@ -144,7 +145,7 @@ bool Command::checkExistence(const QString& name) { - return !KStandardDirs::findExe(name).isEmpty(); + return !QStandardPaths::findExecutable(name).isEmpty(); } bool Command::parseLog() Index: src/lib/document.h =================================================================== --- src/lib/document.h +++ src/lib/document.h @@ -24,6 +24,8 @@ #include "cirkuit_export.h" #include +#include +#include namespace Cirkuit { @@ -53,7 +55,7 @@ }; /** - * The Document class represent a document of the text editor. + * The Document class represents a document of the text editor. * The creation of the class is managed by the Kate Part, therefore * the constructor should not be called directly. For the same reason * a separate DocumentSettings class has been added to personalize @@ -63,6 +65,7 @@ * @author Matteo Agostinelli */ class CIRKUIT_EXPORT Document : public KTextEditor::Document +//class CIRKUIT_EXPORT Document : public KTextEditor::Editor { Q_OBJECT public: Index: src/lib/document.cpp =================================================================== --- src/lib/document.cpp +++ src/lib/document.cpp @@ -19,7 +19,7 @@ ***************************************************************************/ #include "document.h" -#include "backend.h" +#include "backend_interface.h" using namespace Cirkuit; @@ -33,7 +33,8 @@ DocumentSettings* settings; }; -Cirkuit::Document::Document(QObject* parent): KTextEditor::Document(parent) +//Cirkuit::Document::Document(QObject* parent): KTextEditor::Document(parent) // as it was +Cirkuit::Document::Document(QObject* parent): KTextEditor::Document((KTextEditor::DocumentPrivate*)(d), parent) // Changed 2018 { } @@ -44,7 +45,7 @@ QString Document::directory() const { - return url().directory(); + return url().toString(QUrl::RemoveFilename | QUrl::StripTrailingSlash); } int Document::initialLineNumber() const Index: src/lib/documenttemplate.h =================================================================== --- src/lib/documenttemplate.h +++ src/lib/documenttemplate.h @@ -25,7 +25,7 @@ #include -#include +#include namespace Cirkuit { @@ -43,7 +43,7 @@ * Default constructor. * @param path is the path of the template file */ - explicit DocumentTemplate(const KUrl& path, QObject* parent = 0); + explicit DocumentTemplate(const QString& path, QObject* parent = 0); ~DocumentTemplate(); /** * Inserts the code into the template. The point of insertion @@ -54,9 +54,9 @@ */ QString insert(const QString& code, const QString& keyword = "%%source%%"); - KUrl path() const; + QString getDocFnPath() const; // filename and path - QString name() const; + QString getDocFn() const; bool operator==(const DocumentTemplate& rhs) const; Index: src/lib/documenttemplate.cpp =================================================================== --- src/lib/documenttemplate.cpp +++ src/lib/documenttemplate.cpp @@ -23,23 +23,23 @@ #include #include -#include -#include -#include +#include +#include #include + using namespace Cirkuit; class Cirkuit::DocumentTemplatePrivate { public: - KUrl path; + QString fnpath; QString backend; }; -DocumentTemplate::DocumentTemplate(const KUrl& path, QObject* parent): QObject(parent), d(new DocumentTemplatePrivate) +DocumentTemplate::DocumentTemplate(const QString& fnpath, QObject* parent): QObject(parent), d(new DocumentTemplatePrivate) { - d->path = path; + d->fnpath = fnpath; readBackend(); } @@ -48,16 +48,16 @@ delete d; } -KUrl DocumentTemplate::path() const +QString DocumentTemplate::getDocFnPath() const { - return d->path; + return QString( d->fnpath); } void DocumentTemplate::readBackend() const { d->backend.clear(); - QFile file(d->path.path()); + QFile file(d->fnpath); file.open(QIODevice::ReadOnly); QTextStream stream(&file); @@ -76,14 +76,14 @@ return d->backend; } -QString DocumentTemplate::name() const +QString DocumentTemplate::getDocFn() const { - return d->path.fileName(); + return QFileInfo(d->fnpath).fileName(); } QString DocumentTemplate::insert(const QString& code, const QString& keyword) { - QFile file(d->path.path()); + QFile file(d->fnpath); file.open(QIODevice::ReadOnly); QTextStream stream(&file); QString output = stream.readAll().replace(keyword, code, Qt::CaseInsensitive); @@ -93,7 +93,7 @@ bool DocumentTemplate::operator==(const Cirkuit::DocumentTemplate& rhs) const { - return this->path().fileName() == rhs.path().fileName(); + return QFileInfo(d->fnpath).fileName() == rhs.getDocFn(); } static QList templateCache = QList(); @@ -144,16 +144,21 @@ void TemplateManager::scanTemplates() { + qDebug() << "SCANNING TEMPLATES"; templateCache.clear(); QDir templates; DocumentTemplate* t; - QStringList dirs = KGlobal::dirs()->findDirs("appdata", "templates"); - + QStringList dirs; + + // Preferred location for templates is ~/.local/share/cirkuit/templates, but also look in /usr/local/share/cirkuit/templates + dirs << QStandardPaths::locateAll(QStandardPaths::AppDataLocation, "templates", QStandardPaths::LocateDirectory) + << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "templates", QStandardPaths::LocateDirectory); + for(QStringList::iterator i = dirs.begin(); i != dirs.end(); ++i) { templates = QDir(*i); for (uint j = 0; j < templates.count(); ++j) { - KUrl fileUrl(templates.path() + '/' + templates[j]); + QString fileUrl(templates.path() + '/' + templates[j]); t = new DocumentTemplate(fileUrl); if (t->backend().isEmpty() || checkDuplicate(t)) { Index: src/lib/failcodes.h =================================================================== --- /dev/null +++ src/lib/failcodes.h @@ -0,0 +1,31 @@ +#ifndef FAILCODES_H +#define FAILCODES_H + + enum FailCode { + NoFail = 0, + Fail_LateXExec = 1, + Fail_PdfLateXExec = 2, + Fail_LateXNoOutput = 3, + Fail_PdfLateXNoOutput = 4, + Fail_m4 = 5, + Fail_dpic = 6, + Fail_gpic = 7, + Fail_pic = 8, + Fail_dvips = 9, + Fail_epstool = 10, + Fail_ps2epsi = 11, + Fail_ps2pdf = 12, + Fail_ps2ps = 13, + Fail_epstopdf = 14, + Fail_pdf2svg = 15, + Fail_poppler_pdftoppm = 16, + Fail_pdftops = 17, + Fail_imagemagick_convert = 18, + Fail_gnuplot = 19, + Fail_unimplemented_conversion = 20 + }; + + +const char* GetErrorString(int f); + +#endif // FAILCODES_H Index: src/lib/failcodes.cpp =================================================================== --- /dev/null +++ src/lib/failcodes.cpp @@ -0,0 +1,30 @@ +#include "failcodes.h" + +const char* GetErrorString(int f) +{ + switch (f) { + case NoFail : return "No failure"; + case Fail_LateXExec : return "Error: latex failed to execute. Check log for syntax errors"; + case Fail_PdfLateXExec : return "Error: pdflatex failed to execute. Check log for syntax errors"; + case Fail_LateXNoOutput : return "Error: latex produced no output. Check log for syntax errors"; + case Fail_PdfLateXNoOutput : return "Pdflatex produced no output. Check log for syntax errors"; + case Fail_m4 : return "Error: m4 failed to execute. Is it installed?"; + case Fail_dpic : return "Error: dpic failed to execute. Check log for syntax errors"; + case Fail_gpic : return "Error: gpic -t failed to execute. Check log for syntax errors"; + case Fail_pic : return "Error: gpic -t failed to execute. Check log for syntax errors"; + case Fail_dvips : return "Error: dvips failed to execute. Is it installed?"; + case Fail_epstool : return "Error: epstool failed to execute. Nothing to draw?"; + case Fail_ps2epsi : return "Error: ps2epsi failed to execute. Is it installed?"; + case Fail_ps2pdf : return "Error: ps2pdf failed to execute. Is it installed?"; + case Fail_ps2ps : return "Error: ps2ps failed to execute. Is it installed?"; + case Fail_epstopdf : return "Error: epstopdf failed to execute. Nothing to draw?"; + case Fail_pdf2svg : return "Error: pdf2svg failed to execute. Is it installed?"; + case Fail_poppler_pdftoppm : return "Error: pdftoppm failed to execute. Is Poppler-Qt5 installed?"; + case Fail_pdftops : return "Error: pdftops failed to execute. Is it installed?"; + case Fail_imagemagick_convert : return "Convert failed to execute. Is ImageMagick installed?"; + case Fail_gnuplot : return "Error: gnuplot failed to execute. Check log for syntax errors"; + case Fail_unimplemented_conversion : return "Internal error: Unimplemented conversion"; + default : return "Unrecognised error code"; + }; + return "Never returned"; +}; Index: src/lib/format.h =================================================================== --- src/lib/format.h +++ src/lib/format.h @@ -23,7 +23,7 @@ #include "cirkuit_export.h" #include -#include +//#include namespace Cirkuit { class FormatPrivate; @@ -48,6 +48,7 @@ Ppm, Gif, Tex, + Html, Unknown }; @@ -79,7 +80,7 @@ * @param mime the mime type * @return the corresponding format */ - static Format fromMimeType(KMimeType::Ptr mime); + //static Format fromMimeType(QMimeType mime); private: FormatPrivate* d; }; Index: src/lib/format.cpp =================================================================== --- src/lib/format.cpp +++ src/lib/format.cpp @@ -115,13 +115,11 @@ return Format(Gif); } else if (extension.contains("tex")) { return Format(Tex); + } else if (extension.contains("html")) { + return Format(Html); } return Format(Unknown); } -Format Format::fromMimeType(KMimeType::Ptr mime) -{ - return Format::fromExtension(mime->mainExtension()); -} Index: src/lib/generator.h =================================================================== --- src/lib/generator.h +++ src/lib/generator.h @@ -23,11 +23,11 @@ #include "cirkuit_export.h" #include "format.h" - +#include #include class QFileInfo; -class KTemporaryFile; +class QTemporaryFile; namespace Cirkuit { @@ -64,9 +64,12 @@ /** * This function returns the temporary working directory where all the * conversions will take place. - * @return the url of the working directory + * The directory is created if it does not exist. + * @return the absolute path of working directory as String. */ - static KUrl workingDir(); + bool createWorkingDir() const; // create working dir. Return true if successful. + + QString getWorkingDir() const; /** * Check if a format is present in the working directory @@ -102,14 +105,14 @@ * @param output the output format * @return true if the operation is successful */ - virtual bool convert(const Format& input, const Format& output); + virtual int convert(const Format& input, const Format& output); /** * Similar to convert, but the starting point is the source code defined in the document * @param doc the document holding the source code * @param output the output format * @return true if the operation is successful */ - virtual bool generate(Document* doc, const Format& output = Format::Pdf); + virtual int generate(Document* doc, const Format& output = Format::Pdf); /** * Sets the current document @@ -143,11 +146,10 @@ /** * Signal emitted if the generation failed */ - void fail(); + void fail(const int); /** * Signal emitted when an error occurs - * @param appname the application that caused the error - * @param msg the error message + * e.g. shows error i18n("Unable to generate a preview for the current input") */ void error(const QString& appname, const QString& msg); /** @@ -167,7 +169,7 @@ /** * A temporary file */ - KTemporaryFile* tempFile() const; + QTemporaryFile* tempFile() const; /** * Information about the temporary file */ @@ -178,6 +180,7 @@ Cirkuit::Backend* backend() const; GeneratorPrivate* d; + }; } Index: src/lib/generator.cpp =================================================================== --- src/lib/generator.cpp +++ src/lib/generator.cpp @@ -19,17 +19,20 @@ ***************************************************************************/ #include "generator.h" -#include "backend.h" +#include "backend_interface.h" #include "format.h" #include "document.h" #include "command.h" +#include "failcodes.h" #include #include -#include -#include -#include +#include +#include +//#include +#include +//#include using namespace Cirkuit; @@ -42,15 +45,18 @@ resolution = 300; } Backend* backend; - KTemporaryFile* tempFile; + QTemporaryFile* tempFile; QFileInfo* tempFileInfo; Document* document; int resolution; + + QString workingDir = QString(); }; Cirkuit::Generator::Generator(Cirkuit::Backend* backend, QObject* parent): QObject(parent), d(new GeneratorPrivate) { d->backend = backend; + createWorkingDir(); createTempFiles(); } @@ -59,22 +65,32 @@ delete d; } -KUrl Cirkuit::Generator::workingDir() +bool Cirkuit::Generator::createWorkingDir() const { - return KUrl::fromPath(KStandardDirs::locateLocal("tmp", "cirkuit/build/", true)); + // Create temporary directory for work files. Return true if successful. + d->workingDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation) + QString("/cirkuit/build"); + QDir dir(d->workingDir); + if (dir.exists()) {return true;}; + bool b = QDir().mkpath(d->workingDir); + return b; } +inline QString +Cirkuit::Generator::getWorkingDir() const +{ + return d->workingDir; // excludes trailing slash +}; + void Cirkuit::Generator::createTempFiles(const QString& suffix) { delete d->tempFile; delete d->tempFileInfo; - d->tempFile = new KTemporaryFile; - d->tempFile->setPrefix(workingDir().path(KUrl::AddTrailingSlash)); - d->tempFile->setSuffix(suffix); + d->tempFile = new QTemporaryFile; + d->tempFile->setFileTemplate(getWorkingDir() + "/XXXXXX" + suffix); d->tempFile->open(); - d->tempFileInfo = new QFileInfo(d->tempFile->fileName()); + qDebug() << "TEMPFILE" << d->tempFileInfo->absoluteFilePath(); } bool Cirkuit::Generator::formatExists(const Cirkuit::Format& format) const @@ -83,22 +99,20 @@ return false; } - KUrl formatUrl = workingDir(); - formatUrl.addPath(d->tempFileInfo->baseName() + format.extension()); - return KIO::NetAccess::exists(formatUrl, KIO::NetAccess::SourceSide, 0); + QUrl formatUrl = QUrl(getWorkingDir()); + formatUrl.fromLocalFile(d->tempFileInfo->baseName() + format.extension()); + return QFile::exists(formatUrl.path()); } QString Cirkuit::Generator::formatPath(const Cirkuit::Format& format) const { - KUrl url = workingDir(); QString filename; if (format.type() == Format::Png || format.type() == Format::Jpeg || format.type() == Format::Ppm) { filename = QString("%1-1%2").arg(d->tempFileInfo->baseName()).arg(format.extension()); } else { filename = QString("%1%2").arg(d->tempFileInfo->baseName()).arg(format.extension()); } - url.addPath(filename); - return url.path(); + return getWorkingDir() + "/" + filename; } void Generator::setDocument(Document* doc) @@ -123,36 +137,39 @@ bool Generator::execute(Cirkuit::Command* c) { - c->setWorkingDirectory(workingDir().path()); + // c is subtyped from QProcess + c->setWorkingDirectory(getWorkingDir()); connect(c, SIGNAL(newStandardError(QString,QString)), this, SIGNAL(error(QString,QString))); - kDebug() << "Executing " << c->name() << " with arguments " << c->args(); + qDebug() << "Executing " << c->name() << " with arguments " << c->args(); if (!c->execute()) { - kDebug() << c->name() << " failed"; - emit fail(); + qDebug() << c->name() << " failed"; return false; } - kDebug() << c->name() << " executed correctly"; + qDebug() << c->name() << " executed correctly"; emit output(c->name(), c->stdOutput()); return true; } -bool Cirkuit::Generator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) +int Cirkuit::Generator::convert(const Cirkuit::Format& in, const Cirkuit::Format& out) { - kDebug() << "Inside the converter..." << "in: " << in.type() << " " << in.extension() << ", out: " << out.type() << " " << out.extension(); - + qDebug() << "Inside the converter..." << "in: " << in.type() << " " << in.extension() << ", out: " << out.type() << " " << out.extension(); + // this class doesn't know how to convert from source if (in == Format::Source || out == Format::Source || out == Format::Dvi) { - kDebug() << "Cannot convert from or to source/DVI"; - return false; + qDebug() << "Cannot convert from/to source or to DVI"; + return Fail_unimplemented_conversion; } // Check that input and output formats are different if (in == out) { - return true; + return NoFail; } + // For cnoversion to another vector format, use an appropriate utility (must be installed), e.g. + // dvips, ps2pdf, epstopdf. + // For conversion to nonvector formats, the convert utility from the ImageMagick installation can be used. if (out == Format::QtImage) { return convert(in, Format::Pdf); } @@ -160,17 +177,24 @@ if (in == Format::Dvi) { if (out == Format::Postscript) { QStringList args; - args << formatPath(in) << "-q" << QString("-o %1").arg(formatPath(Format::Postscript)); - return execute(new Command("dvips", "", args, this)); + args << formatPath(in) << "-q" << QString("-o") << formatPath(Format::Postscript); + if (!execute(new Command("dvips", "", args, this))) return Fail_dvips; + return NoFail; } else if (out == Format::Eps) { QStringList args; - args << "-E" << formatPath(in) << "-q" << "-o" << formatPath(Format::Eps); - return execute(new Command("dvips", "", args, this)); + QString tmpfn = QString("%1/%2-tmp.eps").arg(d->tempFileInfo->path()).arg(d->tempFileInfo->baseName()); + args << "-E" << formatPath(in) << "-q" << "-o" << tmpfn; + qDebug() << args; + if (!execute(new Command("dvips", "", args, this))) return Fail_dvips; + args.clear(); + args << "--bbox" << "--copy" << "--output" << formatPath(Format::Eps) << tmpfn; + if (!execute(new Command("epstool", "", args, this))) return Fail_epstool; + return NoFail; + } else { - bool b = true; - if (!convert(in,Format::Eps)) b = false; - if (!convert(Format::Eps,out)) b = false; - return b; + int fail = convert(in,Format::Eps); + if (fail!=NoFail) return fail; + return convert(Format::Eps,out); } } @@ -178,18 +202,19 @@ if (out == Format::Eps) { QStringList args; args << formatPath(in) << formatPath(Format::Eps); - return execute(new Command("ps2epsi", "", args, this)); + if (!execute(new Command("ps2epsi", "", args, this))) return Fail_ps2epsi; + return NoFail; } else if (out == Format::Pdf) { QStringList args; args << formatPath(in) << formatPath(Format::Pdf); - return execute(new Command("ps2pdf", "", args, this)); + if (!execute(new Command("ps2pdf", "", args, this))) return Fail_ps2pdf; + return NoFail; } else if (out == Format::Png) { - bool b = true; - if (!convert(in,Format::Eps)) b = false; - if (!convert(Format::Eps,Format::Png)) b = false; - return b; + int fail = convert(in,Format::Eps); + if (fail!=NoFail) return fail; + return convert(Format::Eps,Format::Png); } else { - return false; + return Fail_unimplemented_conversion;; } } @@ -197,64 +222,77 @@ if (out == Format::Postscript) { QStringList args; args << formatPath(in) << formatPath(Format::Postscript); - return execute(new Command("ps2ps", "", args, this)); + if (!execute(new Command("ps2ps", "", args, this))) return Fail_ps2ps; + return NoFail; } else if (out == Format::Pdf) { QStringList args; - args << formatPath(in);// << QString("--outfile=%1").arg(formatPath(Pdf)); - return execute(new Command("epstopdf", "", args, this)); + args << formatPath(in); + if (!execute(new Command("epstopdf", "", args, this))) return Fail_epstopdf; + return NoFail; } else { - bool b = true; - if (!convert(in,Format::Pdf)) b = false; - if (!convert(Format::Pdf,out)) b = false; - return b; - } + int fail = convert(in,Format::Pdf); + if (fail!=NoFail) return fail; + return convert(Format::Pdf,out); + } } + //Pdftoppm (poppler package) converts Portable Document Format (PDF) files to color image files in Portable Pixmap (PPM) format + //It has options for jpg and png + //ImageMagick would be an alternative (and is needed for gif). + // Also use pdf2svg and pdftops. if (in == Format::Pdf) { if (out == Format::Svg) { QStringList args; args << formatPath(in) << formatPath(Format::Svg); - return execute(new Command("pdf2svg", "", args, this)); + if (!execute(new Command("pdf2svg", "", args, this))) return Fail_pdf2svg; + return NoFail; } else if (out == Format::Png) { QStringList args; args << "-png" << "-r" << QString::number(d->resolution) << formatPath(in) << d->tempFileInfo->baseName(); - return execute(new Command("pdftoppm", "", args, this)); + if (!execute(new Command("pdftoppm", "", args, this))) return Fail_poppler_pdftoppm; + return NoFail; } else if (out == Format::Jpeg) { QStringList args; args << "-jpeg" << "-r" << QString::number(d->resolution) << formatPath(in) << d->tempFileInfo->baseName(); - return execute(new Command("pdftoppm", "", args, this)); + if (!execute(new Command("pdftoppm", "", args, this))) return Fail_poppler_pdftoppm; + return NoFail; } else if (out == Format::Gif) { - bool b = true; - if (!convert(in,Format::Ppm)) b = false; - if (!convert(Format::Ppm,out)) b = false; - return b; + int fail = convert(in,Format::Ppm); + if (fail!=NoFail) return fail; + return convert(Format::Ppm,out); } else if (out == Format::Ppm) { QStringList args; args << "-r" << QString::number(d->resolution) << formatPath(in) << d->tempFileInfo->baseName(); - return execute(new Command("pdftoppm", "", args, this)); + if (!execute(new Command("pdftoppm", "", args, this))) return Fail_poppler_pdftoppm; + return NoFail; } else if (out == Format::Eps) { QStringList args; args << "-eps" << formatPath(in) << formatPath(out); - return execute(new Command("pdftops", "", args, this)); + if (!execute(new Command("pdftops", "", args, this))) return Fail_pdftops; + return NoFail; } else if (out == Format::Postscript) { QStringList args; args << formatPath(in) << formatPath(out); - return execute(new Command("pdftops", "", args, this)); + if (!execute(new Command("pdftops", "", args, this))) return Fail_pdftops; + return NoFail; } + //qDebug() << "Fail_unimplemented_conversion1 in generator.cpp"; + return Fail_unimplemented_conversion; } if (in == Format::Ppm) { if (out == Format::Gif) { QStringList args; args << formatPath(Format::Ppm) << formatPath(Format::Gif); - return execute(new Command("convert", "", args, this)); + if (!execute(new Command("convert", "", args, this))) return Fail_imagemagick_convert; + return NoFail; } } - - return false; + //qDebug() << "Fail_unimplemented_conversion2 in generator.cpp"; + return Fail_unimplemented_conversion; } -bool Cirkuit::Generator::generate(Document* doc, const Cirkuit::Format& format) +int Cirkuit::Generator::generate(Document* doc, const Cirkuit::Format& format) { setDocument(doc); return convert(Format::Source, format); @@ -265,7 +303,7 @@ return d->backend; } -KTemporaryFile* Cirkuit::Generator::tempFile() const +QTemporaryFile* Cirkuit::Generator::tempFile() const { return d->tempFile; } Index: src/lib/logparser.cpp =================================================================== --- src/lib/logparser.cpp +++ src/lib/logparser.cpp @@ -19,7 +19,7 @@ #include "logparser.h" #include "command.h" -#include +#include using namespace Cirkuit; @@ -62,7 +62,7 @@ bool LatexLogParser::parse(const QString& stdout, const QString& stderr) { - kDebug() << "Parsing LaTeX log"; + qDebug() << "Parsing LaTeX log"; QList keywordPatterns; keywordPatterns << QRegExp("(\\S*):(\\d+): (.*$)") << QRegExp("Undefined control sequence") Index: src/main.cpp =================================================================== --- src/main.cpp +++ src/main.cpp @@ -18,33 +18,55 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include +#include #include -#include - +#include +#include #include "cirkuitconfig.h" #include "mainwindow.h" +#include +#include int main (int argc, char *argv[]) { - KAboutData aboutData( "cirkuit", "cirkuit", ki18n("Cirkuit"), VERSION, ki18n("An application to generate publication-ready figures. It is a KDE frontend for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot.

Visit the Circuit Macros and TikZ websites for further information."), KAboutData::License_GPL, ki18n("(c) 2011 Matteo Agostinelli")); - aboutData.addAuthor(ki18n("Matteo Agostinelli"), ki18n("Maintainer"), "matteo@agostinelli.me", "http://agostinelli.me"); - aboutData.setHomepage("http://projects.kde.org/cirkuit"); - KCmdLineArgs::init( argc, argv, &aboutData ); + QApplication app(argc, argv); + QApplication::setApplicationName("Cirkuit"); + QApplication::setApplicationVersion(VERSION); + KLocalizedString::setApplicationDomain("cirkuit"); - KCmdLineOptions options; - options.add("+[file]", ki18n("Document to open")); - KCmdLineArgs::addCmdLineOptions( options ); + // For internationalisation look at doc.qt.io.qt-5/internationalisation.html + QString a1 = i18n("An application to generate publication-ready figures. It is a KDE frontend for Circuit Macros by J. D. Aplevich, TikZ and Gnuplot."); + QString a2 = i18n("Visit the Circuit Macros and TikZ websites for further information."); - KApplication app; - MainWindow* window = new MainWindow(); + KAboutData aboutData ( I18N_NOOP("cirkuit"), + i18n("Cirkuit"), + QString(VERSION), + QString(a1), + KAboutLicense::GPL, + QString(a2), + i18n("(c) 2011 Matteo Agostinelli)"), + QString("https://wwwu.uni-klu.ac.at/magostin/cirkuit.html") ); + + aboutData.addAuthor(QString("Matteo Agostinelli"), + i18n("Main author"), + QString(""), + QString("https://wwwu.uni-klu.ac.at/magostin/cirkuit.html"), + QString("")); + + KAboutData::setApplicationData(aboutData); + QCommandLineParser parser; + // parser.addOptions( "+[file]", ki18n("Document to open") ); + parser.process(app); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); - if (args->count()) { - window->loadFile(args->url(0).url()); - } + const QStringList args = parser.positionalArguments(); + // QApplication app; + + MainWindow* window = new MainWindow(); window->show(); + if (args.size()) { + window->loadFile( args.first() ); +} return app.exec(); } Index: src/mainwindow.h =================================================================== --- src/mainwindow.h +++ src/mainwindow.h @@ -23,7 +23,9 @@ #include #include -#include +#include +#include +#include class ImageView; class LogViewWidget; @@ -43,9 +45,7 @@ class GeneratorThread; class QTimer; class KRecentFilesAction; -#ifdef ENABLE_KMESSAGEWIDGET class KMessageWidget; -#endif class CircuitMacrosManager; class MainWindow : public KParts::MainWindow @@ -59,15 +59,15 @@ void clear(); void openFile(); void newFile(); - void saveAsFile(const KUrl& url); + void saveAsFile(const QString&); void saveAs(); void save(); void exportFile(); void documentModified(KTextEditor::Document*); void buildPreview(); - void showPreview(const QImage& image); - void saveFileToDisk(const QString& path); + void showPreview(const QImage&); + void saveFileToDisk(const QString&); void openPreview(); void openPreviewFile(); void openTemplateManager(); @@ -80,27 +80,27 @@ void configureKeyBindings(); void configureToolbars(); void builtNotification(); - void failedNotification(); + void failedNotification(const int); void showManual(); void showExamples(); - void downloadExamples(); - void uploadExample(); - void openExample(); + // void downloadExamples(); + // void uploadExample(); + // void openExample(); void checkCircuitMacros(); void circuitMacrosConfigured(); void askIfUpgrade(const QString&); - void reset(); - void openHelpUrl(const KUrl& url); + void mainreset(); + void openHelpUrl(const QString& fnpath); void initializeBackend(); void setDefaultBackend(const QString& backend); void backendChanged(const QString& backendName); - #ifdef ENABLE_KMESSAGEWIDGET - void showMessage(KMessageWidget*); - #endif + void showMessage(KMessageWidget*); + + void loadFileFromUrl2(const QUrl&, const QString&); private: void setupActions(); @@ -110,10 +110,10 @@ Cirkuit::Backend *m_backend; QTimer* m_updateTimer; QStringList mimeTypes; - KUrl m_currentFile; -#ifdef ENABLE_KMESSAGEWIDGET + QString m_currentFile; + QString m_dirCurrentEditorFile; + KMessageWidget* m_messageWidget; -#endif KRecentFilesAction* recentFilesAction; CircuitMacrosManager* cmm; @@ -128,10 +128,13 @@ bool m_firstRun; public slots: - void loadFile(const KUrl& url); + void loadFile(const QString&); + void loadFileFromUrl(const QUrl&); + protected: void closeEvent(QCloseEvent *event); + }; #endif Index: src/mainwindow.cpp =================================================================== --- src/mainwindow.cpp +++ src/mainwindow.cpp @@ -22,11 +22,12 @@ #include "cirkuitsettings.h" #include "circuitmacrosmanager.h" #include "generatorthread.h" +#include "failcodes.h" #include "ui_cirkuit_general_settings.h" #include "lib/document.h" -#include "lib/backend.h" +#include "lib/backend_interface.h" #include "lib/format.h" #include "lib/generator.h" #include "lib/documenttemplate.h" @@ -37,56 +38,52 @@ #include "widgets/backendchoosedialog.h" #include "widgets/templatechoosedialog.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 #include #include -#include -#include - -#ifdef ENABLE_KMESSAGEWIDGET - #include "widgets/widgetfloater.h" - #include -#else - #include -#endif - - -#include -#include - +#include +#include #include -#include #include -#include +#include +//#include +//#include + +#include "widgets/widgetfloater.h" + +//#include MainWindow::MainWindow(QWidget *) { - KTextEditor::Editor *editor = KTextEditor::EditorChooser::editor(); + KTextEditor::Editor *editor = KTextEditor::Editor::instance(); if (!editor) { - KMessageBox::error(this, i18n("A KDE text-editor component could not be found;\n" - "please check your KDE installation.")); - kapp->exit(1); + KMessageBox::error(this, i18n("A KF5 text-editor component could not be found;\n" + "please check your KF5 installation.")); + qApp->exit(1); } m_doc = (Cirkuit::Document*) (editor->createDocument(0)); @@ -97,19 +94,16 @@ m_previewWidget->setObjectName("preview-dock"); m_imageView = m_previewWidget->view(); addDockWidget(Qt::TopDockWidgetArea, m_previewWidget); -#ifdef ENABLE_KMESSAGEWIDGET + m_messageWidget = 0; -#else - statusBar()->showMessage(i18n("Ready"), 3000); -#endif - + m_logViewWidget = new LogViewWidget(i18n("Log"), this); m_logViewWidget->setObjectName("log-dock"); addDockWidget(Qt::BottomDockWidgetArea, m_logViewWidget); m_logViewWidget->hide(); - mimeTypes << "application/x-cirkuit" << "text/x-tex" << "application/x-gnuplot"; - m_currentFile = KUrl(""); + m_currentFile = QString(); + m_dirCurrentEditorFile = QDir::current().absolutePath(); updateTitle(); setCentralWidget(m_view); @@ -120,7 +114,7 @@ createShellGUI(true); guiFactory()->addClient(m_view); - m_view->setContextMenu(qobject_cast (factory()->container("ktexteditor_popup", this))); + m_view->setContextMenu(qobject_cast (factory()->container("ktexteditor_popup", this))); m_generator = new GeneratorThread; @@ -128,7 +122,7 @@ updateConfiguration(); connect(m_generator, SIGNAL(success()), this, SLOT(builtNotification())); - connect(m_generator, SIGNAL(fail()), this, SLOT(failedNotification())); + connect(m_generator, SIGNAL(fail(const int)), this, SLOT(failedNotification(const int))); connect(m_doc, SIGNAL(modifiedChanged(KTextEditor::Document*)), this, SLOT(documentModified(KTextEditor::Document*))); connect(m_generator, SIGNAL(previewReady(QImage)), this, SLOT(showPreview(QImage))); @@ -139,8 +133,10 @@ connect(m_generator, SIGNAL(backendChanged(QString)), this, SLOT(backendChanged(QString))); checkCircuitMacros(); + + qDebug() << "Initializing backends"; initializeBackend(); - newDocument(); + newDocument(); } void MainWindow::setupActions() @@ -158,63 +154,64 @@ KStandardAction::open(this, SLOT(openFile()), actionCollection()); KStandardAction::close(this, SLOT(newDocument()), actionCollection()); KStandardAction::clear(this, SLOT(clear()), actionCollection()); - KStandardAction::preferences(this, SLOT(configure()), actionCollection()); + KStandardAction::preferences(this, SLOT(configure()), actionCollection()); + KStandardAction::keyBindings(this, SLOT(configureKeyBindings()), actionCollection()); KStandardAction::configureToolbars(this, SLOT(configureToolbars()), actionCollection()); - recentFilesAction = KStandardAction::openRecent(this, SLOT(loadFile(KUrl)), + recentFilesAction = KStandardAction::openRecent(this, SLOT(loadFileFromUrl(QUrl)), actionCollection()); - KAction* exportAction = new KAction(KIcon("document-export"), i18n("Export..."), 0); + QAction* exportAction = new QAction(QIcon("document-export"), i18n("Export image..."), 0); actionCollection()->addAction("export", exportAction); connect(exportAction, SIGNAL(triggered()), this, SLOT(exportFile())); - KAction* buildPreviewAction = new KAction(i18n("Build preview"), 0); - buildPreviewAction->setShortcut(Qt::ALT + Qt::Key_1); - buildPreviewAction->setIcon(KIcon("run-build")); + QAction* buildPreviewAction = new QAction(i18n("Build preview"), 0); + actionCollection()->setDefaultShortcut(buildPreviewAction, Qt::ALT + Qt::Key_1); + buildPreviewAction->setIcon(QIcon("run-build")); actionCollection()->addAction("build_preview", buildPreviewAction); connect(buildPreviewAction, SIGNAL(triggered()), this, SLOT(buildPreview())); - KAction* openPreviewAction = new KAction(i18n("Open preview"), 0); - openPreviewAction->setShortcut(Qt::ALT + Qt::Key_2); - openPreviewAction->setIcon(KIcon("document-preview")); + QAction* openPreviewAction = new QAction(i18n("Open preview"), 0); + actionCollection()->setDefaultShortcut(openPreviewAction, Qt::ALT + Qt::Key_2); + openPreviewAction->setIcon(QIcon("document-preview")); actionCollection()->addAction("open_preview", openPreviewAction); connect(openPreviewAction, SIGNAL(triggered()), this, SLOT(openPreview())); - KAction* templateManagerAction = new KAction(i18n("Template manager"), 0); + QAction* templateManagerAction = new QAction(i18n("Template manager"), 0); actionCollection()->addAction("template_manager", templateManagerAction); connect(templateManagerAction, SIGNAL(triggered()), this, SLOT(openTemplateManager())); - KAction* showManualAction = new KAction(KIcon("help-contents"), i18n("Show manual"),0); + QAction* showManualAction = new QAction(QIcon("help-contents"), i18n("Show manual"),0); actionCollection()->addAction( "showManual", showManualAction ); connect(showManualAction, SIGNAL(triggered()), this, SLOT(showManual())); - KAction* showExamplesAction = new KAction(i18n("Show examples"),0); + QAction* showExamplesAction = new QAction(i18n("Show examples"),0); actionCollection()->addAction( "showExamples", showExamplesAction ); connect(showExamplesAction, SIGNAL(triggered()), this, SLOT(showExamples())); QAction* showLivePreviewAction = m_previewWidget->toggleViewAction(); - showLivePreviewAction->setIcon(KIcon("document-preview")); + showLivePreviewAction->setIcon(QIcon("document-preview")); actionCollection()->addAction( "show_live_preview", showLivePreviewAction ); - KAction* downloadExamples = new KAction(i18n("Download Examples"), actionCollection()); - downloadExamples->setIcon(KIcon("get-hot-new-stuff")); + /* QAction* downloadExamples = new QAction(i18n("Download Examples"), actionCollection()); + downloadExamples->setIcon(QIcon("get-hot-new-stuff")); actionCollection()->addAction("download_examples", downloadExamples); connect(downloadExamples, SIGNAL(triggered()), this, SLOT(downloadExamples())); - KAction* uploadExample = new KAction(i18n("Upload Example"), actionCollection()); - uploadExample->setIcon(KIcon("get-hot-new-stuff")); + QAction* uploadExample = new QAction(i18n("Upload Example"), actionCollection()); + uploadExample->setIcon(QIcon("get-hot-new-stuff")); actionCollection()->addAction("upload_example", uploadExample); connect(uploadExample, SIGNAL(triggered()), this, SLOT(uploadExample())); - KAction* openExample =new KAction(i18n("&Open Example"), actionCollection()); - openExample->setIcon(KIcon("document-open")); + QAction* openExample =new QAction(i18n("&Open Example"), actionCollection()); + openExample->setIcon(QIcon("document-open")); actionCollection()->addAction("file_open_example", openExample); connect(openExample, SIGNAL(triggered()), this, SLOT(openExample())); - +*/ QAction* showLogViewAction = m_logViewWidget->toggleViewAction(); actionCollection()->addAction( "show_log_view", showLogViewAction ); - showLogViewAction->setIcon(KIcon("documentation")); + showLogViewAction->setIcon(QIcon("documentation")); KConfig *config = CirkuitSettings::self()->config(); recentFilesAction->loadEntries(config->group("recent_files")); @@ -231,38 +228,45 @@ void MainWindow::newFile() { - QPointer dlg = new BackendChooseDialog(CirkuitSettings::defaultBackend(), this); + BackendChooseDialog *dialog = new BackendChooseDialog(CirkuitSettings::defaultBackend(), this); + // QPointer dlg = new BackendChooseDialog(CirkuitSettings::defaultBackend(), this); - connect(dlg, SIGNAL(backendSelected(QString)), this, SLOT(newDocument(QString))); - connect(dlg, SIGNAL(defaultBackendSelected(QString)), this, SLOT(setDefaultBackend(QString))); + connect(dialog, SIGNAL(backendSelected(QString)), this, SLOT(newDocument(QString))); + connect(dialog, SIGNAL(defaultBackendSelected(QString)), this, SLOT(setDefaultBackend(QString))); - dlg->exec(); - delete dlg; + dialog->exec(); + delete dialog; } void MainWindow::openFile() { - QString filename; - - QPointer openFileDialog = new KFileDialog(KUrl(), "", this); - openFileDialog->setWindowTitle(i18n("Open file - Cirkuit")); - openFileDialog->setOperationMode(KFileDialog::Opening); - openFileDialog->setMimeFilter(mimeTypes); - if (openFileDialog->exec() == QDialog::Accepted) { - filename = openFileDialog->selectedFile(); - } - - if (!filename.isEmpty()) { + QString openFileName = QFileDialog::getOpenFileName(this, i18n("Open file - Cirkuit"), m_dirCurrentEditorFile, + i18n("Cirkuit drawing (*.m4 *.ckt);;Tex (*.tex);;Gnuplot (*.gp);;All files (*.*)") ); + if (!openFileName.isEmpty()) { m_imageView->clear(); - recentFilesAction->addUrl(KUrl(filename)); - loadFile(filename); + recentFilesAction->addUrl(QUrl(openFileName)); + loadFile(openFileName); } } -void MainWindow::loadFile(const KUrl& url) +void MainWindow::loadFile(const QString& fnpath) { - m_currentFile = url; - m_view->document()->openUrl(url); + QUrl url = QUrl::fromLocalFile(fnpath); + loadFileFromUrl2(url, fnpath); +} + +void MainWindow::loadFileFromUrl(const QUrl& url) +{ + loadFileFromUrl2(url, url.toLocalFile() ); +} + +void MainWindow::loadFileFromUrl2(const QUrl& url, const QString& fnpath) +{ + bool ok = m_view->document()->openUrl(url); + if (!ok) return; + m_currentFile = fnpath; + QFileInfo fi(m_currentFile); + m_dirCurrentEditorFile = fi.dir().absolutePath(); m_imageView->clear(); m_firstRun = true; m_backend = Cirkuit::Backend::autoChooseBackend(m_doc); @@ -285,58 +289,43 @@ void MainWindow::saveAs() { - QString filename; - - QPointer saveFileDialog = new KFileDialog(KUrl(), "", this); - saveFileDialog->setWindowTitle(i18n("Save file - Cirkuit")); - saveFileDialog->setOperationMode(KFileDialog::Saving); - saveFileDialog->setMimeFilter(mimeTypes, "application/x-cirkuit"); - saveFileDialog->setConfirmOverwrite(true); - if (saveFileDialog->exec() == QDialog::Accepted) { - filename = saveFileDialog->selectedFile(); - } + QString saveFileName = QFileDialog::getSaveFileName(this, i18n("Save file - Cirkuit"), m_dirCurrentEditorFile, + i18n("Cirkuit drawing (*.m4, *.ckt);;Tex (*.tex);;Gnuplot (*.gp);;All files (*.*)") ); - if (!filename.isEmpty()) { - saveAsFile(filename); + if (!saveFileName.isEmpty()) { + saveAsFile(saveFileName); } } -void MainWindow::saveAsFile(const KUrl& url) +void MainWindow::saveAsFile(const QString& fnpath) { if (CirkuitSettings::refreshOnSave()) { buildPreview(); } - m_doc->saveAs(url); + QUrl url = QUrl::fromLocalFile(fnpath); + m_doc->saveAs(QUrl(url)); recentFilesAction->addUrl(url); - m_currentFile = url; + m_currentFile = fnpath; + QFileInfo fi(m_currentFile); + m_dirCurrentEditorFile = fi.dir().absolutePath(); updateTitle(); } void MainWindow::exportFile() { - QString path; QStringList exportTypes; - exportTypes << "application/pdf" << "image/x-eps" << "image/png" << "image/jpeg" << "image/svg+xml" << "image/gif" << "text/x-tex"; - - QPointer saveFileDialog = new KFileDialog(KUrl(), "", this); - saveFileDialog->setWindowTitle(i18n("Export image - Cirkuit")); - saveFileDialog->setStartDir(m_currentFile.directory()); - saveFileDialog->setOperationMode(KFileDialog::Saving); - saveFileDialog->setMimeFilter(exportTypes, "application/pdf"); - saveFileDialog->setInlinePreviewShown(true); - saveFileDialog->setConfirmOverwrite(true); - if (saveFileDialog->exec() == QDialog::Accepted) { - path = saveFileDialog->selectedFile(); - } - if (!path.isEmpty()) { - QFileInfo fileinfo(path); - Cirkuit::Format format = Cirkuit::Format::fromMimeType(saveFileDialog->currentFilterMimeType()); + QString saveFileName = QFileDialog::getSaveFileName(this, i18n("Export image - Cirkuit"), m_dirCurrentEditorFile, + i18n("pdf (*.pdf);;png(*.png);;jpg(*.jpg);;eps(*.eps);;svg(*.svg);;gif(*.gif);;Document(*.tex)") ); + + if (!saveFileName.isEmpty()) { + QFileInfo fileinfo(saveFileName); + QString sfx = fileinfo.suffix().toLower(); // e.g. "pdf", "png" (dot-less) + Cirkuit::Format format = Cirkuit::Format::fromExtension(sfx); + m_tempSavePath = saveFileName; m_generator->generate(Cirkuit::Format::Source, format, m_backend, m_doc, true); - m_tempSavePath = path; - QFile oldFile(path); - oldFile.remove(); + // saveFileToDisk() called after fileReady event emitted in generatorThread. } } @@ -365,23 +354,16 @@ if (m_updateTimer) { m_updateTimer->stop(); } - - QString msg = i18n("Generating preview"); -#ifdef ENABLE_KMESSAGEWIDGET delete m_messageWidget; + QString msg = i18n("Generating preview"); + m_messageWidget = new KMessageWidget; m_messageWidget->setMessageType(KMessageWidget::Information); m_messageWidget->setText(msg); showMessage(m_messageWidget); -#else - statusBar()->showMessage(msg); -#endif m_logViewWidget->clear(); m_logViewWidget->hide(); - m_generator->generate(Cirkuit::Format::Source, Cirkuit::Format::QtImage, m_backend, m_doc, false, m_imageView->scaleFactor()); - - kDebug() << "Preview generation in progress..."; } void MainWindow::openPreview() @@ -395,7 +377,7 @@ { disconnect(m_generator, SIGNAL(finished()), this, SLOT(openPreviewFile())); - KUrl url = m_generator->previewUrl(); + QUrl url = QUrl(m_generator->previewUrl()); if (!url.isLocalFile()) { return; } @@ -405,11 +387,7 @@ void MainWindow::builtNotification() { -#ifdef ENABLE_KMESSAGEWIDGET m_messageWidget->animatedHide(); -#else - statusBar()->showMessage(i18n("Preview built"), 3000);; -#endif } void MainWindow::newDocument(const QString& backendName) @@ -434,7 +412,7 @@ if (!m_doc->closeUrl()) { return; } - reset(); + mainreset(); m_doc->setText(m_doc->initialText()); KTextEditor::Cursor cursor = m_view->cursorPosition(); @@ -448,16 +426,17 @@ m_windowTitle = "Cirkuit"; if (!m_currentFile.isEmpty()) { - m_windowTitle += " - " + m_currentFile.fileName(); + QFileInfo fi(m_currentFile); + m_windowTitle += " - " + fi.fileName(); } m_windowTitle += "[*]"; setWindowTitle(m_windowTitle); } -void MainWindow::reset() +void MainWindow::mainreset() { - m_currentFile = ""; + m_currentFile = QString(); m_doc->clear(); m_imageView->clear(); m_firstRun = true; @@ -512,15 +491,20 @@ openHelpUrl(m_backend->examplesUrl()); } -void MainWindow::openHelpUrl(const KUrl& url) +void MainWindow::openHelpUrl(const QString& fnpath) { - QString type; - if (url.isLocalFile()) { - type = KMimeType::findByUrl(url).constData()->name(); - } else { - type = KIO::NetAccess::mimetype(url, this); - } - KRun::runUrl(url, type, this); + + QMimeDatabase db; + QString fn = QFileInfo(fnpath).fileName(); + QString mimtype; + QUrl url(fnpath); + if (url.isLocalFile()) { + mimtype = db.mimeTypeForFile(fn).name(); + } else { + mimtype = db.mimeTypeForFile(fn).name(); // for now. QNetworkAccessManager might be better for web locations +// mimtype = KIO::NetAccess::mimetype(url, this); // old + } + KRun::runUrl(url, mimtype, this, KRun::RunFlags()); } void MainWindow::checkCircuitMacros() @@ -529,20 +513,20 @@ connect(cmm, SIGNAL(newVersionAvailable(QString)), this, SLOT(askIfUpgrade(QString))); connect(cmm, SIGNAL(configured()), this, SLOT(circuitMacrosConfigured())); if (cmm->checkExistence()) { - kDebug() << "Circuit macros found!"; - kDebug() << QString("version %1").arg(cmm->installedVersion()); + qDebug() << "Circuit macros found!"; + qDebug() << QString("version %1").arg(cmm->installedVersion()); cmm->checkOnlineVersion(); } else { - kDebug() << "Circuit macros NOT found!!!!"; + qDebug() << "Circuit macros NOT found!!!!"; if (KMessageBox::questionYesNo(this, i18n("Circuit Macros could not be found on your system. The application will not work if the macros are not installed. Do you want to proceed with the installation?"), i18n("Installation needed")) == KMessageBox::Yes) { cmm->downloadLatest(); -#ifdef ENABLE_KMESSAGEWIDGET + delete m_messageWidget; m_messageWidget = new KMessageWidget(m_imageView); m_messageWidget->setMessageType(KMessageWidget::Information); m_messageWidget->setText(i18n("Downloading Circuit Macros. Please wait...")); showMessage(m_messageWidget); -#endif + } } } @@ -556,26 +540,29 @@ void MainWindow::circuitMacrosConfigured() { -#ifdef ENABLE_KMESSAGEWIDGET + if (m_messageWidget) { m_messageWidget->animatedHide(); } -#endif } -void MainWindow::failedNotification() +void MainWindow::failedNotification(const int fcode) { + QString msg = i18n(GetErrorString(fcode)) + + i18n("\nUnable to generate a preview for the current input"); + m_imageView->setImage(QImage()); - QString msg = i18n("Unable to generate a preview for the current input"); -#ifdef ENABLE_KMESSAGEWIDGET delete m_messageWidget; m_messageWidget = new KMessageWidget(m_imageView); m_messageWidget->setMessageType(KMessageWidget::Error); m_messageWidget->setText(msg); showMessage(m_messageWidget); -#else - statusBar()->showMessage(msg, 5000); -#endif + + delete m_messageWidget; + m_messageWidget = new KMessageWidget(m_imageView); + m_messageWidget->setMessageType(KMessageWidget::Error); + m_messageWidget->setText(msg); + showMessage(m_messageWidget); } void MainWindow::showPreview(const QImage& image) @@ -587,20 +574,22 @@ void MainWindow::saveFileToDisk(const QString& path) { - kDebug() << "Copying " << path << " to " << m_tempSavePath; + qDebug() << "Copying " << path << " to " << m_tempSavePath; + // QFile::copy does not overwrite, so delete old copy before saving. + if (QFile::exists(m_tempSavePath)) QFile::remove(m_tempSavePath); QFile::copy(path, m_tempSavePath); - kDebug() << "File successfully exported"; + qDebug() << "File successfully exported"; } void MainWindow::initializeBackend() { - kDebug() << Cirkuit::Backend::listAvailableBackends(); + qDebug() << Cirkuit::Backend::listAvailableBackends(); m_backend = Cirkuit::Backend::getBackend(CirkuitSettings::defaultBackend()); if (!m_backend) { - kDebug() << "The default backend has not been found"; + qDebug() << "The default backend has not been found"; if (Cirkuit::Backend::listAvailableBackends().count() < 1) { - kDebug() << "No backends available..."; + qDebug() << "No backends available..."; KMessageBox::error(this, i18n("No working backend has been found. Cirkuit is unable to generate any figure."), i18n("No backends found")); return; } else { @@ -638,22 +627,24 @@ actionCollection()->action("showExamples")->setText(i18n("%1 examples", backendName)); } +/* void MainWindow::downloadExamples() { - QPointer dialog = new KNS3::DownloadDialog("cirkuit_example.knsrc"); + KNS3::DownloadDialog* dialog = new KNS3::DownloadDialog("cirkuit_example.knsrc", this); dialog->exec(); foreach (const KNS3::Entry& e, dialog->changedEntries()) { - kDebug() << "Changed Entry: " << e.name(); + qDebug() << "Changed Entry: " << e.name(); } + delete dialog; } void MainWindow::uploadExample() { - kDebug() << "Uploading to GHNS: " << m_currentFile; + qDebug() << "Uploading to GHNS: " << m_currentFile; if (!m_currentFile.isLocalFile()) { - kDebug() << "Trying to save the file first ..."; + qDebug() << "Trying to save the file first ..."; KMessageBox::error(this, i18n("Save the current document before uploading it")); return; } @@ -666,43 +657,58 @@ void MainWindow::openExample() { - QString dir = KStandardDirs::locateLocal("appdata", "examples"); + QString dir = QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, "examples"); if (dir.isEmpty()) return; - KStandardDirs::makeDir(dir); + QDir dirpath; + dirpath.mkpath(dir); - QPointer dlg=new KDialog(this); + // QPointer dlg=new QDialog(this); + QDialog *dlg = new QDialog; QFileSystemModel* model = new QFileSystemModel; model->setRootPath(dir); - QListView *list = new QListView(dlg); - list->setModel(model); - list->setRootIndex(model->index(dir)); - list->setSelectionMode(QAbstractItemView::SingleSelection); - dlg->setMainWidget(list); - - if (dlg->exec() == QDialog::Accepted && list->currentIndex().isValid()) { - loadFile(model->filePath(list->currentIndex())); + QListView *view = new QListView(dlg); + view->setModel(model); + view->setRootIndex(model->index(dir)); + view->setSelectionMode(QAbstractItemView::SingleSelection); + +// dlg->setMainWidget(view); + dlg->listView->setModel(model); + if (dlg->exec() == QDialog::Accepted && view->currentIndex().isValid()) { + loadFile( QUrl(model->filePath(view->currentIndex())) ); } - delete list; + delete view; delete dlg; } +*/ void MainWindow::openTemplateManager() { KConfigSkeletonItem* urlItem = m_backend->configTemplateUrl(); if (!urlItem) return; - - TemplateChooseDialog dlg(m_backend->id()); + + TemplateChooseDialog dlg(m_backend->id(), urlItem->property().toUrl() ); if (dlg.exec() == QDialog::Accepted && !dlg.selectedFile().isEmpty()) { - urlItem->setProperty(dlg.selectedFile()); + QUrl sel_url = dlg.selectedFile(); + urlItem->setProperty(sel_url); m_backend->config()->writeConfig(); + + delete m_messageWidget; + QString msg = i18n("Generating preview"); + + m_messageWidget = new KMessageWidget; + m_messageWidget->setMessageType(KMessageWidget::Information); + m_messageWidget->setText(msg); + showMessage(m_messageWidget); + m_logViewWidget->clear(); + m_logViewWidget->hide(); + m_generator->generate(Cirkuit::Format::Source, Cirkuit::Format::QtImage, m_backend, m_doc, false, m_imageView->scaleFactor()); } } -#ifdef ENABLE_KMESSAGEWIDGET void MainWindow::showMessage(KMessageWidget* messageWidget) { WidgetFloater* floater = new WidgetFloater(m_imageView); @@ -710,5 +716,4 @@ floater->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter); messageWidget->animatedShow(); } -#endif Index: src/mimetypes/.svn/all-wcprops =================================================================== --- src/mimetypes/.svn/all-wcprops +++ /dev/null @@ -1,17 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 51 -/svnroot/cirkuit/!svn/ver/1/trunk/cirkuit/mimetypes -END -cirkuit.xml -K 25 -svn:wc:ra_dav:version-url -V 63 -/svnroot/cirkuit/!svn/ver/1/trunk/cirkuit/mimetypes/cirkuit.xml -END -CMakeLists.txt -K 25 -svn:wc:ra_dav:version-url -V 66 -/svnroot/cirkuit/!svn/ver/1/trunk/cirkuit/mimetypes/CMakeLists.txt -END Index: src/mimetypes/.svn/entries =================================================================== --- src/mimetypes/.svn/entries +++ /dev/null @@ -1,96 +0,0 @@ -9 - -dir -6 -https://cirkuit.svn.sourceforge.net/svnroot/cirkuit/trunk/cirkuit/mimetypes -https://cirkuit.svn.sourceforge.net/svnroot/cirkuit - - - -2009-07-03T18:26:16.832732Z -1 -agostinelli - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -3ff8ea40-6596-4a5f-a439-7ee5576216ba - -cirkuit.xml -file - - - - -2009-07-04T14:04:43.000000Z -9d5fc5419673b305c2162f0d1257da5d -2009-07-03T18:26:16.832732Z -1 -agostinelli - - - - - - - - - - - - - - - - - - - - - -463 - -CMakeLists.txt -file - - - - -2009-07-04T14:04:43.000000Z -c1a71c90055c1be758da825d791e39c2 -2009-07-03T18:26:16.832732Z -1 -agostinelli - - - - - - - - - - - - - - - - - - - - - -148 - Index: src/mimetypes/.svn/format =================================================================== --- src/mimetypes/.svn/format +++ /dev/null @@ -1 +0,0 @@ -9 Index: src/mimetypes/.svn/text-base/CMakeLists.txt.svn-base =================================================================== --- src/mimetypes/.svn/text-base/CMakeLists.txt.svn-base +++ /dev/null @@ -1,4 +0,0 @@ -find_package(SharedMimeInfo REQUIRED) - -install(FILES cirkuit.xml DESTINATION ${XDG_MIME_INSTALL_DIR}) -update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR}) Index: src/mimetypes/.svn/text-base/cirkuit.xml.svn-base =================================================================== --- src/mimetypes/.svn/text-base/cirkuit.xml.svn-base +++ /dev/null @@ -1,13 +0,0 @@ - - - - Cirkuit drawing - Disegno Cirkuit - - - - - - - - Index: src/renderthread.cpp =================================================================== --- src/renderthread.cpp +++ src/renderthread.cpp @@ -18,11 +18,11 @@ #include "renderthread.h" -#include +#include "poppler-qt5.h" #include #include -#include +//#include RenderThread::RenderThread(QObject* parent): QThread(parent) { Index: src/syntax/CMakeLists.txt =================================================================== --- src/syntax/CMakeLists.txt +++ src/syntax/CMakeLists.txt @@ -1 +1 @@ -install( FILES m4cm.xml DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax ) +install( FILES m4cm.xml gnuplot.xml DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax ) Index: src/syntax/gnuplot.xml =================================================================== --- /dev/null +++ src/syntax/gnuplot.xml @@ -0,0 +1,886 @@ + + + + + + noarrow + noborder + noclabel + noclip + nocontour + nodgrid3d + nogrid + nohidden3d + nokey + nolabel + nolinestyle + nomultiplot + nomx2tics + nomxtics + nomy2tics + nomytics + nomztics + nooffsets + noparametric + nopolar + nosurface + notimestamp + nox2dtics + nox2mtics + nox2tics + nox2zeroaxis + noxdtics + noxmtics + noxtics + noxzeroaxis + noy2dtics + noy2mtics + noy2tics + noy2zeroaxis + noydtics + noymtics + noytics + noyzeroaxis + nozdtics + nozeroaxis + nozmtics + noztics + + + + grid + parametric + + + + angles + arrow + bar + border + boxwidth + clip + cntrparam + data + dgrid3d + dummy + encoding + format + function + functions + hidden3d + isosamples + label + linestyle + mapping + margin + mx2tics + mxtics + my2tics + mytics + mztics + offsets + origin + parametric + pointsize + polar + samples + size + data style + function style + surface + tics + ticscale + ticslevel + timefmt + timestamp + variables + version + view + x2data + x2dtics + x2label + x2mtics + x2tics + x2zeroaxis + xdata + xdtics + xmtics + xtics + xzeroaxis + y2data + y2dtics + y2mtics + y2tics + y2zeroaxis + ydata + ydtics + ymtics + ytics + yzeroaxis + zdata + zdtics + zero + zeroaxis + zmtics + ztics + + + + clabel + title + xlabel + x2label + ylabel + y2label + zlabel + + + + rrange + trange + urange + vrange + x2range + xrange + y2range + yrange + zrange + + + + base + surface + both + + + + left + right + top + bottom + outside + below + Left + Right + noreverse + reverse + + + + noautoscale + autoscale + nologscale + + + + x + y + z + x2 + y2 + xy + + + + aed512 + aed767 + aifm + bitgraph + cgm + dumb + dxf + dxy800a + eepic + epson-180dpi + epson-60dpi + epson-lx800 + excl + gpic + hp2623a + hp2648 + kc-tek40xx + km-tek40xx + kyo + mf + mif + mp + nec-cp6 + okidata + prescribe + pstricks + qms + regis + rgip + selanar + starc + table + tandy-60dpi + tek40xx + tek410x + texdraw + uniplex + unixplot + vttek + vx384 + x11 + + + + landscape + portrait + eps + default + enhanced + noenhanced + solid + dashed + defaultplex + simplex + duplex + + + + courier + roman + default + + + + color + monochrome + dashed + rotate + norotate + auxfile + + + + transparent + notransparent + + + + small + medium + large + monochrome + gray + color + + + + landscape + portrait + solid + dashed + + + + monochrome + color + small + big + pointsmax + landscape + portrait + metric + inches + fontsize + size + thickness + depth + + + + monochrome + color + + + + FNT5X9 + FNT9X17 + FNT13X25 + + + + mode + landscape + portrait + monochrome + color + solid + dashed + letter + legal + noextended + extended + stick + univers + cg_times + zapf_dingbats + antique_olive + arial + courier + garamond_antigua + letter_gothic + cg_omega + albertus + times_new_roman + clarendon + coronet + marigold + truetype_symbols + wingdings + + + + 75 + 100 + 150 + 300 + + + + landscape + portrait + + + + acsplines + bezier + csplines + sbezier + unique + + + + x1y1 + x2y1 + x1y2 + x2y2 + + + + lines + l + points + p + linespoints + linesp + impulses + i + dots + d + steps + fsteps + histeps + + + + errorbars + xerrorbars + yerrorbars + xyerrorbars + boxes + boxerrorbars + boxxyerrorbars + financebars + candlesticks + vector + + + + linestyle + ls + linetype + lt + linewidth + lw + pointtype + pt + pointsize + ps + + + + replot + exit + quit + clear + reset + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: src/widgets/CMakeLists.txt =================================================================== --- src/widgets/CMakeLists.txt +++ src/widgets/CMakeLists.txt @@ -1,4 +1,12 @@ -include_directories(${CMAKE_CURRENT_BINARY_DIR} ..) +set(GENERIC_LIB_VERSION "2.0.0") +set(GENERIC_LIB_SOVERSION "2") + +# Need this line +include_directories( ${CMAKE_SOURCE_DIR}/src) + +set (CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + set (cirkuitwidgets_SRCS templatechoosedialog.cpp imageview.cpp previewwidget.cpp @@ -7,5 +15,11 @@ widgetfloater.cpp ) -kde4_add_ui_files( cirkuitwidgets_SRCS backendchooser.ui templatechooser.ui) -kde4_add_library( cirkuitwidgets STATIC ${cirkuitwidgets_SRCS} ) +qt5_wrap_ui( cirkuitwidgets_SRCS backendchooser.ui templatechooser.ui) +add_library( cirkuitwidgets STATIC ${cirkuitwidgets_SRCS} ) + +target_link_libraries( cirkuitwidgets Qt5::Core Qt5::Widgets KF5::KIOCore KF5::I18n KF5::IconThemes cirkuitlibs ) +# no longer need KF5::NewStuff + +install( TARGETS cirkuitwidgets ${INSTALL_TARGETS_DEFAULT_ARGS} ) + Index: src/widgets/backendchoosedialog.h =================================================================== --- src/widgets/backendchoosedialog.h +++ src/widgets/backendchoosedialog.h @@ -22,11 +22,12 @@ #ifndef BACKENDCHOOSEDIALOG_H #define BACKENDCHOOSEDIALOG_H -#include +#include +#include #include "ui_backendchooser.h" -class BackendChooseDialog : public KDialog +class BackendChooseDialog : public QDialog { Q_OBJECT public: Index: src/widgets/backendchoosedialog.cpp =================================================================== --- src/widgets/backendchoosedialog.cpp +++ src/widgets/backendchoosedialog.cpp @@ -19,15 +19,16 @@ Copyright (C) 2011 Matteo Agostinelli */ +#include +#include #include "backendchoosedialog.h" - -#include "lib/backend.h" +#include "lib/backend_interface.h" const char* BackendChooseDialog::descriptionTemplate = I18N_NOOP("

%1

" \ "
%2

" \ "
See %3 for more information
"); -BackendChooseDialog::BackendChooseDialog(const QString& backendName, QWidget* parent) : KDialog(parent) +BackendChooseDialog::BackendChooseDialog(const QString& backendName, QWidget* parent) : QDialog(parent) { setBackend(backendName); setWindowTitle(i18n("Backend selection")); @@ -44,7 +45,7 @@ } QListWidgetItem* item=new QListWidgetItem(m_ui.backendList); item->setText(backend->name()); - item->setIcon(KIcon(backend->icon())); + item->setIcon(QIcon(backend->icon())); m_ui.backendList->addItem(item); if (m_ui.backendList->currentItem() == 0) { m_ui.backendList->setCurrentItem(item); @@ -55,7 +56,10 @@ } } - setMainWidget(w); + // setMainWidget(w); // for KDialog + + w->setLayout(m_ui.gridLayout); + connect(this, SIGNAL(accepted()), this, SLOT(onAccept())); } Index: src/widgets/backendchooser.ui =================================================================== --- src/widgets/backendchooser.ui +++ src/widgets/backendchooser.ui @@ -31,7 +31,7 @@
- + QListView::TopToBottom @@ -44,7 +44,7 @@ - + 2 @@ -64,14 +64,14 @@ - KListWidget + QListWidget QListWidget -
klistwidget.h
+
KTextBrowser QTextBrowser -
ktextbrowser.h
+
Index: src/widgets/imageview.h =================================================================== --- src/widgets/imageview.h +++ src/widgets/imageview.h @@ -28,7 +28,7 @@ class QGraphicsPixmapItem; class QTimer; -class KAction; +class QAction; class KToggleAction; class ImageView: public QGraphicsView @@ -54,11 +54,11 @@ void zoomFit(const QPixmap& pixmap); void normalSize(); - KAction* zoomFitPageAction() const; - KAction* zoomFitAction() const; - KAction* zoomInAction() const; - KAction* zoomOutAction() const; - KAction* actualSizeAction() const; + QAction* zoomFitPageAction() const; + QAction* zoomFitAction() const; + QAction* zoomInAction() const; + QAction* zoomOutAction() const; + QAction* actualSizeAction() const; void setupActions(KActionCollection* actionCollection); void updateZoomToFit(); @@ -91,7 +91,7 @@ double m_scaleFactor, m_scaleMin, m_scaleMax; KToggleAction* m_zoomFitPageAction; - KAction* m_zoomFitAction, *m_zoomInAction, *m_zoomOutAction, *m_actualSizeAction; + QAction* m_zoomFitAction, *m_zoomInAction, *m_zoomOutAction, *m_actualSizeAction; }; #endif // IMAGEVIEW_H Index: src/widgets/imageview.cpp =================================================================== --- src/widgets/imageview.cpp +++ src/widgets/imageview.cpp @@ -17,9 +17,8 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "renderthread.h" // the Cirkuit version #include "imageview.h" -#include "renderthread.h" - #include #include #include @@ -28,11 +27,11 @@ #include #include -#include -#include +#include +#include #include #include -#include +#include ImageView::ImageView(QWidget* parent): QGraphicsView(parent), m_image(QImage()), m_pdfUrl(QString()) { @@ -72,15 +71,15 @@ m_zoomInAction = KStandardAction::zoomIn(this, SLOT(zoomIn()), actionCollection); m_zoomOutAction = KStandardAction::zoomOut(this, SLOT(zoomOut()), actionCollection); m_zoomFitAction = KStandardAction::fitToPage(this, SLOT(zoomFit()), actionCollection); - m_zoomFitAction->setIcon(KIcon("zoom-fit-best")); + m_zoomFitAction->setIcon(QIcon("zoom-fit-best")); m_actualSizeAction = KStandardAction::actualSize(this, SLOT(normalSize()), actionCollection); connect(this, SIGNAL(enableZoomIn(bool)), m_zoomInAction, SLOT(setEnabled(bool))); connect(this, SIGNAL(enableZoomOut(bool)), m_zoomOutAction, SLOT(setEnabled(bool))); m_zoomFitPageAction = new KToggleAction(i18n("Zoom to fit"), 0); - m_zoomFitPageAction->setShortcut(Qt::CTRL + Qt::Key_0); - m_zoomFitPageAction->setIcon(KIcon("zoom-fit-best")); + actionCollection->setDefaultShortcut(m_zoomFitPageAction, Qt::CTRL + Qt::Key_0); + m_zoomFitPageAction->setIcon(QIcon("zoom-fit-best")); actionCollection->addAction( "view_zoom_to_fit", m_zoomFitPageAction); connect(m_zoomFitPageAction, SIGNAL(triggered()), this, SLOT(updateZoomToFit())); connect(this, SIGNAL(fitModeChanged(bool)), m_zoomFitPageAction, SLOT(setChecked(bool))); @@ -95,27 +94,27 @@ addAction(m_zoomFitPageAction); } -KAction* ImageView::zoomFitAction() const +QAction* ImageView::zoomFitAction() const { return m_zoomFitAction; } -KAction* ImageView::zoomFitPageAction() const +QAction* ImageView::zoomFitPageAction() const { return m_zoomFitPageAction; } -KAction* ImageView::zoomInAction() const +QAction* ImageView::zoomInAction() const { return m_zoomInAction; } -KAction* ImageView::zoomOutAction() const +QAction* ImageView::zoomOutAction() const { return m_zoomOutAction; } -KAction* ImageView::actualSizeAction() const +QAction* ImageView::actualSizeAction() const { return m_actualSizeAction; } Index: src/widgets/templatechoosedialog.h =================================================================== --- src/widgets/templatechoosedialog.h +++ src/widgets/templatechoosedialog.h @@ -19,11 +19,12 @@ #ifndef TEMPLATECHOOSEDIALOG_H #define TEMPLATECHOOSEDIALOG_H -#include "ui_templatechooser.h" - +#include +#include #include - -#include +#include +#include +#include "ui_templatechooser.h" namespace Cirkuit { } @@ -39,34 +40,34 @@ void applyBackendFilter(const QString& backendName = QString()); void refresh(); + virtual void DeleteRow(const QModelIndex& index, const int row); private: QString m_backendFilter; }; -class TemplateChooseDialog : public KDialog +class TemplateChooseDialog : public QDialog { Q_OBJECT public: - explicit TemplateChooseDialog(const QString& backendName = QString(), QWidget* parent = 0, Qt::WFlags flags = 0); + explicit TemplateChooseDialog(const QString& backendName = QString(), const QUrl& cur_selection = QUrl(), QWidget* parent = 0, Qt::WindowFlags flags = 0); - KUrl selectedFile() const; + QUrl selectedFile() const; protected: TemplateModel* m_model; Ui::TemplateChooseBase m_ui; QString m_backend; - KUrl m_selected; + QUrl m_selected = QUrl(); protected slots: void changeCurrent(const QModelIndex& index); - void copyTempFile(const QString& fileName); - void update(); + void update(const QString& dummy = QString()); void readUrlSelected(const QModelIndex& index); - void downloadTemplate(); - void uploadTemplate(); + // void downloadTemplate(); + // void uploadTemplate(); void editTemplate(); void addTemplate(); void removeTemplate(); Index: src/widgets/templatechoosedialog.cpp =================================================================== --- src/widgets/templatechoosedialog.cpp +++ src/widgets/templatechoosedialog.cpp @@ -17,25 +17,35 @@ */ #include "templatechoosedialog.h" - #include - -#include -#include -#include - -#include "lib/documenttemplate.h" -#include -#include -#include +#include +//#include +//#include +#include "documenttemplate.h" +#include +#include +#include +#include +#include +#include #include -#include #include -#include -#include +#include +#include +#include +#include +#include +#include using namespace Cirkuit; +void TemplateModel::DeleteRow(const QModelIndex& index, const int row) +{ + beginRemoveRows(index, row, row); + removeRows(row, 1); + endRemoveRows(); +} + TemplateModel::TemplateModel(QObject* parent): QAbstractListModel(parent) { m_backendFilter.clear(); @@ -55,9 +65,9 @@ switch (role) { case Qt::DisplayRole: - return TemplateManager::availableTemplates(m_backendFilter).at(index.row())->name(); + return TemplateManager::availableTemplates(m_backendFilter).at(index.row())->getDocFn(); case Qt::UserRole: - return TemplateManager::availableTemplates(m_backendFilter).at(index.row())->path(); + return TemplateManager::availableTemplates(m_backendFilter).at(index.row())->getDocFnPath(); default: return QVariant(); } @@ -68,62 +78,99 @@ if (m_backendFilter == backendName) { return; } + beginResetModel(); + m_backendFilter.clear(); m_backendFilter = backendName; - reset(); + endResetModel(); + } void TemplateModel::refresh() { + beginResetModel(); TemplateManager::scanTemplates(); - reset(); + endResetModel(); } -TemplateChooseDialog::TemplateChooseDialog(const QString& backendName, QWidget* parent, Qt::WFlags flags): KDialog(parent, flags) +TemplateChooseDialog::TemplateChooseDialog(const QString& backendName, const QUrl& cur_selection, QWidget* parent, + Qt::WindowFlags flags): QDialog(parent, flags) { - kDebug() << "FILTERING " << backendName; + m_selected = cur_selection; + qDebug() << "FILTERING " << backendName; + setWindowTitle(i18n("Template manager")); m_model = new TemplateModel(this); - m_model->applyBackendFilter(backendName); + m_model->refresh(); + m_model->applyBackendFilter(backendName); + m_backend = backendName; QWidget* w=new QWidget(this); m_ui.setupUi(w); m_ui.listView->setModel(m_model); + + + qDebug() << "Looking for" << m_selected; + int nrows = m_model->rowCount(); + if (nrows>0) + { + QModelIndex m_idx2 = m_model->index(0, 0); + for (int i=0; iindex(i, 0); + QUrl m_row = m_model->data(m_idx, Qt::UserRole).value(); + if (cur_selection == m_row ) { m_idx2 = m_idx; } + } + m_ui.listView->setCurrentIndex(m_idx2); + m_selected = m_model->data(m_idx2, Qt::UserRole).value(); + } - m_ui.btnAdd->setIcon(KIcon("list-add")); - m_ui.btnRemove->setIcon(KIcon("list-remove")); - m_ui.btnEdit->setIcon(KIcon("document-edit")); - m_ui.btnDownload->setIcon(KIcon("get-hot-new-stuff")); - m_ui.btnUpload->setIcon(KIcon("get-hot-new-stuff")); + m_ui.btnAdd->setIcon(QIcon::fromTheme("list-add")); + m_ui.btnRemove->setIcon(QIcon::fromTheme("list-remove")); + m_ui.btnEdit->setIcon(QIcon::fromTheme("document-edit")); + // m_ui.btnDownload->setIcon(QIcon::fromTheme("get-hot-new-stuff")); + // m_ui.btnUpload->setIcon(QIcon::fromTheme("get-hot-new-stuff")); - m_ui.btnEdit->setEnabled(false); - m_ui.btnUpload->setEnabled(false); - m_ui.btnRemove->setEnabled(false); - m_ui.comboBackend->setCurrentItem(backendName, true); - setMainWidget(w); - - setWindowTitle(i18n("Template manager")); - + if (nrows==0) + { + m_ui.btnEdit->setEnabled(false); + m_ui.btnRemove->setEnabled(false); + }; + if (m_ui.comboBackend->findText(backendName)<0) { m_ui.comboBackend->addItem(backendName);} + m_ui.comboBackend->setCurrentIndex(0); + w->setLayout(m_ui.gridLayout); + + // Use signals to update the listView (of template files) ifa deletion or creation occurs + // The removeTemplate() and editTemplate() functions also call update(). + // + KDirWatch* dirWatch = new KDirWatch; + dirWatch->addDir(QStandardPaths::locate(QStandardPaths::AppDataLocation, "templates", QStandardPaths::LocateDirectory)); + connect(dirWatch, SIGNAL(dirty(QString)), this, SLOT(update(QString))); + connect(m_ui.listView, SIGNAL(clicked(QModelIndex)), this, SLOT(changeCurrent(QModelIndex))); - connect(m_ui.btnDownload, SIGNAL(clicked(bool)), this, SLOT(downloadTemplate())); - connect(m_ui.btnUpload, SIGNAL(clicked(bool)), this, SLOT(uploadTemplate())); + // connect(m_ui.btnDownload, SIGNAL(clicked(bool)), this, SLOT(downloadTemplate())); + // connect(m_ui.btnUpload, SIGNAL(clicked(bool)), this, SLOT(uploadTemplate())); connect(m_ui.btnEdit, SIGNAL(clicked(bool)), this, SLOT(editTemplate())); connect(m_ui.btnAdd, SIGNAL(clicked(bool)), this, SLOT(addTemplate())); connect(m_ui.btnRemove, SIGNAL(clicked(bool)), this, SLOT(removeTemplate())); + connect(m_ui.buttonBox, SIGNAL(accepted()), this, SLOT(accept())); + connect(m_ui.buttonBox, SIGNAL(rejected()), this, SLOT(reject())); } void TemplateChooseDialog::changeCurrent(const QModelIndex& index) { m_ui.btnEdit->setEnabled(index.isValid()); - m_ui.btnUpload->setEnabled(index.isValid()); + // m_ui.btnUpload->setEnabled(index.isValid()); m_ui.btnRemove->setEnabled(index.isValid()); if (index.isValid()) { readUrlSelected(index); } else { - m_selected = KUrl(); + m_selected = QUrl(); } + qDebug() << "Selected" << m_selected; } -KUrl TemplateChooseDialog::selectedFile() const + +QUrl TemplateChooseDialog::selectedFile() const { return m_selected; } @@ -134,75 +181,56 @@ return; } - m_selected = m_model->data(index, Qt::UserRole).value(); -} - -void TemplateChooseDialog::downloadTemplate() -{ - QPointer dialog = new KNS3::DownloadDialog("cirkuit_template.knsrc"); - dialog->exec(); - foreach (const KNS3::Entry& e, dialog->changedEntries()) { - kDebug() << "Changed Entry: " << e.name(); - } -} - -void TemplateChooseDialog::uploadTemplate() -{ - if (!m_ui.listView->currentIndex().isValid()) return; - - KNS3::UploadDialog dialog("cirkuit_template.knsrc"); - dialog.setUploadFile(m_selected); - dialog.setUploadName("A template for Cirkuit"); - dialog.exec(); + m_selected = m_model->data(index, Qt::UserRole).value(); } +// New scheme (calls editor on actual file) void TemplateChooseDialog::editTemplate() { if (!m_selected.isValid()) return; - - KTemporaryFile* tempFile = new KTemporaryFile; - tempFile->setPrefix(KStandardDirs::locateLocal("tmp", "cirkuit/templates/", true)); - tempFile->open(); - QFileInfo tempFileInfo(tempFile->fileName()); - tempFile->close(); - tempFile->remove(); - delete tempFile; - - if (KIO::NetAccess::file_copy(m_selected, tempFileInfo.absoluteFilePath(), this)) { - KDirWatch* dirWatch = new KDirWatch; - dirWatch->addFile(tempFileInfo.absoluteFilePath()); - connect(dirWatch, SIGNAL(dirty(QString)), this, SLOT(copyTempFile(QString))); - KRun::runUrl(tempFileInfo.absoluteFilePath(), "text/plain", 0); - } + + QString fnpath(m_selected.path()); + //QMimeDatabase db; + //const QString mimtype = db.mimeTypeForFile(Finfo.fileName()).name(); + const QString mimtype("text/plain"); + KRun::runUrl(QUrl(fnpath), mimtype, this, KRun::RunFlags()); } + +/* void TemplateChooseDialog::copyTempFile(const QString& fileName) { - KUrl dest = KStandardDirs::locateLocal("appdata", QString("templates/%1").arg(m_selected.fileName())); + QUrl dest = QString("templates/%1").arg(m_selected.fileName())); - if (KIO::NetAccess::exists(dest, KIO::NetAccess::DestinationSide, this)) { - KIO::NetAccess::del(dest, this); + if (QFile::exists(dest, KNS3::DestinationSide)) { + bool ok = QFile::remove(dest); } - KIO::NetAccess::file_copy(fileName, dest, this); + bool ok = QFile::copy(fileName, dest); // changed. Need full paths. update(); } +*/ + void TemplateChooseDialog::addTemplate() { bool ok = false; - QString name = KInputDialog::getText(i18n("Template name"), i18n("Insert the template name"), "template.ckt", &ok); + QString name = QInputDialog::getText(this, i18n("Template name"), i18n("Insert the template name"), QLineEdit::Normal, "template.ckt", &ok); if (!ok || name.isEmpty()) return; - - KUrl newUrl = KStandardDirs::locateLocal("appdata", QString("templates/%1").arg(name)); - + + QDir dir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + QString("/templates/")); + if (!dir.exists()) {dir.mkpath(".");} + QString s = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + QString("/templates/%1").arg(name); + QUrl newUrl = QUrl(s); + QFile newTemplate(newUrl.path()); if (!newTemplate.open(QIODevice::WriteOnly | QIODevice::Text)) { + qDebug() << "File already exists."; return; } - + QTextStream out(&newTemplate); - out << "%%backend=%%\n"; + out << "%%backend="<< m_backend << "%%\n"; newTemplate.close(); m_selected = newUrl; @@ -210,6 +238,8 @@ update(); } + + void TemplateChooseDialog::removeTemplate() { readUrlSelected(m_ui.listView->currentIndex()); @@ -220,11 +250,95 @@ return; } - KIO::NetAccess::del(m_selected, this); - update(); + QFile Fn(m_selected.toString()); + bool ok = Fn.remove(); + if (!ok) + { + KMessageBox::error(this, i18n("The file could not be removed (check permissions?)."), + i18n("Error deleting file"), 0); + return; + } + + QModelIndex index = m_ui.listView->currentIndex(); + //m_model->DeleteRow(index, index.row()); // does not work + update(); // so these three lines instead (also grey out button if needed) + index = m_ui.listView->currentIndex(); + m_selected = m_model->data(index, Qt::UserRole).value(); } -void TemplateChooseDialog::update() +void TemplateChooseDialog::update(const QString& dummy) { m_model->refresh(); + int nrows = m_model->rowCount(); + if (nrows==0) + { + m_ui.btnEdit->setEnabled(false); + m_ui.btnRemove->setEnabled(false); + } + else + { + m_ui.btnEdit->setEnabled(true); + m_ui.btnRemove->setEnabled(true); + }; + + +} + + +/* +// Omit this for now. +void TemplateChooseDialog::downloadTemplate() +{ + QPointer dialog = new KNS3::DownloadDialog("cirkuit_template.knsrc"); + dialog->exec(); + foreach (const KNS3::Entry& e, dialog->changedEntries()) { + qDebug() << "Changed Entry: " << e.name(); + } +} + +void TemplateChooseDialog::uploadTemplate() +{ + if (!m_ui.listView->currentIndex().isValid()) return; + + KNS3::UploadDialog dialog("cirkuit_template.knsrc"); + dialog.setUploadFile(m_selected); + dialog.setUploadName("A template for Cirkuit"); + dialog.exec(); } +*/ + + +// Old scheme - open a copy coied to /tmp +/* +void TemplateChooseDialog::editTemplate() +{ + if (!m_selected.isValid()) return; + + // Get a temporary filename + QTemporaryFile* tempFile = new QTemporaryFile; + tempFile->open(); // The name is not set until the file is opened. + QFileInfo Finfo(tempFile->fileName()); + tempFile->close(); + tempFile->remove(); + + // Create the temporary file in subdir of TempLocation + QString DestDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation) + "/cirkuit/templates"; + QDir dir(DestDir); + if (!dir.exists()) {dir.mkpath(".");} + tempFile->setFileTemplate(DestDir); + QString fnpath = DestDir + '/' + Finfo.fileName(); + + bool ok = QFile::copy(m_selected.path(), fnpath); + if (ok) { + KDirWatch* dirWatch = new KDirWatch; + dirWatch->addFile(fnpath); + connect(dirWatch, SIGNAL(dirty(QString)), this, SLOT(copyTempFile(QString))); + //QMimeDatabase db; + //const QString mimtype = db.mimeTypeForFile(Finfo.fileName()).name(); + const QString mimtype("text/plain"); + KRun::runUrl(QUrl(fnpath), mimtype, this, KRun::RunFlags()); + } + else + { qDebug() << "Failed to copy" << m_selected.path() << "to" << fnpath; } +} +*/ Index: src/widgets/templatechooser.ui =================================================================== --- src/widgets/templatechooser.ui +++ src/widgets/templatechooser.ui @@ -22,7 +22,7 @@
- + false @@ -43,40 +43,42 @@ - + New - + Edit - + Remove + - + Download - + Upload +<--> @@ -92,20 +94,15 @@ + + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + - - - KPushButton - QPushButton -
kpushbutton.h
-
- - KComboBox - QComboBox -
kcombobox.h
-
-
Index: src/widgets/widgetfloater.cpp =================================================================== --- src/widgets/widgetfloater.cpp +++ src/widgets/widgetfloater.cpp @@ -27,8 +27,8 @@ #include // KDE -#include -#include +//#include +#include struct WidgetFloaterPrivate { QWidget* mParent; @@ -95,8 +95,9 @@ d->mParent->installEventFilter(this); d->mChild = 0; d->mAlignment = Qt::AlignCenter; - d->mHorizontalMargin = KDialog::marginHint(); - d->mVerticalMargin = KDialog::marginHint(); + d->mHorizontalMargin = // QDialog::marginHint(); //** + 1; + d->mVerticalMargin = d->mHorizontalMargin; d->mInsideUpdateChildGeometry = false; } Index: trunk.kdev4 =================================================================== --- trunk.kdev4 +++ /dev/null @@ -1,3 +0,0 @@ -[Project] -Manager=KDevCMakeManager -Name=cirkuit