2
Eiciel - GNOME editor of ACL file permissions.
3
Copyright (C) 2004-2010 Roger Ferrer Ib��ez
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.
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.
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
19
#ifndef LLISTA_ACL_HPP
20
#define LLISTA_ACL_HPP
22
#include "acl_element_kind.hpp"
23
#include "cellrenderer_acl.hpp"
25
class ACLListModel : public Gtk::TreeModel::ColumnRecord
33
add(_reading_permission);
34
add(_writing_permission);
35
add(_execution_permission);
38
add(_reading_ineffective);
39
add(_writing_ineffective);
40
add(_execution_ineffective);
41
add(_current_recursion_policy);
42
// TODO - Implement recursion policies
44
add(_recursion_policies);
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;
64
class RecursionPolicyModel : public Gtk::TreeModel::ColumnRecord
67
RecursionPolicyModel()
69
add(_recursion_policy);
72
// The values from which the user may choose.
73
Gtk::TreeModelColumn<Glib::ustring> _recursion_policy;