Changeset 9c00fa2176b76854d300d8e1879dba175e299dcc
- Timestamp:
- 06/08/10 15:19:05 (3 years ago)
- Children:
- 34fbc249592793418e7eb907cccee13196e06ed6
- Parents:
- 9717a84fce18b736017d72fa9a7a8e64ea952ce0
- git-committer:
- Matias De la Puente <mfpuente.ar@…> (06/08/10 15:19:05)
- Location:
- libi4uc
- Files:
-
- 2 deleted
- 12 edited
-
Makefile.am (modified) (1 diff)
-
i4ucbottompage.vala (deleted)
-
i4ucbottompanel.vala (deleted)
-
i4ucdocumentpageview.vala (modified) (1 diff)
-
i4uclogpage.vala (modified) (1 diff)
-
i4ucmainwindowview.vala (modified) (2 diffs)
-
i4ucpage.vala (modified) (2 diffs)
-
i4ucpagespanel.vala (modified) (1 diff)
-
i4ucpagespaneliface.vala (modified) (1 diff)
-
i4ucprofilebuilderlogpage.vala (modified) (1 diff)
-
i4ucprogrammersview.vala (modified) (2 diffs)
-
i4ucprojectsview.vala (modified) (2 diffs)
-
i4ucsidepanel.vala (modified) (1 diff)
-
i4ucviewutils.vala (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libi4uc/Makefile.am
rbed5595 r9c00fa2 41 41 i4ucaddprofiledialogviewiface.vala \ 42 42 i4ucauthorslist.vala \ 43 i4ucbottompage.vala \44 i4ucbottompanel.vala \45 43 i4ucbuilder.vala \ 46 44 i4ucbuilderdevicetype.vala \ -
libi4uc/i4ucdocumentpageview.vala
r956a6d0 r9c00fa2 219 219 public DocumentPageView () 220 220 { 221 base.with_close_button (); 222 221 223 create_error_bar (); 222 224 create_reload_bar (); -
libi4uc/i4uclogpage.vala
rc02ef63 r9c00fa2 21 21 using Gtk; 22 22 23 public class I4uc.LogPage : BottomPage, LogPageIface23 public class I4uc.LogPage : Page, LogPageIface 24 24 { 25 25 private ListStore _log_store; -
libi4uc/i4ucmainwindowview.vala
r24f50ea r9c00fa2 28 28 private PagesPanel _pages_panel = new PagesPanel (); 29 29 private SidePanel _side_panel = new SidePanel (); 30 private BottomPanel _bottom_panel = new BottomPanel ();30 private PagesPanel _bottom_panel = new PagesPanel (); 31 31 32 32 public UIManager ui_manager { get { return _ui_manager; } } 33 33 public PagesPanel pages_panel { get { return _pages_panel; } } 34 34 public SidePanel side_panel { get { return _side_panel; } } 35 public BottomPanel bottom_panel { get { return _bottom_panel; } }35 public PagesPanel bottom_panel { get { return _bottom_panel; } } 36 36 37 37 public bool show_side_panel_active … … 88 88 var toolbar = (Toolbar)_ui_manager.get_widget ("/MainToolbar"); 89 89 toolbar.set_style (ToolbarStyle.ICONS); 90 91 _bottom_panel.page_position = PagePosition.BOTTOM; 90 92 91 93 var vpaned = new VPaned (); -
libi4uc/i4ucpage.vala
r574ec2f r9c00fa2 24 24 { 25 25 public string title { set; get; } 26 public HBox tab_label { private set; get; }26 public Box tab_label { private set; get; } 27 27 28 28 private Image _tab_image = new Image.from_stock (STOCK_FILE, IconSize.MENU); … … 55 55 public Page () 56 56 { 57 _tab_label = new HBox (false, 5); 58 _tab_label.pack_start (_tab_image, false, false, 0); 59 _tab_label.pack_start (_tab_mark, false, false, 0); 60 _tab_label.pack_start (_tab_title, false, false, 0); 61 _tab_label.show_all (); 62 } 63 64 public Page.with_close_button () 65 { 66 this (); 67 57 68 var close_button = ViewUtils.create_close_button (); 58 69 close_button.clicked.connect (() => this.close_clicked ()); 59 70 close_button.tooltip_text = _("Close page"); 60 71 61 _tab_label = new HBox (false, 5);62 _tab_label.pack_start (_tab_image, false, false, 0);63 _tab_label.pack_start (_tab_mark, false, false, 0);64 _tab_label.pack_start (_tab_title, false, false, 0);65 72 _tab_label.pack_start (close_button, false, false, 0); 66 73 _tab_label.show_all (); 67 } 74 } 68 75 } -
libi4uc/i4ucpagespanel.vala
r259b397 r9c00fa2 29 29 30 30 public PageIface current_page { get { return _current_page; } } 31 32 public PagePosition page_position 33 { 34 set { _notebook.tab_pos = ViewUtils.from_page_position (value); } 35 get { return ViewUtils.to_page_position (_notebook.tab_pos); } 36 } 31 37 32 38 public PagesPanel () -
libi4uc/i4ucpagespaneliface.vala
r4bb5472 r9c00fa2 21 21 using Gee; 22 22 23 public enum I4uc.PagePosition 24 { 25 BOTTOM, 26 LEFT, 27 RIGHT, 28 TOP 29 } 30 23 31 public interface I4uc.PagesPanelIface : GLib.Object 24 32 { 25 33 public abstract PageIface current_page { get; } 34 public abstract PagePosition page_position { set; get; } 26 35 27 36 public signal void page_added (PageIface page); -
libi4uc/i4ucprofilebuilderlogpage.vala
r956a6d0 r9c00fa2 21 21 using Gtk; 22 22 23 public class I4uc.ProfileBuilderLogPage : BottomPage, ProfileBuilderLogPageIface23 public class I4uc.ProfileBuilderLogPage : Page, ProfileBuilderLogPageIface 24 24 { 25 25 private ListStore _log_store; -
libi4uc/i4ucprogrammersview.vala
rec0dd25 r9c00fa2 27 27 private PagesPanel _pages_panel; 28 28 private SidePanel _side_panel; 29 private BottomPanel _bottom_panel;29 private PagesPanel _bottom_panel; 30 30 private ProgrammersSidePage _side_page = new ProgrammersSidePage (); 31 31 private LogPage _log_page = new LogPage (); … … 83 83 } 84 84 85 public ProgrammersView (UIManager ui_manager, PagesPanel pages_panel, SidePanel side_panel, BottomPanel bottom_panel)85 public ProgrammersView (UIManager ui_manager, PagesPanel pages_panel, SidePanel side_panel, PagesPanel bottom_panel) 86 86 { 87 87 _ui_manager = ui_manager; -
libi4uc/i4ucprojectsview.vala
rf399f8d r9c00fa2 27 27 private ActionGroup _action_group; 28 28 private SidePanel _side_panel; 29 private BottomPanel _bottom_panel;29 private PagesPanel _bottom_panel; 30 30 private ProjectsSidePageView _side_page_view = new ProjectsSidePageView (); 31 31 private ProfileBuilderLogPage _build_log_page = new ProfileBuilderLogPage (); … … 101 101 } 102 102 103 public ProjectsView (UIManager ui_manager, SidePanel side_panel, BottomPanel bottom_panel)103 public ProjectsView (UIManager ui_manager, SidePanel side_panel, PagesPanel bottom_panel) 104 104 { 105 105 _ui_manager = ui_manager; -
libi4uc/i4ucsidepanel.vala
r9171e00 r9c00fa2 29 29 30 30 public PageIface current_page { get { return _current_page; } } 31 32 public PagePosition page_position 33 { 34 set { _notebook.tab_pos = ViewUtils.from_page_position (value); } 35 get { return ViewUtils.to_page_position (_notebook.tab_pos); } 36 } 31 37 32 38 public SidePanel () -
libi4uc/i4ucviewutils.vala
r574ec2f r9c00fa2 79 79 return TabImage.NONE; 80 80 } 81 82 public PagePosition to_page_position (PositionType position_type) 83 { 84 var page_position = PagePosition.TOP; 85 switch (position_type) 86 { 87 case PositionType.BOTTOM: page_position = PagePosition.BOTTOM; break; 88 case PositionType.LEFT: page_position = PagePosition.LEFT; break; 89 case PositionType.RIGHT: page_position = PagePosition.RIGHT; break; 90 case PositionType.TOP: page_position = PagePosition.TOP; break; 91 } 92 return page_position; 93 } 94 95 public PositionType from_page_position (PagePosition page_position) 96 { 97 var position_type = PositionType.TOP; 98 switch (page_position) 99 { 100 case PagePosition.BOTTOM: position_type = PositionType.BOTTOM; break; 101 case PagePosition.LEFT: position_type = PositionType.LEFT; break; 102 case PagePosition.RIGHT: position_type = PositionType.RIGHT; break; 103 case PagePosition.TOP: position_type = PositionType.TOP; break; 104 } 105 return position_type; 106 } 81 107 }
Note: See TracChangeset
for help on using the changeset viewer.

