VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
plotterLegendDialog.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portalApp/dllExport.h>
13 
14 #include <QItemDelegate>
15 #include <QComboBox>
16 #include <QDialog>
17 
18 #include <map>
19 
20 class QMenu;
21 class DtString;
22 class QTableWidget;
23 class QTableWidgetItem;
24 
25 namespace MAKVrExchange
26 {
27 
28  class DtFrameratePlot;
29  class DtSeriesColorRecord;
30  class DtFrameratePlotSeries;
31  class DtLineStyleComboDelegate;
32  class DtLineColorSelectDelegate;
33 
37  { Q_OBJECT;
38  public:
39 
41  DtPlotterLegendDialog( QWidget* parent = 0 );
42 
44  virtual ~DtPlotterLegendDialog();
45 
47  virtual void addItem( const DtSeriesColorRecord& rec,
48  const DtString& units, const DtString& description );
49 
51  virtual void removeSection( const DtString& sectionName );
52 
54  virtual void resizeToContents();
55 
56  protected:
57 
60  void initView();
61 
64  void connectToSignals();
65 
67  virtual QTableWidgetItem* getHeaderItem( const DtString& sectionName );
68 
71  virtual bool eventFilter( QObject* obj, QEvent* event );
72 
73  signals:
74 
76  void seriesToggled( const DtString& brokerName,
77  const DtString& fieldName, bool enabled );
78 
80  void seriesStyleChanged( const DtString& brokerName,
81  const DtString& fieldName, unsigned int style );
82 
84  void seriesColorChanged( const DtString& brokerName,
85  const DtString& fieldName, int r, int g, int b );
86 
87  protected slots:
88 
91  virtual void onTableWidgetItemChanged( QTableWidgetItem* item );
92 
95  virtual void onEnableAllSeries();
96 
99  virtual void onDisableAllSeries();
100 
101  private:
102 
105 
107  DtPlotterLegendDialog& operator = ( DtPlotterLegendDialog& other );
108 
109  protected:
110 
111  typedef std::map<DtString,QTableWidgetItem*> SectionHeaderMap;
113 
114  typedef std::map<DtString,QTableWidgetItem*> SeriesItemsMap;
115  typedef std::map<QTableWidgetItem*,SeriesItemsMap> HeaderSeriesItemsMap;
117 
119 
123  QTableWidget* myListWidget;
124 
125  };
126 
127 
128 }
QTableWidget * myListWidget
Definition: plotterLegendDialog.h:123
Item Delegate for picking a line style.
Definition: plotterLegendItemDelegates.h:87
std::map< QTableWidgetItem *, SeriesItemsMap > HeaderSeriesItemsMap
Definition: plotterLegendDialog.h:115
DtLineColorSelectDelegate * myColorDelegate
Definition: plotterLegendDialog.h:122
SectionHeaderMap mySectionHeaders
Definition: plotterLegendDialog.h:112
HeaderSeriesItemsMap myHeaderSeriesItems
Definition: plotterLegendDialog.h:116
#define DT_DLL_LIBPORTALAPP
Definition: include/portalApp/dllExport.h:20
std::map< DtString, QTableWidgetItem * > SectionHeaderMap
Definition: plotterLegendDialog.h:111
DtLineStyleComboDelegate * myStyleDelegate
Definition: plotterLegendDialog.h:121
bool myNeedsShowHideFlag
Definition: plotterLegendDialog.h:118
QMenu * myHeaderContextMenu
Definition: plotterLegendDialog.h:120
Item Delegate for selecting a color.
Definition: plotterLegendItemDelegates.h:110
Record for storing color/style information about a broker series.
Definition: seriesColorRecord.h:21
A dialog for customizing plot series display settings.
Definition: plotterLegendDialog.h:36
std::map< DtString, QTableWidgetItem * > SeriesItemsMap
Definition: plotterLegendDialog.h:114

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)