Doc: Combine "Working with Sidebars" and "Show and hide sidebars"

- Sidebars are hidden in QDS and the views can be added to
  workspaces, so hide references to sidebars on the QDS side.

Task-number: QTCREATORBUG-29361
Change-Id: Ic468f6f818bddb391bd9514d273ecf8b6b412187
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
This commit is contained in:
Leena Miettinen
2023-07-03 14:44:17 +02:00
parent 1956b0f698
commit a23b933308
10 changed files with 70 additions and 78 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2022 The Qt Company Ltd. // Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
// ********************************************************************** // **********************************************************************
@@ -11,7 +11,7 @@
\previouspage creator-editor-functions.html \previouspage creator-editor-functions.html
\page creator-coding-navigating.html \page creator-coding-navigating.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\nextpage creator-sidebars.html \nextpage creator-views.html
\else \else
\nextpage creator-highlighting.html \nextpage creator-highlighting.html
\endif \endif
@@ -246,7 +246,12 @@
\endlist \endlist
To view the note, move the mouse pointer over the bookmark or open the To view the note, move the mouse pointer over the bookmark or open the
\uicontrol Bookmarks view in the \l{Working with Sidebars}{sidebar}. \uicontrol Bookmarks view
\if defined(qtcreator)
in the \l{Show and hide sidebars}{sidebar}.
\else
in the \l{Managing Workspaces}{workspace}.
\endif
\section2 Navigating Bookmarks \section2 Navigating Bookmarks
@@ -358,13 +363,11 @@
\QC underlines semantic errors in olive in the C++ code editor. To check the \QC underlines semantic errors in olive in the C++ code editor. To check the
correct paths for includes that are not resolved or that are resolved to the correct paths for includes that are not resolved or that are resolved to the
wrong file, select \uicontrol {Project Parts} > \uicontrol {Header Paths}. wrong file, select \uicontrol {Project Parts} > \uicontrol {Header Paths}.
\endif
\if defined(qtdesignstudio) \else
\section1 Related Topics \section1 Related Topics
\list \list
\li \l{Working with Sidebars}
\li \l{Browsing Project Contents} \li \l{Browsing Project Contents}
\li \l{Viewing Output} \li \l{Viewing Output}
\endlist \endlist

View File

@@ -193,28 +193,6 @@
For more information, see \l{Using Command Line Options}. For more information, see \l{Using Command Line Options}.
*/ */
/*!
\page creator-how-to-show-and-hide-sidebars.html
\previouspage creator-how-tos.html
\nextpage creator-known-issues.html
\ingroup creator-how-to-ui
\title Show and hide sidebars
You can toggle the left and right sidebar in some \QC modes.
To toggle the left sidebar, click \inlineimage icons/leftsidebaricon.png
(\uicontrol {Hide Left Sidebar/Show Left Sidebar}) or press \key Alt+0
(\key Cmd+0 on \macos).
To toggle the right sidebar, click \inlineimage icons/rightsidebaricon.png
(\uicontrol {Hide Right Sidebar/Show Right Sidebar}) or press
\key Alt+Shift+0 (\key Cmd+Shift+0 on \macos).
For more information on using the sidebars, see
\l {Browsing Project Contents}.
*/
/*! /*!
\page creator-how-to-move-to-symbols.html \page creator-how-to-move-to-symbols.html
\previouspage creator-how-tos.html \previouspage creator-how-tos.html

View File

@@ -130,7 +130,7 @@
\section1 Managing Test Suites and Cases \section1 Managing Test Suites and Cases
You can manage Squish test suites and cases in the \uicontrol Squish You can manage Squish test suites and cases in the \uicontrol Squish
\l {Working with Sidebars}{view}. \l {Show and hide sidebars}{view}.
\image qtcreator-squish-view.png "Squish sidebar view" \image qtcreator-squish-view.png "Squish sidebar view"

View File

@@ -19,7 +19,6 @@
\li \l{IDE Overview} \li \l{IDE Overview}
\li \l{User Interface} \li \l{User Interface}
\list \list
\li \l{Working with Sidebars}
\li \l{Browsing Project Contents} \li \l{Browsing Project Contents}
\list \list
\li \l{Projects} \li \l{Projects}

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2022 The Qt Company Ltd. // Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*! /*!
@@ -8,8 +8,7 @@
\title File System \title File System
If you cannot see a file in the \l Projects view, switch to the The \uicontrol {File System} view shows all the files in the file system.
\uicontrol {File System} view, which shows all the files in the file system.
\note Usually, \l{Searching with the Locator}{searching with the locator} \note Usually, \l{Searching with the Locator}{searching with the locator}
is the fastest way to find a particular project, file, class, or function, is the fastest way to find a particular project, file, class, or function,
@@ -17,12 +16,9 @@
to open files from anywhere in the file system. to open files from anywhere in the file system.
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
The following image displays the \uicontrol {File System} view in the \image qtcreator-filesystem-view-design.png {File System view}
\uicontrol Design mode:
\image qtcreator-filesystem-view-design.png "File System view in the Design mode"
\else \else
\image qtcreator-filesystem-view.webp "File System view in the sidebar" \image qtcreator-filesystem-view.webp {File System view in the sidebar}
\endif \endif
To move to the root directory of the file system, select \uicontrol Computer To move to the root directory of the file system, select \uicontrol Computer
@@ -87,19 +83,11 @@
\li Collapse all open folders. \li Collapse all open folders.
\endlist \endlist
\if defined(qtcreator)
\section1 File System View Toolbar \section1 File System View Toolbar
\if defined(qtdesignstudio)
In the \uicontrol Edit and \uicontrol Debug mode, the
\uicontrol {File System} view is displayed in the \l{Working with Sidebars}
{sidebar}. It has a toolbar with additional options.
\image qtcreator-filesystem-view.webp "File System view in the sidebar"
\else
The toolbar in the \uicontrol {File System} view has additional The toolbar in the \uicontrol {File System} view has additional
options. options.
\endif
To manage view contents, select \inlineimage icons/filtericon.png To manage view contents, select \inlineimage icons/filtericon.png
(\uicontrol Options): (\uicontrol Options):
@@ -116,4 +104,5 @@
To stop the synchronization with the file currently open in the To stop the synchronization with the file currently open in the
editor, deselect \inlineimage icons/linkicon.png editor, deselect \inlineimage icons/linkicon.png
(\uicontrol {Synchronize with Editor}). (\uicontrol {Synchronize with Editor}).
\endif
*/ */

