fltk  1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
  Fossies Dox: fltk-1.3.5-source.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

Fl_File_Icon2.cxx File Reference
#include <stdio.h>
#include <stdlib.h>
#include <FL/fl_utf8.h>
#include "flstring.h"
#include <ctype.h>
#include <errno.h>
#include <FL/math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <FL/Fl_File_Icon.H>
#include <FL/Fl_Shared_Image.H>
#include <FL/Fl_Widget.H>
#include <FL/fl_draw.H>
#include <FL/filename.H>
Include dependency graph for Fl_File_Icon2.cxx:

Go to the source code of this file.


#define S_ISBLK(m)   (((m) & S_IFMT) == S_IFBLK)
#define S_ISCHR(m)   (((m) & S_IFMT) == S_IFCHR)
#define S_ISDIR(m)   (((m) & S_IFMT) == S_IFDIR)
#define S_ISFIFO(m)   (((m) & S_IFMT) == S_IFIFO)
#define S_ISLNK(m)   (((m) & S_IFMT) == S_IFLNK)


static void load_kde_icons (const char *directory, const char *icondir)
static void load_kde_mimelnk (const char *filename, const char *icondir)
static char * kde_to_fltk_pattern (const char *kdepattern)
static char * get_kde_val (char *str, const char *key)


static const char * kdedir = NULL

Macro Definition Documentation


#define S_ISBLK (   m)    (((m) & S_IFMT) == S_IFBLK)

Definition at line 67 of file Fl_File_Icon2.cxx.


#define S_ISCHR (   m)    (((m) & S_IFMT) == S_IFCHR)

Definition at line 68 of file Fl_File_Icon2.cxx.


#define S_ISDIR (   m)    (((m) & S_IFMT) == S_IFDIR)

Definition at line 69 of file Fl_File_Icon2.cxx.


#define S_ISFIFO (   m)    (((m) & S_IFMT) == S_IFIFO)

Definition at line 70 of file Fl_File_Icon2.cxx.


#define S_ISLNK (   m)    (((m) & S_IFMT) == S_IFLNK)

Definition at line 71 of file Fl_File_Icon2.cxx.

Function Documentation

◆ get_kde_val()

static char * get_kde_val ( char *  str,
const char *  key 

Definition at line 999 of file Fl_File_Icon2.cxx.

References key.

Referenced by load_kde_mimelnk().

◆ kde_to_fltk_pattern()

static char * kde_to_fltk_pattern ( const char *  kdepattern)

Definition at line 973 of file Fl_File_Icon2.cxx.

References malloc().

Referenced by load_kde_mimelnk().

◆ load_kde_icons()

static void load_kde_icons ( const char *  directory,
const char *  icondir 

◆ load_kde_mimelnk()

static void load_kde_mimelnk ( const char *  filename,
const char *  icondir 

Variable Documentation

◆ kdedir

const char* kdedir = NULL

Definition at line 89 of file Fl_File_Icon2.cxx.

Referenced by Fl_File_Icon::load_system_icons().