* Shop + Plugin is now functionnal, sample Plugin provided to connect to the default...
[circ.git] / Circ.Frontend.GtkSharp / ServerPanel.cs
bloba0aacbfbec7e8dde976a339fd61656ccdd437196
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 Gtk.Application.Invoke( delegate {
26 this.ctrl = ctrl;
27 this.messages = new MessagesPanel();
28 this.buffer = messages.Buffer;
30 this.Build();
31 this.textWindow.Add(messages);
32 });
35 public int CurrentPage {
36 get {
37 return this.channelsNb.CurrentPage;
39 set {
40 this.channelsNb.CurrentPage = value;
44 public Widget CurrentPageWidget {
45 get {
46 return this.channelsNb.CurrentPageWidget;
50 public Widget GetMenuWidget(Widget widg)
52 return this.channelsNb.GetMenuLabel(widg);
55 public int NPages {
56 get {
57 return this.channelsNb.NPages;
61 public void NextPage()
63 this.channelsNb.NextPage();