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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXDockHandler.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                       D o c k H a n d l e r   W i d g e t                     *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2005,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (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                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXDOCKHANDLER_H
00022 #define FXDOCKHANDLER_H
00023 
00024 #ifndef FXFRAME_H
00025 #include "FXFrame.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00035 class FXAPI FXDockHandler : public FXFrame {
00036   FXDECLARE_ABSTRACT(FXDockHandler)
00037 protected:
00038   FXString  tip;        // Tool tip
00039   FXString  help;       // Help string
00040 private:
00041   FXID      xxx;
00042 protected:
00043   FXDockHandler();
00044 private:
00045   FXDockHandler(const FXDockHandler&);
00046   FXDockHandler& operator=(const FXDockHandler&);
00047 public:
00048   long onLeftBtnPress(FXObject*,FXSelector,void*);
00049   long onLeftBtnRelease(FXObject*,FXSelector,void*);
00050   long onMotion(FXObject*,FXSelector,void*);
00051   long onKeyPress(FXObject*,FXSelector,void*);
00052   long onKeyRelease(FXObject*,FXSelector,void*);
00053   long onQueryTip(FXObject*,FXSelector,void*);
00054   long onQueryHelp(FXObject*,FXSelector,void*);
00055   long onCmdSetTip(FXObject*,FXSelector,void*);
00056   long onCmdGetTip(FXObject*,FXSelector,void*);
00057   long onCmdSetHelp(FXObject*,FXSelector,void*);
00058   long onCmdGetHelp(FXObject*,FXSelector,void*);
00059 protected:
00060   FXDockHandler(FXComposite* p,FXObject* tgt,FXSelector sel,FXuint opts,FXint x,FXint y,FXint w,FXint h,FXint pl,FXint pr,FXint pt,FXint pb);
00061 public:
00062 
00064   virtual FXbool canFocus() const;
00065 
00067   void setHelpText(const FXString& text){ help=text; }
00068 
00070   const FXString& getHelpText() const { return help; }
00071 
00073   void setTipText(const FXString& text){ tip=text; }
00074 
00076   const FXString& getTipText() const { return tip; }
00077 
00079   virtual void save(FXStream& store) const;
00080 
00082   virtual void load(FXStream& store);
00083   };
00084 
00085 }
00086 
00087 #endif

Copyright © 1997-2011 Jeroen van der Zijp