Browse Subversion Repository
Contents of /ncurses/ncurses_config.rb
Parent Directory
| Revision Log
Revision 24 -
( show annotations)
( download)
Tue Apr 10 13:07:50 2007 UTC
(16 years, 11 months ago)
by bluedwarf
File size: 2304 byte(s)
Improved the redraw method of Gtk.
| 1 |
# ncurses_config.rb: Default configuration for NCurses. |
| 2 |
# |
| 3 |
# Copyright (C) 2007 Takashi Nakamoto |
| 4 |
# |
| 5 |
# This program is free software; you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License version 2 as |
| 7 |
# published by the Free Software Foundation. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, but |
| 10 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
# General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with this program; if not, write to the Free Software |
| 16 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 17 |
# 02110-1301 USA. |
| 18 |
# |
| 19 |
|
| 20 |
module Edmaru::Config |
| 21 |
class ConfigManager |
| 22 |
|
| 23 |
NCURSES_COLOR_VALIDATOR = |
| 24 |
Validators::LIST_VALIDATOR(["black", |
| 25 |
"red", |
| 26 |
"green", |
| 27 |
"yellow", |
| 28 |
"blue", |
| 29 |
"magenta", |
| 30 |
"cyan", |
| 31 |
"white"]) |
| 32 |
|
| 33 |
@@default_elements.push ConfigElement.new("/UI/NCurses/Color/Foreground", |
| 34 |
"black", |
| 35 |
"Foreground Color", |
| 36 |
NCURSES_COLOR_VALIDATOR) |
| 37 |
@@default_elements.push ConfigElement.new("/UI/NCurses/Color/Background", |
| 38 |
"white", |
| 39 |
"Background Color", |
| 40 |
NCURSES_COLOR_VALIDATOR) |
| 41 |
|
| 42 |
@@default_elements.push ConfigElement.new("/UI/NCurses/Color/ModeLineForeground", |
| 43 |
"white", |
| 44 |
"Foreground Color of ModeLine bar.", |
| 45 |
NCURSES_COLOR_VALIDATOR) |
| 46 |
@@default_elements.push ConfigElement.new("/UI/NCurses/Color/ModeLineBackground", |
| 47 |
"black", |
| 48 |
"Background Color of ModeLine bar.", |
| 49 |
NCURSES_COLOR_VALIDATOR) |
| 50 |
end |
| 51 |
end |
| |