summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.h
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /fluid/Fl_Type.h
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (diff)
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
Diffstat (limited to 'fluid/Fl_Type.h')
-rw-r--r--fluid/Fl_Type.h55
1 files changed, 24 insertions, 31 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h
index 6794bef37..6512ae317 100644
--- a/fluid/Fl_Type.h
+++ b/fluid/Fl_Type.h
@@ -1,6 +1,4 @@
//
-// "$Id$"
-//
// Widget type header file for the Fast Light Tool Kit (FLTK).
//
// Each object described by Fluid is one of these objects. They
@@ -18,11 +16,11 @@
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
-// Please report all bugs and problems on the following page:
+// Please see the following page on how to report bugs and issues:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
#include <FL/Fl_Widget.H>
@@ -58,17 +56,17 @@ protected:
const char *user_data_type_;
const char *comment_;
-public: // things that should not be public:
+public: // things that should not be public:
Fl_Type *parent; // parent, which is previous in list
char new_selected; // browser highlight
char selected; // copied here by selection_changed()
- char open_; // state of triangle in browser
+ char open_; // state of triangle in browser
char visible; // true if all parents are open
- char rtti; // hack because I have no rtti, this is 0 for base class
- int level; // number of parents over this
+ char rtti; // hack because I have no rtti, this is 0 for base class
+ int level; // number of parents over this
static Fl_Type *first, *last; // linked list of all objects
- Fl_Type *next, *prev; // linked list of all objects
+ Fl_Type *next, *prev; // linked list of all objects
Fl_Type *factory;
const char *callback_name();
@@ -86,7 +84,7 @@ public:
void add(Fl_Type *parent); // add as new child
void insert(Fl_Type *n); // insert into list before n
- Fl_Type* remove(); // remove from list
+ Fl_Type* remove(); // remove from list
void move_before(Fl_Type*); // move before a sibling
virtual const char *title(); // string for browser
@@ -112,7 +110,7 @@ public:
virtual void remove_child(Fl_Type*);
static Fl_Type *current; // most recently picked object
- virtual void open(); // what happens when you double-click
+ virtual void open(); // what happens when you double-click
// read and write data to a saved file:
virtual void write();
@@ -166,8 +164,8 @@ class Fl_Function_Type : public Fl_Type {
const char* return_type;
char public_, cdecl_, constructor, havewidgets;
public:
- Fl_Function_Type() :
- Fl_Type(),
+ Fl_Function_Type() :
+ Fl_Type(),
return_type(0L), public_(0), cdecl_(0), constructor(0), havewidgets(0)
{ }
~Fl_Function_Type() {
@@ -228,7 +226,7 @@ public:
// 1 -- file changed, internal records updated, 'code' has new content
// -1 -- error getting file info (get_ms_errmsg() has reason)
//
- // TODO: Figure out how saving a fluid file can be intercepted to grab
+ // TODO: Figure out how saving a fluid file can be intercepted to grab
// current contents of editor file..
//
int handle_editor_changes() {
@@ -346,7 +344,7 @@ public:
~Fl_Class_Type() {
if (subclass_of) free((void*)subclass_of);
}
-
+
// state variables for output:
char write_public_state; // true when public: has been printed
Fl_Class_Type* parent_class; // save class if nested
@@ -590,13 +588,13 @@ protected:
Fl_Menu_Item* subtypes() {return window_type_menu;}
friend class Overlay_Window;
- int mx,my; // mouse position during dragging
- int x1,y1; // initial position of selection box
- int bx,by,br,bt; // bounding box of selection before snapping
- int sx,sy,sr,st; // bounding box of selection after snapping to guides
+ int mx,my; // mouse position during dragging
+ int x1,y1; // initial position of selection box
+ int bx,by,br,bt; // bounding box of selection before snapping
+ int sx,sy,sr,st; // bounding box of selection after snapping to guides
int dx,dy;
- int drag; // which parts of bbox are being moved
- int numselected; // number of children selected
+ int drag; // which parts of bbox are being moved
+ int numselected; // number of children selected
enum {LEFT=1,RIGHT=2,BOTTOM=4,TOP=8,DRAG=16,BOX=32};
void draw_overlay();
void newdx();
@@ -607,7 +605,7 @@ protected:
void write_code2();
Fl_Widget_Type *_make() {return 0;} // we don't call this
Fl_Widget *widget(int,int,int,int) {return 0;}
- int recalc; // set by fix_overlay()
+ int recalc; // set by fix_overlay()
void moveallchildren();
int pixmapID() { return 1; }
@@ -622,8 +620,8 @@ public:
void open();
- void fix_overlay(); // Update the bounding box, etc
- uchar *read_image(int &ww, int &hh); // Read an image of the window
+ void fix_overlay(); // Update the bounding box, etc
+ uchar *read_image(int &ww, int &hh); // Read an image of the window
virtual void write_properties();
virtual void read_property(const char *);
@@ -918,14 +916,9 @@ public:
// handle a command and return the number of args used, or 0
virtual int arg(int argc, char **argv, int &i) = 0;
// optional test the plugin
- virtual int test(const char *a1=0L, const char *a2=0L, const char *a3=0L) {
+ virtual int test(const char *a1=0L, const char *a2=0L, const char *a3=0L) {
return 0;
}
// show a GUI panel to edit some data
virtual void show_panel() { }
};
-
-
-//
-// End of "$Id$".
-//