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.
Constant | Value | Description |
---|---|---|
Qtitan::FitToHeader | 1 | Column width will be adjusted on the width of the column header text. |
Qtitan::FitToViewContent | 2 | Column width will be adjusted on the maximum cell width for the rows that visible on screen. |
Qtitan::FitToContent | 4 | Column 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::FitToHeaderAndViewContent | FitToHeader | FitToViewContent | Combination of FitToHeader | FitToViewContent. |
Qtitan::FitToHeaderAndContent | FitToHeader | FitToContent | Combination 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.
Constant | Value | Description |
---|---|---|
Qtitan::ContextColorNone | 0 | Color is not used to highlight contextual tab |
Qtitan::ContextColorGreen | 1 | Contextual tab is highlighted in green color |
Qtitan::ContextColorBlue | 2 | Contextual tab is highlighted in blue color |
Qtitan::ContextColorRed | 3 | Contextual tab is highlighted in red color |
Qtitan::ContextColorYellow | 4 | Contextual tab is highlighted in yellow color |
Qtitan::ContextColorCyan | 5 | Contextual tab is highlighted in cyan color |
Qtitan::ContextColorPurple | 6 | Contextual tab is highlighted in purple color |
Qtitan::ContextColorOrange | 7 | Contextual tab is highlighted in orange color |
enum EditStrategy
Enumerator EditStrategy describes the behaviour how the data should be submitted to the model.
Constant | Value | Description |
---|---|---|
GridModelController::OnFieldChange | 0 | Data will be submited to the model immediately once the value has changed. |
GridModelController::OnRowChange | 1 | Data 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.
Constant | Value | Description |
---|---|---|
Qtitan::FlashEffect | 0 | The row is flashing. |
Qtitan::AlphaEffect | 1 | Row marked translucency. |
enum Qtitan::ItemPosition
The enumerator specifies the location of item regarding the view.
Constant | Value | Description |
---|---|---|
Qtitan::AtNone | 0 | No location is specified. |
Qtitan::AtBeginning | 1 | Location at the beginning. |
Qtitan::AtEnd | 2 | Location 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.
Constant | Value | Description |
---|---|---|
Qtitan::LinesNone | 0 | grid does not draw lines. |
Qtitan::LinesBoth | 1 | grid draws a horizontal and vertical lines. |
Qtitan::LinesBoth2D | 2 | grid 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::LinesHorizontal | 3 | grid draws a horizontal lines only. |
Qtitan::LinesHorizontal2D | 4 | grid draws a dual lines horizontally only, used in vertical view layout. |
Qtitan::LinesVertical | 5 | grid draws a vertical lines only. |
Qtitan::LinesVertical2D | 6 | grid draws a dual lines vertically only, used in horizontal view layout. |
enum Qtitan::ScrollBarsMode
The enumerator of the grid scrollbar behavior modes.
Constant | Value | Description |
---|---|---|
Qtitan::ScrollNone | 0 | Scrollbars are not shown |
Qtitan::ScrollBoth | 1 | Both horizontal and vertical scrollbars are shown |
Qtitan::ScrollHorizontal | 2 | The horiontal scrollbar is shown |
Qtitan::ScrollVertical | 3 | The vertical scrollbar is shown |
Qtitan::ScrollAuto | 4 | The 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.
Constant | Value | Description |
---|---|---|
Qtitan::ScrollByItem | 0 | vertical scrolling by rows |
Qtitan::ScrollByPixel | 1 | vertical scrolling by pixels |
enum SortOrder
This enum describes sort order for column.
Constant | Value | Description |
---|---|---|
GridModelController::SortNone | 0 | No sorting |
GridModelController::SortAscending | 1 | Low to high sorting |
GridModelController::SortDescending | 2 | High 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.