Sha256: 52767d8aaf0467cc59f65355dac3caa8c38fe507868f6946dc32354c700392b5

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

#!/usr/bin/env ruby

require 'bundler/setup'
require 'vedeu'

class DSLApp

  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }

  Vedeu.configure do
    debug!
    log '/tmp/vedeu_views_dsl.log'
    run_once!
    standalone!
  end

  Vedeu.interface :test1_interface do
    border do
      title 'Test 1'
    end
    geometry do
      x  4
      y  3
      xn 34
      yn 8
    end
  end

  Vedeu.interface :test2_interface do
    border do
      title 'Test 2'
    end
    geometry do
      x  36
      y  3
      xn 66
      yn 8
    end
  end

  Vedeu.keymap '_global_' do
    key('q') { Vedeu.exit }
  end

  Vedeu.render do
    view(:test1_interface) do
      lines do
        line do
          streams do
          end
        end
      end
    end

    view(:test2_interface) do
      lines do
        line do
          streams do
            text 'v->ls->line->streams->text 1'
            text 'v->ls->line->streams->text 2' # doesn't show
          end
        end
      end
    end
  end

  def self.start(argv = ARGV)
    Vedeu::Launcher.execute!(argv)
  end

end # EditorApp

DSLApp.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.8.0 examples/views/lines_line_streams.rb