FLTK 1.4.4
Toggle main menu visibility
Loading...
Searching...
No Matches
Fl_Native_File_Chooser_Kdialog.H
1
//
2
// FLTK native file chooser widget : KDE version
3
//
4
// Copyright 2021-2022 by Bill Spitzak and others.
5
//
6
// This library is free software. Distribution and use rights are outlined in
7
// the file "COPYING" which should have been included with this file. If this
8
// file is missing or damaged, see the license at:
9
//
10
// https://www.fltk.org/COPYING.php
11
//
12
// Please see the following page on how to report bugs and issues:
13
//
14
// https://www.fltk.org/bugs.php
15
//
16
17
#ifndef FL_KDIALOG_NATIVE_FILE_CHOOSER_H
18
#define FL_KDIALOG_NATIVE_FILE_CHOOSER_H 1
19
25
26
#include <
FL/Fl_Native_File_Chooser.H
>
27
#include "Fl_String.H"
28
29
class
Fl_Kdialog_Native_File_Chooser_Driver :
public
Fl_Native_File_Chooser_FLTK_Driver {
30
friend
class
Fl_Native_File_Chooser;
31
friend
class
Fl_Zenity_Native_File_Chooser_Driver;
32
struct
fnfc_pipe_struct {
33
char
*all_files;
34
int
fd;
35
};
36
static
void
fnfc_fd_cb(
int
fd, fnfc_pipe_struct *data);
37
char
**_pathnames;
38
int
_tpathnames;
39
char
*_directory;
40
char
*_preset_file;
41
char
*_title;
42
static
bool
did_find_kdialog;
43
static
bool
have_looked_for_kdialog;
44
Fl_Kdialog_Native_File_Chooser_Driver(
int
val);
45
~Fl_Kdialog_Native_File_Chooser_Driver();
46
int
count() const
FL_OVERRIDE
;
47
const
char
*filename() const
FL_OVERRIDE
;
48
const
char
*filename(
int
i) const
FL_OVERRIDE
;
49
virtual
void
build_command(Fl_String& command);
50
int
show()
FL_OVERRIDE
;
51
char
*parse_filter(const
char
*f);
52
const
char
*filter() const
FL_OVERRIDE
;
53
void
filter(const
char
*f)
FL_OVERRIDE
;
54
int
filters() const
FL_OVERRIDE
;
55
void
preset_file(const
char
*val)
FL_OVERRIDE
;
56
const
char
*preset_file() const
FL_OVERRIDE
;
57
void
directory(const
char
*val)
FL_OVERRIDE
;
58
const
char
*directory() const
FL_OVERRIDE
;
59
void
title(const
char
*val)
FL_OVERRIDE
;
60
const
char
*title() const
FL_OVERRIDE
;
61
void
shell_quote(Fl_String& s);
62
};
63
68
69
#endif
// FL_KDIALOG_NATIVE_FILE_CHOOSER_H
Fl_Native_File_Chooser.H
Fl_Native_File_Chooser widget.
FL_OVERRIDE
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition
fl_attr.h:46
src
Fl_Native_File_Chooser_Kdialog.H
Generated by
1.17.0