MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrGuiUtility.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2026 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrGuiUtility_H_
10 #define lgrGuiUtility_H_
11 
12 #include <lgrGui/lgrGui.h>
13 
14 #include <QColor>
15 #include <QString>
16 
17 class QAbstractButton;
18 class QAction;
19 class QBoxLayout;
20 class QGridLayout;
21 class QWidget;
22 class DtString;
23 
24 namespace MAKLogger
25 {
27  DT_DLL_LGRGUI void DtReplaceWidget( QGridLayout* layout,
30  QWidget* itemToReplace, QWidget* itemToInsert );
31 
32  DT_DLL_LGRGUI void DtReplaceWidget( QBoxLayout* layout,
33  QWidget* itemToReplace, QWidget* itemToInsert );
35 
36 
38  DT_DLL_LGRGUI void syncWidget(QWidget* widget,bool enabled);
39 
41  DT_DLL_LGRGUI void syncAction(QAction* action,bool enabled);
42 
44  DT_DLL_LGRGUI void syncActionChecked(QAction* action,bool enabled);
45 
48  DT_DLL_LGRGUI DtString& timeFromSeconds(double totalSeconds, DtString& timeString);
49 
51  DT_DLL_LGRGUI QString DtLgrTimelineTimeString(double seconds);
52 
54  DT_DLL_LGRGUI void DtLoadThemeTokens(const QString& tokensFilePath);
60  DT_DLL_LGRGUI QColor DtThemeColor(const QString& tokenName, const QColor& fallback);
62 
63 }
64 
65 #endif
DT_DLL_LGRGUI DtString & timeFromSeconds(double totalSeconds, DtString &timeString)
Convert the time in seconds into a string of format h:mm:ss.ss Use the supplied string four output an...
DT_DLL_LGRGUI QString DtLgrTimelineTimeString(double seconds)
Format seconds the way the Time Line labels its ticks (hh:mm:ss.hh).
DT_DLL_LGRGUI void syncAction(QAction *action, bool enabled)
Make a widget enabled (if necessary) minimize state changes.
DT_DLL_LGRGUI void syncWidget(QWidget *widget, bool enabled)
Make a widget enabled (if necessary) minimize state changes.
DT_DLL_LGRGUI void syncActionChecked(QAction *action, bool enabled)
Make a widget enabled (if necessary) minimize state changes.
DT_DLL_LGRGUI QColor DtThemeColor(const QString &tokenName, const QColor &fallback)
MAK ONE theme color tokens for custom-painted code.
#define DT_DLL_LGRGUI
Definition: lgrGui.h:19
Defines INPORT/EXPORT macros for lgrGui library.
DT_DLL_LGRGUI void DtLoadThemeTokens(const QString &tokensFilePath)
MAK ONE theme color tokens for custom-painted code.
DT_DLL_LGRGUI void DtReplaceWidget(QGridLayout *layout, QWidget *itemToReplace, QWidget *itemToInsert)
Replace one widget with another widget in the layout.

Document ID: Generated on Tue Nov 17 15:25:07 EST 2026 from SVN revision 298446
Copyright © 2026 MAK Technologies. All Rights Reserved (www.mak.com)