mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-20 02:52:00 -05:00
Added "Clear Band Map and Messages" to File menu.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@464 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
4995845c09
commit
ea5d76ed8e
@ -30,6 +30,7 @@ subroutine ftn_init
|
|||||||
! print*,'ftn_init.F90 nport=', nport, 'pttport=', pttport
|
! print*,'ftn_init.F90 nport=', nport, 'pttport=', pttport
|
||||||
i=ptt(nport,pttport,0,iptt) !Clear the PTT line
|
i=ptt(nport,pttport,0,iptt) !Clear the PTT line
|
||||||
addpfx=' '
|
addpfx=' '
|
||||||
|
nrw26=0
|
||||||
|
|
||||||
do i=80,1,-1
|
do i=80,1,-1
|
||||||
if(AppDir(i:i).ne.' ') goto 1
|
if(AppDir(i:i).ne.' ') goto 1
|
||||||
|
@ -45,7 +45,7 @@ integer nport !Requested COM port number GUI
|
|||||||
integer mousedf !Mouse-selected freq offset, DF GUI
|
integer mousedf !Mouse-selected freq offset, DF GUI
|
||||||
integer mousefqso !Mouse-selected QSO freq GUI
|
integer mousefqso !Mouse-selected QSO freq GUI
|
||||||
integer neme !EME calls only in deep search? GUI
|
integer neme !EME calls only in deep search? GUI
|
||||||
integer nsked !Sked mode for deep search? GUI
|
integer nrw26 !Request to rewind lu 26 (tmp26.txt) GUI,Decoder
|
||||||
integer naggressive !Is "Aggressive decoding" checked? GUI
|
integer naggressive !Is "Aggressive decoding" checked? GUI
|
||||||
integer ntx2 !Is "No shorthands if Tx1" checked? GUI
|
integer ntx2 !Is "No shorthands if Tx1" checked? GUI
|
||||||
integer nagain !Decode same file again? GUI
|
integer nagain !Decode same file again? GUI
|
||||||
@ -94,7 +94,7 @@ common/gcom2/ps0(431),psavg(450),s2(64,3100),ccf(-5:540), &
|
|||||||
ndecdone,npingtime,ierr,lauto,mantx,nrestart,ntr,nmsg,nsave,nadd5, &
|
ndecdone,npingtime,ierr,lauto,mantx,nrestart,ntr,nmsg,nsave,nadd5, &
|
||||||
dftolerance,LDecoded,rxdone,monitoring,nzap,minsigdb, &
|
dftolerance,LDecoded,rxdone,monitoring,nzap,minsigdb, &
|
||||||
nclearave,nfreeze,nafc,newspec,nmode,mode65,nclip,ndebug,nblank, &
|
nclearave,nfreeze,nafc,newspec,nmode,mode65,nclip,ndebug,nblank, &
|
||||||
nport,mousedf,mousefqso,neme,nsked,naggressive,ntx2,nagain, &
|
nport,mousedf,mousefqso,neme,nrw26,naggressive,ntx2,nagain, &
|
||||||
shok,sendingsh,d2a(661500),d2b(661500),b(60000),jza,jzb,ntime, &
|
shok,sendingsh,d2a(661500),d2b(661500),b(60000),jza,jzb,ntime, &
|
||||||
idinterval,msmax,lenappdir,idf,ndiskdat,nlines,nflat,ntxreq,ntxnow,&
|
idinterval,msmax,lenappdir,idf,ndiskdat,nlines,nflat,ntxreq,ntxnow,&
|
||||||
ndepth,nspecial,ndf,nfmid,nfrange,ss1(-224:224),ss2(-224:224), &
|
ndepth,nspecial,ndf,nfmid,nfrange,ss1(-224:224),ss2(-224:224), &
|
||||||
|
52
map65.py
52
map65.py
@ -168,22 +168,22 @@ def testmsgs():
|
|||||||
|
|
||||||
#------------------------------------------------------
|
#------------------------------------------------------
|
||||||
def messages(event=NONE):
|
def messages(event=NONE):
|
||||||
global Version,bm,bm_geom,bmtext
|
global Version,bm,bm_geom,msgtext
|
||||||
bm=Toplevel(root)
|
bm=Toplevel(root)
|
||||||
bm.title("Messages")
|
bm.title("Messages")
|
||||||
bm.geometry(bm_geom)
|
bm.geometry(bm_geom)
|
||||||
if g.Win32: bm.iconbitmap("wsjt.ico")
|
if g.Win32: bm.iconbitmap("wsjt.ico")
|
||||||
iframe_bm1 = Frame(bm, bd=1, relief=SUNKEN)
|
iframe_bm1 = Frame(bm, bd=1, relief=SUNKEN)
|
||||||
bmtext=Text(iframe_bm1, height=35, width=41, bg="Navy", fg="yellow")
|
msgtext=Text(iframe_bm1, height=35, width=41, bg="Navy", fg="yellow")
|
||||||
bmtext.bind('<Double-Button-1>',dbl_click_bmtext)
|
msgtext.bind('<Double-Button-1>',dbl_click_msgtext)
|
||||||
bmtext.pack(side=LEFT, fill=X, padx=1, pady=3)
|
msgtext.pack(side=LEFT, fill=X, padx=1, pady=3)
|
||||||
bmsb = Scrollbar(iframe_bm1, orient=VERTICAL, command=bmtext.yview)
|
bmsb = Scrollbar(iframe_bm1, orient=VERTICAL, command=msgtext.yview)
|
||||||
bmsb.pack(side=RIGHT, fill=Y)
|
bmsb.pack(side=RIGHT, fill=Y)
|
||||||
bmtext.configure(yscrollcommand=bmsb.set)
|
msgtext.configure(yscrollcommand=bmsb.set)
|
||||||
bmtext.tag_configure('age0',foreground='red')
|
msgtext.tag_configure('age0',foreground='red')
|
||||||
bmtext.tag_configure('age1',foreground='yellow')
|
msgtext.tag_configure('age1',foreground='yellow')
|
||||||
bmtext.tag_configure('age2',foreground='gray75')
|
msgtext.tag_configure('age2',foreground='gray75')
|
||||||
bmtext.tag_configure('age3',foreground='gray50')
|
msgtext.tag_configure('age3',foreground='gray50')
|
||||||
iframe_bm1.pack(expand=1, fill=X, padx=4)
|
iframe_bm1.pack(expand=1, fill=X, padx=4)
|
||||||
|
|
||||||
#------------------------------------------------------ bandmap
|
#------------------------------------------------------ bandmap
|
||||||
@ -201,7 +201,7 @@ def bandmap(event=NONE):
|
|||||||
bm2text.tag_configure('age1',foreground='yellow')
|
bm2text.tag_configure('age1',foreground='yellow')
|
||||||
bm2text.tag_configure('age2',foreground='gray75')
|
bm2text.tag_configure('age2',foreground='gray75')
|
||||||
bm2text.tag_configure('age3',foreground='gray50')
|
bm2text.tag_configure('age3',foreground='gray50')
|
||||||
iframe_bm2.pack(expand=1, fill=X, padx=4)
|
iframe_bm2.pack(expand=1, fill=X, padx=4,pady=5)
|
||||||
|
|
||||||
#------------------------------------------------------ logqso
|
#------------------------------------------------------ logqso
|
||||||
def logqso(event=NONE):
|
def logqso(event=NONE):
|
||||||
@ -235,10 +235,10 @@ def dbl_click_text(event):
|
|||||||
t=text.get('1.0',END) #Entire contents of text box
|
t=text.get('1.0',END) #Entire contents of text box
|
||||||
t1=text.get('1.0',CURRENT) #Contents from start to cursor
|
t1=text.get('1.0',CURRENT) #Contents from start to cursor
|
||||||
dbl_click_call(t,t1,event)
|
dbl_click_call(t,t1,event)
|
||||||
#------------------------------------------------------ dbl_click_bmtext
|
#------------------------------------------------------ dbl_click_msgtext
|
||||||
def dbl_click_bmtext(event):
|
def dbl_click_msgtext(event):
|
||||||
t=bmtext.get('1.0',END) #Entire contents of text box
|
t=msgtext.get('1.0',END) #Entire contents of text box
|
||||||
t1=bmtext.get('1.0',CURRENT) #Contents from start to cursor
|
t1=msgtext.get('1.0',CURRENT) #Contents from start to cursor
|
||||||
dbl_click_call(t,t1,event)
|
dbl_click_call(t,t1,event)
|
||||||
#------------------------------------------------------ dbl_click_bm2text
|
#------------------------------------------------------ dbl_click_bm2text
|
||||||
def dbl_click_bm2text(event):
|
def dbl_click_bm2text(event):
|
||||||
@ -784,6 +784,12 @@ def delwav():
|
|||||||
def del_all():
|
def del_all():
|
||||||
Audio.gcom1.ns0=-999999
|
Audio.gcom1.ns0=-999999
|
||||||
|
|
||||||
|
#------------------------------------------------------ clr_all
|
||||||
|
def clr_all():
|
||||||
|
Audio.gcom2.nrw26=1 #Request rewind of tmp26.txt
|
||||||
|
msgtext.delete('1.0',END)
|
||||||
|
bm2text.delete('1.0',END)
|
||||||
|
|
||||||
#------------------------------------------------------ toggleauto
|
#------------------------------------------------------ toggleauto
|
||||||
def toggleauto(event=NONE):
|
def toggleauto(event=NONE):
|
||||||
global lauto
|
global lauto
|
||||||
@ -987,7 +993,7 @@ def update():
|
|||||||
txminute=0
|
txminute=0
|
||||||
if Audio.gcom2.lauto and utc[4]%2 == Audio.gcom1.txfirst: txminute=1
|
if Audio.gcom2.lauto and utc[4]%2 == Audio.gcom1.txfirst: txminute=1
|
||||||
if mode.get()[:4]=='JT65' and (Audio.gcom2.ndecoding>0 or \
|
if mode.get()[:4]=='JT65' and (Audio.gcom2.ndecoding>0 or \
|
||||||
(isec>45 and (txminute==0 or Audio.gcom2.monitoring==0) and \
|
(isec>45 and txminute==0 and Audio.gcom2.monitoring==1 and \
|
||||||
Audio.datcom.kkdone!=-99 and Audio.gcom2.ndiskdat!=1)):
|
Audio.datcom.kkdone!=-99 and Audio.gcom2.ndiskdat!=1)):
|
||||||
#Set button bg while decoding
|
#Set button bg while decoding
|
||||||
bc='#66FFFF'
|
bc='#66FFFF'
|
||||||
@ -1078,10 +1084,10 @@ def update():
|
|||||||
f.close()
|
f.close()
|
||||||
except:
|
except:
|
||||||
lines=""
|
lines=""
|
||||||
bmtext.configure(state=NORMAL)
|
msgtext.configure(state=NORMAL)
|
||||||
bmtext.delete('1.0',END)
|
msgtext.delete('1.0',END)
|
||||||
bmtext.insert(END,'Freq DF Pol UTC\n')
|
msgtext.insert(END,'Freq DF Pol UTC\n')
|
||||||
bmtext.insert(END,'----------------------------------------\n')
|
msgtext.insert(END,'----------------------------------------\n')
|
||||||
for i in range(len(lines)):
|
for i in range(len(lines)):
|
||||||
try:
|
try:
|
||||||
nage=int(lines[i][41:])
|
nage=int(lines[i][41:])
|
||||||
@ -1092,8 +1098,8 @@ def update():
|
|||||||
if nage==1: attr='age1'
|
if nage==1: attr='age1'
|
||||||
if nage==2: attr='age2'
|
if nage==2: attr='age2'
|
||||||
if nage>=3: attr='age3'
|
if nage>=3: attr='age3'
|
||||||
bmtext.insert(END,lines[i],attr)
|
msgtext.insert(END,lines[i],attr)
|
||||||
bmtext.see(END)
|
msgtext.see(END)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f=open(appdir+'/bandmap.txt',mode='r')
|
f=open(appdir+'/bandmap.txt',mode='r')
|
||||||
@ -1200,6 +1206,8 @@ filemenu.add_separator()
|
|||||||
filemenu.add('command', label = 'Delete all *.WAV files in RxWav', \
|
filemenu.add('command', label = 'Delete all *.WAV files in RxWav', \
|
||||||
command = delwav)
|
command = delwav)
|
||||||
filemenu.add_separator()
|
filemenu.add_separator()
|
||||||
|
filemenu.add('command', label = 'Erase Band Map and Messages', command = clr_all)
|
||||||
|
filemenu.add_separator()
|
||||||
filemenu.add('command', label = 'Erase ALL65.TXT', command = del_all)
|
filemenu.add('command', label = 'Erase ALL65.TXT', command = del_all)
|
||||||
filemenu.add_separator()
|
filemenu.add_separator()
|
||||||
filemenu.add('command', label = 'Exit', command = quit)
|
filemenu.add('command', label = 'Exit', command = quit)
|
||||||
|
@ -30,6 +30,11 @@ subroutine map65a(newdat)
|
|||||||
|
|
||||||
rewind 11
|
rewind 11
|
||||||
rewind 12
|
rewind 12
|
||||||
|
if(nrw26.ne.0) then
|
||||||
|
print*,'Rewinding 26'
|
||||||
|
rewind 26
|
||||||
|
nrw26=0
|
||||||
|
endif
|
||||||
if(nutc.ne.nutc0) nfile=nfile+1
|
if(nutc.ne.nutc0) nfile=nfile+1
|
||||||
nutc0=nutc
|
nutc0=nutc
|
||||||
nutcdata=nutc
|
nutcdata=nutc
|
||||||
|
Loading…
Reference in New Issue
Block a user