View File

@@ -0,0 +1,34 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\page creator-how-to-show-and-hide-sidebars.html
\previouspage creator-how-tos.html
\nextpage creator-known-issues.html
\ingroup creator-how-to-ui
\title Show and hide sidebars
In some \l{Switch between modes}{modes}, you can use a left and right
sidebar to organize different views into project contents. Only views
that are relevant to the mode you are working in are available in it.
Select views in the sidebar menu (1):
\image qtcreator-sidebar.png
You can change the view of the sidebars in the following ways:
\list
\li To toggle the left sidebar, click \inlineimage icons/leftsidebaricon.png
(\uicontrol {Hide Left Sidebar/Show Left Sidebar}) or press
\key Alt+0 (\key Cmd+0 on \macos).
\li To toggle the right sidebar, click \inlineimage icons/rightsidebaricon.png
(\uicontrol {Hide Right Sidebar/Show Right Sidebar}) or press
\key Alt+Shift+0 (\key Cmd+Shift+0 on \macos).
\li To split a sidebar, click \inlineimage icons/splitbutton_horizontal.png
(\uicontrol {Split}). Select new content to view in the split view.
\li To close a sidebar view, click \inlineimage icons/splitbutton_closetop.png
(\uicontrol {Close}).
\endlist
*/

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2022 The Qt Company Ltd. // Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*! /*!
@@ -13,6 +13,7 @@
\title Projects \title Projects
The \uicontrol Projects view displays projects in a project tree. The \uicontrol Projects view displays projects in a project tree.
The project tree has a list of all projects open in the current The project tree has a list of all projects open in the current
\l{Managing Sessions}{session}. For each project, the tree visualizes \l{Managing Sessions}{session}. For each project, the tree visualizes
the build system structure of the project and lists all files that the build system structure of the project and lists all files that
@@ -23,12 +24,9 @@
or almost anything else in your project. or almost anything else in your project.
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
The following image displays the \uicontrol Projects view in the \image qtcreator-projects-view-design.png {Projects view}
\uicontrol Design mode:
\image qtcreator-projects-view-design.png "Projects view in the Design mode"
\else \else
\image qtcreator-projects-view-edit.png "Projects view in the sidebar" \image qtcreator-projects-view-edit.png {Projects view in the sidebar}
\endif \endif
You can use the project tree in the following ways: You can use the project tree in the following ways:
@@ -54,6 +52,9 @@
configuration files. configuration files.
\endlist \endlist
\note If you cannot see a file in the \l Projects view, switch to the
\uicontrol {File System} view, which shows all the files in the file system.
\section1 Projects View Context Menu \section1 Projects View Context Menu
The \uicontrol Projects view has context menus for managing projects, The \uicontrol Projects view has context menus for managing projects,
@@ -61,8 +62,10 @@
projects and subprojects: projects and subprojects:
\list \list
\if defined(qtcreator)
\li Set a project as the active project. \li Set a project as the active project.
\li Execute the \uicontrol Build menu commands. \endif
\li Execute \uicontrol Build menu commands.
\li Create new files. For more information, see \li Create new files. For more information, see
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\l{Adding Files to Projects}. \l{Adding Files to Projects}.
@@ -109,18 +112,10 @@
the \l {File System} view. To view a project in it, select the \l {File System} view. To view a project in it, select
\uicontrol {Show in File System View}. \uicontrol {Show in File System View}.
\if defined(qtcreator)
\section1 Projects View Toolbar \section1 Projects View Toolbar
\if defined(qtdesignstudio)
In the \uicontrol Edit and \uicontrol Debug mode, the
\l{Working with Sidebars}{sidebar} has the \uicontrol Projects
view. It has a toolbar with additional options.
\image qtcreator-projects-view-edit.png "Projects view in the sidebar"
\else
The toolbar in the \uicontrol Projects view has additional options. The toolbar in the \uicontrol Projects view has additional options.
\endif
To filter view contents, select \inlineimage icons/filtericon.png To filter view contents, select \inlineimage icons/filtericon.png
(\uicontrol {Filter Tree}): (\uicontrol {Filter Tree}):
@@ -143,7 +138,6 @@
currently opened in the editor, deselect \inlineimage icons/linkicon.png currently opened in the editor, deselect \inlineimage icons/linkicon.png
(\uicontrol {Synchronize with Editor}). (\uicontrol {Synchronize with Editor}).
\if defined(qtcreator)
Some build systems support adding and removing files to a project in \QC Some build systems support adding and removing files to a project in \QC
(currently qmake and Qbs). The faithful display of the project structure (currently qmake and Qbs). The faithful display of the project structure
enables you to specify exactly where to place a new file in the build system. enables you to specify exactly where to place a new file in the build system.
@@ -155,8 +149,5 @@
from the version control system in brackets after the project name. from the version control system in brackets after the project name.
\QC currently implements this for Git (the view displays the branch name \QC currently implements this for Git (the view displays the branch name
or a tag) and ClearCase (the view displays the branch name). or a tag) and ClearCase (the view displays the branch name).
\else
If the project is under Git version control, you can see the currently
checked out branch or tag in brackets after the project name.
\endif \endif
*/ */

