Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXMDIButton.h

Go to the documentation of this file.
00001 /********************************************************************************
00002 *                                                                               *
00003 *             M u l t i p l e   D o c u m e n t   B u t t o n                   *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1998,2006 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or                 *
00009 * modify it under the terms of the GNU Lesser General Public                    *
00010 * License as published by the Free Software Foundation; either                  *
00011 * version 2.1 of the License, or (at your option) any later version.            *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU             *
00016 * Lesser General Public License for more details.                               *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public              *
00019 * License along with this library; if not, write to the Free Software           *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
00021 *********************************************************************************
00022 * $Id: FXMDIButton.h,v 1.16 2006/01/22 17:58:05 fox Exp $                       *
00023 ********************************************************************************/
00024 #ifndef FXMDIBUTTON_H
00025 #define FXMDIBUTTON_H
00026 
00027 #ifndef FXBUTTON_H
00028 #include "FXButton.h"
00029 #endif
00030 
00031 namespace FX {
00032 
00033 class FXIcon;
00034 
00035 
00036 /// MDI Delete button
00037 class FXAPI FXMDIDeleteButton : public FXButton {
00038   FXDECLARE(FXMDIDeleteButton)
00039 protected:
00040   FXMDIDeleteButton(){}
00041 private:
00042   FXMDIDeleteButton(const FXMDIDeleteButton&);
00043   FXMDIDeleteButton &operator=(const FXMDIDeleteButton&);
00044 public:
00045   long onPaint(FXObject*,FXSelector,void*);
00046 public:
00047   /// Constructor
00048   FXMDIDeleteButton(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0);
00049   virtual FXint getDefaultWidth();
00050   virtual FXint getDefaultHeight();
00051   };
00052 
00053 
00054 /// MDI Restore button
00055 class FXAPI FXMDIRestoreButton : public FXButton {
00056   FXDECLARE(FXMDIRestoreButton)
00057 protected:
00058   FXMDIRestoreButton(){}
00059 private:
00060   FXMDIRestoreButton(const FXMDIRestoreButton&);
00061   FXMDIRestoreButton &operator=(const FXMDIRestoreButton&);
00062 public:
00063   long onPaint(FXObject*,FXSelector,void*);
00064 public:
00065   /// Constructor
00066   FXMDIRestoreButton(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0);
00067   virtual FXint getDefaultWidth();
00068   virtual FXint getDefaultHeight();
00069   };
00070 
00071 
00072 /// MDI Maximize button
00073 class FXAPI FXMDIMaximizeButton : public FXButton {
00074   FXDECLARE(FXMDIMaximizeButton)
00075 protected:
00076   FXMDIMaximizeButton(){}
00077 private:
00078   FXMDIMaximizeButton(const FXMDIMaximizeButton&);
00079   FXMDIMaximizeButton &operator=(const FXMDIMaximizeButton&);
00080 public:
00081   long onPaint(FXObject*,FXSelector,void*);
00082 public:
00083   /// Constructor
00084   FXMDIMaximizeButton(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0);
00085   virtual FXint getDefaultWidth();
00086   virtual FXint getDefaultHeight();
00087   };
00088 
00089 
00090 /// MDI Minimize button
00091 class FXAPI FXMDIMinimizeButton : public FXButton {
00092   FXDECLARE(FXMDIMinimizeButton)
00093 protected:
00094   FXMDIMinimizeButton(){}
00095 private:
00096   FXMDIMinimizeButton(const FXMDIMinimizeButton&);
00097   FXMDIMinimizeButton &operator=(const FXMDIMinimizeButton&);
00098 public:
00099   long onPaint(FXObject*,FXSelector,void*);
00100 public:
00101   /// Constructor
00102   FXMDIMinimizeButton(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0);
00103   virtual FXint getDefaultWidth();
00104   virtual FXint getDefaultHeight();
00105   };
00106 
00107 
00108 /// MDI Window button
00109 class FXAPI FXMDIWindowButton : public FXMenuButton {
00110   FXDECLARE(FXMDIWindowButton)
00111 protected:
00112   FXMDIWindowButton(){}
00113 private:
00114   FXMDIWindowButton(const FXMDIWindowButton&);
00115   FXMDIWindowButton &operator=(const FXMDIWindowButton&);
00116 public:
00117   long onPaint(FXObject*,FXSelector,void*);
00118 public:
00119   /// Constructor
00120   FXMDIWindowButton(FXComposite* p,FXPopup* pup,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0);
00121   virtual FXint getDefaultWidth();
00122   virtual FXint getDefaultHeight();
00123   };
00124 
00125 
00126 /// MDI Window Menu
00127 class FXAPI FXMDIMenu : public FXMenuPane {
00128   FXDECLARE(FXMDIMenu)
00129 private:
00130   FXIcon *closeicon;
00131   FXIcon *maximizeicon;
00132   FXIcon *minimizeicon;
00133   FXIcon *restoreicon;
00134 protected:
00135   FXMDIMenu(){}
00136 private:
00137   FXMDIMenu(const FXMDIMenu&);
00138   FXMDIMenu &operator=(const FXMDIMenu&);
00139 public:
00140 
00141   /// Construct MDI menu
00142   FXMDIMenu(FXWindow *owner,FXObject* tgt=NULL);
00143 
00144   /// Destructor
00145   virtual ~FXMDIMenu();
00146   };
00147 
00148 }
00149 
00150 #endif

Copyright © 1997-2005 Jeroen van der Zijp