~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-06-07 11:28:52 UTC
  • Revision ID: package-import@ubuntu.com-20140607112852-pj9xhtlvwpgqjy5x
Tags: 1.3.15-1
* Initial release (Closes: #750861)
  flrig version 1.3.15 plus the following upstream commits:
  - 0001-License-Declaration.patch
  - 0002-FL_APPS-folder.patch
  - 0003-rig-home-dir.patch
  - 0004-RTS-DTR-restore.patch

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