Qtitan Namespace

The Qtitan namespace contains miscellaneous identifiers used throughout the Qtitan components. More...

Header: #include <Qtitan>

Types

flags BestFitMode
enum BestFitModeFlag { FitToHeader, FitToViewContent, FitToContent, FitToHeaderAndViewContent, FitToHeaderAndContent }
enum ContextColor { ContextColorNone, ContextColorGreen, ContextColorBlue, ContextColorRed, ContextColorYellow, …, ContextColorOrange }
flags DockPanelAreas
enum EditStrategy { OnFieldChange, OnRowChange }
enum HighlightEffect { FlashEffect, AlphaEffect }
enum ItemPosition { AtNone, AtBeginning, AtEnd }
enum LinesStyle { LinesNone, LinesBoth, LinesBoth2D, LinesHorizontal, LinesHorizontal2D, …, LinesVertical2D }
enum ScrollBarsMode { ScrollNone, ScrollBoth, ScrollHorizontal, ScrollVertical, ScrollAuto }
enum ScrollItemStyle { ScrollByItem, ScrollByPixel }
flags SelectionOperation
enum SortOrder { SortNone, SortAscending, SortDescending }

Functions

QString getEnvironmentVariable(QProcess *process, const QString &key)
QString getSystemEnvironmentVariable(const QString &key)
void setEnvironmentVariable(QProcess *process, const QString &key, const QString &value)

Detailed Description

Type Documentation

enum Qtitan::BestFitModeFlag
flags Qtitan::BestFitMode

The enumerator describes the different modes for calculation of the column width regarding its contents.

ConstantValueDescription
Qtitan::FitToHeader1Column width will be adjusted on the width of the column header text.
Qtitan::FitToViewContent2Column width will be adjusted on the maximum cell width for the rows that visible on screen.
Qtitan::FitToContent4Column width will be adjusted on the maximum cell width for all rows in the grid. Please note that usage of this mode may take a long time to complete, so if the model has many rows it is preferable to use FitToViewContent or FitToHeader modes.
Qtitan::FitToHeaderAndViewContentFitToHeader | FitToViewContentCombination of FitToHeader | FitToViewContent.
Qtitan::FitToHeaderAndContentFitToHeader | FitToContentCombination of FitToHeader | FitToContent.

The BestFitMode type is a typedef for QFlags<BestFitModeFlag>. It stores an OR combination of BestFitModeFlag values.

enum Qtitan::ContextColor

This enum describes the colors for the ribbon context pages.

ConstantValueDescription
Qtitan::ContextColorNone0Color is not used to highlight contextual tab
Qtitan::ContextColorGreen1Contextual tab is highlighted in green color
Qtitan::ContextColorBlue2Contextual tab is highlighted in blue color
Qtitan::ContextColorRed3Contextual tab is highlighted in red color
Qtitan::ContextColorYellow4Contextual tab is highlighted in yellow color
Qtitan::ContextColorCyan5Contextual tab is highlighted in cyan color
Qtitan::ContextColorPurple6Contextual tab is highlighted in purple color
Qtitan::ContextColorOrange7Contextual tab is highlighted in orange color

enum EditStrategy

Enumerator EditStrategy describes the behaviour how the data should be submitted to the model.

ConstantValueDescription
GridModelController::OnFieldChange0Data will be submited to the model immediately once the value has changed.
GridModelController::OnRowChange1Data will be submited to the model if row focus has changed.

enum Qtitan::HighlightEffect

The enumerator admissible effects highlighting row in a state of inserting into grid.

ConstantValueDescription
Qtitan::FlashEffect0The row is flashing.
Qtitan::AlphaEffect1Row marked translucency.

enum Qtitan::ItemPosition

The enumerator specifies the location of item regarding the view.

ConstantValueDescription
Qtitan::AtNone0No location is specified.
Qtitan::AtBeginning1Location at the beginning.
Qtitan::AtEnd2Location at the end.

enum Qtitan::LinesStyle

This enumerator specifies the style of the frame between the cells. The frame can be dual, single, or it may not be at all.

ConstantValueDescription
Qtitan::LinesNone0grid does not draw lines.
Qtitan::LinesBoth1grid draws a horizontal and vertical lines.
Qtitan::LinesBoth2D2grid draws a dual lines horizontally and a single lines vertically for vertical view layout and a dual lines vertically and a single lines horizontally for horizontal view layout.
Qtitan::LinesHorizontal3grid draws a horizontal lines only.
Qtitan::LinesHorizontal2D4grid draws a dual lines horizontally only, used in vertical view layout.
Qtitan::LinesVertical5grid draws a vertical lines only.
Qtitan::LinesVertical2D6grid draws a dual lines vertically only, used in horizontal view layout.

enum Qtitan::ScrollBarsMode

The enumerator of the grid scrollbar behavior modes.

ConstantValueDescription
Qtitan::ScrollNone0Scrollbars are not shown
Qtitan::ScrollBoth1Both horizontal and vertical scrollbars are shown
Qtitan::ScrollHorizontal2The horiontal scrollbar is shown
Qtitan::ScrollVertical3The vertical scrollbar is shown
Qtitan::ScrollAuto4The grid automatically controls the scrollbar visibility (depends on the width or height of the grid view).

enum Qtitan::ScrollItemStyle

The enumerator describes the scrolling behaviour.

ConstantValueDescription
Qtitan::ScrollByItem0vertical scrolling by rows
Qtitan::ScrollByPixel1vertical scrolling by pixels

enum SortOrder

This enum describes sort order for column.

ConstantValueDescription
GridModelController::SortNone0No sorting
GridModelController::SortAscending1Low to high sorting
GridModelController::SortDescending2High to low sorting

Function Documentation

QString Qtitan::getEnvironmentVariable(QProcess *process, const QString &key)

Returns environment variable by key from process.

QString Qtitan::getSystemEnvironmentVariable(const QString &key)

Returns system environment variable by key from current process.

void Qtitan::setEnvironmentVariable(QProcess *process, const QString &key, const QString &value)

Sets environment variable using key and value for process.