forked from qt-creator/qt-creator
Doc: Add docs for experimental Nim plugin
Change-Id: Ie866334c37b626a8e6eea0d58092134d3f545d4d Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
BIN
doc/images/qtcreator-code-style-settings-edit-nim.png
Normal file
BIN
doc/images/qtcreator-code-style-settings-edit-nim.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 20 KiB |
BIN
doc/images/qtcreator-options-code-style-nim.png
Normal file
BIN
doc/images/qtcreator-options-code-style-nim.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
@@ -73,8 +73,8 @@
|
||||
\li \l{Indenting Text or Code}
|
||||
|
||||
\QC indents text and code according to rules that you
|
||||
specify separately for files that contain C++ or QML code and for
|
||||
other text files.
|
||||
specify separately for files that contain C++, QML, or
|
||||
Nim (experimental) code and for other text files.
|
||||
|
||||
\li \l{Using Qt Quick Toolbars}
|
||||
|
||||
|
@@ -1190,6 +1190,8 @@
|
||||
|
||||
\li QML files
|
||||
|
||||
\li Nim files
|
||||
|
||||
\li Other text files
|
||||
|
||||
\endlist
|
||||
@@ -1273,6 +1275,33 @@
|
||||
To specify different settings for a particular project, select
|
||||
\uicontrol Projects > \uicontrol {Code Style Settings}.
|
||||
|
||||
\section1 Indenting Nim Files
|
||||
|
||||
To specify settings for the Nim editor (experimental):
|
||||
|
||||
\list 1
|
||||
|
||||
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Nim.
|
||||
|
||||
\li In the \uicontrol {Current settings} field, select the settings to
|
||||
modify and click \uicontrol Copy.
|
||||
|
||||
\image qtcreator-options-code-style-nim.png "Nim Code Style options"
|
||||
|
||||
\li Give a name to the settings and click \uicontrol OK.
|
||||
|
||||
\li Click \uicontrol Edit to specify code style settings for the project.
|
||||
|
||||
\image qtcreator-code-style-settings-edit-nim.png "Edit Code Style Settings dialog"
|
||||
|
||||
\endlist
|
||||
|
||||
You can specify how to interpret the \key Tab key presses and how to align
|
||||
continuation lines.
|
||||
|
||||
To specify different settings for a particular project, select
|
||||
\uicontrol Projects > \uicontrol {Code Style}.
|
||||
|
||||
\section1 Indenting Other Text Files
|
||||
|
||||
To specify indentation settings for text files that do not contain C++ or
|
||||
|
@@ -213,11 +213,22 @@
|
||||
|
||||
\list
|
||||
|
||||
\li Plain C or C++ Project
|
||||
\li Plain C or C++ Application
|
||||
|
||||
Plain C or C++ project that uses qmake, Qbs, or CMake but does
|
||||
Plain C or C++ application that uses qmake, Qbs, or CMake but does
|
||||
not use the Qt library
|
||||
|
||||
\li Nim Application (experimental)
|
||||
|
||||
\l{http://nim-lang.org/}{Nim} application that uses qmake
|
||||
or CMake but does not use the Qt library
|
||||
|
||||
\note The \uicontrol {Nim Application} option becomes visible
|
||||
after you enable the experimental Nim plugin. Select
|
||||
\uicontrol Help > \uicontrol {About Plugins} >
|
||||
\uicontrol {Other Languages} > \uicontrol Nim, and then restart
|
||||
\QC.
|
||||
|
||||
\endlist
|
||||
|
||||
\li Import Project
|
||||
@@ -316,6 +327,10 @@
|
||||
Python class and source files that you can use to create Python
|
||||
classes and scripts with UTF-8 encoding.
|
||||
|
||||
\li Nim (experimental)
|
||||
|
||||
Nim source files with UTF-8 encoding.
|
||||
|
||||
\endlist
|
||||
|
||||
\section2 Creating C++ Classes
|
||||
|
@@ -87,7 +87,8 @@
|
||||
|
||||
You can specify command-line arguments in the arguments fields:
|
||||
\uicontrol {Additional arguments}, \uicontrol {Command arguments},
|
||||
\uicontrol {Make arguments}, or \uicontrol Arguments. You can create shell command lines
|
||||
\uicontrol {Make arguments}, \uicontrol Arguments, \uicontrol {Default Arguments},
|
||||
or \uicontrol {Extra arguments}. You can create shell command lines
|
||||
that can contain redirection and other advanced constructs. However, some
|
||||
more complex use cases, such as piping test data into the application being
|
||||
tested or grouping commands, are not supported because the value of the
|
||||
|
Reference in New Issue
Block a user