Fix program icon installation.
[kaya.git] / lib / kaya_ui.rb
blob8bcbff7e9e6fdddae227a914976d3aaa2c26cff5
1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 require 'toolkit'
10 module Kaya
11   GUI = KDE::gui(:kaya) do |g|
12     g.menu_bar do |mb|
13       mb.menu(:file) do |m|
14         m.group(:file_extensions)
15       end
16       
17       mb.menu(:edit) do |m|
18         m.action :undo
19         m.action :redo
20       end
21       
22       mb.menu(:gameMenu, :text => KDE::i18n("&Game")) do |m|
23         m.action :begin
24         m.action :back
25         m.action :pause
26         m.action :forward
27         m.action :end
28         m.separator
29         m.group :game_extensions
30         m.separator
31         m.action_list :game_actions
32       end
33       
34       mb.menu(:viewMenu, :text => KDE::i18n("&View")) do |m|
35         m.action :flip
36         m.action :toggle_console
37         m.action :toggle_history
38       end
39       
40       mb.menu(:settings) do |m|
41         m.action :preferences
42         m.action :configure_engines
43         m.action :configure_themes
44       end
45     end
46     
47     g.tool_bar(:mainToolBar) do |tb|
48       tb.action :undo
49       tb.action :redo
50     end
51     
52     g.tool_bar(:gameToolbar, :text => KDE::i18n("Game Toolbar")) do |tb|
53       tb.action :begin
54       tb.action :back
55       tb.action :pause
56       tb.action :forward
57       tb.action :end
58       tb.action_list :variantActions
59     end
60   end
61 end