summaryrefslogtreecommitdiff
path: root/src/Fl_Native_File_Chooser_Zenity.H
blob: 708ab51fe13ea0267aa93f6f3441dd8b7433b350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// FLTK native file chooser widget : Zenity version
//
// Copyright 2021-2022 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file.  If this
// file is missing or damaged, see the license at:
//
//     https://www.fltk.org/COPYING.php
//
// Please see the following page on how to report bugs and issues:
//
//     https://www.fltk.org/bugs.php
//

#ifndef FL_ZENITY_NATIVE_FILE_CHOOSER_H
#define FL_ZENITY_NATIVE_FILE_CHOOSER_H 1

/**
 \cond DriverDev
 \addtogroup DriverDeveloper
 \{
 */

#include "Fl_Native_File_Chooser_Kdialog.H"

class Fl_Zenity_Native_File_Chooser_Driver : public Fl_Kdialog_Native_File_Chooser_Driver {
  friend class Fl_Native_File_Chooser;
  static bool did_find_zenity;
  static bool have_looked_for_zenity;
  Fl_Zenity_Native_File_Chooser_Driver(int val);
  void append_filter(char *command, int *pos, int maxlen);
  void build_command(char *command, int maxlen);
};

/**
\}
\endcond
*/

#endif // FL_ZENITY_NATIVE_FILE_CHOOSER_H