Skip to content

Commit

Permalink
Cross-link types to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
matsjoyce-refeyn committed Oct 28, 2024
1 parent 80a8d06 commit cb04e2a
Show file tree
Hide file tree
Showing 24 changed files with 46 additions and 14 deletions.
2 changes: 2 additions & 0 deletions QuickGraphLib/Axis.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import QuickGraphLib as QuickGraphLib
\inqmlmodule QuickGraphLib
\inherits QtQuick::Item
\brief Displays an Axis.
\sa {Basic sin graph (without prefabs)}, {Graph with all four axes}
*/

Item {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/ColorMaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
\inqmlmodule QuickGraphLib
\inherits QObject
\brief Utility functions for color maps.
\sa {ImageView}, {Builtin color maps}, {Color mapped images}
*/

extern const std::map<ColorMaps::ColorMapName, QList<QRgb>> DEFAULT_COLORMAPS;
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphArea.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
\inqmlmodule QuickGraphLib
\inherits QtQuick::Shapes::Shape
\brief An area that graphs can be added to.
\sa {Basic sin graph (without prefabs)}, {Inverted axes}
*/

QQS.Shape {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/AxHLine.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
\inqmlmodule QuickGraphLib.GraphItems
\inherits QtQuick::Shapes::ShapePath
\brief Displays a horizontal line.
\sa {Spans and lines}
*/

QQS.ShapePath {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/AxHSpan.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
\inqmlmodule QuickGraphLib.GraphItems
\inherits QtQuick::Shapes::ShapePath
\brief Displays a horizontal span.
\sa {Spans and lines}
*/

QQS.ShapePath {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/AxVLine.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
\inqmlmodule QuickGraphLib.GraphItems
\inherits QtQuick::Rectangle
\brief Displays an vertical line.
\sa {Spans and lines}, {Draggable region}
*/

QQS.ShapePath {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/AxVSpan.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
\inqmlmodule QuickGraphLib.GraphItems
\inherits QtQuick::Shapes::ShapePath
\brief Displays an vertical span.
\sa {Spans and lines}, {Basic histogram}, {Draggable region}
*/

QQS.ShapePath {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/BasicLegend.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import QtQuick
\brief Displays a simple legend.
\note This graph item does not inherit from ShapePath, unlike other graph items.
\sa {Basic sin graph}
*/

Rectangle {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/BasicLegendItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import QtQuick
\inqmlmodule QuickGraphLib.GraphItems
\inherits QtQuick::Row
\brief An single entry in a simple legend.
\sa {Basic sin graph}
*/

Row {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/ColorMesh.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import QuickGraphLib as QuickGraphLib
\brief Display a colorized image from a 2D array.
\note This graph item does not inherit from ShapePath, unlike other graph items.
\sa {Color mesh}, {Color mapped images}
*/

QuickGraphLib.ImageView {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/Contour.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import QuickGraphLib as QuickGraphLib
\inqmlmodule QuickGraphLib.GraphItems
\inherits QtQuick::Shapes::ShapePath
\brief Draw a contour line or fill.
\sa {Contours}
*/

QQS.ShapePath {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/GraphItemDragHandler.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import QtQuick
\inqmlmodule QuickGraphLib.GraphItems
\inherits QtQuick::MouseArea
\brief Assists converting mouse drags into data positions.
\sa {Draggable region}
*/

MouseArea {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/Grid.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import QuickGraphLib.GraphItems as QGLGraphItems
\inqmlmodule QuickGraphLib.GraphItems
\inherits QtQuick::Shapes::ShapePath
\brief Displays a grid in the background of a graph.
\sa {Basic sin graph (without prefabs)}
*/

QQS.ShapePath {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/Histogram.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import QuickGraphLib.GraphItems as QGLGraphItems
\inqmlmodule QuickGraphLib.GraphItems
\inherits QtQuick::Shapes::ShapePath
\brief Displays a histogram.
\sa {Basic histogram}
*/

QQS.ShapePath {
Expand Down
14 changes: 1 addition & 13 deletions QuickGraphLib/GraphItems/Line.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,7 @@ import QuickGraphLib as QuickGraphLib
Graph a line using a list of X,Y points. The style of the line can be adjusted using the \l {ShapePath::strokeColor} {strokeColor} and \l {ShapePath::strokeWidth} {strokeWidth} properties.
\qml
GraphArea {
id: grapharea
viewRect: Qt.rect(-20, -1.1, 760, 2.2)
Line {
dataTransform: grapharea.dataTransform
path: Helpers.linspace(0, 720, 100).map(x => Qt.point(x, Math.sin(x / 180 * Math.PI)))
strokeColor: "red"
strokeWidth: 2
}
}
\endqml
\sa {Basic sin graph}
*/

QQS.ShapePath {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/GraphItems/Marker.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import QtQuick
\brief Displays a circular marker.
\note This graph item does not inherit from ShapePath, unlike other graph items. This is for performance reasons.
\sa {Scatter graph}
*/

Rectangle {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/ImageView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
\inqmlmodule QuickGraphLib
\inherits QtQuick::Item
\brief Display a colorized image from a 2D array.
\sa {Builtin color maps}, {Color mapped images}, {Image alignment}
*/

/*!
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/PreFabs/ImageAxes.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import QuickGraphLib.GraphItems as QGLGraphItems
\inqmlmodule QuickGraphLib.PreFabs
\inherits QuickGraphLib::AntialiasingContainer
\brief Displays an image with axes and a colorbar.
\sa {Color mesh}
*/

QuickGraphLib.AntialiasingContainer {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/PreFabs/XYAxes.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import QuickGraphLib.GraphItems as QGLGraphItems
\inqmlmodule QuickGraphLib.PreFabs
\inherits QuickGraphLib::AntialiasingContainer
\brief Displays an XY axis with a grid.
\sa {Basic sin graph}, {Dark theme sin graph}, {Subgraphs}
*/

QuickGraphLib.AntialiasingContainer {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/ScalingContainer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import QtQuick
\brief Scales its contents while preserving the aspect ratio.
This container applies a scaling factor to its content item that preserves its aspect ratio.
\sa {Scaled graph}
*/

AntialiasingContainer {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/ShapeRepeater.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
\inqmlmodule QuickGraphLib
\inherits QtQml::Models::Instantiator
\brief A \l{Repeater}-like component that works with \l{ShapePath}s.
\sa {Scatter graph}
*/

QQM.Instantiator {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/TickLabel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import QtQuick
This is the default implementation of a tick label. To customise how labels are shown,
you can subclass this and override the \l Text::text property.
\sa {Axis}
*/

Text {
Expand Down
2 changes: 2 additions & 0 deletions QuickGraphLib/ZoomPanHandler.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import QtQuick
\inqmlmodule QuickGraphLib
\inherits QtQuick::PinchArea
\brief Pinch/drag handling for graph or image zoom/pan interactions.
\sa {Zoomable as image}, {Zoomable axes}
*/

PinchArea {
Expand Down
2 changes: 1 addition & 1 deletion docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pre {
background-color: #222;
padding: 1em;
color: white;
overflow-x: scroll;
overflow-x: auto;
font-size: 0.9em;
}

Expand Down

0 comments on commit cb04e2a

Please sign in to comment.