View File

@@ -14,7 +14,7 @@
\nextpage creator-using-qt-quick-designer.html \nextpage creator-using-qt-quick-designer.html
\else \else
\previouspage creator-overview.html \previouspage creator-overview.html
\nextpage creator-sidebars.html \nextpage creator-views.html
\endif \endif
\title User Interface \title User Interface
@@ -82,7 +82,7 @@
For information about new features and bug fixes in each \QC release, For information about new features and bug fixes in each \QC release,
select \uicontrol Help > \uicontrol {Change Log}. select \uicontrol Help > \uicontrol {Change Log}.
\sa {Working with Sidebars}, {Browsing Project Contents} \sa {Show and hide sidebars}, {Browsing Project Contents}
\sa {Use the UI}{How-to: Use the UI} \sa {Use the UI}{How-to: Use the UI}
\else \else

View File

@@ -1,25 +1,24 @@
// Copyright (C) 2021 The Qt Company Ltd. // Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*! /*!
\page creator-views.html \page creator-views.html
\previouspage creator-sidebars.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-coding-navigating.html
\nextpage creator-output-panes.html \nextpage creator-output-panes.html
\else \else
\previouspage creator-quick-tour.html
\nextpage creator-projects-view.html \nextpage creator-projects-view.html
\endif \endif
\title Browsing Project Contents \title Browsing Project Contents
You can organize \QC views in \l {Working with Sidebars}{sidebars} or as
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\l {Managing Workspaces}{workspaces}, depending on the \l{Mode}{mode} you You can organize \QDS views as \l {Managing Workspaces}{workspaces}.
are working in.
\else \else
workspaces, depending on the \l{Switch between modes} You can organize \QC views in \l {Show and hide sidebars}{sidebars} or as
{mode} you are working in. Only views that are relevant to a mode are workspaces, depending on the \l{Switch between modes}{mode} you are working
available in it. in. Only views that are relevant to a mode are available in it.
\endif \endif
\note Usually, \l{Searching with the Locator}{searching with the locator} \note Usually, \l{Searching with the Locator}{searching with the locator}

View File

@@ -202,7 +202,6 @@
\list \list
\li \l{Working in Edit Mode} \li \l{Working in Edit Mode}
\list \list
\li \l{Working with Sidebars}
\li \l{Browsing Project Contents} \li \l{Browsing Project Contents}
\li \l{Viewing Output} \li \l{Viewing Output}
\endlist \endlist