~ubuntu-branches/ubuntu/wily/flrig/wily

« back to all changes in this revision

Viewing changes to .pc/0001-License-Declaration.patch/src/include/fileselect.h

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-10-25 11:17:10 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20141025111710-n32skgya3l9u1brw
Tags: 1.3.17-1
* New upstream release (Closes: #761839)
* Debian Standards-Version: 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef FILESELECT_H
2
 
#define FILESELECT_H
3
 
 
4
 
#ifdef __WOE32__
5
 
#  define FSEL_THREAD 1
6
 
#endif
7
 
 
8
 
class Fl_Native_File_Chooser;
9
 
 
10
 
class FSEL
11
 
{
12
 
public:
13
 
    static void create(void);
14
 
    static void destroy(void);
15
 
    static const char* select(const char* title, const char* filter, const char* def = 0, int* fsel = 0);
16
 
    static const char* saveas(const char* title, const char* filter, const char* def = 0, int* fsel = 0);
17
 
    static const char* dir_select(const char* title, const char* filter, const char* def = 0);
18
 
    ~FSEL();
19
 
private:
20
 
    FSEL();
21
 
    FSEL(const FSEL&);
22
 
    FSEL& operator=(const FSEL&);
23
 
 
24
 
    const char* get_file(void);
25
 
#if FSEL_THREAD
26
 
    static void* thread_func(void* arg);
27
 
#endif
28
 
private:
29
 
    static FSEL* inst;
30
 
    Fl_Native_File_Chooser* chooser;
31
 
    int result;
32
 
};
33
 
 
34
 
#endif // FILESELECT_H