10 #include <Wt/WCompositeWidget.h> 44 IconPair(
const std::string icon1URI,
const std::string icon2URI,
45 bool clickIsSwitch =
true);
53 void setState(
int num);
63 WImage *
icon1()
const {
return icon1_; }
67 WImage *
icon2()
const {
return icon2_; }
78 std::unique_ptr<WContainerWidget>
impl_;
102 void undoShowIcon1();
105 void undoShowIcon2();
110 #endif // ICONPAIR_H_ An icon pair (identical to WIconPair)
WImage * icon1() const
Get the first icon image.
WImage * icon1_
First icon.
WImage * icon2_
Second icon.
int previousState_
Undo state for prelearning stateless showIcon1() and showIcon2() slots.
WImage * icon2() const
Get the second icon image.
EventSignal< WMouseEvent > & icon1Clicked
Signal emitted when clicked while in state 0 (icon 1 is shown).
EventSignal< WMouseEvent > & icon2Clicked
Signal emitted when clicked while in state 1 (icon 2 is shown).
std::unique_ptr< WContainerWidget > impl_