~ubuntu-branches/ubuntu/trusty/eiciel/trusty-proposed

« back to all changes in this revision

Viewing changes to src/acl_list.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2010-06-04 02:38:02 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100604023802-jp2v6c9uviiioc5z
* New upstream release.
* debian/patches/02-gio.patch
  - Removed, merged upstream.
* debian/patches/03-no-libgnomeui.patch
  - Removed, merged upstream.
* debian/patches/01-fix-gettext-translations.patch
  - Fix gettext translations by using dgettext and specifying the correct
    domainname.
* debian/patches/02-de-po.patch
  - Update and complete German translation.
* debian/rules
  - Remove de.gmo on clean and rebuild it on build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Eiciel - GNOME editor of ACL file permissions.
 
3
    Copyright (C) 2004-2010 Roger Ferrer Ib��ez
 
4
 
 
5
    This program is free software; you can redistribute it and/or modify
 
6
    it under the terms of the GNU General Public License as published by
 
7
    the Free Software Foundation; either version 2 of the License, or
 
8
    (at your option) any later version.
 
9
 
 
10
    This program is distributed in the hope that it will be useful,
 
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
    GNU General Public License for more details.
 
14
 
 
15
    You should have received a copy of the GNU General Public License
 
16
    along with this program; if not, write to the Free Software
 
17
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,  USA
 
18
*/
 
19
#ifndef LLISTA_ACL_HPP
 
20
#define LLISTA_ACL_HPP
 
21
#include <config.hpp>
 
22
#include "acl_element_kind.hpp"
 
23
#include "cellrenderer_acl.hpp"
 
24
 
 
25
class ACLListModel : public Gtk::TreeModel::ColumnRecord
 
26
{
 
27
        public:
 
28
 
 
29
                ACLListModel()
 
30
                { 
 
31
                        add(_icon);
 
32
                        add(_entry_name); 
 
33
                        add(_reading_permission);
 
34
                        add(_writing_permission);
 
35
                        add(_execution_permission);
 
36
                        add(_removable);
 
37
                        add(_entry_kind);
 
38
                        add(_reading_ineffective);
 
39
                        add(_writing_ineffective);
 
40
                        add(_execution_ineffective);
 
41
                        add(_current_recursion_policy);
 
42
            // TODO - Implement recursion policies
 
43
#if 0
 
44
                        add(_recursion_policies);
 
45
#endif
 
46
                        add(_empty);
 
47
                }
 
48
 
 
49
                Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > _icon;
 
50
                Gtk::TreeModelColumn<Glib::ustring> _entry_name;
 
51
                Gtk::TreeModelColumn<bool> _reading_permission;
 
52
                Gtk::TreeModelColumn<bool> _writing_permission;
 
53
                Gtk::TreeModelColumn<bool> _execution_permission;
 
54
                Gtk::TreeModelColumn<bool> _removable;
 
55
                Gtk::TreeModelColumn<ElementKind> _entry_kind;
 
56
                Gtk::TreeModelColumn<bool> _reading_ineffective;
 
57
                Gtk::TreeModelColumn<bool> _writing_ineffective;
 
58
                Gtk::TreeModelColumn<bool> _execution_ineffective;
 
59
        Gtk::TreeModelColumn<Glib::ustring> _current_recursion_policy;
 
60
        // Gtk::TreeModelColumn<Glib::RefPtr<Gtk::TreeModel> > _recursion_policies;
 
61
                Gtk::TreeModelColumn<Glib::ustring> _empty;
 
62
};
 
63
 
 
64
class RecursionPolicyModel : public Gtk::TreeModel::ColumnRecord
 
65
{
 
66
    public:
 
67
        RecursionPolicyModel()
 
68
        { 
 
69
            add(_recursion_policy); 
 
70
        }
 
71
 
 
72
        // The values from which the user may choose.
 
73
        Gtk::TreeModelColumn<Glib::ustring> _recursion_policy; 
 
74
};
 
75
 
 
76
#endif