summaryrefslogtreecommitdiff
path: root/src/dlg-new.h
blob: 713722dbed4bcfa5a60c88834b3ef1294f3c46bf (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/*
 *  Engrampa
 *
 *  Copyright (C) 2008 The Free Software Foundation, Inc.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02110-1301, USA.
 */

#ifndef DLG_NEW_H
#define DLG_NEW_H

#include <gtk/gtk.h>
#include "eggfileformatchooser.h"
#include "fr-window.h"


typedef struct {
	FrWindow   *window;
	int        *supported_types;
	gboolean    can_encrypt;
	gboolean    can_encrypt_header;
	gboolean    can_create_volumes;
	GtkBuilder *builder;

	GtkWidget  *dialog;
	/*GtkWidget  *n_archive_type_combo_box;*/
	GtkWidget  *n_other_options_expander;
	GtkWidget  *n_password_entry;
	GtkWidget  *n_password_label;
	GtkWidget  *n_encrypt_header_checkbutton;
	GtkWidget  *n_volume_checkbutton;
	GtkWidget  *n_volume_spinbutton;
	GtkWidget  *n_volume_box;
	EggFileFormatChooser *format_chooser;
} DlgNewData;


DlgNewData *    dlg_new                          (FrWindow   *window);
DlgNewData *    dlg_save_as                      (FrWindow   *window,
	 		                          const char *default_name);
const char *    dlg_new_data_get_password        (DlgNewData *data);
gboolean        dlg_new_data_get_encrypt_header  (DlgNewData *data);
int             dlg_new_data_get_volume_size     (DlgNewData *data);

#endif /* DLG_NEW_H */