summaryrefslogtreecommitdiffstats
path: root/doc/scriptexamples/popup4.kvs
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:13:59 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:13:59 +0000
commita6d58bb6052ac8cb01805a48c4ad2f129126116f (patch)
treedd867a099fcbb263a8009a9fb22695b87855dad6 /doc/scriptexamples/popup4.kvs
downloadkvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.tar.gz
kvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.zip
Added KDE3 version of kvirc
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1095341 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'doc/scriptexamples/popup4.kvs')
-rw-r--r--doc/scriptexamples/popup4.kvs40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/scriptexamples/popup4.kvs b/doc/scriptexamples/popup4.kvs
new file mode 100644
index 00000000..1680bbeb
--- /dev/null
+++ b/doc/scriptexamples/popup4.kvs
@@ -0,0 +1,40 @@
+defpopup (windowpopup)
+{
+ label("$caption")
+
+ popup(Logging,119)
+ {
+ prologue
+ {
+ %logfile = $log.file
+ }
+ label("Logging to file<br><b>%logfile</b>")("%logfile" != "")
+ item("Stop logging")("%logfile" != "")log.stop
+ item("Flush log file")("%logfile" != "")log.flush
+
+ label("Logging is disabled")("%logfile" == "")
+ item("Log (default file)")("%logfile" == "")log.start
+ item("Log (default file) (prepend existing data)")("%logfile" == "")log.start -e
+ }
+# popup(Buffer)
+# {
+# item("Save to file...")window.savebuffer
+# item("Clear")window.clear
+# item("Find...")window.findtext
+# }
+# popup(View)
+# {
+# item("Show images")($window.images == 0)window.images 1
+# item("Enable timestamps")($window.timestamp == 0)window.timestamp 1
+# item("Disable timestamps")($window.timestam == 1)window.timestamp 0
+# item("Set font...")$window.setfont
+# item("Set background...")$window.setbackground
+# }
+# popup(Mdi)
+# {
+# item("Minimize")window.minimize
+# item("Maximize")window.maximize
+# }
+}
+
+event (OnWindowPopupRequest,default){ popup windowpopup; }