summaryrefslogtreecommitdiffstats
path: root/dia_options.inc
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-06-07 18:54:11 +0000
committerThierry Vignaud <tv@mandriva.org>2007-06-07 18:54:11 +0000
commit534f2f4437093bd78411126ef45de41fc6b93bf3 (patch)
tree1a9c1e259e6f2495ebcacf3cbd8cb7d3fdaaac2a /dia_options.inc
parent92072c3be58f5c77ff0fecdaf6617fe6fa4120e1 (diff)
downloadbootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.tar
bootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.tar.gz
bootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.tar.bz2
bootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.tar.xz
bootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.zip
reimport my latest checkout
Diffstat (limited to 'dia_options.inc')
-rw-r--r--dia_options.inc52
1 files changed, 52 insertions, 0 deletions
diff --git a/dia_options.inc b/dia_options.inc
new file mode 100644
index 0000000..da8826d
--- /dev/null
+++ b/dia_options.inc
@@ -0,0 +1,52 @@
+% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+%
+% Panel 'more options' entry.
+%
+% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+% Show help window.
+%
+% ( ) => ( )
+%
+/panel.options {
+ /panel panel.full def
+
+ boot.show not {
+ /boot.show true def
+ boot.setup
+
+ boot.window .color.fg get setcolor
+ boot.window .ed.font get setfont
+
+ boot.ed 3 get
+ boot.ed over edit.init
+ "" ne { boot.ed ' ' edit.input } if
+ } if
+
+ /window.action actRedraw def
+} def
+
+
+% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+% Return width of options entry.
+%
+% ( ) => ( width )
+%
+/panel.options.width {
+ txt_other_options strsize pop
+} def
+
+
+% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+% Redraw panel entry.
+%
+% ( panel ) => ( )
+%
+/panel.options.update {
+ panel.text.moveto
+
+ txt_other_options show
+} def
+
+