summaryrefslogtreecommitdiff
path: root/FL/Fl_FileIcon.H
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-09-29 14:38:59 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-09-29 14:38:59 +0000
commit6a4714ce12d546c8131389853fe5593555c73b77 (patch)
tree158726de167a805d6aaa325f8250b89bf3a2db08 /FL/Fl_FileIcon.H
parentde6c7f66eeaeeae52ca33221db885ae6cd7ea114 (diff)
Fl_FileXYZ -> Fl_File_XYZ
Fl_HelpXYZ -> Fl_Help_XYZ Fl_File_Chooser now supports directory choosing. Added fl_dir_chooser() function. Now set FLTK_DOCDIR env var in test/demo. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1612 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_FileIcon.H')
-rw-r--r--FL/Fl_FileIcon.H105
1 files changed, 0 insertions, 105 deletions
diff --git a/FL/Fl_FileIcon.H b/FL/Fl_FileIcon.H
deleted file mode 100644
index 791907ffa..000000000
--- a/FL/Fl_FileIcon.H
+++ /dev/null
@@ -1,105 +0,0 @@
-//
-// "$Id: Fl_FileIcon.H,v 1.1.2.2 2001/08/11 14:49:51 easysw Exp $"
-//
-// Fl_FileIcon definitions.
-//
-// Copyright 1999-2001 by Michael Sweet.
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Library General Public
-// License as published by the Free Software Foundation; either
-// version 2 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Library General Public License for more details.
-//
-// You should have received a copy of the GNU Library General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-// USA.
-//
-// Please report all bugs and problems to "fltk-bugs@fltk.org".
-//
-
-//
-// Include necessary header files...
-//
-
-#ifndef _Fl_Fl_FileIcon_H_
-# define _Fl_Fl_FileIcon_H_
-
-# include "Fl.H"
-
-
-//
-// Fl_FileIcon class...
-//
-
-class Fl_FileIcon //// Icon data
-{
- FL_EXPORT static Fl_FileIcon *first_; // Pointer to first icon/filetype
- Fl_FileIcon *next_; // Pointer to next icon/filetype
- const char *pattern_; // Pattern string
- int type_; // Match only if directory or file?
- int num_data_; // Number of data elements
- int alloc_data_; // Number of allocated elements
- short *data_; // Icon data
-
- public:
-
- enum // File types
- {
- ANY, // Any kind of file
- PLAIN, // Only plain files
- FIFO, // Only named pipes
- DEVICE, // Only character and block devices
- LINK, // Only symbolic links
- DIRECTORY // Only directories
- };
-
- enum // Data opcodes
- {
- END, // End of primitive/icon
- COLOR, // Followed by color index
- LINE, // Start of line
- CLOSEDLINE, // Start of closed line
- POLYGON, // Start of polygon
- OUTLINEPOLYGON, // Followed by outline color
- VERTEX // Followed by scaled X,Y
- };
-
- FL_EXPORT Fl_FileIcon(const char *p, int t, int nd = 0, short *d = 0);
- FL_EXPORT ~Fl_FileIcon();
-
- FL_EXPORT short *add(short d);
- short *add_color(short c)
- { short *d = add(COLOR); add(c); return (d); }
- short *add_vertex(int x, int y)
- { short *d = add(VERTEX); add(x); add(y); return (d); }
- short *add_vertex(float x, float y)
- { short *d = add(VERTEX); add((int)(x * 10000.0));
- add((int)(y * 10000.0)); return (d); }
- void clear() { num_data_ = 0; }
- FL_EXPORT void draw(int x, int y, int w, int h, Fl_Color ic, int active = 1);
- FL_EXPORT void label(Fl_Widget *w);
- FL_EXPORT static void labeltype(const Fl_Label *o, int x, int y, int w, int h, Fl_Align a);
- FL_EXPORT void load(const char *f);
- FL_EXPORT void load_fti(const char *fti);
- FL_EXPORT void load_xpm(const char *xpm);
- const char *pattern() { return (pattern_); }
- int size() { return (num_data_); }
- int type() { return (type_); }
- short *value() { return (data_); }
-
- FL_EXPORT static Fl_FileIcon *find(const char *filename, int filetype = ANY);
- static Fl_FileIcon *first() { return (first_); }
- FL_EXPORT static void load_system_icons(void);
-};
-
-#endif // !_Fl_Fl_FileIcon_H_
-
-//
-// End of "$Id: Fl_FileIcon.H,v 1.1.2.2 2001/08/11 14:49:51 easysw Exp $".
-//