| 1 | /* i4ucbottompage.vala |
|---|
| 2 | * |
|---|
| 3 | * Copyright (C) 2010 Matias De la Puente |
|---|
| 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 3 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, see <http://www.gnu.org/licenses/>. |
|---|
| 17 | * |
|---|
| 18 | * Author: |
|---|
| 19 | * Matias De la Puente <mfpuente.ar@gmail.com> |
|---|
| 20 | */ |
|---|
| 21 | using Gtk; |
|---|
| 22 | |
|---|
| 23 | public class I4uc.BottomPage : Gtk.VBox, PageIface |
|---|
| 24 | { |
|---|
| 25 | public string title { set; get; } |
|---|
| 26 | public HBox tab_label { private set; get; } |
|---|
| 27 | |
|---|
| 28 | private Image _tab_image = new Image.from_stock (STOCK_FILE, IconSize.MENU); |
|---|
| 29 | public string tab_image |
|---|
| 30 | { |
|---|
| 31 | set { _tab_image.set_from_stock (value, IconSize.MENU); } |
|---|
| 32 | owned get { return _tab_image.stock; } |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | private Label _tab_title = new Label (null); |
|---|
| 36 | public string tab_title |
|---|
| 37 | { |
|---|
| 38 | set { _tab_title.label = value; } |
|---|
| 39 | get { return _tab_title.label; } |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | public string tab_tooltip |
|---|
| 43 | { |
|---|
| 44 | set { _tab_label.tooltip_markup = value; } |
|---|
| 45 | get { return _tab_label.tooltip_markup; } |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | public bool tab_mark { set; get; } |
|---|
| 49 | |
|---|
| 50 | public BottomPage () |
|---|
| 51 | { |
|---|
| 52 | _tab_label = new HBox (false, 0); |
|---|
| 53 | _tab_label.pack_start (_tab_image, false, false, 2); |
|---|
| 54 | _tab_label.pack_start (_tab_title, false, false, 2); |
|---|
| 55 | _tab_label.show_all (); |
|---|
| 56 | } |
|---|
| 57 | } |
|---|