00001 #ifndef __DW_LISTITEM_HH__ 00002 #define __DW_LISTITEM_HH__ 00003 00004 #include "core.hh" 00005 #include "alignedtextblock.hh" 00006 00007 namespace dw { 00008 00009 class ListItem: public AlignedTextblock 00010 { 00011 protected: 00012 int getValue (); 00013 void setMaxValue (int maxValue, int value); 00014 00015 public: 00016 static int CLASS_ID; 00017 00018 ListItem(ListItem *ref, bool limitTextWidth); 00019 ~ListItem(); 00020 00021 void initWithWidget (core::Widget *widget, core::style::Style *style); 00022 void initWithText (const char *text, core::style::Style *style); 00023 }; 00024 00025 } // namespace dw 00026 00027 #endif // __DW_LISTITEM_HH__
1.5.9