~ubuntu-branches/ubuntu/jaunty/xarchiver/jaunty

« back to all changes in this revision

Viewing changes to src/extract_dialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-11-07 14:54:00 UTC
  • mfrom: (1.1.7 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20081107145400-z0j3jmgads8coae2
Tags: 0.5.1-1
MergingĀ upstreamĀ versionĀ 0.5.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2006 Giuseppe Torelli - <colossus73@gmail.com>
 
2
 *  Copyright (C) 2008 Giuseppe Torelli - <colossus73@gmail.com>
3
3
 *
4
4
 *  This program is free software; you can redistribute it and/or modify
5
5
 *  it under the terms of the GNU General Public License as published by
20
20
#define __EXTRACT_DIALOG_H
21
21
 
22
22
#include "archive.h"
 
23
#include <sys/types.h>
 
24
#include <dirent.h>
23
25
 
24
26
typedef struct
25
27
{
26
 
        GtkWidget *dialog1;
27
 
        GtkWidget *dialog_vbox1;
28
 
        GtkWidget *vbox1;
29
 
        GtkWidget *vbox2;
30
 
        GtkWidget *hbox3;
31
 
        GtkWidget *extract_to_label;
32
 
        GtkWidget *destination_path_entry;
33
 
        GtkWidget *button1;
34
 
        GtkWidget *image1;
35
 
        GtkWidget *hbox4;
36
 
        GtkWidget *frame1;
37
 
        GtkWidget *alignment1;
38
 
        GtkWidget *alignment2;
39
 
        GtkWidget *alignment3;
40
 
        GtkWidget *vbox3;
41
 
        GtkWidget *all_files_radio;
42
 
        GtkWidget *selected_files_radio;
43
 
        GSList *radio_group;
44
 
        GtkWidget *files_frame_label;
45
 
        GtkWidget *frame2;
46
 
        GtkWidget *vbox4;
47
 
        GtkWidget *overwrite_check;
48
 
        GtkWidget *extract_full;
49
 
        GtkWidget *touch;
50
 
        GtkWidget *fresh;
51
 
        GtkWidget *update;
52
 
        GtkWidget *hbox5;
53
 
        GtkWidget *hbox6;
54
 
        GtkWidget *label_password;
55
 
        GtkWidget *password_entry;
56
 
        GtkWidget *options_frame_label;
57
 
        GtkWidget *dialog_action_area1;
58
 
        GtkWidget *cancel_button;
59
 
        GtkWidget *extract_button;
60
 
        GtkWidget *extract_image;
61
 
        GtkWidget *extract_label;
62
 
        GtkWidget *extract_hbox;
63
 
        GtkTooltips *option_tooltip;
 
28
        GtkWidget *dialog1,*dialog_vbox1,*destination_path_entry,*overwrite_check,*extract_full,*touch,*fresh,*update,*all_files_radio,*files_radio,
 
29
         *selected_radio,*entry2,*password_entry;
 
30
        gchar *string;
64
31
} Extract_dialog_data;
65
32
 
66
 
Extract_dialog_data *xa_create_extract_dialog (gint selected ,XArchive *archive);
67
 
void fresh_update_toggled_cb (GtkToggleButton *button, Extract_dialog_data *data);
68
 
void update_fresh_toggled_cb (GtkToggleButton *button, Extract_dialog_data *data);
69
 
gchar *xa_parse_extract_dialog_options ( XArchive *archive , Extract_dialog_data *dialog_data, GtkTreeSelection *selection);
70
 
gchar *xa_extract_single_files ( XArchive *archive , GString *files, gchar *path);
71
 
gboolean xa_create_temp_directory (gchar tmp_dir[]);
72
 
gboolean xa_extract_tar_without_directories ( gchar *string, gchar *escaped_path, gboolean overwrite, gboolean tar_touch, gchar *extract_path , gboolean cpio_flag);
73
 
gboolean xa_delete_temp_directory ( gchar *dir_name, gboolean flag);
74
 
void xa_choose_extraction_directory (GtkWidget *widget, gpointer data);
 
33
typedef struct
 
34
{
 
35
        GtkWidget *multi_extract,*files_treeview,*hbox2,*extract_to,*entry1,*extract_to_archive_name,*label1,*frame2,*alignment2,*vbox3,*overwrite,*full_path,*label2,*dialog_action_area1,
 
36
        *extract_button,*extract_image,*extract_hbox,*extract_label,*image1;
 
37
        GtkListStore *files_liststore;
 
38
        gint nr;
 
39
        gboolean stop_pressed;
 
40
        XArchive *archive;
 
41
} Multi_extract_data;
 
42
 
 
43
GtkWidget *label1,*label2,*label3,*label_password;
 
44
GtkWidget *hbox1,*hbox2,*hbox3,*vbox1,*vbox2,*vbox3,*vbox5;
 
45
GtkWidget *frame1,*frame2,*alignment1,*alignment2,*alignment3;
 
46
GtkWidget *dialog_action_area1,*cancel_button,*okbutton1,*extract_button,*extract_image,*extract_hbox,*extract_label;
 
47
GtkTooltips *option_tooltip;
 
48
        
 
49
Extract_dialog_data *xa_create_extract_dialog();
 
50
void xa_activate_entry(GtkToggleButton *,gpointer );
 
51
void fresh_update_toggled_cb (GtkToggleButton *, Extract_dialog_data *);
 
52
void update_fresh_toggled_cb (GtkToggleButton *, Extract_dialog_data *);
 
53
void xa_set_extract_dialog_options(Extract_dialog_data *,gint ,XArchive *);
 
54
void xa_parse_extract_dialog_options (XArchive * , Extract_dialog_data *, GtkTreeSelection *);
 
55
Multi_extract_data *xa_create_multi_extract_dialog();
 
56
void xa_activate_remove_button (GtkTreeModel *, GtkTreePath *, GtkTreeIter *, GtkWidget *);
 
57
void xa_add_files_liststore (gchar *, Multi_extract_data *);
 
58
void xa_parse_multi_extract_archive(Multi_extract_data *);
75
59
#endif
76
60