Sha256: 15becab4e00d89c0e36db5c3f48cfca23d937a7e14572330a7dea7d06337f855

Contents?: true

Size: 805 Bytes

Versions: 8

Compression:

Stored size: 805 Bytes

Contents

module RubyApp

  module Elements

    module Pages
      require 'ruby_app'
      require 'ruby_app/elements/markdown'
      require 'ruby_app/elements/pages/blank_page'

      class SettingsPage < RubyApp::Elements::Pages::BlankPage

        template_path(:all, File.dirname(__FILE__))

        def initialize
          super

          @markdown = RubyApp::Elements::Markdown.new
          @markdown.clicked do |element, event|
            case event.name
              when 'do_load_theme_mobile'
                require 'ruby_app/themes/mobile'
              when 'do_reload_translations'
                RubyApp::Language.reload!
              when 'do_quit'
                RubyApp::Session.quit!
            end
            event.refresh
          end

        end

      end

    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
RubyApp-0.2.7 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.2.6 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.2.5 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.2.4 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.2.3 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.2.2 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.2.1 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.2.0 lib/ruby_app/elements/pages/settings_page.rb