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) 
|
Go to the documentation of this file. 24 #include "../src/flstring.h" 30 #if defined(WIN32) && !defined(__CYGWIN__) 34 #endif // WIN32 && !__CYGWIN__ 85 char pngfile[1024], *ext;
87 strlcpy(pngfile, flfile,
sizeof(pngfile));
88 if ((ext = strrchr(pngfile,
'.')) ==
NULL)
return;
196 if (item < 1)
return;
202 if (!
fl_choice(
"Are you sure you want to delete the template \"%s\"?",
203 "Cancel",
"Delete", 0,
name))
return;
205 if (unlink(flfile)) {
206 fl_alert(
"Unable to delete template \"%s\":\n%s",
name, strerror(errno));
221 strlcat(path,
"templates",
sizeof(path));
225 for (i = 0; i < num_files; i ++) {
230 *strstr(
name,
".fl") =
'\0';
232 for (ptr =
name; *ptr; ptr ++) {
233 if (*ptr ==
'_') *ptr =
' ';
244 if (num_files > 0)
free(files);
Fl_Double_Window * make_template_panel()
#define FL_Enter
The enter key.
Fl_Button * template_delete
static void cb_template_panel(Fl_Double_Window *, void *)
Fl_Preferences fluid_prefs
void template_delete_cb(Fl_Button *, void *)
static void cb_template_browser(Fl_Browser *, void *)
char getUserdataPath(char *path, int pathlen)
Creates a path that is related to the preferences file and that is usable for additional application ...
static void cb_template_submit(Fl_Return_Button *, void *)
int fl_choice(const char *q, const char *b0, const char *b1, const char *b2,...)
int deselect(int docallbacks=0)
const Fl_Align FL_ALIGN_INSIDE
const char * text(int line) const
const Fl_Align FL_ALIGN_TOP_LEFT
Fl_Box * template_preview
int fl_filename_match(const char *name, const char *pattern)
int fl_filename_list(const char *d, dirent ***list, Fl_File_Sort_F *sort)
static const char * filename
static Fl_Group * current()
Fl_Browser * template_browser
static void cb_Cancel(Fl_Button *, void *)
static int event_clicks()
static Fl_Shared_Image * get(const char *name, int W=0, int H=0)
void add(const char *newtext, void *d=0)
Fl_Input * template_instance
Fl_Preferences provides methods to store user settings between application starts.
static void cb_template_name(Fl_Input *, void *)
void * data(int line) const
Fl_Double_Window * template_panel
void fl_alert(const char *,...)
void resizable(Fl_Widget &o)
Fl_Return_Button * template_submit