added minimize and maximize buttons to WhiteWindow class
This commit is contained in:
parent
272062ed16
commit
7885cd91da
4 changed files with 159 additions and 25 deletions
|
@ -21,8 +21,8 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.11 $
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.12 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/include/LiveSupport/Widgets/WhiteWindow.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -46,6 +46,7 @@
|
|||
#include <gtkmm/eventbox.h>
|
||||
#include <gtkmm/image.h>
|
||||
#include <gtkmm/window.h>
|
||||
#include <gtkmm/buttonbox.h>
|
||||
|
||||
#include "LiveSupport/Core/Ptr.h"
|
||||
#include "LiveSupport/Widgets/CornerImages.h"
|
||||
|
@ -92,8 +93,8 @@ using namespace LiveSupport::Core;
|
|||
* }
|
||||
* </code></pre>
|
||||
*
|
||||
* @author $Author: maroy $
|
||||
* @version $Revision: 1.11 $
|
||||
* @author $Author: fgerlits $
|
||||
* @version $Revision: 1.12 $
|
||||
* @see WidgetFactory
|
||||
* @see WidgetFactory#getWhiteWindowCorners
|
||||
*/
|
||||
|
@ -136,9 +137,20 @@ class WhiteWindow : public Gtk::Window
|
|||
Gtk::Label * titleLabel;
|
||||
|
||||
/**
|
||||
* The right alignment contaner for the close button.
|
||||
* The right alignment contaner for the minimize, maximize and
|
||||
* close buttons.
|
||||
*/
|
||||
Gtk::Alignment * closeButtonAlignment;
|
||||
Gtk::Alignment * cornerButtonAlignment;
|
||||
|
||||
/**
|
||||
* The close button.
|
||||
*/
|
||||
ImageButton * minimizeButton;
|
||||
|
||||
/**
|
||||
* The close button.
|
||||
*/
|
||||
ImageButton * maximizeButton;
|
||||
|
||||
/**
|
||||
* The close button.
|
||||
|
@ -174,6 +186,23 @@ class WhiteWindow : public Gtk::Window
|
|||
bool
|
||||
onTitleClicked(GdkEventButton * event) throw ();
|
||||
|
||||
/**
|
||||
* True if the window has been minimized.
|
||||
*/
|
||||
bool isMaximized;
|
||||
|
||||
/**
|
||||
* Signal handler for the minimize button clicked.
|
||||
*/
|
||||
virtual void
|
||||
onMinimizeButtonClicked(void) throw ();
|
||||
|
||||
/**
|
||||
* Signal handler for the maximize button clicked.
|
||||
*/
|
||||
virtual void
|
||||
onMaximizeButtonClicked(void) throw ();
|
||||
|
||||
/**
|
||||
* Signal handler for the close button clicked.
|
||||
*/
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.22 $
|
||||
Version : $Revision: 1.23 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/include/LiveSupport/Widgets/WidgetFactory.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -92,7 +92,7 @@ class ZebraTreeView;
|
|||
* </code></pre>
|
||||
*
|
||||
* @author $Author: fgerlits $
|
||||
* @version $Revision: 1.22 $
|
||||
* @version $Revision: 1.23 $
|
||||
*/
|
||||
class WidgetFactory :
|
||||
virtual public Configurable
|
||||
|
@ -110,7 +110,9 @@ class WidgetFactory :
|
|||
smallPlayButton, smallPauseButton, smallStopButton,
|
||||
hugePlayButton,
|
||||
cuePlayButton, cueStopButton,
|
||||
masterPlayButton, masterPauseButton, masterStopButton }
|
||||
masterPlayButton, masterPauseButton, masterStopButton,
|
||||
windowMinimizeButton, windowMaximizeButton,
|
||||
windowCloseButton }
|
||||
ImageButtonType;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue