~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/lib/stetic/libstetic/editor/StockIconSelectorItem.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
using System;
3
 
using Mono.Unix;
4
 
 
5
 
namespace Stetic.Editor
6
 
{
7
 
        public class StockIconSelectorItem: IconSelectorItem
8
 
        {
9
 
                public StockIconSelectorItem (IntPtr ptr): base (ptr)
10
 
                {
11
 
                }
12
 
                
13
 
                public StockIconSelectorItem (): base (Catalog.GetString ("Stock Icons"))
14
 
                {
15
 
                }
16
 
                
17
 
                protected override void CreateIcons ()
18
 
                {
19
 
                        foreach (string s in StockIconHelper.StockIcons) {
20
 
                                if (s != "-" && s != "|") {
21
 
                                        Gdk.Pixbuf pix = WidgetUtils.LoadIcon (s, Gtk.IconSize.Menu);
22
 
                                        if (pix != null) AddIcon (s, pix, s);
23
 
                                }
24
 
                                else
25
 
                                        AddSeparator (s);
26
 
                        }
27
 
                }
28
 
        }
29
 
        
30
 
        class StockIconHelper
31
 
        {
32
 
                public static string[] StockIcons = {
33
 
                        // Commands
34
 
                        "gtk-new",
35
 
                        "gtk-open",
36
 
                        "gtk-save",
37
 
                        "gtk-save-as",
38
 
                        "gtk-revert-to-saved",
39
 
                        "gtk-quit",
40
 
                        "gtk-print",
41
 
                        "gtk-print-preview",
42
 
                        "gtk-properties",
43
 
                        "|",
44
 
                        "gtk-cut",
45
 
                        "gtk-copy",
46
 
                        "gtk-paste",
47
 
                        "gtk-delete",
48
 
                        "gtk-undelete",
49
 
                        "gtk-undo",
50
 
                        "gtk-redo",
51
 
                        "gtk-preferences",
52
 
                        "|",
53
 
                        "gtk-execute",
54
 
                        "gtk-stop",
55
 
                        "gtk-refresh",
56
 
                        "gtk-find",
57
 
                        "gtk-find-and-replace",
58
 
                        "|",
59
 
                        "gtk-spell-check",
60
 
                        "gtk-convert",
61
 
                        "gtk-help",
62
 
                        "|",
63
 
                        "gtk-add",
64
 
                        "gtk-remove",
65
 
                        "gtk-clear",
66
 
                        "-",
67
 
 
68
 
                        // Formatting
69
 
                        "gtk-bold",
70
 
                        "gtk-italic",
71
 
                        "gtk-underline",
72
 
                        "gtk-strikethrough",
73
 
                        "gtk-select-color",
74
 
                        "gtk-select-font",
75
 
                        "|",
76
 
                        "gtk-indent",
77
 
                        "gtk-unindent",
78
 
                        "gtk-justify-center",
79
 
                        "gtk-justify-fill",
80
 
                        "gtk-justify-left",
81
 
                        "gtk-justify-right",
82
 
                        "|",
83
 
                        "gtk-sort-ascending",
84
 
                        "gtk-sort-descending",
85
 
                        "|",
86
 
                        "gtk-zoom-100",
87
 
                        "gtk-zoom-fit",
88
 
                        "gtk-zoom-in",
89
 
                        "gtk-zoom-out",
90
 
                        "-",
91
 
 
92
 
 
93
 
                        // Dialog
94
 
                        "gtk-yes",
95
 
                        "gtk-no",
96
 
                        "gtk-cancel",
97
 
                        "gtk-ok",
98
 
                        "gtk-apply",
99
 
                        "gtk-close",
100
 
                        "|",
101
 
                        "gtk-dialog-error",
102
 
                        "gtk-dialog-info",
103
 
                        "gtk-dialog-question",
104
 
                        "gtk-dialog-warning",
105
 
                        "-",
106
 
 
107
 
                        // Navigation
108
 
                        "gtk-goto-bottom",
109
 
                        "gtk-goto-first",
110
 
                        "gtk-goto-last",
111
 
                        "gtk-goto-top",
112
 
                        "|",
113
 
                        "gtk-go-back",
114
 
                        "gtk-go-down",
115
 
                        "gtk-go-forward",
116
 
                        "gtk-go-up",
117
 
                        "|",
118
 
                        "gtk-home",
119
 
                        "gtk-jump-to",
120
 
                        "-",
121
 
 
122
 
                        // Misc
123
 
                        "gtk-cdrom",
124
 
                        "gtk-floppy",
125
 
                        "gtk-harddisk",
126
 
                        "gtk-network",
127
 
                        "gtk-color-picker",
128
 
                        "gtk-dnd",
129
 
                        "gtk-dnd-multiple",
130
 
                        "gtk-missing-image",
131
 
                        "gtk-index"
132
 
                        };
133
 
        }
134
 
}