~kubuntu-members/korundum/4.11

« back to all changes in this revision

Viewing changes to korundum/modules/akonadi/examples/akonamail/mainwindow.rb

  • Committer: Ian Monroe
  • Date: 2010-11-21 15:55:01 UTC
  • Revision ID: git-v1:c37670e4e3c59f5eb2ba112f5341a5e706217f6f
Split up Smoke into Qt and KDE directories. 
Move libsmoke stuff into the generator directory
Split up Ruby into qtruby and korundum directories

svn path=/trunk/KDE/kdebindings/ruby/; revision=1199320

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=begin
 
2
    This file is part of Akonadi.
 
3
 
 
4
    Copyright (c) 2006 Tobias Koenig <tokoe@kde.org>
 
5
 
 
6
    This program is free software; you can redistribute it and/or modify
 
7
    it under the terms of the GNU General Public License as published by
 
8
    the Free Software Foundation; either version 2 of the License, or
 
9
    (at your option) any later version.
 
10
 
 
11
    This program is distributed in the hope that it will be useful,
 
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
14
    GNU General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU General Public License
 
17
    along with this program; if not, write to the Free Software
 
18
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 
19
    USA.
 
20
=end
 
21
 
 
22
 
 
23
class MainWindow < Qt::MainWindow
 
24
  signals :threadCollection
 
25
 
 
26
  def initialize(parent = nil)
 
27
    super(parent)
 
28
    toolBar = Qt::ToolBar.new("Main toolbar", self)
 
29
    toolBar.addAction("Rethread", self, SIGNAL(:threadCollection))
 
30
    addToolBar(toolBar)
 
31
 
 
32
    Akonadi::Control.start
 
33
    setCentralWidget(MainWidget.new(self))
 
34
    resize(700, 500)
 
35
  end
 
36
end