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 FX_DISABLEMDI
00025 
00026 #ifndef FXMDIBUTTON_H
00027 #define FXMDIBUTTON_H
00028 
00029 #ifndef FXBUTTON_H
00030 #include "FXButton.h"
00031 #endif
00032 
00033 namespace FX {
00034 
00035 class FXIcon;
00036 
00037 
00039 class FXAPI FXMDIDeleteButton : public FXButton {
00040   FXDECLARE(FXMDIDeleteButton)
00041 protected:
00042   FXMDIDeleteButton(){}
00043 private:
00044   FXMDIDeleteButton(const FXMDIDeleteButton&);
00045   FXMDIDeleteButton &operator=(const FXMDIDeleteButton&);
00046 public:
00047   long onPaint(FXObject*,FXSelector,void*);
00048 public:
00050   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);
00051   virtual FXint getDefaultWidth();
00052   virtual FXint getDefaultHeight();
00053   };
00054 
00055 
00057 class FXAPI FXMDIRestoreButton : public FXButton {
00058   FXDECLARE(FXMDIRestoreButton)
00059 protected:
00060   FXMDIRestoreButton(){}
00061 private:
00062   FXMDIRestoreButton(const FXMDIRestoreButton&);
00063   FXMDIRestoreButton &operator=(const FXMDIRestoreButton&);
00064 public:
00065   long onPaint(FXObject*,FXSelector,void*);
00066 public:
00068   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);
00069   virtual FXint getDefaultWidth();
00070   virtual FXint getDefaultHeight();
00071   };
00072 
00073 
00075 class FXAPI FXMDIMaximizeButton : public FXButton {
00076   FXDECLARE(FXMDIMaximizeButton)
00077 protected:
00078   FXMDIMaximizeButton(){}
00079 private:
00080   FXMDIMaximizeButton(const FXMDIMaximizeButton&);
00081   FXMDIMaximizeButton &operator=(const FXMDIMaximizeButton&);
00082 public:
00083   long onPaint(FXObject*,FXSelector,void*);
00084 public:
00086   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);
00087   virtual FXint getDefaultWidth();
00088   virtual FXint getDefaultHeight();
00089   };
00090 
00091 
00093 class FXAPI FXMDIMinimizeButton : public FXButton {
00094   FXDECLARE(FXMDIMinimizeButton)
00095 protected:
00096   FXMDIMinimizeButton(){}
00097 private:
00098   FXMDIMinimizeButton(const FXMDIMinimizeButton&);
00099   FXMDIMinimizeButton &operator=(const FXMDIMinimizeButton&);
00100 public:
00101   long onPaint(FXObject*,FXSelector,void*);
00102 public:
00104   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);
00105   virtual FXint getDefaultWidth();
00106   virtual FXint getDefaultHeight();
00107   };
00108 
00109 
00111 class FXAPI FXMDIWindowButton : public FXMenuButton {
00112   FXDECLARE(FXMDIWindowButton)
00113 protected:
00114   FXMDIWindowButton(){}
00115 private:
00116   FXMDIWindowButton(const FXMDIWindowButton&);
00117   FXMDIWindowButton &operator=(const FXMDIWindowButton&);
00118 public:
00119   long onPaint(FXObject*,FXSelector,void*);
00120 public:
00122   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);
00123   virtual FXint getDefaultWidth();
00124   virtual FXint getDefaultHeight();
00125   };
00126 
00127 
00129 class FXAPI FXMDIMenu : public FXMenuPane {
00130   FXDECLARE(FXMDIMenu)
00131 private:
00132   FXIcon *closeicon;
00133   FXIcon *maximizeicon;
00134   FXIcon *minimizeicon;
00135   FXIcon *restoreicon;
00136 protected:
00137   FXMDIMenu(){}
00138 private:
00139   FXMDIMenu(const FXMDIMenu&);
00140   FXMDIMenu &operator=(const FXMDIMenu&);
00141 public:
00142 
00144   FXMDIMenu(FXWindow *owner,FXObject* tgt=NULL);
00145 
00147   virtual ~FXMDIMenu();
00148   };
00149 
00150 }
00151 
00152 #endif
00153 #endif

(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:31:23 2009 for TnFOX by doxygen v1.4.7