~elementary-apps/pantheon-files/trunk

« back to all changes in this revision

Viewing changes to src/View/Chrome/TopMenu.vala

  • Committer: am.monkeyd at gmail
  • Date: 2010-11-08 13:17:02 UTC
  • Revision ID: am.monkeyd@gmail.com-20101108131702-rqeywh4r5pyx2ycz
let's roll

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  
 
2
//  TopMenu.cs
 
3
//  
 
4
//  Author:
 
5
//       mathijshenquet <${AuthorEmail}>
 
6
// 
 
7
//  Copyright (c) 2010 mathijshenquet
 
8
// 
 
9
//  This program is free software: you can redistribute it and/or modify
 
10
//  it under the terms of the GNU General Public License as published by
 
11
//  the Free Software Foundation, either version 3 of the License, or
 
12
//  (at your option) any later version.
 
13
// 
 
14
//  This program is distributed in the hope that it will be useful,
 
15
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
//  GNU General Public License for more details.
 
18
// 
 
19
//  You should have received a copy of the GNU General Public License
 
20
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
using Gtk;
 
22
 
 
23
namespace Marlin.View.Chrome
 
24
{
 
25
        public class TopMenu : Gtk.Toolbar
 
26
        {
 
27
                public ToolButton go_back;
 
28
                public ToolButton go_forward;
 
29
                public ToolButton go_up;
 
30
                public ToolButton refresh;
 
31
                public ViewSwitcher view_switcher;
 
32
                public CompactMenu compact_menu;
 
33
                public CompactMenuButton compact_menu_button;
 
34
                public LocationBar location_bar;
 
35
                
 
36
                public TopMenu (/*Settings settings*/)
 
37
                {
 
38
                        go_back = new ToolButton.from_stock(Stock.GO_BACK);
 
39
                        go_forward = new ToolButton.from_stock(Stock.GO_FORWARD);
 
40
                        go_up = new ToolButton.from_stock(Stock.GO_UP);
 
41
                        refresh = new ToolButton.from_stock(Stock.REFRESH);
 
42
                        location_bar = new LocationBar ();
 
43
                        compact_menu = new CompactMenu (/*settings*/);
 
44
                        compact_menu_button = new CompactMenuButton.from_stock(Stock.PROPERTIES, IconSize.MENU, "Menu", compact_menu);
 
45
                        view_switcher = new ViewSwitcher();
 
46
                        
 
47
                        insert(go_back, -1);
 
48
                        insert(go_forward, -1);
 
49
                        insert(go_up, -1);
 
50
                        insert(location_bar, -1);
 
51
                        //insert(refresh, -1);
 
52
                        insert(view_switcher, -1);
 
53
                        insert(compact_menu_button, -1);
 
54
                }
 
55
        }
 
56
}
 
57