Sha256: 16b537d87b41f977fb6febc0edac5be350d82a0a256bc41de81e09b4c8947a9f

Contents?: true

Size: 779 Bytes

Versions: 70

Compression:

Stored size: 779 Bytes

Contents

module RubyApp

  module Elements

    module Pages
      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

70 entries across 70 versions & 1 rubygems

Version Path
RubyApp-0.0.91 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.90 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.89 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.88 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.87 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.86 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.85 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.84 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.83 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.82 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.81 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.80 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.79 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.78 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.77 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.76 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.75 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.74 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.73 lib/ruby_app/elements/pages/settings_page.rb
RubyApp-0.0.72 lib/ruby_app/elements/pages/settings_page.rb