home *** CD-ROM | disk | FTP | other *** search
- /* */
-
- call pragma(w,n)
-
- l="rmh.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
- if AddLibrary("rxmui.library")~=0 then exit
-
- call rxmuiopt("DEBUGMODE SHOWERR")
-
- call child("STRIP","MPROJECT","MENU")
- mproject.Title="Project"
- call child("MPROJECT",menuitem("MSERVERS","Server...","S"))
- call child("MPROJECT",menuitem("","BAR"))
- call child("MPROJECT",menuitem("MLOG","Active Log","","CHEKIT TOGGLE"))
- call child("MPROJECT",menuitem("","BAR"))
- call child("MPROJECT",menuitem("MHIDE","Hide","H"))
- call child("MPROJECT",menuitem("","BAR"))
- call child("MPROJECT",menuitem("MHELP","Help..."))
- call child("MPROJECT",menuitem("","BAR"))
- call child("MPROJECT",menuitem("MABOUTAMIRC","About Amirc...","?"))
- call child("MPROJECT",menuitem("MABOUTMUI","About MUI..."))
- call child("MPROJECT",menuitem("","BAR"))
- call child("MPROJECT",menuitem("MQUIT","Quit","Q"))
- res=NewObj("MENUSTRIP","STRIP")
- if res~=0 then call err(res)
-
- app.Title="Amirc"
- app.Version="$VER: Amirc 1.0 (22.11.99)"
- app.Copyright="©1999, alfie"
- app.Author="alfie"
- app.Description="Amirc gui clone"
- app.Base="AIRC"
- app.SubWindow="WIN"
- win.Title="Amirc"
- win.ID="AIRC"
- win.MenuStrip="STRIP"
- win.Contents="MGROUP"
-
- call child("MGROUP","G1","GROUP")
- g1.horiz=1
- g1.horizspacing=0
- channels.weight=0;call child("G1",Button("CHANNELS","#amiga"))
- call child("G1","TP","GROUP")
- tp.weight=100;
- tp.pagemode=1
- call child("TP",String("TOPIC"))
- call child("TP",text("STOPIC","a"))
- call child("G1",makeTinyToggle("T","T",1))
- call child("G1",makeTinyToggle("N","N",1))
- call child("G1",makeTinyToggle("S","S",0))
- call child("G1",makeTinyToggle("I","I",0))
- call child("G1",makeTinyToggle("M","M",0))
- call child("G1",makeTinyToggle("L","L",0))
- maxusers.disabled=1;maxusers.weight=0;call child("G1",String("MAXUSERS"))
- call child("G1",makeTinyToggle("K","K",0))
- key.disabled=1;key.weight=0;call child("G1",String("KEY"))
- call child("G1",makeTinyToggle("B","B",0))
-
- call child("MGROUP","G2","GROUP")
- g2.horiz=1
- call child("G2","TALK","GROUP")
- call child("TALK","MSG","NLISTVIEW")
- msg.list="LIST"
- msg.frame="NONE"
- list.class="NLIST"
- list.input=0
- list.autocopytoclip=1
- list.Format="PREPARSE" d2c(27)"r COL=0 BAR, COL=1 BAR"
- list.wrapcol=x2d(62)
- list.autovisible=0
- list.list="LIST"
- list.0="poing|CA rulezza, MUI suka"
- list.1="«Kick»|poing è stato cacciato da #amigaita da alfie : poing suka"
- list.2="alfie|rxmui.library rulez! :)"
- list.3="alfie|Open 'buttons' with an editor, modify and save it! :-)"
- call child("TALK","ME","GROUP")
- me.horiz=1
-
- call child("ME","LAMP","LAMP")
-
- call child("ME",label("alfie","DOUBLE"))
- call child("ME","DUMMY1","GROUP")
- dummy1.horiz=1
- dummy1.horizspacing=0
- call child("DUMMY1",String("MYMSG"))
- e.weight=0;call child("DUMMY1",Button("E","L"))
-
- call child("G2",MakeObj(,"balance"))
-
- call child("G2","UTILS","GROUP")
- utils.weight=10
- call child("UTILS","USERS","NLISTVIEW")
- users.list="ULIST"
- ulist.0="alfie"
- ulist.1="jhon"
- hbar.weight=0;call child("UTILS",MakeObj("hbar","HBAR",0))
- res=NewObj("APPLICATION","APP")
- if res~=0 then call err(res)
-
- call createChannelsWin
- global.ub=0
-
- call createUserButtons
-
- call Notify("WIN","CLOSEREQUEST",1,"APP","RETURNID","QUIT")
-
- call Notify("CHANNELS","PRESSED",0,"CWIN","SET","OPEN",1)
-
- call Notify("MSG","ENTRIES","EVERYTIME","MSG","SET","FIRST","BOTTOM")
-
- call Notify("CHANNELS","PRESSED",0,"APP","RETURNID")
-
- call Notify("TOPIC","NEWCONTENTS","EVERYTIME","STOPIC","SET","CONTENTS","TRIGGERVALUE")
- call Notify("T","SELECTED",0,"MSG","INSERT","«mode»|not protected","BOTTOM")
- call Notify("T","SELECTED",1,"MSG","INSERT","«mode»|protected","BOTTOM")
- call Notify("T","SELECTED",0,"MSG","INSERT","«mode»|not protected","BOTTOM")
- call Notify("T","SELECTED","EVERYTIME","TP","SET","ACTIVEPAGE","TRIGGERVALUE")
- call Notify("S","SELECTED",1,"MSG","INSERT","«mode»|secret","BOTTOM")
- call Notify("S","SELECTED",0,"MSG","INSERT","«mode»|not secret","BOTTOM")
- call Notify("I","SELECTED",1,"MSG","INSERT","«mode»|invite only","BOTTOM")
- call Notify("I","SELECTED",0,"MSG","INSERT","«mode»|not invite","BOTTOM")
- call Notify("M","SELECTED",1,"MSG","INSERT","«mode»|moderated","BOTTOM")
- call Notify("M","SELECTED",0,"MSG","INSERT","«mode»|not moderated","BOTTOM")
- call Notify("L","SELECTED","EVERYTIME","MAXUSERS","SET","DISABLED","NOTTRIGGERVALUE")
- call Notify("K","SELECTED","EVERYTIME","KEY","SET","DISABLED","NOTTRIGGERVALUE")
-
- call Notify("B","SELECTED","EVERYTIME","APP","RETURNID")
-
- call Notify("MABOUTAMIRC","MENUTRIGGER","EVERYTIME","APP","ABOUT","WIN")
- call Notify("MABOUTMUI","MENUTRIGGER","EVERYTIME","APP","ABOUTMUI","WIN")
- call Notify("MQUIT","MENUTRIGGER","EVERYTIME","APP","RETURNID","QUIT")
- call Notify("MHIDE","MENUTRIGGER","EVERYTIME","APP","SET","ICONIFIED",1)
-
- call set("TOPIC","CONTENTS","rxmui.library is out !!!")
- call set("STOPIC","CONTENTS","rxmui.library is out !!!")
-
- noti=StartNotify("buttons")
- ns=NotifySignal(noti)
-
- call set("WIN","OPEN",1)
-
- ctrl_c=2**12
- mask=or(ctrl_c,ns)
- do forever
- call NewHandle("APP","H",mask)
- if and(h.signals,ctrl_c)>0 then exit
- if and(h.signals,ns)>0 then call createUserButtons
- if h.EventFlag then
- select
- when h.event="QUIT" then exit
- otherwise say h.event
- end
- end
- exit
-
- err: procedure expose sigl rxmuierror
- parse arg res
- say signl "["res"]"
- say getrxmuistring(res) "in line" sigl-1 rxmuierror
- exit
-
- createUserButtons: procedure expose global.
- if ~open("IN","BUTTONS","R") then do
- say "can't open buttons file"
- return
- end
- call getattr("WIN","OPEN","O")
- call set("WIN","OPEN",0)
- if global.ub then do
- call Dispose("USERBUTTONS")
- call Dispose("UBMENU")
- end
-
- ubmenu.0="MACTIONS"
- mactions.class="MENU"
- mactions.Title="Actions"
-
- userbuttons.columns=2
- userbuttons.spacing=0
- userbuttons.weight=0
-
- i=0
- do while ~eof("IN")
- line=readln("IN")
- if line="" then iterate
- USERBUTTONS.i=button("UB"i,line)
- mactions.i=menuitem("UM"i,line)
- i=i+1
- end
-
- call close("IN")
-
- res=NewObj("GROUP","USERBUTTONS")
- if res~=0 then call err(res)
- res=Add("UTILS","USERBUTTONS")
- if res~=0 then call err(res)
-
- res=NewObj("MENUSTRIP","UBMENU")
- if res~=0 then call err(res)
- res=set("USERS","CONTEXTMENU","UBMENU")
- if res~=0 then call err(res)
-
- if o then call set("WIN","OPEN",1)
- global.ub=1
- return
-
- makeTinyToggle: procedure
- parse arg name,text,state
- b.Contents=text
- b.inputmode="TOGGLE"
- b.showselstate=1
- b.selected=state
- b.font="BUTTON"
- b.frame="BUTTON"
- b.background="BUTTONBACK"
- b.weight=0;
- res=newobj("TEXT",name,"B")
- if res then call esci(res)
- return name
-
- createChannelsWin: procedure expose global.
- cwin.Title="Preferred channels"
- cwin.ID="CWIN"
- cwin.Contents="CWMGROUP"
- cwmgroup.frametitle="(doubleclick on a channel to join it)"
- call child("CWMGROUP","CLISTVIEW","NLISTVIEW")
- clistview.list="CLIST"
- clist.class="NLIST"
- clist.list="CLIST"
- clist.0="#amiga"
- clist.1="#amigaita"
- call child("CWMGROUP","CWG","GROUP")
- cwg.horiz=1
- call child("CWG",label("Add:"))
- call child("CWG",string("AC"))
- call child("CWG",button("RC","Remove"))
- res=NewObj("WINDOW","CWIN")
- if res~=0 then call err(res)
- res=add("APP","CWIN")
- if res~=0 then call err(res)
- call Notify("CWIN","CLOSEREQUEST",1,"CWIN","SET","OPEN",0)
- return
-
-