Module: Gtk2AppLib

Defined in:
lib/gtk2applib/oauth.rb,
lib/gtk2applib.rb,
lib/gtk2applib/lock.rb,
lib/gtk2applib/color.rb,
lib/gtk2applib/cache.rb,
lib/gtk2applib/system.rb,
lib/gtk2applib/images.rb,
lib/gtk2applib/program.rb,
lib/gtk2applib/app_menu.rb,
lib/gtk2applib/optparse.rb,
lib/gtk2applib/sysconfig.rb,
lib/gtk2applib/keyvalues.rb,
lib/gtk2applib/constants.rb,
lib/gtk2applib/dock_menu.rb,
lib/gtk2applib/component.rb,
lib/gtk2applib/appconfig.rb,
lib/gtk2applib/parameters.rb,
lib/gtk2applib/user_space.rb,
lib/gtk2applib/dialogs/core.rb,
lib/gtk2applib/widgets/menu.rb,
lib/gtk2applib/dialogs/auth.rb,
lib/gtk2applib/widgets/core.rb,
lib/gtk2applib/dialogs/entry.rb,
lib/gtk2applib/widgets/fixed.rb,
lib/gtk2applib/dialogs/login.rb,
lib/gtk2applib/widgets/label.rb,
lib/gtk2applib/widgets/button.rb,
lib/gtk2applib/widgets/evented.rb,
lib/gtk2applib/dialogs/question.rb,
lib/gtk2applib/dialogs/get_date.rb,
lib/gtk2applib/dialogs/pick_one.rb,
lib/gtk2applib/key_press_events.rb,
lib/gtk2applib/widgets/text_view.rb,
lib/gtk2applib/dialogs/text_view.rb,
lib/gtk2applib/widgets/composite.rb,
lib/gtk2applib/widgets/combo_box.rb,
lib/gtk2applib/dialogs/show_image.rb,
lib/gtk2applib/dialogs/choose_tags.rb,
lib/gtk2applib/widgets/cached_image.rb,
lib/gtk2applib/widgets/check_button.rb,
lib/gtk2applib/widgets/toggle_button.rb,
lib/gtk2applib/widgets/on_off_button.rb,
lib/gtk2applib/dialogs/quick_message.rb,
lib/gtk2applib/widgets/combo_box_entry.rb,
lib/gtk2applib/widgets/standard_widgets.rb,
lib/gtk2applib/widgets/fixed_interpreter.rb

Overview

TODO

Defined Under Namespace

Modules: Color, Component, Constants, Images, Lock, Missing, Parameters, SysConfig, System, UserSpace, Widgets Classes: AppMenu, Cache, Dialogs, DockMenu, KeyPressEvents, KeyValues, Oauth, OptParse, Program

Constant Summary

DIALOGS =
Dialogs.new

Class Method Summary (collapse)

Class Method Details

+ (Object) between_configs



69
70
71
72
73
74
# File 'lib/gtk2applib.rb', line 69

def self.between_configs
  require 'gtk2applib/core_hacks'
  require 'gtk2applib/lock'
  autoload :Color, 'gtk2applib/color'
  autoload :Cache, 'gtk2applib/cache'
end

+ (Object) configures



76
77
78
79
80
81
82
# File 'lib/gtk2applib.rb', line 76

def self.configures
  Gtk2AppLib.sysconfig
  Gtk2AppLib.between_configs
  if File.exist?(rfile = UserSpace.appconfig) then
    require rfile
  end
end

+ (Object) gui



154
155
156
157
158
159
160
161
162
163
# File 'lib/gtk2applib.rb', line 154

def self.gui
  require 'gtk2applib/keyvalues'
  Widgets.widgets
  Dialogs.dialogs
  Gtk2AppLib.program
  # User hacks is loaded last to allow the user to modify the app
  if File.exist?(rfile = File.join(Constants::USERDIR, 'user_hacks')) then
    require rfile
  end
end

+ (Object) optparse



48
49
50
51
52
53
54
# File 'lib/gtk2applib.rb', line 48

def self.optparse
  require 'gtk2applib/constants'
  require 'gtk2applib/optparse'
  $argv = OptParse.parse($help, $optparse)
  # No longer need these...
  $help = $optparse = nil
end

+ (Object) program



145
146
147
148
149
150
151
152
# File 'lib/gtk2applib.rb', line 145

def self.program
  autoload :Component, 'gtk2applib/component'
  require 'gtk2applib/app_menu'
  require 'gtk2applib/dock_menu'
  require 'gtk2applib/key_press_events'
  # OK, get on with the program...
  require 'gtk2applib/program'
end

+ (Object) sysconfig



61
62
63
64
65
66
67
# File 'lib/gtk2applib.rb', line 61

def self.sysconfig
  require 'gtk2' unless $nogtk
  require 'gtk2applib/system'
  require 'gtk2applib/parameters'
  require 'gtk2applib/images'
  require 'gtk2applib/sysconfig'
end

+ (Object) user_space



56
57
58
59
# File 'lib/gtk2applib.rb', line 56

def self.user_space
  require 'gtk2applib/user_space'
  UserSpace.init
end