Added some of my new algorithm stubs, worked on general presentation of DateTime...
[circ.git] / Circ.Frontend.GtkSharp / ServerPanel.cs
blobcaf23bc3a693bdf3dc7d9d89a9f65eb30221a499
1 #region License
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.
8 */
9 #endregion
10 using System;
11 using Gtk;
12 using Circ.Frontend;
13 using Circ.Controller;
15 namespace Circ.Frontend.GtkSharp
17 public partial class ServerPanel : Gtk.Bin
19 IConnectionControl ctrl;
20 MessagesPanel messages;
21 TextBuffer buffer;
23 public ServerPanel(IConnectionControl ctrl): base()
25 this.ctrl = ctrl;
26 this.messages = new MessagesPanel();
27 this.buffer = messages.Buffer;
29 this.Build();
30 this.textWindow.Add(messages);
33 public int CurrentPage {
34 get {
35 return this.channelsNb.CurrentPage;
37 set {
38 this.channelsNb.CurrentPage = value;
42 public Widget CurrentPageWidget {
43 get {
44 return this.channelsNb.CurrentPageWidget;
48 public Widget GetMenuWidget(Widget widg)
50 return this.channelsNb.GetMenuLabel(widg);
53 public int NPages {
54 get {
55 return this.channelsNb.NPages;
59 public void NextPage()
61 this.channelsNb.NextPage();