forked from qt-creator/qt-creator
Merge branch '0.9.2-rc1' of git@scm.dev.nokia.troll.no:creator/mainline into 0.9.2-rc1
This commit is contained in:
BIN
doc/qtcreator-texteditor-completion.png
Normal file
BIN
doc/qtcreator-texteditor-completion.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
BIN
doc/qtcreator-texteditor-fonts.png
Normal file
BIN
doc/qtcreator-texteditor-fonts.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
BIN
doc/qtcreator-texteditor-general.png
Normal file
BIN
doc/qtcreator-texteditor-general.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 68 KiB |
@@ -215,8 +215,20 @@
|
|||||||
|
|
||||||
\title The Code Editor
|
\title The Code Editor
|
||||||
|
|
||||||
### SCREENSHOT of the editor in action
|
Qt Creator's code editor is designed to aid the developer to create, edit,
|
||||||
|
and navigate code. It is fully equipped with syntax highlighting, code
|
||||||
|
completion, context sensitive help, as well as inline error indicators
|
||||||
|
while you are typing. The screenshots below show the various dialogs within
|
||||||
|
which you can configure your editor.
|
||||||
|
|
||||||
|
\table
|
||||||
|
\row
|
||||||
|
\i \inlineimage qtcreator-texteditor-general.png
|
||||||
|
\i \inlineimage qtcreator-texteditor-fonts.png
|
||||||
|
\i \inlineimage qtcreator-texteditor-completion.png
|
||||||
|
\endtable
|
||||||
|
|
||||||
|
The table below lists keyboard shortcuts supported by the code editor.
|
||||||
|
|
||||||
\table
|
\table
|
||||||
\row
|
\row
|
||||||
@@ -239,10 +251,19 @@
|
|||||||
\row
|
\row
|
||||||
\i Indenting Blocks
|
\i Indenting Blocks
|
||||||
\i Use \key{Ctrl+I}
|
\i Use \key{Ctrl+I}
|
||||||
|
|
||||||
|
\row
|
||||||
|
\i Collapse
|
||||||
|
\i Use \key{Ctrl+\<}
|
||||||
|
|
||||||
\row
|
\row
|
||||||
\i Commenting or uncommenting blocks
|
\i Commenting or uncommenting blocks
|
||||||
\i Use \key{Ctrl+\/}
|
\i Use \key{Ctrl+\/}
|
||||||
|
|
||||||
|
\row
|
||||||
|
\i Delete a line
|
||||||
|
\i Use \key{Shift+Del}
|
||||||
|
|
||||||
\row
|
\row
|
||||||
\i Switch between header file and source file
|
\i Switch between header file and source file
|
||||||
\i Use \key{F4}.
|
\i Use \key{F4}.
|
||||||
@@ -256,20 +277,13 @@
|
|||||||
\i Use \key{F2} and \key{Shift+F2}. This feature works with
|
\i Use \key{F2} and \key{Shift+F2}. This feature works with
|
||||||
namespaces, classes, methods, variables, include statements,
|
namespaces, classes, methods, variables, include statements,
|
||||||
and macros.
|
and macros.
|
||||||
|
|
||||||
|
\row
|
||||||
|
\i Switch to an external editor
|
||||||
|
\i Select \gui{Open in external editor} from the
|
||||||
|
\gui{Edit -> Advanced} menu.
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
|
|
||||||
More:
|
|
||||||
|
|
||||||
Collapse
|
|
||||||
|
|
||||||
Up/Down/Page Up/Page Down - hold ctrl to prevent the cursor from moving
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
To switch to an external editor, select \gui{Open in external editor} from
|
|
||||||
the \gui{Edit -> Advanced} menu.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -462,6 +462,7 @@ bool EditorManager::unregisterEditor(IEditor *editor)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void EditorManager::updateCurrentEditorAndGroup(IContext *context)
|
void EditorManager::updateCurrentEditorAndGroup(IContext *context)
|
||||||
{
|
{
|
||||||
if (debugEditorManager)
|
if (debugEditorManager)
|
||||||
@@ -470,7 +471,8 @@ void EditorManager::updateCurrentEditorAndGroup(IContext *context)
|
|||||||
IEditor *editor = context ? qobject_cast<IEditor*>(context) : 0;
|
IEditor *editor = context ? qobject_cast<IEditor*>(context) : 0;
|
||||||
if (groupContext) {
|
if (groupContext) {
|
||||||
m_d->m_splitter->setCurrentGroup(groupContext->editorGroup());
|
m_d->m_splitter->setCurrentGroup(groupContext->editorGroup());
|
||||||
setCurrentEditor(0);
|
if (groupContext->editorGroup()->editorCount() == 0)
|
||||||
|
setCurrentEditor(0);
|
||||||
updateActions();
|
updateActions();
|
||||||
} else if (editor) {
|
} else if (editor) {
|
||||||
setCurrentEditor(editor);
|
setCurrentEditor(editor);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ QT = core
|
|||||||
macx:CONFIG -= app_bundle
|
macx:CONFIG -= app_bundle
|
||||||
TARGET = cplusplus0
|
TARGET = cplusplus0
|
||||||
|
|
||||||
include(../../../shared/cplusplus/cplusplus.pri)
|
include(../../../src/shared/cplusplus/cplusplus.pri)
|
||||||
|
|
||||||
# Input
|
# Input
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user