summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-06-21 20:00:28 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-06-21 20:00:28 +0000
commit51ed4e2162d4630c19da3d95ce689e59a8ca7b3c (patch)
tree604ccf736a403afc91b8fc233bcdaa73857726ac
parent93a99431ed1e4889a103f7bcccf4f498f05f5139 (diff)
Code formatting only. No significant changes.
In preparation of adding Fl_Scroll_Tabs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Tabs.H2
-rw-r--r--src/Fl_Tabs.cxx22
2 files changed, 13 insertions, 11 deletions
diff --git a/FL/Fl_Tabs.H b/FL/Fl_Tabs.H
index a3439fa0b..45387b410 100644
--- a/FL/Fl_Tabs.H
+++ b/FL/Fl_Tabs.H
@@ -219,7 +219,7 @@ protected:
public:
- Fl_Tabs(int,int,int,int,const char * = 0);
+ Fl_Tabs(int X, int Y, int W, int H, const char *L = 0);
virtual ~Fl_Tabs();
int handle(int);
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx
index 624ba681c..85f8d10a7 100644
--- a/src/Fl_Tabs.cxx
+++ b/src/Fl_Tabs.cxx
@@ -168,13 +168,15 @@ int Fl_Tabs::handle(int event) {
switch (event) {
- case FL_PUSH: {
- int H = tab_height();
- if (H >= 0) {
- if (Fl::event_y() > y()+H) return Fl_Group::handle(event);
- } else {
- if (Fl::event_y() < y()+h()+H) return Fl_Group::handle(event);
- }}
+ case FL_PUSH:
+ {
+ int H = tab_height();
+ if (H >= 0) {
+ if (Fl::event_y() > y()+H) return Fl_Group::handle(event);
+ } else {
+ if (Fl::event_y() < y()+h()+H) return Fl_Group::handle(event);
+ }
+ }
/* FALLTHROUGH */
case FL_DRAG:
case FL_RELEASE:
@@ -464,8 +466,8 @@ void Fl_Tabs::draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int what) {
can be automatic (local) variables, but you must declare the
Fl_Tabs widget <I>first</I> so that it is destroyed last.
*/
-Fl_Tabs::Fl_Tabs(int X,int Y,int W, int H, const char *l) :
- Fl_Group(X,Y,W,H,l)
+Fl_Tabs::Fl_Tabs(int X, int Y, int W, int H, const char *L) :
+ Fl_Group(X,Y,W,H,L)
{
box(FL_THIN_UP_BOX);
push_ = 0;
@@ -518,7 +520,7 @@ void Fl_Tabs::client_area(int &rx, int &ry, int &rw, int &rh, int tabh) {
if (tabh == 0) // use default (at top)
y_offset = label_height;
- else if (tabh == -1) // use default (at bottom)
+ else if (tabh == -1) // use default (at bottom)
y_offset = -label_height;
else
y_offset = tabh; // user given value