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

FXDockHandler.h
1 /********************************************************************************
2 * *
3 * D o c k H a n d l e r W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2005,2017 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXDOCKHANDLER_H
22 #define FXDOCKHANDLER_H
23 
24 #ifndef FXFRAME_H
25 #include "FXFrame.h"
26 #endif
27 
28 namespace FX {
29 
30 
35 class FXAPI FXDockHandler : public FXFrame {
36  FXDECLARE_ABSTRACT(FXDockHandler)
37 protected:
38  FXString tip; // Tool tip
39  FXString help; // Help string
40 private:
41  FXID xxx;
42 protected:
43  FXDockHandler();
44 private:
46  FXDockHandler& operator=(const FXDockHandler&);
47 public:
48  long onLeftBtnPress(FXObject*,FXSelector,void*);
49  long onLeftBtnRelease(FXObject*,FXSelector,void*);
50  long onMotion(FXObject*,FXSelector,void*);
51  long onKeyPress(FXObject*,FXSelector,void*);
52  long onKeyRelease(FXObject*,FXSelector,void*);
53  long onQueryTip(FXObject*,FXSelector,void*);
54  long onQueryHelp(FXObject*,FXSelector,void*);
55  long onCmdSetTip(FXObject*,FXSelector,void*);
56  long onCmdGetTip(FXObject*,FXSelector,void*);
57  long onCmdSetHelp(FXObject*,FXSelector,void*);
58  long onCmdGetHelp(FXObject*,FXSelector,void*);
59 protected:
60  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);
61 public:
62 
64  virtual FXbool canFocus() const;
65 
67  void setHelpText(const FXString& text){ help=text; }
68 
70  const FXString& getHelpText() const { return help; }
71 
73  void setTipText(const FXString& text){ tip=text; }
74 
76  const FXString& getTipText() const { return tip; }
77 
79  virtual void save(FXStream& store) const;
80 
82  virtual void load(FXStream& store);
83  };
84 
85 }
86 
87 #endif

Copyright © 1997-2016 Jeroen van der Zijp