MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrAnnotationColorPopup.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 lgrAnnotationColorPopup_H_
10 #define lgrAnnotationColorPopup_H_
11 
12 #include <lgrAnnotations/lgrAnn.h>
14 
15 #include <QColor>
16 #include <QFrame>
17 #include <QList>
18 
19 class QAbstractButton;
20 
21 namespace MAKLogger
22 {
29  {
30  Q_OBJECT
31  public:
34  DtLgrAnnotationColorPopup(const QColor& current,QWidget* owner);
35  virtual ~DtLgrAnnotationColorPopup();
36 
40  void popup(int focusSlot = 0);
41 
42  signals:
44  void colorChosen(const QColor& color);
45 
47  void customColorRequested();
48 
50  void presetEditRequested(int slot);
51 
54  void presetsReset(int slot);
55 
57  void closed();
58 
59  protected:
60  virtual void closeEvent(QCloseEvent* event);
61  virtual void keyPressEvent(QKeyEvent* event);
62  virtual void mousePressEvent(QMouseEvent* event);
63  virtual void paintEvent(QPaintEvent* event);
64 
65  private:
66  void addChoice(QAbstractButton* item,bool selected,const QColor& color);
67  void moveFocus(int index);
68  void showPresetMenu(int slot,const QPoint& globalPos);
69 
70  QList<DtLgrAnnotationColors::Preset> myPresets;
71  QList<QAbstractButton*> myItems;
74  };
75 }
76 
77 #endif
int myLastColumn
Definition: lgrAnnotationColorPopup.h:73
Defines INPORT/EXPORT macros for lgrGui library.
QList< QAbstractButton * > myItems
Definition: lgrAnnotationColorPopup.h:71
Contains MAKLogger::DtLgrAnnotationColors class.
QList< DtLgrAnnotationColors::Preset > myPresets
Definition: lgrAnnotationColorPopup.h:70
int myChipCount
Definition: lgrAnnotationColorPopup.h:72
Swatch popup for DtLgrAnnotationColorButton: a grid of preset chips, the theme default, the current custom color, and &quot;Custom color...&quot;.
Definition: lgrAnnotationColorPopup.h:28
#define DT_DLL_LGRANN
Definition: lgrAnn.h:19

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)