comparison widgets/TransformFinder.h @ 421:7466402a32c5

* moar pointless twiddlin
author Chris Cannam
date Fri, 26 Sep 2008 16:18:36 +0000
parents f8e04ad8e7b1
children ea9e41027b93
comparison
equal deleted inserted replaced
420:f8e04ad8e7b1 421:7466402a32c5
20 20
21 #include <vector> 21 #include <vector>
22 22
23 #include "transform/Transform.h" 23 #include "transform/Transform.h"
24 24
25 class QGridLayout; 25 class QVBoxLayout;
26 class QScrollArea; 26 class QScrollArea;
27 class QLabel; 27 class QLabel;
28 class SelectableLabel; 28 class SelectableLabel;
29 class QWidget; 29 class QWidget;
30 30
50 void setSelected(bool); 50 void setSelected(bool);
51 void toggle(); 51 void toggle();
52 52
53 protected: 53 protected:
54 virtual void mousePressEvent(QMouseEvent *e); 54 virtual void mousePressEvent(QMouseEvent *e);
55 virtual void enterEvent(QEvent *);
56 virtual void leaveEvent(QEvent *);
55 QString m_selectedText; 57 QString m_selectedText;
56 QString m_unselectedText; 58 QString m_unselectedText;
57 bool m_selected; 59 bool m_selected;
58 }; 60 };
59 61
72 void selectedLabelChanged(); 74 void selectedLabelChanged();
73 75
74 protected: 76 protected:
75 QScrollArea *m_resultsScroll; 77 QScrollArea *m_resultsScroll;
76 QWidget *m_resultsFrame; 78 QWidget *m_resultsFrame;
77 QGridLayout *m_resultsLayout; 79 QVBoxLayout *m_resultsLayout;
78 std::vector<SelectableLabel *> m_labels; 80 std::vector<SelectableLabel *> m_labels;
79 TransformId m_selectedTransform; 81 TransformId m_selectedTransform;
80 }; 82 };
81 83
82 #endif 84 #endif