first version of WhiteWindow
This commit is contained in:
parent
fe63aba044
commit
de4216cafd
22 changed files with 1012 additions and 366 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.2 $
|
||||
Version : $Revision: 1.3 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/include/LiveSupport/Widgets/BlueBin.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -43,6 +43,7 @@
|
|||
#include <gtkmm/bin.h>
|
||||
|
||||
#include "LiveSupport/Core/Ptr.h"
|
||||
#include "LiveSupport/Widgets/CornerImages.h"
|
||||
|
||||
|
||||
namespace LiveSupport {
|
||||
|
@ -62,7 +63,7 @@ using namespace LiveSupport::Core;
|
|||
* A container holding exactly one child, habing a light blue border to it.
|
||||
*
|
||||
* @author $Author: maroy $
|
||||
* @version $Revision: 1.2 $
|
||||
* @version $Revision: 1.3 $
|
||||
*/
|
||||
class BlueBin : public Gtk::Bin
|
||||
{
|
||||
|
@ -88,44 +89,9 @@ class BlueBin : public Gtk::Bin
|
|||
Gdk::Color bgColor;
|
||||
|
||||
/**
|
||||
* The top left image of the border.
|
||||
* The corner images.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> topLeftImage;
|
||||
|
||||
/**
|
||||
* The left image of the border.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> leftImage;
|
||||
|
||||
/**
|
||||
* The top image of the border.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> topImage;
|
||||
|
||||
/**
|
||||
* The top right image of the border.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> topRightImage;
|
||||
|
||||
/**
|
||||
* The right image of the border.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> rightImage;
|
||||
|
||||
/**
|
||||
* The bottom left image of the border.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> bottomLeftImage;
|
||||
|
||||
/**
|
||||
* The bottom image of the border.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> bottomImage;
|
||||
|
||||
/**
|
||||
* The bottom right image of the border.
|
||||
*/
|
||||
Glib::RefPtr<Gdk::Pixbuf> bottomRightImage;
|
||||
Ptr<CornerImages>::Ref cornerImages;
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
|
@ -134,6 +100,17 @@ class BlueBin : public Gtk::Bin
|
|||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Render an image.
|
||||
*
|
||||
* @param image the image to render
|
||||
* @param x the x coordinate to render to
|
||||
* @param y the y coordinate to render to
|
||||
*/
|
||||
void
|
||||
renderImage(Glib::RefPtr<Gdk::Pixbuf> image,
|
||||
int x,
|
||||
int y) throw ();
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
@ -232,24 +209,10 @@ 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
|
||||
* @param topRightImage the top right image of the border
|
||||
* @param rightImage the right image of the border
|
||||
* @param bottomLeftImage the bottom left image of the border
|
||||
* @param bottomImage the bottom image of the border
|
||||
* @param bottomRightImage the bottom right image of the border
|
||||
* @param cornerImages the corner images.
|
||||
*/
|
||||
BlueBin(unsigned int backgroundColor,
|
||||
Glib::RefPtr<Gdk::Pixbuf> topLeftImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> leftImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> topImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> topRightImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> rightImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> bottomLeftImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> bottomImage,
|
||||
Glib::RefPtr<Gdk::Pixbuf> bottomRightImage)
|
||||
Ptr<CornerImages>::Ref cornerImages)
|
||||
throw ();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue