Module: RubyCurses

Extended by:
RubyCurses
Includes:
ColorMap
Included in:
RubyCurses
Defined in:
lib/rbcurse/rtree.rb,
lib/rbcurse/app.rb,
lib/rbcurse/rmenu.rb,
lib/rbcurse/rcombo.rb,
lib/rbcurse/rtable.rb,
lib/rbcurse/action.rb,
lib/rbcurse/rwidget.rb,
lib/rbcurse/listkeys.rb,
lib/rbcurse/rlistbox.rb,
lib/rbcurse/rvimsplit.rb,
lib/rbcurse/rviewport.rb,
lib/rbcurse/rtextview.rb,
lib/rbcurse/rprogress.rb,
lib/rbcurse/rtextarea.rb,
lib/rbcurse/celleditor.rb,
lib/rbcurse/rsplitpane.rb,
lib/rbcurse/rpopupmenu.rb,
lib/rbcurse/rscrollform.rb,
lib/rbcurse/rtabbedpane.rb,
lib/rbcurse/rsplitpane2.rb,
lib/rbcurse/rscrollpane.rb,
lib/rbcurse/rmultisplit.rb,
lib/rbcurse/rmessagebox.rb,
lib/rbcurse/undomanager.rb,
lib/rbcurse/ractionevent.rb,
lib/rbcurse/rchangeevent.rb,
lib/rbcurse/extras/rlink.rb,
lib/rbcurse/rtabbedwindow.rb,
lib/rbcurse/extras/viewer.rb,
lib/rbcurse/rbasiclistbox.rb,
lib/rbcurse/extras/divider.rb,
lib/rbcurse/listselectable.rb,
lib/rbcurse/tree/treemodel.rb,
lib/rbcurse/rmultitextview.rb,
lib/rbcurse/rcommandwindow.rb,
lib/rbcurse/extras/tabular.rb,
lib/rbcurse/rinputdataevent.rb,
lib/rbcurse/rmulticontainer.rb,
lib/rbcurse/keylabelprinter.rb,
lib/rbcurse/extras/menutree.rb,
lib/rbcurse/extras/scrollbar.rb,
lib/rbcurse/extras/rmenulink.rb,
lib/rbcurse/listcellrenderer.rb,
lib/rbcurse/extras/statusline.rb,
lib/rbcurse/applicationheader.rb,
lib/rbcurse/extras/bottomline.rb,
lib/rbcurse/extras/stdscrwindow.rb,
lib/rbcurse/extras/focusmanager.rb,
lib/rbcurse/extras/directorytree.rb,
lib/rbcurse/extras/tabularwidget.rb,
lib/rbcurse/checkboxcellrenderer.rb,
lib/rbcurse/comboboxcellrenderer.rb,
lib/rbcurse/extras/directorylist.rb,
lib/rbcurse/tree/treecellrenderer.rb,
lib/rbcurse/extras/listselectable.rb,
lib/rbcurse/table/tablecellrenderer.rb,
lib/rbcurse/defaultlistselectionmodel.rb,
lib/rbcurse/table/tabledatecellrenderer.rb

Overview

Added ListSelectionEvents on 2009-02-13 23:33 Data model for list selections. Uses index or indices, or value/values. Please avoid using "row" as this is not clear to user, and will be deprecated. 2010-09-21 19:43 source now contains List object, not this class

Defined Under Namespace

Modules: ConfigSetup, EventHandler, FocusManager, ListKeys, ListSelectable, NewListSelectable, Utils Classes: AbstractUndo, Action, ActionEvent, App, ApplicationHeader, BasicListCellRenderer, BasicListbox, Bottomline, BufferManager, Button, CellEditor, ChangeEvent, CheckBox, CheckBoxCellRenderer, CheckBoxMenuItem, ColumnResizeEvent, ComboBox, ComboBoxCellRenderer, CommandWindow, Coord, DefaultListSelectionModel, DefaultTableColumnModel, DefaultTableModel, DefaultTreeModel, DirectoryList, DirectoryListCellRenderer, DirectoryTree, Divider, DragEvent, Event, Field, FieldValidationException, Form, History, IllegalStateException, InputDataEvent, ItemEvent, KeyLabelPrinter, Label, Link, ListCellRenderer, ListDataEvent, ListDataModel, ListSelectionEvent, Listbox, Menu, MenuBar, MenuItem, MenuLink, MenuSeparator, MenuTree, MessageBox, MultiContainer, MultiSplit, MultiTextView, PCheckBoxMenuItem, PMenu, PMenuBar, PMenuItem, PMenuSeparator, PopupList, PopupMenu, Progress, PropertyChangeEvent, PropertyVetoException, RBuffer, RComponents, RadioButton, ResizeEvent, ScrollForm, ScrollPane, Scrollbar, SimpleUndo, Split, SplitPane, StatusLine, StdscrWindow, TabbedButton, TabbedPane, TabbedWindow, Table, TableCellRenderer, TableColumn, TableColumnModel, TableColumnModelEvent, TableDateCellRenderer, TableEditingEvent, TableHeader, TableModel, TableModelEvent, TableTraversalEvent, Tabular, TabularWidget, TextActionEvent, TextArea, TextView, ToggleButton, Tree, TreeCellRenderer, TreeModelEvent, TreeNode, Variable, Viewer, Viewport, VimSplit, Widget

Constant Summary

META_KEY =
128

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from ColorMap

colors, get_color, get_color_const, get_colors_for_pair, install_color, is_color?, setup

Class Method Details

+ (Object) startup

class radio



2653
2654
2655
2656
2657
2658
2659
# File 'lib/rbcurse/rwidget.rb', line 2653

def self.startup
  VER::start_ncurses
  path = File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")
  file   = File.open(path, File::WRONLY|File::TRUNC|File::CREAT) 
  $log = Logger.new(path)
  $log.level = Logger::DEBUG
end

Instance Method Details

- (Object) rbcurse/listcellrenderer

A cell renderer should not changed the length of a line otherwise scrolling etc goes for a toss. The calling repaint method does trimming.

A cell renderer can do small modifications, or color changing to data. Here we should color directories or bak files or hidden files, swap files etc differently Should this class do the trimming of data, else its hard to figure out what the extension is if its trimeed out. But then it would have to handle the panning too.



423
# File 'lib/rbcurse/extras/directorylist.rb', line 423

require 'rbcurse/listcellrenderer'

- (Object) repaint_old



115
116
# File 'lib/rbcurse/rprogress.rb', line 115

def repaint_old
end

- (Object) status_line(config = {}, &block)

prints a status line at bottom where mode's statuses et can be reflected



499
500
501
502
# File 'lib/rbcurse/rwidget.rb', line 499

def status_line config={}, &block
  require 'rbcurse/extras/statusline'
  sl = RubyCurses::StatusLine.new @form, config, &block
end