1
////////////////////////////////////////////////////////////////////////////
2
// NoteCase notes manager project <http://notecase.sf.net>
4
// This code is licensed under BSD license.See "license.txt" for more details.
6
// File: Implements light wrapper around FileChooser GTK API
7
////////////////////////////////////////////////////////////////////////////
10
#define FILEDIALOG_H__
14
#endif // _MSC_VER > 1000
18
//TOFIX multiple file selection support
20
gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (file_sel), FALSE);
21
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (file_sel), TRUE);
22
gtk_file_chooser_get_filenames
29
FileDialog(bool bOpen = true, const char *szTitle = NULL, void *pParent = NULL);
30
virtual ~FileDialog();
32
void SetTitle(const char *szText);
33
void SetFilename(const char *szName);
34
void SetDirectory(const char *szPath);
35
void AddFilter(const char *szText, const char *szPtrn);
37
bool IsOpenDialog(){ return m_bOpenDialog; }
41
const char *GetFilename();
42
const char *GetCurrentFilterName();
43
const char *GetDirectory();
49
bool m_bOpenDialog; //open dialog or save dialog
52
#endif // FILEDIALOG_H__
1
////////////////////////////////////////////////////////////////////////////
2
// NoteCase notes manager project <http://notecase.sf.net>
4
// This code is licensed under BSD license.See "license.txt" for more details.
6
// File: Implements light wrapper around FileChooser GTK API
7
////////////////////////////////////////////////////////////////////////////
10
#define FILEDIALOG_H__
14
#endif // _MSC_VER > 1000
18
//TOFIX add multiple file selection support
20
gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (file_sel), FALSE);
21
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (file_sel), TRUE);
22
gtk_file_chooser_get_filenames
29
FileDialog(bool bOpen = true, bool bOnlyFolders = false, bool bExpand = false, const char *szTitle = NULL, void *pParent = NULL);
30
virtual ~FileDialog();
32
void SetTitle(const char *szText);
33
void SetFilename(const char *szName);
34
void SetDirectory(const char *szPath);
35
void AddFilter(const char *szText, const char *szPtrn);
37
bool IsOpenDialog(){ return m_bOpenDialog; }
41
const char *GetFilename();
42
const char *GetCurrentFilterName();
43
const char *GetDirectory();
45
void ForceFormatExtension();
51
bool m_bOpenDialog; //open dialog or save dialog
53
//used only for custom dlg
54
GtkWidget *m_pFileWidget;
55
GtkWidget *m_pFormatsCombo;
56
GtkWidget *m_pFileNameEntry;
59
#endif // FILEDIALOG_H__