diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-09-06 20:02:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-06 20:02:02 +0200 |
| commit | 0e4137f66b81e5a6e2ef91ac5a3533513ef2b47c (patch) | |
| tree | d9dc67d8702c5f232c05188f391bb1d2b27b4175 /FL/Fl_Check_Browser.H | |
| parent | a6f9388f336feff6052155fdafd0bb14688f5b1c (diff) | |
Fix Fl_Check_Browser.{H|cxx} indentation (#121) (#132)
* Fix Fl_Check_Browser.{H|cxx} indentation (#121)
... and some more whitespace errors as proposed by Greg
... in issue #121: Fl_Check_Browser--whitespace-patch.txt
Fixes #121
* Fix copyright years
Diffstat (limited to 'FL/Fl_Check_Browser.H')
| -rw-r--r-- | FL/Fl_Check_Browser.H | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/FL/Fl_Check_Browser.H b/FL/Fl_Check_Browser.H index 1031a64a3..da2cd579c 100644 --- a/FL/Fl_Check_Browser.H +++ b/FL/Fl_Check_Browser.H @@ -1,7 +1,7 @@ // // Fl_Check_Browser header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2020 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -39,30 +39,29 @@ protected: void item_draw(void *, int, int, int, int) const; void item_select(void *, int); int item_selected(void *) const; - const char *item_text(void *item) const /* override */; + const char *item_text(void *item) const; // override public: - void *item_at(int index) const /* override */; - void item_swap(int ia, int ib) /* override */; - void item_swap(void *a, void *b) /* override */; + void *item_at(int index) const; // override + void item_swap(int ia, int ib); // override + void item_swap(void *a, void *b); // override /* private data */ - public: // IRIX 5.3 C++ compiler doesn't support private structures... +public: // IRIX 5.3 C++ compiler doesn't support private structures... #ifndef FL_DOXYGEN /** For internal use only. */ struct cb_item { - cb_item *next; /**< For internal use only. */ - cb_item *prev; /**< For internal use only. */ - char checked; /**< For internal use only. */ - char selected; /**< For internal use only. */ - char *text; /**< For internal use only. */ + cb_item *next; /**< For internal use only. */ + cb_item *prev; /**< For internal use only. */ + char checked; /**< For internal use only. */ + char selected; /**< For internal use only. */ + char *text; /**< For internal use only. */ }; #endif // !FL_DOXYGEN - private: - +private: cb_item *first; cb_item *last; cb_item *cache; @@ -72,10 +71,9 @@ public: cb_item *find_item(int) const; int lineno(cb_item *) const; - public: - +public: Fl_Check_Browser(int x, int y, int w, int h, const char *l = 0); - /** The destructor deletes all list items and destroys the browser. */ + /** The destructor deletes all list items and destroys the browser. */ ~Fl_Check_Browser() { clear(); } int add(char *s); // add an (unchecked) item int add(char *s, int b); // add an item and set checked @@ -83,7 +81,7 @@ public: int remove(int item); // delete an item. Returns nitems() // inline const char * methods to avoid breaking binary compatibility... - /** See int Fl_Check_Browser::add(char *s) */ + /** See int Fl_Check_Browser::add(char *s) */ int add(const char *s) { return add((char *)s); } /** See int Fl_Check_Browser::add(char *s) */ int add(const char *s, int b) { return add((char *)s, b); } @@ -94,21 +92,19 @@ public: this. */ int nitems() const { return nitems_; } - /** Returns how many items are currently checked. */ + /** Returns how many items are currently checked. */ int nchecked() const { return nchecked_; } int checked(int item) const; void checked(int item, int b); - /** Equivalent to Fl_Check_Browser::checked(item, 1). */ + /** Equivalent to Fl_Check_Browser::checked(item, 1). */ void set_checked(int item) { checked(item, 1); } void check_all(); void check_none(); int value() const; // currently selected item char *text(int item) const; // returns pointer to internal buffer - protected: - +protected: int handle(int); }; #endif // Fl_Check_Browser_H - |
