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

FXToolBar.h
1 /********************************************************************************
2 * *
3 * T o o l B a r W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2004,2022 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 FXTOOLBAR_H
22 #define FXTOOLBAR_H
23 
24 #ifndef FXDOCKBAR_H
25 #include "FXDockBar.h"
26 #endif
27 
28 namespace FX {
29 
30 class FXDockSite;
31 
32 
39 class FXAPI FXToolBar : public FXDockBar {
40  FXDECLARE(FXToolBar)
41 protected:
42  FXToolBar(){}
43 private:
44  FXToolBar(const FXToolBar&);
45  FXToolBar &operator=(const FXToolBar&);
46 public:
47  long onCmdDockFlip(FXObject*,FXSelector,void*);
48  long onUpdDockFlip(FXObject*,FXSelector,void*);
49 public:
50 
52  FXToolBar(FXComposite* p,FXComposite* q,FXuint opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=3,FXint pr=3,FXint pt=2,FXint pb=2,FXint hs=DEFAULT_SPACING,FXint vs=DEFAULT_SPACING);
53 
55  FXToolBar(FXComposite* p,FXuint opts,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=2,FXint pr=3,FXint pt=3,FXint pb=2,FXint hs=DEFAULT_SPACING,FXint vs=DEFAULT_SPACING);
56 
58  virtual void layout();
59 
61  virtual FXint getDefaultWidth();
62 
64  virtual FXint getDefaultHeight();
65 
67  virtual void dock(FXDockSite* docksite,FXWindow* other=nullptr,FXbool notify=false);
68 
70  virtual void dock(FXDockSite* docksite,FXint localx,FXint localy,FXbool notify=false);
71 
73  void setDockingSide(FXuint side=LAYOUT_SIDE_TOP);
74 
76  FXuint getDockingSide() const;
77  };
78 
79 }
80 
81 #endif
Window is the base class for all widgets in FOX.
Definition: FXWindow.h:130
Base composite.
Definition: FXComposite.h:32
The dock site widget is a widget where dock bars can be docked.
Definition: FXDockSite.h:62
Definition: FX4Splitter.h:28
A tool bar widget can be docked in a dock site; it automatically adjusts its orientation based on the...
Definition: FXToolBar.h:39
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
A dock bar widget can be docked inside a dock site widget, or floated around freely.
Definition: FXDockBar.h:42

Copyright © 1997-2022 Jeroen van der Zijp