10 #include <Wt/WCompositeWidget>
42 IconPair(
const std::string icon1URI,
const std::string icon2URI,
108 #endif // ICONPAIR_H_
An icon pair (identical to WIconPair)
Wt::WImage * icon2() const
Get the second icon image.
IconPair(const std::string icon1URI, const std::string icon2URI, bool clickIsSwitch=true, Wt::WContainerWidget *parent=0)
Construct a two-state icon widget.
void setState(int num)
Set which icon should be visible.
Wt::WContainerWidget * impl_
int previousState_
Undo state for prelearning stateless showIcon1() and showIcon2() slots.
Wt::EventSignal< Wt::WMouseEvent > & icon1Clicked
Signal emitted when clicked while in state 0 (icon 1 is shown).
Wt::WImage * icon1() const
Get the first icon image.
void undoShowIcon2()
Undo function for prelearning showIcon2()
Wt::EventSignal< Wt::WMouseEvent > & icon2Clicked
Signal emitted when clicked while in state 1 (icon 2 is shown).
Wt::WImage * icon2_
Second icon.
void showIcon2()
Set state to 1 (show icon 2).
int state() const
Get the current state.
void undoShowIcon1()
Undo function for prelearning showIcon1()
void showIcon1()
Set state to 0 (show icon 1).
Wt::WImage * icon1_
First icon.