Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias statuload {
- load_pdstatusbar
- load_pdswitchbar
- }
- alias graphicreload {
- if ($conf(Varie,Graphic) == Modern) { xdock -p }
- titlebar Project Dream $pdversion
- glassreload
- pdtray start
- }
- alias strongreload {
- if ($conf(Varie,Graphic) == Modern) {
- if ($dialog(pdtoolbar)) { dialog -x pdtoolbar }
- if ($dialog(pdswitchbar)) { dialog -x pdswitchbar }
- if ($dialog(pdstatusbar)) { dialog -x pdstatusbar }
- pdtoolbar
- pdstatusbar
- pdswitchbar
- xdock -p
- }
- titlebar Project Dream $pdversion
- glassreload
- pdtray start
- }
- alias graphicswitch {
- if ($conf(Varie,Graphic) == Modern) {
- .toolbar off
- .switchbar off
- strongreload
- }
- elseif ($conf(Varie,Graphic) == Classic) {
- if ($dialog(pdtoolbar)) { dialog -x pdtoolbar }
- if ($dialog(pdswitchbar)) { dialog -x pdswitchbar }
- if ($dialog(pdstatusbar)) { dialog -x pdstatusbar }
- .dll -u hOSLite.dll
- .toolbar on
- .switchbar on
- .toolbar -r
- .toolbar -d 34
- .toolbar -az1n27 manager_connessioni " $+ $lang(Toolbar,02) $+ " $icons(PDIcons.icl) "/connman" @tbconnection
- .toolbar -az1n15 cambia_nick " $+ $lang(Toolbar,04) $+ " $icons(PDIcons.icl) "/tbchangenick" @null
- .toolbar -az1n11 joina_chan " $+ $lang(Toolbar,06) $+ " $icons(PDIcons.icl) "/tbjoiner" @null
- .toolbar -az1n28 impostazioni " $+ $lang(Toolbar,08) $+ " $icons(PDIcons.icl) "/tbimpostazioni" @tbimpostazioni
- .toolbar -az1n29 away_system " $+ $lang(Toolbar,10) $+ " $icons(PDIcons.icl) "/awaysys" @null
- .toolbar -az1n30 liste_speciali " $+ $lang(Toolbar,12) $+ " $icons(PDIcons.icl) "/listespec" @null
- .toolbar -az1n31 media_players " $+ $lang(Toolbar,14) $+ " $icons(PDIcons.icl) "/tbmediap" @tbmediap
- .toolbar -az1n32 utility " $+ $lang(Toolbar,16) $+ " $icons(PDIcons.icl) "/tbutility" @tbutility
- titlebar Project Dream $pdversion
- glassreload
- pdtray start
- }
- }
- menu @tbconnection {
- $lang(ConnManager,Title):connman
- -
- $iif($server,$lang(PopupDll,02),$lang(PopupDll,01)):$iif($server,.disconnect,.server)
- -
- $lang(PopupDll,03):cambiaserv
- $lang(PopupDll,04):nuovoserv
- }
- menu @tbimpostazioni {
- $lang(Settings,Title):impostazioni
- $lang(Extensions,Title):extensions
- -
- $lang(UpdateCheck,Title):upcheck
- }
- menu @tbmediap {
- $lang(MusicPlayer,Title):musicplay
- $lang(RadioPlayer,Title):radioplay
- -
- $lang(VideoPlayer,Title):videoplay
- }
- menu @tbutility {
- $lang(AsciiCodes,Title):asciicodes
- $lang(ConvTool,Title):convtool
- $lang(DCCMonitor,Title):dccmon
- $lang(SystemInfo,Title):sysinfo
- $lang(LastSeen,Title):lastseen
- $lang(LogManager,Title):logman
- $lang(QueryLock,Title):querylock
- $lang(TelNet,Title):telnet
- $lang(ImageViewer,Title):imgviewer
- $lang(WebBrowser,Title):webbrowser
- }
- alias tbconnection {
- if ($conf(TastiToolbar,Connessione) == 1) { connman }
- elseif ($conf(TastiToolbar,Connessione) == 2) {
- if (!$server) { connman }
- else { .disconnect }
- }
- elseif ($conf(TastiToolbar,Connessione) == 3) {
- if (!$server) { .server }
- else { .disconnect }
- }
- }
- alias tbchangenick { nick $$?=" $lang(PopupDll,05) " }
- alias tbjoiner { if ($server) { join #$$?=" $lang(PopupDll,06) " } }
- alias tbimpostazioni {
- if ($conf(TastiToolbar,Impostazioni) == 1) { impostazioni }
- elseif ($conf(TastiToolbar,Impostazioni) == 2) { extensions }
- elseif ($conf(TastiToolbar,Impostazioni) == 3) { upcheck }
- }
- alias tbmediap {
- if ($conf(TastiToolbar,MediaPlayers) == 1) { musicplay }
- elseif ($conf(TastiToolbar,MediaPlayers) == 2) { radioplay }
- elseif ($conf(TastiToolbar,MediaPlayers) == 3) { videoplay }
- }
- alias tbutility {
- if ($conf(TastiToolbar,Utility) == 1) { asciicodes }
- if ($conf(TastiToolbar,Utility) == 2) { convtool }
- if ($conf(TastiToolbar,Utility) == 3) { dccmon }
- if ($conf(TastiToolbar,Utility) == 4) { sysinfo }
- if ($conf(TastiToolbar,Utility) == 5) { lastseen }
- if ($conf(TastiToolbar,Utility) == 6) { logman }
- if ($conf(TastiToolbar,Utility) == 7) { querylock }
- if ($conf(TastiToolbar,Utility) == 8) { telnet }
- if ($conf(TastiToolbar,Utility) == 9) { imgviewer }
- if ($conf(TastiToolbar,Utility) == 10) { webbrowser }
- }
- alias pdstatusbar {
- if ($dialog(pdstatusbar)) { dialog -x pdstatusbar }
- else { dialog -mh pdstatusbar pdstatusbar }
- }
- dialog pdstatusbar {
- title "pdstatubar"
- size 0 0 1920 22
- option pixels
- list 1, 72 1 3000 20, size
- }
- on *:dialog:pdstatusbar:init:0:{
- dcx Mark $dname cb_pdstatusbar
- xdialog -c $dname 2 button 5 1 64 22 shadow default
- xdid -l $dname 2 16
- xdid -t $dname 2 $lang(Statusbar,08)
- xdid -f $dname 2 +b ansi 8 Tahoma
- xdid -w $dname 2 +nh 26 $icons(PDIcons.icl)
- mdxinit $dname
- mdx SetBorderStyle $dname 1 windowedge
- mdx SetControlMDX $dname 1 StatusBar > $mdxbars
- var %stbnum = $calc($window(-2).w / 7)
- did -i $dname 1 1 setparts $int($calc(%stbnum + ((%stbnum * 23) / 100))) $int($calc((%stbnum * 2) + ((%stbnum * 33) / 100))) $int($calc((%stbnum * 3) + ((%stbnum * 56) / 100))) $int($calc((%stbnum * 4) + ((%stbnum * 24) / 100))) $int($calc((%stbnum * 5) - ((%stbnum * 6) / 100))) $int($calc((%stbnum * 6) - ((%stbnum * 30) / 100))) $int($calc((%stbnum * 7) - ((%stbnum * 55) / 100)))
- did -i $dname 1 1 seticon 0 small 8, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon 0 small 3, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon 0 small 16, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon 0 small 9, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon 0 small 13, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon 0 small 19, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon 0 small 18, $+ $icons(PDIcons.icl)
- load_pdstatusbar
- xdock -m $dialog($dname).hwnd +b
- xdock -r $dialog($dname).hwnd + 1920 23
- }
- alias cb_pdstatusbar { if (($2 == sclick) && ($3 == 2)) { pdplay $+($skin(Sounds,StartMenu,Path),$chr(92),$skin(Sounds,StartMenu)) | start_menu } }
- alias load_pdstatusbar {
- if ($dialog(pdstatusbar)) {
- xdid -t pdstatusbar 2 $lang(Statusbar,08)
- did -i pdstatusbar 1 2 1 $lang(Statusbar,01) $iif($server,$v1,$lang(Statusbar,10))
- did -i pdstatusbar 1 3 2 $lang(Statusbar,02) $iif($server,$network,$lang(Statusbar,10))
- did -i pdstatusbar 1 4 3 $lang(Statusbar,03) $me
- did -i pdstatusbar 1 5 4 $lang(Statusbar,04) $chan(0)
- did -i pdstatusbar 1 6 5 $lang(Statusbar,05) $query(0)
- did -i pdstatusbar 1 7 6 $lang(Statusbar,06) $get(0)
- did -i pdstatusbar 1 8 7 $lang(Statusbar,07) $send(0)
- }
- }
- alias lagmup {
- if ($dialog(pdswitchbar)) {
- var %lag $left($round($calc(($ticks - $2) / 1000),3),5)
- if ($conf(Varie,LagMeter) == Si) {
- did -a pdswitchbar 2 $int($calc(%lag * 7)) 0 300
- did -ra pdswitchbar 4 %lag
- }
- }
- }
- alias switchinfo {
- if ($dialog(pdswitchbar)) {
- did -ra pdswitchbar 5 $time
- did -ra pdswitchbar 8 $date
- if (!$dll(hOSLite.dll)) { hos StubLoad }
- ;PROVA BARRE
- xdid -v pdswitchbar 19 $int($calc(($darke(usedphysicalmem) * 100) / $darke(totalphysicalmem)))
- }
- if (mIRC Project Dream isin $hos(GetmIRCTitleBar)) { titlebar Project Dream $pdversion }
- if ($dialog(musicplay)) { did -i musicplay 3 1 params $vol(master)) 0 65535 1 10 0 65535 10 }
- if ($dialog(radioplay)) { did -i radioplay 7 1 params $calc(65535 - $vol(master)) 0 65535 1 10 0 65535 10 }
- if ($dialog(videoplay)) { did -i videoplay 9 1 params $vol(master)) 0 65535 1 10 0 65535 10 }
- if ($conf(Varie,Graphic) == Modern) {
- if ($toolbar) { .toolbar off | graphicreload }
- if ($treebar) { .treebar off | graphicreload }
- if ($switchbar) { .switchbar off | graphicreload }
- }
- set %dccschk1 $send(0)
- set %dccgchk1 $get(0)
- set %scidchk1 $scid(0)
- if ((%scidchk1 != %scidchk2) || (%dccschk1 != %dccschk2) || (%dccgchk1 != %dccgchk2)) {
- if ($conf(Varie,Graphic) == Modern) { load_pdswitchbar }
- if ($dialog(dccmon)) {
- dccmonreload
- if (!$timer(dccmon)) { .timerdccmon -m 0 300 dccmonrefresh }
- }
- if ($dialog(dccmonmini)) { if (!$timer(dccmonmini)) { .timerdccmonmini -m 0 300 dccmonminirefresh } }
- }
- set %dccschk2 $send(0)
- set %dccgchk2 $get(0)
- set %scidchk2 $scid(0)
- mp3_info
- video_info
- if ($conf(Radio,Play) == ON) { radiotime }
- autoaway_check
- .timerkernel -o 1 1 switchinfo
- }
- alias lagmeter { if ($server) { notice $me $chr(1) $+ PING $ticks $+ $chr(1) } }
- alias pdswitchbar {
- if ($dialog(pdswitchbar)) { dialog -x pdswitchbar }
- else { dialog -mh pdswitchbar pdswitchbar }
- }
- dialog pdswitchbar {
- title "pdswitchbar"
- size 0 0 146 650
- option pixels
- list 1, 1 1 150 420, size
- text "", 2, 39 433 70 16, nowrap
- text "", 3, 14 433 23 16, nowrap
- text "", 4, 111 433 28 16, nowrap
- text "", 5, 37 463 79 18, center nowrap
- box "", 6, 10 424 134 29
- box "", 7, 10 452 134 56
- text "", 8, 34 485 85 18, center nowrap
- box "", 9, 10 562 134 54
- text "", 10, 15 573 53 16, right nowrap
- text "", 11, 15 593 53 16, right nowrap
- text "", 12, 72 573 66 16, nowrap
- text "", 13, 72 593 66 16, nowrap
- box "", 14, 10 510 134 29
- text "", 16, 14 519 24 16, nowrap
- text "", 17, 111 519 28 16
- box "", 18, 10 536 134 29
- text "", 20, 14 545 24 16, nowrap
- text "", 21, 111 545 28 16, nowrap
- }
- on *:dialog:pdswitchbar:init:0:{
- dcx Mark $dname cb_noop
- xdialog -c $dname 15 pbar 40 519 99 16 smooth
- xdialog -c $dname 19 pbar 40 545 99 16 smooth
- mdxinit $dname
- mdx SetDialog $dname style staticedge
- mdx SetControlMDX $dname 1 TreeView haslines hasbuttons showsel > $mdxviews
- mdx SetControlMDX $dname 2 ProgressBar smooth > $mdxctlgen
- mdx SetFont $dname 5 ANSI 20 700 Tahoma
- mdx SetFont $dname 8 ANSI 15 700 Tahoma
- did -i $dname 1 1 iconsize normal small
- did -i $dname 1 1 seticon normal 8, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 13, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 14, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 21, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 18, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 15, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 19, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 9, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 0, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 17, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 22, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 11, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 23, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 24, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 10, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 12, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 seticon normal 20, $+ $icons(PDIcons.icl)
- did -v $dname 3,4
- did -a $dname 2 min 0
- did -a $dname 2 max 150
- switchinfo
- color_pdswitchbar
- load_pdswitchbar
- xdock -m $dialog($dname).hwnd +l
- }
- alias color_pdswitchbar {
- if ($dialog(pdswitchbar)) {
- mdx SetColor pdswitchbar 1 background $skin(TreeView,SWBack)
- mdx SetColor pdswitchbar 1 textbg $skin(TreeView,SWBack)
- did -i pdswitchbar 1 1 setcolor bkg $skin(TreeView,SWBack)
- did -i pdswitchbar 1 1 setcolor text $skin(TreeView,SWText)
- did -i pdswitchbar 1 1 setcolor line $skin(TreeView,SWLine)
- }
- }
- alias load_pdswitchbar {
- if ($dialog(pdswitchbar)) {
- if ($conf(Varie,SwitchAutoSize) == No) {
- var %switchsize = $calc(350 + $round($calc($window(-2).h - $calc(($window(-2).h * $conf(SwitchBar,Size)) / 100)),0))
- mdx MoveControl pdswitchbar 1 * * * $calc(%switchsize - 351)
- mdx MoveControl pdswitchbar 2 * $calc(%switchsize - 337)
- mdx MoveControl pdswitchbar 3 * $calc(%switchsize - 337)
- mdx MoveControl pdswitchbar 4 * $calc(%switchsize - 337)
- mdx MoveControl pdswitchbar 5 * $calc(%switchsize - 307)
- mdx MoveControl pdswitchbar 6 * $calc(%switchsize - 346)
- mdx MoveControl pdswitchbar 7 * $calc(%switchsize - 317)
- mdx MoveControl pdswitchbar 8 * $calc(%switchsize - 282)
- mdx MoveControl pdswitchbar 9 * $calc(%switchsize - 203)
- mdx MoveControl pdswitchbar 10 * $calc(%switchsize - 191)
- mdx MoveControl pdswitchbar 11 * $calc(%switchsize - 172)
- mdx MoveControl pdswitchbar 12 * $calc(%switchsize - 191)
- mdx MoveControl pdswitchbar 13 * $calc(%switchsize - 172)
- mdx MoveControl pdswitchbar 14 * $calc(%switchsize - 257)
- mdx MoveControl pdswitchbar 15 * $calc(%switchsize - 248)
- mdx MoveControl pdswitchbar 16 * $calc(%switchsize - 247)
- mdx MoveControl pdswitchbar 17 * $calc(%switchsize - 247)
- mdx MoveControl pdswitchbar 18 * $calc(%switchsize - 230)
- mdx MoveControl pdswitchbar 19 * $calc(%switchsize - 221)
- mdx MoveControl pdswitchbar 20 * $calc(%switchsize - 220)
- mdx MoveControl pdswitchbar 21 * $calc(%switchsize - 220)
- }
- elseif ($window(-2).h >= 645) {
- mdx MoveControl pdswitchbar 1 * * * $calc($window(-2).h - 351)
- mdx MoveControl pdswitchbar 2 * $calc($window(-2).h - 337)
- mdx MoveControl pdswitchbar 3 * $calc($window(-2).h - 337)
- mdx MoveControl pdswitchbar 4 * $calc($window(-2).h - 337)
- mdx MoveControl pdswitchbar 5 * $calc($window(-2).h - 307)
- mdx MoveControl pdswitchbar 6 * $calc($window(-2).h - 346)
- mdx MoveControl pdswitchbar 7 * $calc($window(-2).h - 317)
- mdx MoveControl pdswitchbar 8 * $calc($window(-2).h - 282)
- mdx MoveControl pdswitchbar 9 * $calc($window(-2).h - 203)
- mdx MoveControl pdswitchbar 10 * $calc($window(-2).h - 191)
- mdx MoveControl pdswitchbar 11 * $calc($window(-2).h - 172)
- mdx MoveControl pdswitchbar 12 * $calc($window(-2).h - 191)
- mdx MoveControl pdswitchbar 13 * $calc($window(-2).h - 172)
- mdx MoveControl pdswitchbar 14 * $calc($window(-2).h - 257)
- mdx MoveControl pdswitchbar 15 * $calc($window(-2).h - 248)
- mdx MoveControl pdswitchbar 16 * $calc($window(-2).h - 247)
- mdx MoveControl pdswitchbar 17 * $calc($window(-2).h - 247)
- mdx MoveControl pdswitchbar 18 * $calc($window(-2).h - 230)
- mdx MoveControl pdswitchbar 19 * $calc($window(-2).h - 221)
- mdx MoveControl pdswitchbar 20 * $calc($window(-2).h - 220)
- mdx MoveControl pdswitchbar 21 * $calc($window(-2).h - 220)
- }
- var %stbnum = $calc($window(-2).w / 7)
- if ($dialog(pdstatusbar)) {
- did -i pdstatusbar 1 1 setparts $int($calc(%stbnum + ((%stbnum * 23) / 100))) $int($calc((%stbnum * 2) + ((%stbnum * 33) / 100))) $int($calc((%stbnum * 3) + ((%stbnum * 56) / 100))) $int($calc((%stbnum * 4) + ((%stbnum * 24) / 100))) $int($calc((%stbnum * 5) - ((%stbnum * 6) / 100))) $int($calc((%stbnum * 6) - ((%stbnum * 30) / 100))) $int($calc((%stbnum * 7) - ((%stbnum * 55) / 100)))
- }
- did -ra pdswitchbar 3 $lang(Switchbar,01)
- did -ra pdswitchbar 10 $lang(Switchbar,04)
- did -ra pdswitchbar 11 $lang(Switchbar,05)
- did -ra pdswitchbar 16 $lang(Switchbar,02)
- did -ra pdswitchbar 20 $lang(Switchbar,03)
- did -r pdswitchbar 1
- var %c = 1
- while (%c <= $scid(0)) {
- var %a = $scid($scon(%c))
- .scon %c
- did -i pdswitchbar 1 1 cb root
- did -a pdswitchbar 1 +eb 1 1 $iif($status = connected,$iif($scid(%a).network,$v1,$scid(%a).server),$lang(Switchbar,06)) $chr(9) $+ $lang(Switchbar,07)
- did -i pdswitchbar 1 1 cb last
- did -a pdswitchbar 1 +e 8 8 $lang(Switchbar,08) $chr(9) $+ $lang(Switchbar,09)
- did -i pdswitchbar 1 1 cb last
- var %temp1 = 1
- while (%temp1 <= $chan(0)) {
- if (%switchchan [ $+ [ $chan(%temp1) ] $+ [ $server ] ] == 1) { did -a pdswitchbar 1 + 15 12 $lower($chan(%temp1)) $chr(9) $+ $lower($chan(%temp1)) }
- elseif (%switchchan [ $+ [ $chan(%temp1) ] $+ [ $server ] ] == 2) { did -a pdswitchbar 1 + 16 12 $lower($chan(%temp1)) $chr(9) $+ $lower($chan(%temp1)) }
- else { did -a pdswitchbar 1 + 8 12 $lower($chan(%temp1)) $chr(9) $+ $lower($chan(%temp1)) }
- inc %temp1
- }
- did -i pdswitchbar 1 1 cb up
- did -a pdswitchbar 1 +e 2 2 $lang(Switchbar,10) $chr(9) $+ $lang(Switchbar,11)
- did -i pdswitchbar 1 1 cb last
- var %temp2 = 1
- while (%temp2 <= $query(0)) {
- if (%switchquery [ $+ [ $query(%temp2) ] $+ [ $server ] ]) { did -a pdswitchbar 1 + 3 6 $query(%temp2) $chr(9) $+ $query(%temp2) }
- else { did -a pdswitchbar 1 + 2 6 $query(%temp2) $chr(9) $+ $query(%temp2) }
- inc %temp2
- }
- inc %c
- did -i pdswitchbar 1 1 cb up
- did -a pdswitchbar 1 +e 11 11 $lang(Switchbar,22) $chr(9) $+ $lang(Switchbar,23)
- did -i pdswitchbar 1 1 cb last
- var %noty1 = 1
- while ($notify(%noty1)) {
- if ($notify(%noty1).ison) { did -a pdswitchbar 1 + 2 2 $notify(%noty1) $chr(9) $+ $rpcode($lang(Switchbar,26),$notify(%noty1)) }
- inc %noty1
- }
- }
- did -i pdswitchbar 1 1 cb root
- did -a pdswitchbar 1 +eb 10 10 $lang(Switchbar,12) $chr(9) $+ $lang(Switchbar,13)
- did -i pdswitchbar 1 1 cb last
- did -a pdswitchbar 1 +e 7 7 $lang(Switchbar,14) $chr(9) $+ $lang(Switchbar,15)
- did -i pdswitchbar 1 1 cb last
- var %temp3 = 1
- while (%temp3 <= $get(0)) {
- did -a pdswitchbar 1 + 2 6 $get(%temp3) $chr(9) $+ $get(%temp3)
- inc %temp3
- }
- did -i pdswitchbar 1 1 cb up
- did -a pdswitchbar 1 +e 5 5 $lang(Switchbar,16) $chr(9) $+ $lang(Switchbar,17)
- did -i pdswitchbar 1 1 cb last
- var %temp4 = 1
- while (%temp4 <= $send(0)) {
- did -a pdswitchbar 1 + 2 6 $send(%temp4) $chr(9) $+ $send(%temp4)
- inc %temp4
- }
- did -i pdswitchbar 1 1 cb up
- did -a pdswitchbar 1 +e 2 2 $lang(Switchbar,18) $chr(9) $+ $lang(Switchbar,19)
- did -i pdswitchbar 1 1 cb last
- var %temp5 = 1
- while (%temp5 <= $chat(0)) {
- did -a pdswitchbar 1 + 2 6 $chat(%temp5) $chr(9) $+ $chat(%temp5)
- inc %temp5
- }
- did -i pdswitchbar 1 1 cb root
- did -a pdswitchbar 1 +eb 17 17 $lang(Switchbar,20) $chr(9) $+ $lang(Switchbar,21)
- did -i pdswitchbar 1 1 cb last
- var %temp6 = 1
- while (%temp6 <= $window(0)) {
- if ((eXo !isin $window(%temp6)) && (ppop !isin $window(%temp6)) && (pdtelnet !isin $window(%temp6))) {
- did -a pdswitchbar 1 + 17 17 $replace($window(%temp6),@,) $chr(9) $window(%temp6)
- }
- inc %temp6
- }
- did -i pdswitchbar 1 1 cb root
- did -a pdswitchbar 1 +b 4 4 $lang(Switchbar,30) $chr(9) $+ $lang(Switchbar,31)
- did -i pdswitchbar 1 1 cb up
- }
- }
- on *:dialog:pdswitchbar:sclick:1:{
- tokenize 32 $did(1,1,1)
- if (($1 == slclick) && ($3 != unknown)) {
- if (($4) && (($5 = 2) || ($5 = 3)) && (!$6)) {
- if ($calc($4 - 1) <= $scid(0)) {
- .scon $calc($4 - 1)
- .window -a "Status Window"
- .timerfocus1 -h 1 50 .editbox -f $editbox($active)
- }
- }
- if (($4) && (!$5)) {
- if ($calc($4 - 1) <= $scid(0)) {
- .scon $calc($4 - 1)
- .window -a "Status Window"
- .timerfocus1 -h 1 50 .editbox -f $editbox($active)
- }
- }
- if ($4 = $calc($scid(0) + 4)) {
- var %x = 1
- while ((%x <= $scid(0)) && ($scon(%x) != $activecid)) { inc %x }
- .scon %x
- if ($window(Channels List)) { .window -a "Channels List" }
- elseif ($server) { .list }
- }
- elseif ($calc($4 - 1) > $scid(0)) {
- if (($calc($4 - 1) = $calc($scid(0) + 1)) && ($6)) {
- if ($5 == 2) { .window -a "Get $get($calc($6 - 1)) $+($get($calc($6 - 1)).file,") }
- elseif ($5 == 3) { .window -a "Send $send($calc($6 - 1)) $+($send($calc($6 - 1)).file,") }
- elseif ($5 == 4) {
- .window -a $+(=,$chat($calc($6 - 1)))
- .timerfocus2 -h 1 50 .editbox -f $+(=,$chat($calc($6 - 1))) $editbox($+(=,$chat($calc($6 - 1))))
- }
- }
- if (($calc($4 - 1) = $calc($scid(0) + 2)) && ($5)) { .window -a $window($calc($5 - 1)) }
- }
- elseif (($5 = 2) && ($6)) {
- .scon $calc($4 - 1)
- if ($chan($calc($6 - 1)) != $chr(35)) {
- .window -a $chan($calc($6 - 1))
- .timerfocus3 -h 1 50 .editbox -f $chan($calc($6 - 1)) $editbox($chan($calc($6 - 1)))
- }
- else {
- .window -a $chan($calc($6 - 1))
- .editbox -f $chan($calc($6 - 1)) $editbox($chan($calc($6 - 1)))
- }
- }
- elseif (($5 = 3) && ($6)) {
- .scon $calc($4 - 1)
- .window -a $query($calc($6 - 1))
- .timerfocus4 -h 1 50 .editbox -f $query($calc($6 - 1)) $editbox($query($calc($6 - 1)))
- }
- elseif (($5 = 4) && (!$6)) {
- .notify -s
- .window -a "Notify List"
- }
- }
- if ($1 = rclick) {
- if (($3) && (!$4)) {
- if ($3 = $calc($scid(0) + 4)) { halt }
- if ($calc($3 - 1) <= $scid(0)) {
- .scon $calc($3 - 1)
- if ($server) {
- set %scontmp $calc($3 - 1)
- load_menu_disconnect
- xpopup -s tb1 +m $mouse.dx $mouse.dy
- }
- }
- elseif ($calc($3 - 1) = $calc($scid(0) + 2)) {
- load_menu_close_all_window
- xpopup -s tb14 +m $mouse.dx $mouse.dy
- }
- }
- elseif (($3) && ($4) && (!$5)) {
- if ($calc($3 - 1) <= $scid(0)) {
- if ($4 = 2) {
- .scon $calc($3 - 1)
- if ($server) {
- set %scontmp $calc($3 - 1)
- load_menu_close_all_chan
- xpopup -s tb9 +m $mouse.dx $mouse.dy
- }
- }
- if ($4 = 3) {
- .scon $calc($3 - 1)
- if ($server) {
- set %scontmp $calc($3 - 1)
- load_menu_close_all_query
- xpopup -s tb10 +m $mouse.dx $mouse.dy
- }
- }
- }
- elseif ($calc($3 - 1) = $calc($scid(0) + 1)) {
- if ($4 = 2) {
- load_menu_close_all_get
- xpopup -s tb11 +m $mouse.dx $mouse.dy
- }
- if ($4 = 3) {
- load_menu_close_all_send
- xpopup -s tb12 +m $mouse.dx $mouse.dy
- }
- if ($4 = 4) {
- load_menu_close_all_chat
- xpopup -s tb13 +m $mouse.dx $mouse.dy
- }
- }
- }
- elseif ($calc($3 - 1) > $scid(0)) {
- if (($calc($3 - 1) = $calc($scid(0) + 1)) && ($5)) {
- if ($4 = 2) {
- load_menu_close_get
- xpopup -s tb4 +m $mouse.dx $mouse.dy
- }
- elseif ($4 = 3) {
- load_menu_close_send
- xpopup -s tb5 +m $mouse.dx $mouse.dy
- }
- elseif ($4 = 4) {
- load_menu_close_chat
- xpopup -s tb6 +m $mouse.dx $mouse.dy
- }
- }
- }
- if ($calc($3 - 1) = $calc($scid(0) + 2)) {
- load_menu_close_window
- xpopup -s tb7 +m $mouse.dx $mouse.dy
- }
- elseif (($4 = 2) && ($5)) {
- .scon $calc($3 - 1)
- set %scontmp $calc($3 - 1)
- load_menu_close_chan
- xpopup -s tb2 +m $mouse.dx $mouse.dy
- }
- elseif (($4 = 3) && ($5)) {
- .scon $calc($3 - 1)
- load_menu_close_query
- xpopup -s tb3 +m $mouse.dx $mouse.dy
- }
- elseif (($4 = 4) && ($5)) {
- .scon $calc($3 - 1)
- load_menu_notify
- xpopup -s tb8 +m $mouse.dx $mouse.dy
- }
- }
- }
- alias load_menu_disconnect {
- if ($xpopup(tb1).ismenu) { xpopup -d tb1 }
- xpopup -c tb1 normal
- xpopup -i tb1 + 55 $icons(PDIcons.icl)
- xpop -a tb1 0 $chr(9) + 1 1 $rpcode($lang(SwitchPop,01),$pdtree(pdswitchbar,1))
- }
- alias load_menu_close_chan {
- if ($xpopup(tb2).ismenu) { xpopup -d tb2 }
- xpopup -c tb2 normal
- xpopup -i tb2 + 55 $icons(PDIcons.icl)
- xpop -a tb2 0 $chr(9) + 1 1 $rpcode($lang(SwitchPop,02),$pdtree(pdswitchbar,1))
- }
- alias load_menu_close_query {
- if ($xpopup(tb3).ismenu) { xpopup -d tb3 }
- xpopup -c tb3 normal
- xpopup -i tb3 + 55 $icons(PDIcons.icl)
- xpop -a tb3 0 $chr(9) + 1 1 $rpcode($lang(SwitchPop,03),$pdtree(pdswitchbar,1))
- }
- alias load_menu_close_get {
- if ($xpopup(tb4).ismenu) { xpopup -d tb4 }
- xpopup -c tb4 normal
- xpopup -i tb4 + 55 $icons(PDIcons.icl)
- xpop -a tb4 0 $chr(9) + 1 1 $rpcode($lang(SwitchPop,04),$pdtree(pdswitchbar,1))
- }
- alias load_menu_close_send {
- if ($xpopup(tb5).ismenu) { xpopup -d tb5 }
- xpopup -c tb5 normal
- xpopup -i tb5 + 55 $icons(PDIcons.icl)
- xpop -a tb5 0 $chr(9) + 1 1 $rpcode($lang(SwitchPop,05),$pdtree(pdswitchbar,1))
- }
- alias load_menu_close_chat {
- if ($xpopup(tb6).ismenu) { xpopup -d tb6 }
- xpopup -c tb6 normal
- xpopup -i tb6 + 55 $icons(PDIcons.icl)
- xpop -a tb6 0 $chr(9) + 1 1 $rpcode($lang(SwitchPop,06),$pdtree(pdswitchbar,1))
- }
- alias load_menu_close_window {
- if ($xpopup(tb7).ismenu) { xpopup -d tb7 }
- xpopup -c tb7 normal
- xpopup -i tb7 + 55 $icons(PDIcons.icl)
- xpop -a tb7 0 $chr(9) + 1 1 $lang(SwitchPop,07)
- }
- alias load_menu_notify {
- if ($xpopup(tb8).ismenu) { xpopup -d tb8 }
- xpopup -c tb8 normal
- xpopup -i tb8 + 14 $icons(PDIcons.icl)
- xpopup -i tb8 +g 14 $icons(PDIcons.icl)
- xpopup -i tb8 + 55 $icons(PDIcons.icl)
- xpop -a tb8 0 $chr(9) + 1 1 $rpcode($lang(SwitchPop,08),$pdtree(pdswitchbar,1))
- xpop -a tb8 0 $chr(9) + 2 3 $rpcode($lang(SwitchPop,09),$pdtree(pdswitchbar,1))
- }
- alias load_menu_close_all_chan {
- if ($xpopup(tb9).ismenu) { xpopup -d tb9 }
- xpopup -c tb9 normal
- xpopup -i tb9 + 55 $icons(PDIcons.icl)
- .scon %scontmp
- if ($chan(0)) { xpop -a tb9 0 $chr(9) + 1 1 $lang(SwitchPop,10) }
- else { xpop -a tb9 0 $chr(9) +g 1 1 $lang(SwitchPop,10) }
- }
- alias load_menu_close_all_query {
- if ($xpopup(tb10).ismenu) { xpopup -d tb10 }
- xpopup -c tb10 normal
- xpopup -i tb10 + 55 $icons(PDIcons.icl)
- .scon %scontmp
- if ($query(0)) { xpop -a tb10 0 $chr(9) + 1 1 $lang(SwitchPop,11) }
- else { xpop -a tb10 0 $chr(9) +g 1 1 $lang(SwitchPop,11) }
- }
- alias load_menu_close_all_get {
- if ($xpopup(tb11).ismenu) { xpopup -d tb11 }
- xpopup -c tb11 normal
- xpopup -i tb11 + 55 $icons(PDIcons.icl)
- if ($get(0)) { xpop -a tb11 0 $chr(9) + 1 1 $lang(SwitchPop,12) }
- else { xpop -a tb11 0 $chr(9) +g 1 1 $lang(SwitchPop,12) }
- }
- alias load_menu_close_all_send {
- if ($xpopup(tb12).ismenu) { xpopup -d tb12 }
- xpopup -c tb12 normal
- xpopup -i tb12 + 55 $icons(PDIcons.icl)
- if ($send(0)) { xpop -a tb12 0 $chr(9) + 1 1 $lang(SwitchPop,13) }
- else { xpop -a tb12 0 $chr(9) +g 1 1 $lang(SwitchPop,13) }
- }
- alias load_menu_close_all_chat {
- if ($xpopup(tb13).ismenu) { xpopup -d tb13 }
- xpopup -c tb13 normal
- xpopup -i tb13 + 55 $icons(PDIcons.icl)
- if ($chat(0)) { xpop -a tb13 0 $chr(9) + 1 1 $lang(SwitchPop,14) }
- else { xpop -a tb13 0 $chr(9) +g 1 1 $lang(SwitchPop,14) }
- }
- alias load_menu_close_all_window {
- if ($xpopup(tb14).ismenu) { xpopup -d tb14 }
- xpopup -c tb14 normal
- xpopup -i tb14 + 55 $icons(PDIcons.icl)
- if ($window(0)) { xpop -a tb14 0 $chr(9) + 1 1 $lang(SwitchPop,15) }
- else { xpop -a tb14 0 $chr(9) +g 1 1 $lang(SwitchPop,15) }
- }
- on *:SIGNAL:XPopup-tb*:{
- if ($1 == 0) { return }
- .scon %tbsconvar
- if ($signal == XPopup-tb1) { if ($1 == 1) { .scon %scontmp | .disconnect | unset %scontmp } }
- elseif ($signal == XPopup-tb2) { if ($1 == 1) { .scon %scontmp | .part $pdtree(pdswitchbar,1) | unset %scontmp | .timerload1 -h 1 400 statuload } }
- elseif ($signal == XPopup-tb3) { if ($1 == 1) { .close -m $pdtree(pdswitchbar,1) | .timerload2 -h 1 400 statuload } }
- elseif ($signal == XPopup-tb4) { if ($1 == 1) { .close -g "Get $get($pdtree(pdswitchbar,1)) $+($pdtree(pdswitchbar,1).file,") } }
- elseif ($signal == XPopup-tb5) { if ($1 == 1) { .close -s "Send $send($pdtree(pdswitchbar,1)) $+($pdtree(pdswitchbar,1).file,") | statuload } }
- elseif ($signal == XPopup-tb6) { if ($1 == 1) { .close -c $chat($pdtree(pdswitchbar,1)) | .timerload3 -h 1 500 statuload } }
- elseif ($signal == XPopup-tb7) { if ($1 == 1) { .window -c $+($chr(64),$pdtree(pdswitchbar,1)) } }
- elseif ($signal == XPopup-tb8) {
- if ($1 == 1) {
- .scon $calc($gettok($did(pdswitchbar,1,1),3,32) - 1)
- .query $pdtree(pdswitchbar,1)
- }
- elseif ($1 == 2) { notify -r $pdtree(pdswitchbar,1) }
- }
- elseif ($signal == XPopup-tb9) {
- .scon %scontmp
- .partall
- .timerload1a -h 1 400 statuload
- }
- elseif ($signal == XPopup-tb10) {
- .scon %scontmp
- .close -m
- .timerload1b -h 1 400 statuload
- }
- elseif ($signal == XPopup-tb11) {
- .close -g
- .timerload1c -h 1 400 statuload
- }
- elseif ($signal == XPopup-tb12) {
- .close -s
- .timerload1d -h 1 400 statuload
- }
- elseif ($signal == XPopup-tb13) {
- .close -c
- .timerload1e -h 1 400 statuload
- }
- elseif ($signal == XPopup-tb14) {
- var %cwinall = $window(0)
- while (%cwinall >= 1) {
- if ((eXo !isin $window(%cwinall)) && (ppop !isin $window(%cwinall)) && (pdtelnet !isin $window(%cwinall))) { .window -c $window(%cwinall) }
- dec %cwinall
- }
- .timerload1f -h 1 400 statuload
- }
- }
- alias pdtree {
- var %dialog = $1
- var %id = $2
- if (!$dialog(%dialog)) { return }
- if ($3) {
- var %loc = $3-
- if ($prop = lines) {
- did -i %dialog %id 1 cb root %loc
- return $calc($did(%dialog,%id,0).lines -1)
- }
- if ($numtok(%Loc,32) = 1) { did -i %dialog %id 1 cb root }
- else { did -i %dialog %id 1 cb root $gettok(%loc,1- $+ $calc($numtok(%loc,32) -1),32) }
- var %line = $gettok($did(%dialog,%id,$gettok(%Loc,-1,32)),7-,32)
- if ($prop = tooltip) { return $gettok(%line,2-,9) }
- return $gettok(%line,1,9)
- }
- var %entry = $did(%dialog,%id,1)
- if ($gettok(%entry,1,32) = slclick) { var %loc = $gettok(%entry,4-,32) }
- else { var %loc = $gettok(%entry,3-,32) }
- var %depth = $calc($numtok(%loc,32) -1)
- var %branch = $gettok(%loc,-1,32)
- if (%depth = 0) { did -i %dialog %id 1 cb root }
- else { did -i %dialog %id 1 cb root $gettok(%loc,1- $+ %depth,32) }
- var %line = $gettok($did(%dialog,%id,%branch),7-,32)
- if (!$prop) { return $gettok(%line,1,9) }
- if ($prop = root) { return $gettok(%loc,1,32) }
- if ($prop = sel) { return %loc }
- if ($prop = lines) { return $calc($did(%dialog,%id,0).lines -1) }
- if ($prop = len) { return $len(%line) }
- if ($prop = tooltip) { return $gettok(%line,2-,9) }
- if ($prop = event) { return $gettok(%entry,1,32) }
- }
- on *:SIGNAL:hOS:{
- if ($1 == MIRCRESIZE) { load_pdswitchbar }
- }
- alias switchicon1 {
- if ($dialog(pdswitchbar)) {
- var %serv = $2
- if ((($active != $1) || ($activecid != $3)) && (!%switchchan [ $+ [ $1 ] $+ [ $2 ] ])) {
- set %switchchan [ $+ [ $1 ] $+ [ $2 ] ] 1
- var %x = 1
- while (%x <= $scon(0)) {
- .scon %x
- if (%serv != $server) { goto jump }
- did -i pdswitchbar 1 1 cb root $calc(%x + 1) 2
- var %temp = 2
- while ($did(pdswitchbar,1,1,%temp)) {
- if ($gettok($did(pdswitchbar,1,1,%temp),2,9)) { if ($+(*,$1) iswm $gettok($did(pdswitchbar,1,1,%temp),2,9)) { did -i pdswitchbar 1 1 replaceitem %temp + 15 12 $lower($1) $chr(9) $+ $lower($1) } }
- elseif ($+(*,$1) iswm $gettok($did(pdswitchbar,1,1,%temp),7,32)) { did -i pdswitchbar 1 1 replaceitem %temp + 15 12 $lower($1) $chr(9) $+ $lower($1) }
- inc %temp
- }
- :jump
- inc %x
- }
- }
- }
- }
- alias switchicon2 {
- if ($dialog(pdswitchbar)) {
- var %serv = $2
- if ((($active != $1) || ($activecid != $3)) && (!%switchchan [ $+ [ $1 ] $+ [ $2 ] ])) {
- set %switchchan [ $+ [ $1 ] $+ [ $2 ] ] 2
- var %x = 1
- while (%x <= $scon(0)) {
- .scon %x
- if (%serv != $server) { goto jump }
- did -i pdswitchbar 1 1 cb root $calc(%x + 1) 2
- var %temp = 2
- while ($did(pdswitchbar,1,1,%temp)) {
- if ($gettok($did(pdswitchbar,1,1,%temp),2,9)) { if ($+(*,$1) iswm $gettok($did(pdswitchbar,1,1,%temp),2,9)) { did -i pdswitchbar 1 1 replaceitem %temp + 16 12 $lower($1) $chr(9) $+ $lower($1) } }
- elseif ($+(*,$1) iswm $gettok($did(pdswitchbar,1,1,%temp),7,32)) { did -i pdswitchbar 1 1 replaceitem %temp + 16 12 $lower($1) $chr(9) $+ $lower($1) }
- inc %temp
- }
- :jump
- inc %x
- }
- }
- }
- }
- alias switchicon3 {
- if ($dialog(pdswitchbar)) {
- var %serv = $2
- if ((($active != $1) || ($activecid != $3)) && (!%switchquery [ $+ [ $1 ] $+ [ $2 ] ])) {
- set %switchquery [ $+ [ $1 ] $+ [ $2 ] ] 1
- var %x = 1
- while (%x <= $scon(0)) {
- .scon %x
- if (%serv != $server) { goto jump }
- did -i pdswitchbar 1 1 cb root $calc(%x + 1) 3
- var %temp = 2
- while ($did(pdswitchbar,1,1,%temp)) {
- if ($gettok($did(pdswitchbar,1,1,%temp),2,9)) { if ($+(*,$1) iswm $gettok($did(pdswitchbar,1,1,%temp),2,9)) { did -i pdswitchbar 1 1 replaceitem %temp + 3 6 $1 $chr(9) $+ $1 } }
- elseif ($+(*,$1) iswm $gettok($did(pdswitchbar,1,1,%temp),7,32)) { did -i pdswitchbar 1 1 replaceitem %temp + 3 6 $1 $chr(9) $+ $1 }
- inc %temp
- }
- :jump
- inc %x
- }
- }
- }
- }
- on *:TEXT:*:#:{ switchicon1 $chan $server $cid }
- on *:ACTION:*:#:{ switchicon1 $chan $server $cid }
- on *:TEXT:*:?:{ switchicon3 $nick $server $cid }
- on *:ACTION:*:?:{ switchicon3 $nick $server $cid }
- on *:DCCSERVER:*:{ statuload }
- on *:DCCSERVER:CHAT:{ statuload }
- on *:ACTIVE:*:{
- if ($dialog(pdswitchbar)) {
- var %x = 1
- while ((%x <= $scid(0)) && ($scon(%x) != $activecid)) { inc %x }
- .scon %x
- if (%switchchan [ $+ [ $active ] $+ [ $server ] ]) {
- unset %switchchan [ $+ [ $active ] $+ [ $server ] ]
- did -i pdswitchbar 1 1 cb root $calc(%x + 1) 2
- var %x = 1
- var %temp1 = 2
- while ($did(pdswitchbar,1,1,%temp1)) {
- if ($gettok($did(pdswitchbar,1,1,%temp1),2,9)) { if ($+(*,$active) iswm $gettok($did(pdswitchbar,1,1,%temp1),2,9)) { did -i pdswitchbar 1 1 replaceitem %temp1 + 8 12 $lower($active) $chr(9) $+ $lower($active) } }
- elseif ($+(*,$active) iswm $gettok($did(pdswitchbar,1,1,%temp1),7,32)) { did -i pdswitchbar 1 1 replaceitem %temp1 + 8 12 $lower($active) $chr(9) $+ $lower($active) }
- inc %temp1
- }
- }
- var %x = 1
- while ((%x <= $scid(0)) && ($scon(%x) != $activecid)) { inc %x }
- .scon %x
- if (%switchquery [ $+ [ $active ] $+ [ $server ] ]) {
- unset %switchquery [ $+ [ $active ] $+ [ $server ] ]
- did -i pdswitchbar 1 1 cb root $calc(%x + 1) 3
- var %x = 1
- var %temp2 = 2
- while ($did(pdswitchbar,1,1,%temp2)) {
- if ($gettok($did(pdswitchbar,1,1,%temp2),2,9)) { if ($+(*,$active) iswm $gettok($did(pdswitchbar,1,1,%temp2),2,9)) { did -i pdswitchbar 1 1 replaceitem %temp2 + 2 6 $active $chr(9) $+ $active } }
- elseif ($+(*,$active) iswm $gettok($did(pdswitchbar,1,1,%temp2),7,32)) { did -i pdswitchbar 1 1 replaceitem %temp2 + 2 6 $active $chr(9) $+ $active }
- inc %temp2
- }
- }
- }
- if (!$timer(reload)) { .timerreload -o 0 2000 graphicreload }
- if (!$timer(kernel)) { .timerkernel -o 1 1 switchinfo }
- away_ctrl
- load_pdstatusbar
- }
- alias pdtoolbar {
- if ($dialog(pdtoolbar)) { dialog -x pdtoolbar }
- else { dialog -mh pdtoolbar pdtoolbar }
- }
- alias toolbarsize {
- if ($conf(Varie,ToolbarSize) == A) {
- if ($conf(Varie,ToolbarText) == A) { return 32 }
- elseif ($conf(Varie,ToolbarText) == B) { return 47 }
- elseif ($conf(Varie,ToolbarText) == C) { return 24 }
- }
- elseif ($conf(Varie,ToolbarSize) == B) {
- if ($conf(Varie,ToolbarText) == A) { return 48 }
- elseif ($conf(Varie,ToolbarText) == B) { return 62 }
- elseif ($conf(Varie,ToolbarText) == C) { return 41 }
- }
- }
- alias toolbartext {
- if ($conf(Varie,ToolbarText) == A) { return list }
- elseif ($conf(Varie,ToolbarText) == B) { return $null }
- elseif ($conf(Varie,ToolbarText) == C) { return $null }
- }
- dialog pdtoolbar {
- title "pdtoolbar"
- size 0 0 1920 $toolbarsize
- option pixels
- list 1, 0 0 10000 $toolbarsize, size
- }
- on *:dialog:pdtoolbar:init:0:{
- mdxinit $dname
- mdx SetBorderStyle $dname 1
- mdx SetControlMDX $dname 1 ToolBar arrows $toolbartext flat noresize nodivider > $mdxbars
- mdx SetDialog $dname 1 style
- did -i $dname 1 1 bmpsize $iif($conf(Varie,ToolbarSize) == B,32 32,16 16)
- did -r $dname 1
- did -i $dname 1 1 setimage icon list, 27, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 setimage icon list, 15, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 SetImage icon list, 11, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 setimage icon list, 28, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 setimage icon list, 29, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 setimage icon list, 30, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 setimage icon list, 31, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 setimage icon list, 32, $+ $icons(PDIcons.icl)
- did -i $dname 1 1 SetImage icon list, 25, $+ $icons(PDIcons.icl)
- load_pdtoolbar
- xdock -m $dialog($dname).hwnd +t
- xdock -r $dialog($dname).hwnd + 1920 $toolbarsize
- }
- alias load_pdtoolbar {
- if ($dialog(pdtoolbar)) {
- did -r pdtoolbar 1
- did -a pdtoolbar 1 -
- did -a pdtoolbar 1 +av 1 $iif($conf(Varie,ToolbarText) != C,$lang(Toolbar,01) $+ $chr(9) $+ $lang(Toolbar,02))
- did -a pdtoolbar 1 -
- did -a pdtoolbar 1 +a 2 $iif($conf(Varie,ToolbarText) != C,$lang(Toolbar,03) $+ $chr(9) $+ $lang(Toolbar,04))
- did -a pdtoolbar 1 -
- did -a pdtoolbar 1 +a 3 $iif($conf(Varie,ToolbarText) != C,$lang(Toolbar,05) $+ $chr(9) $+ $lang(Toolbar,06))
- did -a pdtoolbar 1 -
- did -a pdtoolbar 1 +av 4 $iif($conf(Varie,ToolbarText) != C,$lang(Toolbar,07) $+ $chr(9) $+ $lang(Toolbar,08))
- did -a pdtoolbar 1 -
- did -a pdtoolbar 1 +a 5 $iif($conf(Varie,ToolbarText) != C,$lang(Toolbar,09) $+ $chr(9) $+ $lang(Toolbar,10))
- did -a pdtoolbar 1 -
- did -a pdtoolbar 1 +a 6 $iif($conf(Varie,ToolbarText) != C,$lang(Toolbar,11) $+ $chr(9) $+ $lang(Toolbar,12))
- did -a pdtoolbar 1 -
- did -a pdtoolbar 1 +av 7 $iif($conf(Varie,ToolbarText) != C,$lang(Toolbar,13) $+ $chr(9) $+ $lang(Toolbar,14))
- did -a pdtoolbar 1 -
- did -a pdtoolbar 1 +av 8 $iif($conf(Varie,ToolbarText) != C,$lang(Toolbar,15) $+ $chr(9) $+ $lang(Toolbar,16))
- did -a pdtoolbar 1 -
- did -a pdtoolbar 1 +a 9 $iif($conf(Varie,ToolbarText) != C,$lang(Toolbar,17) $+ $chr(9) $+ $lang(Toolbar,18))
- }
- }
- on *:dialog:pdtoolbar:dclick:1:{
- if ($did(1).sel == 3) { pdplay $+($skin(Sounds,TBMenu,Path),$chr(92),$skin(Sounds,TBMenu)) | conntool }
- if ($did(1).sel == 9) { pdplay $+($skin(Sounds,TBMenu,Path),$chr(92),$skin(Sounds,TBMenu)) | impostool }
- if ($did(1).sel == 15) { pdplay $+($skin(Sounds,TBMenu,Path),$chr(92),$skin(Sounds,TBMenu)) | mediatool }
- if ($did(1).sel == 17) { pdplay $+($skin(Sounds,TBMenu,Path),$chr(92),$skin(Sounds,TBMenu)) | utilitytool }
- }
- on *:dialog:pdtoolbar:sclick:1:{
- if ($did(1).sel == 3) {
- if ($conf(TastiToolbar,Connessione) == 1) { connman }
- elseif ($conf(TastiToolbar,Connessione) == 2) {
- if (!$server) { connman }
- else { .disconnect }
- }
- elseif ($conf(TastiToolbar,Connessione) == 3) {
- if (!$server) { .server }
- else { .disconnect }
- }
- }
- if ($did(1).sel == 5) { nick $$?=" $lang(PopupDll,05) " }
- if ($did(1).sel == 7) { if ($server) { join #$$?=" $lang(PopupDll,06) " } }
- if ($did(1).sel == 9) {
- if ($conf(TastiToolbar,Impostazioni) == 1) { impostazioni }
- elseif ($conf(TastiToolbar,Impostazioni) == 2) { extensions }
- elseif ($conf(TastiToolbar,Impostazioni) == 3) { upcheck }
- }
- if ($did(1).sel == 11) { awaysys }
- if ($did(1).sel == 13) { listespec }
- if ($did(1).sel == 15) {
- if ($conf(TastiToolbar,MediaPlayers) == 1) { musicplay }
- elseif ($conf(TastiToolbar,MediaPlayers) == 2) { radioplay }
- elseif ($conf(TastiToolbar,MediaPlayers) == 3) { videoplay }
- }
- if ($did(1).sel == 17) {
- if ($conf(TastiToolbar,Utility) == 1) { asciicodes }
- if ($conf(TastiToolbar,Utility) == 2) { convtool }
- if ($conf(TastiToolbar,Utility) == 3) { dccmon }
- if ($conf(TastiToolbar,Utility) == 4) { sysinfo }
- if ($conf(TastiToolbar,Utility) == 5) { lastseen }
- if ($conf(TastiToolbar,Utility) == 6) { logman }
- if ($conf(TastiToolbar,Utility) == 7) { querylock }
- if ($conf(TastiToolbar,Utility) == 8) { telnet }
- if ($conf(TastiToolbar,Utility) == 9) { imgviewer }
- if ($conf(TastiToolbar,Utility) == 10) { webbrowser }
- }
- if ($did(1).sel == 19) { pdclose }
- }
- alias toolbrel {
- pdtoolbar
- pdtoolbar
- }
- alias toolbrelsw {
- pdswitchbar
- pdtoolbar
- pdtoolbar
- pdswitchbar
- xdock -p
- }
- alias conntool {
- if ($xpopup(conntool).ismenu) { xpopup -d conntool }
- xpopup -c conntool normal
- xpopup -x conntool +dp
- xpopup -i conntool + 33 $icons(PDIcons.icl)
- xpopup -i conntool + 4 $icons(PDIcons.icl)
- xpopup -i conntool + 5 $icons(PDIcons.icl)
- xpopup -i conntool + 6 $icons(PDIcons.icl)
- xpopup -i conntool + 7 $icons(PDIcons.icl)
- xpop -a conntool 0 $chr(9) + 1 1 $lang(ConnManager,Title)
- xpop -a conntool 0 $chr(9) + 0 0 -
- if (!$server) {
- xpop -a conntool 0 $chr(9) + 2 2 $lang(PopupDll,01)
- xpop -a conntool 0 $chr(9) +g 3 3 $lang(PopupDll,02)
- }
- else {
- xpop -a conntool 0 $chr(9) +g 2 2 $lang(PopupDll,01)
- xpop -a conntool 0 $chr(9) + 3 3 $lang(PopupDll,02)
- }
- xpop -a conntool 0 $chr(9) + 0 0 -
- xpop -a conntool 0 $chr(9) + 4 5 $lang(PopupDll,03)
- xpop -a conntool 0 $chr(9) + 5 4 $lang(PopupDll,04)
- xpopup -s conntool +m $mouse.dx $mouse.dy
- }
- on *:SIGNAL:XPopup-conntool:{
- if ($1 == 0) { return }
- elseif ($1 == 1) { connman }
- elseif ($1 == 2) { .server }
- elseif ($1 == 3) { .disconnect }
- elseif ($1 == 4) { cambiaserv }
- elseif ($1 == 5) { nuovoserv }
- }
- alias cambiaserv { .server $$?" $lang(PopupDll,06) " }
- alias nuovoserv { .server -m $$?" $lang(PopupDll,07) " }
- alias impostool {
- if ($xpopup(impostool).ismenu) { xpopup -d impostool }
- xpopup -c impostool normal
- xpopup -x impostool +dp
- xpopup -i impostool + 28 $icons(PDIcons.icl)
- xpopup -i impostool + 87 $icons(PDIcons.icl)
- xpopup -i impostool + 34 $icons(PDIcons.icl)
- xpop -a impostool 0 $chr(9) + 1 1 $lang(Settings,Title)
- xpop -a impostool 0 $chr(9) + 2 2 $lang(Extensions,Title)
- xpop -a impostool 0 $chr(9) + 0 0 -
- xpop -a impostool 0 $chr(9) + 3 3 $lang(UpdateCheck,Title)
- xpopup -s impostool +m $mouse.dx $mouse.dy
- }
- on *:SIGNAL:XPopup-impostool:{
- if ($1 == 0) { return }
- elseif ($1 == 1) { impostazioni }
- elseif ($1 == 2) { extensions }
- elseif ($1 == 3) { upcheck }
- }
- alias mediatool {
- if ($xpopup(mediatool).ismenu) { xpopup -d mediatool }
- xpopup -c mediatool normal
- xpopup -x mediatool +dp
- xpopup -i mediatool + 35 $icons(PDIcons.icl)
- xpopup -i mediatool + 36 $icons(PDIcons.icl)
- xpopup -i mediatool + 37 $icons(PDIcons.icl)
- xpop -a mediatool 0 $chr(9) + 1 1 $lang(MusicPlayer,Title)
- xpop -a mediatool 0 $chr(9) + 2 2 $lang(RadioPlayer,Title)
- xpop -a mediatool 0 $chr(9) + 0 0 -
- xpop -a mediatool 0 $chr(9) + 3 3 $lang(VideoPlayer,Title)
- xpopup -s mediatool +m $mouse.dx $mouse.dy
- }
- on *:SIGNAL:XPopup-mediatool:{
- if ($1 == 0) { return }
- elseif ($1 == 1) { musicplay }
- elseif ($1 == 2) { radioplay }
- elseif ($1 == 3) { videoplay }
- }
- alias utilitytool {
- if ($xpopup(utilitytool).ismenu) { xpopup -d utilitytool }
- xpopup -c utilitytool normal
- xpopup -x utilitytool +dp
- xpopup -i utilitytool + 38 $icons(PDIcons.icl)
- xpopup -i utilitytool + 39 $icons(PDIcons.icl)
- xpopup -i utilitytool + 17 $icons(PDIcons.icl)
- xpopup -i utilitytool + 40 $icons(PDIcons.icl)
- xpopup -i utilitytool + 41 $icons(PDIcons.icl)
- xpopup -i utilitytool + 42 $icons(PDIcons.icl)
- xpopup -i utilitytool + 67 $icons(PDIcons.icl)
- xpopup -i utilitytool + 88 $icons(PDIcons.icl)
- xpopup -i utilitytool + 44 $icons(PDIcons.icl)
- xpopup -i utilitytool + 45 $icons(PDIcons.icl)
- xpop -a utilitytool 0 $chr(9) + 1 1 $lang(AsciiCodes,Title)
- xpop -a utilitytool 0 $chr(9) + 2 2 $lang(ConvTool,Title)
- xpop -a utilitytool 0 $chr(9) + 3 3 $lang(DCCMonitor,Title)
- xpop -a utilitytool 0 $chr(9) + 4 4 $lang(SystemInfo,Title)
- xpop -a utilitytool 0 $chr(9) + 5 5 $lang(LastSeen,Title)
- xpop -a utilitytool 0 $chr(9) + 6 6 $lang(LogManager,Title)
- xpop -a utilitytool 0 $chr(9) + 7 7 $lang(QueryLock,Title)
- xpop -a utilitytool 0 $chr(9) + 8 8 $lang(TelNet,Title)
- xpop -a utilitytool 0 $chr(9) + 9 9 $lang(ImageViewer,Title)
- xpop -a utilitytool 0 $chr(9) + 10 10 $lang(WebBrowser,Title)
- xpopup -s utilitytool +m $mouse.dx $mouse.dy
- }
- on *:SIGNAL:XPopup-utilitytool:{
- if ($1 == 0) { return }
- elseif ($1 == 1) { asciicodes }
- elseif ($1 == 2) { convtool }
- elseif ($1 == 3) { dccmon }
- elseif ($1 == 4) { sysinfo }
- elseif ($1 == 5) { lastseen }
- elseif ($1 == 6) { logman }
- elseif ($1 == 7) { querylock }
- elseif ($1 == 8) { telnet }
- elseif ($1 == 9) { imgviewer }
- elseif ($1 == 10) { webbrowser }
- }
- alias start_menu {
- if ($xpopup(startmenu).ismenu) { xpopup -d startmenu }
- xpopup -c startmenu office2003rev
- xpopup -x startmenu +dp
- xpopup -p startmenu 2 $skin(Menus,SideBar)
- xpopup -p startmenu $rgb(255,255,255)
- xpopup -i startmenu + 0 $icons(PDIcons.icl)
- xpopup -i startmenu + 2 $icons(PDIcons.icl)
- xpopup -i startmenu + 28 $icons(PDIcons.icl)
- xpopup -i startmenu + 87 $icons(PDIcons.icl)
- xpopup -i startmenu + 33 $icons(PDIcons.icl)
- xpopup -i startmenu + 34 $icons(PDIcons.icl)
- xpopup -i startmenu + 29 $icons(PDIcons.icl)
- xpopup -i startmenu + 30 $icons(PDIcons.icl)
- xpopup -i startmenu + 52 $icons(PDIcons.icl)
- xpopup -i startmenu + 51 $icons(PDIcons.icl)
- xpopup -i startmenu + 31 $icons(PDIcons.icl)
- xpopup -i startmenu + 35 $icons(PDIcons.icl)
- xpopup -i startmenu + 36 $icons(PDIcons.icl)
- xpopup -i startmenu + 37 $icons(PDIcons.icl)
- xpopup -i startmenu + 32 $icons(PDIcons.icl)
- xpopup -i startmenu + 38 $icons(PDIcons.icl)
- xpopup -i startmenu + 39 $icons(PDIcons.icl)
- xpopup -i startmenu + 17 $icons(PDIcons.icl)
- xpopup -i startmenu + 40 $icons(PDIcons.icl)
- xpopup -i startmenu + 41 $icons(PDIcons.icl)
- xpopup -i startmenu + 42 $icons(PDIcons.icl)
- xpopup -i startmenu + 67 $icons(PDIcons.icl)
- xpopup -i startmenu + 88 $icons(PDIcons.icl)
- xpopup -i startmenu + 44 $icons(PDIcons.icl)
- xpopup -i startmenu + 45 $icons(PDIcons.icl)
- xpopup -i startmenu + 25 $icons(PDIcons.icl)
- xpop -a startmenu 0 $chr(9) +g 1 1 Project Dream $pdversion
- xpop -a startmenu 0 $chr(9) + 2 0 -
- xpop -a startmenu 0 $chr(9) + 3 2 $lang(AboutPD,Title)
- xpop -a startmenu 0 $chr(9) + 4 0 -
- xpop -a startmenu 0 $chr(9) +s 5 3 $lang(Toolbar,07)
- xpop -a startmenu 5 0 $chr(9) + 15 3 $lang(Settings,Title)
- xpop -a startmenu 5 0 $chr(9) + 16 4 $lang(Extensions,Title)
- xpop -a startmenu 5 0 $chr(9) + 17 0 -
- xpop -a startmenu 5 0 $chr(9) + 18 5 $lang(ConnManager,Title)
- xpop -a startmenu 5 0 $chr(9) + 19 6 $lang(UpdateCheck,Title)
- xpop -a startmenu 0 $chr(9) + 6 0 -
- xpop -a startmenu 0 $chr(9) + 7 7 $lang(AwaySystem,Title)
- xpop -a startmenu 0 $chr(9) + 8 8 $lang(SpecialLists,Title)
- xpop -a startmenu 0 $chr(9) + 9 0 -
- xpop -a startmenu 0 $chr(9) + 10 9 $lang(PopupDll,09)
- xpop -a startmenu 0 $chr(9) + 11 10 $lang(PopupDll,10)
- xpop -a startmenu 0 $chr(9) + 12 0 -
- xpop -a startmenu 0 $chr(9) +s 13 11 $lang(Toolbar,13)
- xpop -a startmenu 13 0 $chr(9) + 20 12 $lang(MusicPlayer,Title)
- xpop -a startmenu 13 0 $chr(9) + 21 13 $lang(RadioPlayer,Title)
- xpop -a startmenu 13 0 $chr(9) + 22 0 -
- xpop -a startmenu 13 0 $chr(9) + 23 14 $lang(VideoPlayer,Title)
- xpop -a startmenu 0 $chr(9) +s 14 15 $lang(Toolbar,15)
- xpop -a startmenu 14 0 $chr(9) + 24 16 $lang(AsciiCodes,Title)
- xpop -a startmenu 14 0 $chr(9) + 25 17 $lang(ConvTool,Title)
- xpop -a startmenu 14 0 $chr(9) + 26 18 $lang(DCCMonitor,Title)
- xpop -a startmenu 14 0 $chr(9) + 27 19 $lang(SystemInfo,Title)
- xpop -a startmenu 14 0 $chr(9) + 28 20 $lang(LastSeen,Title)
- xpop -a startmenu 14 0 $chr(9) + 29 21 $lang(LogManager,Title)
- xpop -a startmenu 14 0 $chr(9) + 30 22 $lang(QueryLock,Title)
- xpop -a startmenu 14 0 $chr(9) + 31 23 $lang(TelNet,Title)
- xpop -a startmenu 14 0 $chr(9) + 32 24 $lang(ImageViewer,Title)
- xpop -a startmenu 14 0 $chr(9) + 33 25 $lang(WebBrowser,Title)
- xpop -a startmenu 0 $chr(9) + 34 0 -
- xpop -a startmenu 0 $chr(9) + 35 26 $lang(Toolbar,17)
- xpopup -s startmenu +m $dialog(pdstatusbar).x $calc($dialog(pdstatusbar).y + 2)
- }
- on *:SIGNAL:XPopup-startmenu:{
- if ($1 == 0) { return }
- if ($1 == 3) { about }
- if ($1 == 15) { impostazioni }
- if ($1 == 16) { extensions }
- if ($1 == 18) { connman }
- if ($1 == 19) { upcheck }
- if ($1 == 7) { awaysys }
- if ($1 == 8) { listespec }
- if ($1 == 10) { run $shortfn($getdir) }
- if ($1 == 11) { run $shortfn($logdir) }
- if ($1 == 20) { musicplay }
- if ($1 == 21) { radioplay }
- if ($1 == 23) { videoplay }
- if ($1 == 24) { asciicodes }
- if ($1 == 25) { convtool }
- if ($1 == 26) { dccmon }
- if ($1 == 27) { sysinfo }
- if ($1 == 28) { lastseen }
- if ($1 == 29) { logman }
- if ($1 == 30) { querylock }
- if ($1 == 31) { telnet }
- if ($1 == 32) { imgviewer }
- if ($1 == 33) { webbrowser }
- if ($1 == 35) { pdclose }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement