diff options
Diffstat (limited to 'src/share')
-rw-r--r-- | src/share/qtcreator/externaltools/lrelease.xml | 46 | ||||
-rw-r--r-- | src/share/qtcreator/externaltools/lupdate.xml | 46 | ||||
-rw-r--r-- | src/share/qtcreator/externaltools/sort.xml | 44 | ||||
-rw-r--r-- | src/share/qtcreator/externaltools/vi.xml | 44 | ||||
-rw-r--r-- | src/share/qtcreator/externaltools/vi_mac.xml | 91 |
5 files changed, 271 insertions, 0 deletions
diff --git a/src/share/qtcreator/externaltools/lrelease.xml b/src/share/qtcreator/externaltools/lrelease.xml new file mode 100644 index 0000000000..70f69c12fd --- /dev/null +++ b/src/share/qtcreator/externaltools/lrelease.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** Commercial Usage +** +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Nokia. +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at http://qt.nokia.com/contact. +** +**************************************************************************/ +--> +<externaltool id="lrelease"> + <description>Creates qm translation files that can be used by an application from the translator's ts files</description> + <description xml:lang="de">Erstellt die von Anwendungen nutzbaren qm-Dateien aus ts-Dateien von Übersetzern</description> + <displayname>Release translations (lrelease)</displayname> + <displayname xml:lang="de">Übersetzungen veröffentlichen (lrelease)</displayname> + <category>Linguist</category> + <category xml:lang="de">Linguist</category> + <order>2</order> + <executable> + <path>%{QT_INSTALL_BINS}/lrelease</path> + <path>lrelease</path> + <arguments>%{CurrentProject:FilePath}</arguments> + <workingdirectory>%{CurrentProject:Path}</workingdirectory> + </executable> +</externaltool> diff --git a/src/share/qtcreator/externaltools/lupdate.xml b/src/share/qtcreator/externaltools/lupdate.xml new file mode 100644 index 0000000000..65ce542efd --- /dev/null +++ b/src/share/qtcreator/externaltools/lupdate.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** Commercial Usage +** +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Nokia. +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at http://qt.nokia.com/contact. +** +**************************************************************************/ +--> +<externaltool id="lupdate"> + <description>Synchronizes translator's ts files with the program code</description> + <description xml:lang="de">Synchronisiert die ts-Übersetzungsdateien mit dem Programmcode</description> + <displayname>Update translations (lupdate)</displayname> + <displayname xml:lang="de">Übersetzungen aktualisieren (lupdate)</displayname> + <category>Linguist</category> + <category xml:lang="de">Linguist</category> + <order>1</order> + <executable> + <path>%{QT_INSTALL_BINS}/lupdate</path> + <path>lupdate</path> + <arguments>%{CurrentProject:FilePath}</arguments> + <workingdirectory>%{CurrentProject:Path}</workingdirectory> + </executable> +</externaltool> diff --git a/src/share/qtcreator/externaltools/sort.xml b/src/share/qtcreator/externaltools/sort.xml new file mode 100644 index 0000000000..c13858289d --- /dev/null +++ b/src/share/qtcreator/externaltools/sort.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** Commercial Usage +** +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Nokia. +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at http://qt.nokia.com/contact. +** +**************************************************************************/ +--> +<externaltool id="sort"> + <description>Sorts the selected text</description> + <description xml:lang="de">Sortiert den ausgewählten Text</description> + <displayname>Sort Selection</displayname> + <displayname xml:lang="de">Selektion Sortieren</displayname> + <category>Text</category> + <category xml:lang="de">Text</category> + <executable output="replaceselection" error="ignore"> + <path>sort</path> + <input>%{CurrentDocument:Selection}</input> + <workingdirectory>%{CurrentDocument:Path}</workingdirectory> + </executable> +</externaltool> diff --git a/src/share/qtcreator/externaltools/vi.xml b/src/share/qtcreator/externaltools/vi.xml new file mode 100644 index 0000000000..792401c071 --- /dev/null +++ b/src/share/qtcreator/externaltools/vi.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** Commercial Usage +** +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Nokia. +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at http://qt.nokia.com/contact. +** +**************************************************************************/ +--> +<externaltool id="vi"> + <description>Opens the current file in vi</description> + <description xml:lang="de">Öffnet die aktuelle Datei in vi</description> + <displayname>Edit with vi</displayname> + <displayname xml:lang="de">In vi öffnen</displayname> + <category>Text</category> + <category xml:lang="de">Text</category> + <executable output="reloaddocument"> + <path>xterm</path> + <arguments>-geom %{CurrentDocument:ColumnCount}x%{CurrentDocument:RowCount}+%{CurrentDocument:XPos}+%{CurrentDocument:YPos} -e vi "%{CurrentDocument:FilePath}" +%{CurrentDocument:Row} +"normal %{CurrentDocument:Column}|"</arguments> + <workingdirectory>%{CurrentDocument:Path}</workingdirectory> + </executable> +</externaltool> diff --git a/src/share/qtcreator/externaltools/vi_mac.xml b/src/share/qtcreator/externaltools/vi_mac.xml new file mode 100644 index 0000000000..f1b2d15513 --- /dev/null +++ b/src/share/qtcreator/externaltools/vi_mac.xml @@ -0,0 +1,91 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** Commercial Usage +** +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Nokia. +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at http://qt.nokia.com/contact. +** +**************************************************************************/ +--> +<externaltool id="vi"> + <description>Opens the current file in vi</description> + <description xml:lang="de">Öffnet die aktuelle Datei in vi</description> + <displayname>Edit with vi</displayname> + <displayname xml:lang="de">In vi öffnen</displayname> + <category>Text</category> + <category xml:lang="de">Text</category> + <executable output="reloaddocument"> + <path>osascript</path> + <input> + --Terminal opens a window by default when it is not running, so check + on applicationIsRunning(applicationName) + tell application "System Events" to count (every process whose name is applicationName) + return result is greater than 0 + end applicationIsRunning + set terminalWasRunning to applicationIsRunning("Terminal") + + set editorScript to "vi \"%{CurrentDocument:FilePath}\" +%{CurrentDocument:Row} +\"normal %{CurrentDocument:Column}|\"; exit" + tell application "Terminal" + --do script will open a new window if none given, but terminal already opens one if not running + if terminalWasRunning then + do script editorScript + else + do script editorScript in first window + end if + set currentTab to the result + set currentWindow to first window whose tabs contains currentTab + --set the geometry + set font size of current settings of currentTab to %{CurrentDocument:FontSize} + set number of columns of currentTab to %{CurrentDocument:ColumnCount} + set number of rows of currentTab to %{CurrentDocument:RowCount} + set position of currentWindow to {%{CurrentDocument:XPos}, %{CurrentDocument:YPos}} + activate + --make sure that the command has been called before waiting for it to end + try --window might have closed + repeat until currentTab's history contains editorScript + delay 0.2 + end repeat + on error + return + end try + --wait for the command to end and close the window + repeat + delay 0.2 + try --window might have closed + if busy of currentTab is false then + exit repeat + end if + on error + return + end try + end repeat + try --window might have closed + close currentWindow + end try + end tell + </input> + <workingdirectory>%{CurrentDocument:Path}</workingdirectory> + </executable> +</externaltool> |