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()
26 this.messages
= new MessagesPanel();
27 this.buffer
= messages
.Buffer
;
30 this.textWindow
.Add(messages
);
33 public int CurrentPage
{
35 return this.channelsNb
.CurrentPage
;
38 this.channelsNb
.CurrentPage
= value;
42 public Widget CurrentPageWidget
{
44 return this.channelsNb
.CurrentPageWidget
;
48 public Widget
GetMenuWidget(Widget widg
)
50 return this.channelsNb
.GetMenuLabel(widg
);
55 return this.channelsNb
.NPages
;
59 public void NextPage()
61 this.channelsNb
.NextPage();