Module: RubyCurses
- Extended by:
- RubyCurses
- Includes:
- ColorMap
- Included in:
- RubyCurses
- Defined in:
- lib/rbcurse/core/include/io.rb,
lib/rbcurse/core/util/app.rb,
lib/rbcurse/core/util/viewer.rb,
lib/rbcurse/core/widgets/box.rb,
lib/rbcurse/core/include/chunk.rb,
lib/rbcurse/core/widgets/rlink.rb,
lib/rbcurse/core/widgets/rlist.rb,
lib/rbcurse/core/widgets/rmenu.rb,
lib/rbcurse/core/widgets/rtree.rb,
lib/rbcurse/core/include/action.rb,
lib/rbcurse/core/util/basestack.rb,
lib/rbcurse/core/util/padreader.rb,
lib/rbcurse/core/widgets/rcombo.rb,
lib/rbcurse/core/system/colormap.rb,
lib/rbcurse/core/util/ansiparser.rb,
lib/rbcurse/core/util/bottomline.rb,
lib/rbcurse/core/widgets/divider.rb,
lib/rbcurse/core/widgets/rwidget.rb,
lib/rbcurse/core/widgets/tabular.rb,
lib/rbcurse/core/widgets/textpad.rb,
lib/rbcurse/core/include/rhistory.rb,
lib/rbcurse/core/util/colorparser.rb,
lib/rbcurse/core/util/focusmanager.rb,
lib/rbcurse/core/widgets/rmenulink.rb,
lib/rbcurse/core/widgets/rprogress.rb,
lib/rbcurse/core/widgets/rtextarea.rb,
lib/rbcurse/core/widgets/rtextview.rb,
lib/rbcurse/core/widgets/scrollbar.rb,
lib/rbcurse/core/include/appmethods.rb,
lib/rbcurse/core/include/vieditable.rb,
lib/rbcurse/core/include/widgetmenu.rb,
lib/rbcurse/core/widgets/rcontainer.rb,
lib/rbcurse/core/widgets/statusline.rb,
lib/rbcurse/core/include/bordertitle.rb,
lib/rbcurse/core/include/multibuffer.rb,
lib/rbcurse/core/util/rcommandwindow.rb,
lib/rbcurse/core/widgets/rmessagebox.rb,
lib/rbcurse/core/widgets/rtabbedpane.rb,
lib/rbcurse/core/include/listbindings.rb,
lib/rbcurse/core/include/ractionevent.rb,
lib/rbcurse/core/include/rchangeevent.rb,
lib/rbcurse/core/util/widgetshortcuts.rb,
lib/rbcurse/core/include/actionmanager.rb,
lib/rbcurse/core/widgets/rtabbedwindow.rb,
lib/rbcurse/core/widgets/tabularwidget.rb,
lib/rbcurse/core/include/listscrollable.rb,
lib/rbcurse/core/include/listselectable.rb,
lib/rbcurse/core/widgets/tree/treemodel.rb,
lib/rbcurse/core/include/rinputdataevent.rb,
lib/rbcurse/core/widgets/keylabelprinter.rb,
lib/rbcurse/core/include/listcellrenderer.rb,
lib/rbcurse/core/widgets/applicationheader.rb,
lib/rbcurse/core/widgets/tree/treecellrenderer.rb
Overview
Event created when data modified in Field or TextEdit
2008-12-24 17:54
Defined Under Namespace
Modules: BorderTitle, Chunks, ColorMap, ConfigSetup, EventHandler, FieldHistory, FocusManager, Io, ListBindings, ListScrollable, ModStack, MultiBuffers, NewListSelectable, Utils, ViEditable, WidgetMenu, WidgetShortcuts Classes: Action, ActionEvent, ActionManager, AnsiParser, App, ApplicationHeader, Bottomline, Box, Button, ChangeEvent, CheckBox, CheckBoxMenuItem, ColumnResizeEvent, ComboBox, CommandWindow, Container, DefaultColorParser, DefaultFileRenderer, DefaultTreeModel, Divider, DragEvent, Field, FieldValidationException, Form, HelpManager, History, IllegalStateException, InputDataEvent, ItemEvent, KeyLabelPrinter, Label, Link, List, ListCellRenderer, ListSelectionEvent, Menu, MenuBar, MenuItem, MenuLink, MenuSeparator, MessageBox, PadReader, PrefixCommand, Progress, PropertyChangeEvent, PropertyVetoException, RadioButton, Scrollbar, StatusLine, Tab, TabButton, TabbedPane, TabbedWindow, Tabular, TabularWidget, TextActionEvent, TextArea, TextPad, TextView, ToggleButton, Tree, TreeCellRenderer, TreeModelEvent, TreeNode, Variable, Viewer, Widget
Class Method Summary collapse
-
.startup ⇒ Object
class radio.
Instance Method Summary collapse
-
#app_header(title, config = {}, &block) ⇒ Object
add a standard application header == Example header = app_header “rbcurse ”, :text_center => “Browser Demo”, :text_right =>“New Improved!”, :color => :black, :bgcolor => :white, :attr => :bold.
-
#dock(labels, config = {}, &block) ⇒ Object
prints pine-like key labels.
- #repaint_old ⇒ Object
-
#status_line(config = {}, &block) ⇒ Object
Adding widget shortcuts here for non-App cases 2011-10-12 .
Methods included from ColorMap
colors, get_color, get_color_const, get_colors_for_pair, install_color, is_color?, setup
Class Method Details
.startup ⇒ Object
class radio
3262 3263 3264 3265 3266 3267 3268 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 3262 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
#app_header(title, config = {}, &block) ⇒ Object
add a standard application header
Example
header = app_header "rbcurse ", :text_center => "Browser Demo", :text_right =>"New Improved!",
:color => :black, :bgcolor => :white, :attr => :bold
760 761 762 763 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 760 def app_header title, config={}, &block require 'rbcurse/core/widgets/applicationheader' header = ApplicationHeader.new @form, title, config, &block end |
#dock(labels, config = {}, &block) ⇒ Object
prints pine-like key labels
766 767 768 769 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 766 def dock labels, config={}, &block require 'rbcurse/core/widgets/keylabelprinter' klp = RubyCurses::KeyLabelPrinter.new @form, labels, config, &block end |
#repaint_old ⇒ Object
115 116 |
# File 'lib/rbcurse/core/widgets/rprogress.rb', line 115 def repaint_old end |
#status_line(config = {}, &block) ⇒ Object
Adding widget shortcuts here for non-App cases 2011-10-12 . MOVE these to widget shortcuts
prints a status line at bottom where mode’s statuses et can be reflected
751 752 753 754 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 751 def status_line config={}, &block require 'rbcurse/core/widgets/statusline' sl = RubyCurses::StatusLine.new @form, config, &block end |