2 /* Circ.Frontend.GtkSharp : GTK# frontend for Circ
3 * Copyright (C) 2007 LAVAL Jérémie
5 * This file is licensed under the terms of the LGPL.
7 * For the complete licence see the file COPYING.
13 using Circ
.Controller
;
15 namespace Circ
.Frontend
.GtkSharp
17 public partial class ServerPanel
: Gtk
.Bin
19 IConnectionControl ctrl
;
20 MessagesPanel messages
;
23 public ServerPanel(IConnectionControl ctrl
): base()
25 Gtk
.Application
.Invoke( delegate {
27 this.messages
= new MessagesPanel();
28 this.buffer
= messages
.Buffer
;
31 this.textWindow
.Add(messages
);
35 public int CurrentPage
{
37 return this.channelsNb
.CurrentPage
;
40 this.channelsNb
.CurrentPage
= value;
44 public Widget CurrentPageWidget
{
46 return this.channelsNb
.CurrentPageWidget
;
50 public Widget
GetMenuWidget(Widget widg
)
52 return this.channelsNb
.GetMenuLabel(widg
);
57 return this.channelsNb
.NPages
;
61 public void NextPage()
63 this.channelsNb
.NextPage();