added darkBlueBin
added set_label and get_label for Button
This commit is contained in:
parent
689fbf12d5
commit
c92e65a824
14 changed files with 164 additions and 14 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.1 $
|
||||
Version : $Revision: 1.2 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/include/LiveSupport/Widgets/BlueBin.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -62,7 +62,7 @@ using namespace LiveSupport::Core;
|
|||
* A container holding exactly one child, habing a light blue border to it.
|
||||
*
|
||||
* @author $Author: maroy $
|
||||
* @version $Revision: 1.1 $
|
||||
* @version $Revision: 1.2 $
|
||||
*/
|
||||
class BlueBin : public Gtk::Bin
|
||||
{
|
||||
|
@ -231,6 +231,7 @@ class BlueBin : public Gtk::Bin
|
|||
/**
|
||||
* Constructor, with only one state.
|
||||
*
|
||||
* @param backgroundColor the RGB value for the background color.
|
||||
* @param topLeftImage the top left image of the border
|
||||
* @param leftImage the left image of the border
|
||||
* @param topImage the top image of the border
|
||||
|
@ -240,7 +241,8 @@ class BlueBin : public Gtk::Bin
|
|||
* @param bottomImage the bottom image of the border
|
||||
* @param bottomRightImage the bottom right image of the border
|
||||
*/
|
||||
BlueBin(Glib::RefPtr<Gdk::Pixbuf> topLeftImage,
|
||||
BlueBin(unsigned int backgroundColor,
|
||||
Glib::RefPtr<Gdk::Pixbuf> topLeftImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> leftImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> topImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> topRightImage,
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.1 $
|
||||
Version : $Revision: 1.2 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/include/LiveSupport/Widgets/Button.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -63,7 +63,7 @@ using namespace LiveSupport::Core;
|
|||
* A button holding a text.
|
||||
*
|
||||
* @author $Author: maroy $
|
||||
* @version $Revision: 1.1 $
|
||||
* @version $Revision: 1.2 $
|
||||
*/
|
||||
class Button : public Gtk::Button
|
||||
{
|
||||
|
@ -274,6 +274,28 @@ class Button : public Gtk::Button
|
|||
*/
|
||||
virtual
|
||||
~Button(void) throw ();
|
||||
|
||||
/**
|
||||
* Set the label of the button.
|
||||
*
|
||||
* @param label the text the button should display.
|
||||
*/
|
||||
virtual void
|
||||
set_label(const Glib::ustring & label) throw ()
|
||||
{
|
||||
this->label->set_label(label);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the label of the button.
|
||||
*
|
||||
* @return the current label of the button.
|
||||
*/
|
||||
Glib::ustring
|
||||
get_label(void) const throw ()
|
||||
{
|
||||
return this->label->get_label();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.1 $
|
||||
Version : $Revision: 1.2 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/include/LiveSupport/Widgets/WidgetFactory.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -80,7 +80,7 @@ using namespace LiveSupport::Core;
|
|||
* </code></pre>
|
||||
*
|
||||
* @author $Author: maroy $
|
||||
* @version $Revision: 1.1 $
|
||||
* @version $Revision: 1.2 $
|
||||
*/
|
||||
class WidgetFactory :
|
||||
virtual public Configurable
|
||||
|
@ -171,6 +171,46 @@ class WidgetFactory :
|
|||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> blueBinBottomRightImage;
|
||||
|
||||
/**
|
||||
* The top left image of the border for dark BlueBin.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> darkBlueBinTopLeftImage;
|
||||
|
||||
/**
|
||||
* The left image of the border for dark BlueBin.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> darkBlueBinLeftImage;
|
||||
|
||||
/**
|
||||
* The top image of the border for dark BlueBin.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> darkBlueBinTopImage;
|
||||
|
||||
/**
|
||||
* The top right image of the border for dark BlueBin.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> darkBlueBinTopRightImage;
|
||||
|
||||
/**
|
||||
* The right image of the border for dark BlueBin.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> darkBlueBinRightImage;
|
||||
|
||||
/**
|
||||
* The bottom left image of the border for dark BlueBin.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> darkBlueBinBottomLeftImage;
|
||||
|
||||
/**
|
||||
* The bottom image of the border for dark BlueBin.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> darkBlueBinBottomImage;
|
||||
|
||||
/**
|
||||
* The bottom right image of the border for dark BlueBin.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> darkBlueBinBottomRightImage;
|
||||
|
||||
/**
|
||||
* The default constructor.
|
||||
*/
|
||||
|
@ -246,6 +286,12 @@ class WidgetFactory :
|
|||
*/
|
||||
Ptr<BlueBin>::Ref
|
||||
createBlueBin(void) throw ();
|
||||
|
||||
/**
|
||||
* Create and return a dark blue singular container.
|
||||
*/
|
||||
Ptr<BlueBin>::Ref
|
||||
createDarkBlueBin(void) throw ();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue