Beginning update to add GUI logging.

This commit is contained in:
Jonathan Bernard 2010-04-02 05:43:04 -05:00
parent 5b3e2066a2
commit dbb2121525
11 changed files with 547 additions and 39 deletions

View File

@ -4,6 +4,13 @@ application {
autoShutdown=true
}
mvcGroups {
// MVC Group for "com.jdbernard.timestamper.LogDialog"
'LogDialog' {
model = 'com.jdbernard.timestamper.LogDialogModel'
controller = 'com.jdbernard.timestamper.LogDialogController'
view = 'com.jdbernard.timestamper.LogDialogView'
}
TimeStamperMain {
model="com.jdbernard.timestamper.TimeStamperMainModel"
view="com.jdbernard.timestamper.TimeStamperMainView"

View File

@ -0,0 +1,16 @@
package com.jdbernard.timestamper
class LogDialogController {
// these will be injected by Griffon
def model
def view
void mvcGroupInit(Map args) {
// this method is called after model and view are injected
}
/*
def action = { evt = null ->
}
*/
}

View File

@ -14,7 +14,7 @@ class TimeStamperMainController {
def configFile
logger.traceIfEnabled("Initializing TimeStamperMain MVC...")
logger.traceIfEnabled {"Initializing TimeStamperMain MVC..."}
def thisMVC = ['model': model, 'view': view, 'controller': this]
@ -30,8 +30,8 @@ class TimeStamperMainController {
configFile = new File(userHomeDir, ".timestamperrc")
if (!configFile.exists()) configFile.createNewFile()
logger.traceIfEnabled("Reading configuration from "
+ "'${configFile.name}'")
logger.traceIfEnabled { "Reading configuration from "
+ "'${configFile.name}'"}
try { configFile.withInputStream { prop.load(it) } }
catch (IOException ioe) {
@ -47,7 +47,7 @@ class TimeStamperMainController {
model.config.setProperty('lastUsed', lastUsed)
}
logger.traceIfEnabled("Reading Timeline properties from '${lastUsed}'")
logger.traceIfEnabled {"Reading Timeline properties from '${lastUsed}'"}
model.timelinePropertiesFile = new File(lastUsed)
if (!model.timelinePropertiesFile.exists())
@ -77,7 +77,7 @@ class TimeStamperMainController {
def exitGracefully = { evt = null ->
logger.traceIfEnabled("Exiting gracefully.")
logger.traceIfEnabled {"Exiting gracefully."}
// save config
logger.debugIfEnabled("Config: ${model.config}")
@ -91,7 +91,7 @@ class TimeStamperMainController {
// save timeline and properties
model.timelineProperties.save()
logger.traceIfEnabled("Completed graceful shutdown.")
logger.traceIfEnabled {"Completed graceful shutdown."}
app.shutdown()
}

View File

@ -24,16 +24,16 @@ import org.apache.log4j.Logger
GriffonPlatformHelper.tweakForNativePlatform(app)
SwingBuilder.lookAndFeel('system', 'nimbus', ['metal', [boldFonts: false]])
Logger.metaClass.traceIfEnabled = { String message, Throwable t = null ->
Logger.metaClass.traceIfEnabled = { Closure c, Throwable t = null ->
if (delegate.isTraceEnabled()) {
if (t != null) delegate.trace(message, t)
else delegate.trace(message)
if (t != null) delegate.trace(c.call(), t)
else delegate.trace(c.call())
}
}
Logger.metaClass.debugIfEnabled = { String message, Throwable t = null ->
Logger.metaClass.debugIfEnabled = { Closure c, Throwable t = null ->
if (delegate.isDebugEnabled()) {
if (t != null) delegate.debug(message, t)
else delegate.debug(message)
if (t != null) delegate.debug(c.call(), t)
else delegate.debug(c.call())
}
}

View File

@ -0,0 +1,7 @@
package com.jdbernard.timestamper
import groovy.beans.Bindable
class LogDialogModel {
def mainMVC
}

View File

@ -51,7 +51,7 @@ badd +1 controllers/com/jdbernard/timestamper/NotesDialogController.groovy
badd +1 views/com/jdbernard/timestamper/PunchcardDialogView.groovy
badd +7 models/com/jdbernard/timestamper/PunchcardDialogModel.groovy
badd +1 controllers/com/jdbernard/timestamper/PunchcardDialogController.groovy
badd +1 ../src/main/com/jdbernard/timestamper/gui/TimelineDayDisplay.java
badd +215 ../src/main/com/jdbernard/timestamper/gui/TimelineDayDisplay.java
badd +8 ../src/main/com/jdbernard/timestamper/gui/WindowInformation.groovy
badd +28 conf/Application.groovy
badd +1 conf/Builder.groovy
@ -61,7 +61,11 @@ badd +1 actions/com/jdbernard/timestamper/TimeStamperMainActions.groovy
badd +24 lifecycle/Initialize.groovy
badd +1 conf/Events.groovy
badd +13 resources/log4j.properties
badd +95 ../src/main/com/jdbernard/timestamper/GUIUtil.groovy
badd +1 ../src/main/com/jdbernard/timestamper/GUIUtil.groovy
badd +1 controllers/com/jdbernard/timestamper/LogDialogController.groovy
badd +1 models/com/jdbernard/timestamper/LogDialogModel.groovy
badd +0 views/com/jdbernard/timestamper/LogDialogView.groovy
badd +0 ../src/main/com/jdbernard/GUIUtil.groovy
args views/com/jdbernard/timestamper/TimeStamperMainView.groovy
edit views/com/jdbernard/timestamper/TimeStamperMainView.groovy
set splitbelow splitright
@ -178,12 +182,12 @@ setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 92 - ((28 * winheight(0) + 39) / 78)
let s:l = 110 - ((46 * winheight(0) + 39) / 78)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
92
normal! 033l
110
normal! 011l
wincmd w
argglobal
edit models/com/jdbernard/timestamper/TimeStamperMainModel.groovy
@ -386,13 +390,14 @@ setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 38 - ((0 * winheight(0) + 27) / 54)
let s:l = 34 - ((17 * winheight(0) + 27) / 54)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
38
normal! 033l
34
normal! 036l
wincmd w
3wincmd w
exe 'vert 1resize ' . ((&columns * 90 + 91) / 182)
exe '2resize ' . ((&lines * 23 + 40) / 81)
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
@ -513,12 +518,12 @@ setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 39) / 78)
let s:l = 49 - ((48 * winheight(0) + 39) / 78)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1
normal! 0
49
normal! 025l
wincmd w
argglobal
edit models/com/jdbernard/timestamper/NotesDialogModel.groovy
@ -728,6 +733,7 @@ normal! zt
1
normal! 0
wincmd w
3wincmd w
exe 'vert 1resize ' . ((&columns * 90 + 91) / 182)
exe '2resize ' . ((&lines * 12 + 40) / 81)
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
@ -848,12 +854,12 @@ setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 7 - ((4 * winheight(0) + 39) / 78)
let s:l = 54 - ((51 * winheight(0) + 39) / 78)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
7
normal! 04l
54
normal! 011l
wincmd w
argglobal
edit models/com/jdbernard/timestamper/PunchcardDialogModel.groovy
@ -1063,17 +1069,360 @@ normal! zt
1
normal! 0
wincmd w
3wincmd w
exe 'vert 1resize ' . ((&columns * 90 + 91) / 182)
exe '2resize ' . ((&lines * 12 + 40) / 81)
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
exe '3resize ' . ((&lines * 65 + 40) / 81)
exe 'vert 3resize ' . ((&columns * 91 + 91) / 182)
tabedit conf/Application.groovy
tabedit views/com/jdbernard/timestamper/LogDialogView.groovy
set splitbelow splitright
wincmd _ | wincmd |
vsplit
1wincmd h
wincmd w
wincmd _ | wincmd |
split
1wincmd k
wincmd w
set nosplitbelow
set nosplitright
wincmd t
set winheight=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
exe '2resize ' . ((&lines * 14 + 40) / 81)
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
exe '3resize ' . ((&lines * 63 + 40) / 81)
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
argglobal
setlocal keymap=
setlocal noarabic
setlocal autoindent
setlocal balloonexpr=
setlocal nobinary
setlocal bufhidden=
setlocal buflisted
setlocal buftype=
setlocal nocindent
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
setlocal cinoptions=
setlocal cinwords=if,else,while,do,for,switch
setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
setlocal commentstring=/*%s*/
setlocal complete=.,w,b,u,t,i
setlocal completefunc=
setlocal nocopyindent
setlocal nocursorcolumn
setlocal nocursorline
setlocal define=
setlocal dictionary=
setlocal nodiff
setlocal equalprg=
setlocal errorformat=
setlocal expandtab
if &filetype != 'groovy'
setlocal filetype=groovy
endif
setlocal foldcolumn=0
setlocal foldenable
setlocal foldexpr=0
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldmarker={{{,}}}
setlocal foldmethod=manual
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal foldtext=foldtext()
setlocal formatexpr=
setlocal formatoptions=tcq
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
setlocal grepprg=
setlocal iminsert=0
setlocal imsearch=0
setlocal include=
setlocal includeexpr=
setlocal indentexpr=
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
setlocal noinfercase
setlocal iskeyword=@,48-57,_,192-255
setlocal keywordprg=
setlocal nolinebreak
setlocal nolisp
setlocal nolist
setlocal makeprg=
setlocal matchpairs=(:),{:},[:]
setlocal nomodeline
setlocal modifiable
setlocal nrformats=octal,hex
set number
setlocal number
setlocal numberwidth=4
setlocal omnifunc=
setlocal path=
setlocal nopreserveindent
setlocal nopreviewwindow
setlocal quoteescape=\\
setlocal noreadonly
setlocal norightleft
setlocal rightleftcmd=search
setlocal noscrollbind
setlocal shiftwidth=4
setlocal noshortname
setlocal nosmartindent
setlocal softtabstop=0
setlocal nospell
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
setlocal spellfile=
setlocal spelllang=en
setlocal statusline=
setlocal suffixesadd=
setlocal swapfile
setlocal synmaxcol=3000
if &syntax != 'groovy'
setlocal syntax=groovy
endif
setlocal tabstop=4
setlocal tags=
setlocal textwidth=0
setlocal thesaurus=
setlocal nowinfixheight
setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 6 - ((5 * winheight(0) + 39) / 78)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
6
normal! 04l
wincmd w
argglobal
edit models/com/jdbernard/timestamper/LogDialogModel.groovy
setlocal keymap=
setlocal noarabic
setlocal autoindent
setlocal balloonexpr=
setlocal nobinary
setlocal bufhidden=
setlocal buflisted
setlocal buftype=
setlocal nocindent
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
setlocal cinoptions=
setlocal cinwords=if,else,while,do,for,switch
setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
setlocal commentstring=/*%s*/
setlocal complete=.,w,b,u,t,i
setlocal completefunc=
setlocal nocopyindent
setlocal nocursorcolumn
setlocal nocursorline
setlocal define=
setlocal dictionary=
setlocal nodiff
setlocal equalprg=
setlocal errorformat=
setlocal expandtab
if &filetype != 'groovy'
setlocal filetype=groovy
endif
setlocal foldcolumn=0
setlocal foldenable
setlocal foldexpr=0
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldmarker={{{,}}}
setlocal foldmethod=manual
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal foldtext=foldtext()
setlocal formatexpr=
setlocal formatoptions=tcq
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
setlocal grepprg=
setlocal iminsert=0
setlocal imsearch=0
setlocal include=
setlocal includeexpr=
setlocal indentexpr=
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
setlocal noinfercase
setlocal iskeyword=@,48-57,_,192-255
setlocal keywordprg=
setlocal nolinebreak
setlocal nolisp
setlocal nolist
setlocal makeprg=
setlocal matchpairs=(:),{:},[:]
setlocal nomodeline
setlocal modifiable
setlocal nrformats=octal,hex
set number
setlocal number
setlocal numberwidth=4
setlocal omnifunc=
setlocal path=
setlocal nopreserveindent
setlocal nopreviewwindow
setlocal quoteescape=\\
setlocal noreadonly
setlocal norightleft
setlocal rightleftcmd=search
setlocal noscrollbind
setlocal shiftwidth=4
setlocal noshortname
setlocal nosmartindent
setlocal softtabstop=0
setlocal nospell
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
setlocal spellfile=
setlocal spelllang=en
setlocal statusline=
setlocal suffixesadd=
setlocal swapfile
setlocal synmaxcol=3000
if &syntax != 'groovy'
setlocal syntax=groovy
endif
setlocal tabstop=4
setlocal tags=
setlocal textwidth=0
setlocal thesaurus=
setlocal nowinfixheight
setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 6 - ((5 * winheight(0) + 7) / 14)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
6
normal! 014l
wincmd w
argglobal
edit controllers/com/jdbernard/timestamper/LogDialogController.groovy
setlocal keymap=
setlocal noarabic
setlocal autoindent
setlocal balloonexpr=
setlocal nobinary
setlocal bufhidden=
setlocal buflisted
setlocal buftype=
setlocal nocindent
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
setlocal cinoptions=
setlocal cinwords=if,else,while,do,for,switch
setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
setlocal commentstring=/*%s*/
setlocal complete=.,w,b,u,t,i
setlocal completefunc=
setlocal nocopyindent
setlocal nocursorcolumn
setlocal nocursorline
setlocal define=
setlocal dictionary=
setlocal nodiff
setlocal equalprg=
setlocal errorformat=
setlocal expandtab
if &filetype != 'groovy'
setlocal filetype=groovy
endif
setlocal foldcolumn=0
setlocal foldenable
setlocal foldexpr=0
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldmarker={{{,}}}
setlocal foldmethod=manual
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal foldtext=foldtext()
setlocal formatexpr=
setlocal formatoptions=tcq
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
setlocal grepprg=
setlocal iminsert=0
setlocal imsearch=0
setlocal include=
setlocal includeexpr=
setlocal indentexpr=
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
setlocal noinfercase
setlocal iskeyword=@,48-57,_,192-255
setlocal keywordprg=
setlocal nolinebreak
setlocal nolisp
setlocal nolist
setlocal makeprg=
setlocal matchpairs=(:),{:},[:]
setlocal nomodeline
setlocal modifiable
setlocal nrformats=octal,hex
set number
setlocal number
setlocal numberwidth=4
setlocal omnifunc=
setlocal path=
setlocal nopreserveindent
setlocal nopreviewwindow
setlocal quoteescape=\\
setlocal noreadonly
setlocal norightleft
setlocal rightleftcmd=search
setlocal noscrollbind
setlocal shiftwidth=4
setlocal noshortname
setlocal nosmartindent
setlocal softtabstop=0
setlocal nospell
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
setlocal spellfile=
setlocal spelllang=en
setlocal statusline=
setlocal suffixesadd=
setlocal swapfile
setlocal synmaxcol=3000
if &syntax != 'groovy'
setlocal syntax=groovy
endif
setlocal tabstop=4
setlocal tags=
setlocal textwidth=0
setlocal thesaurus=
setlocal nowinfixheight
setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 3 - ((2 * winheight(0) + 31) / 63)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
3
normal! 0
wincmd w
3wincmd w
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
exe '2resize ' . ((&lines * 14 + 40) / 81)
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
exe '3resize ' . ((&lines * 63 + 40) / 81)
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
tabedit conf/Application.groovy
set splitbelow splitright
wincmd _ | wincmd |
vsplit
1wincmd h
wincmd w
set nosplitbelow
set nosplitright
wincmd t
set winheight=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
argglobal
setlocal keymap=
setlocal noarabic
@ -1170,12 +1519,120 @@ setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 28 - ((24 * winheight(0) + 39) / 79)
let s:l = 28 - ((24 * winheight(0) + 39) / 78)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
28
normal! 08l
wincmd w
argglobal
edit lifecycle/Initialize.groovy
setlocal keymap=
setlocal noarabic
setlocal autoindent
setlocal balloonexpr=
setlocal nobinary
setlocal bufhidden=
setlocal buflisted
setlocal buftype=
setlocal nocindent
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
setlocal cinoptions=
setlocal cinwords=if,else,while,do,for,switch
setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
setlocal commentstring=/*%s*/
setlocal complete=.,w,b,u,t,i
setlocal completefunc=
setlocal nocopyindent
setlocal nocursorcolumn
setlocal nocursorline
setlocal define=
setlocal dictionary=
setlocal nodiff
setlocal equalprg=
setlocal errorformat=
setlocal expandtab
if &filetype != 'groovy'
setlocal filetype=groovy
endif
setlocal foldcolumn=0
setlocal foldenable
setlocal foldexpr=0
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldmarker={{{,}}}
setlocal foldmethod=manual
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal foldtext=foldtext()
setlocal formatexpr=
setlocal formatoptions=tcq
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
setlocal grepprg=
setlocal iminsert=0
setlocal imsearch=0
setlocal include=
setlocal includeexpr=
setlocal indentexpr=
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
setlocal noinfercase
setlocal iskeyword=@,48-57,_,192-255
setlocal keywordprg=
setlocal nolinebreak
setlocal nolisp
setlocal nolist
setlocal makeprg=
setlocal matchpairs=(:),{:},[:]
setlocal nomodeline
setlocal modifiable
setlocal nrformats=octal,hex
set number
setlocal number
setlocal numberwidth=4
setlocal omnifunc=
setlocal path=
setlocal nopreserveindent
setlocal nopreviewwindow
setlocal quoteescape=\\
setlocal noreadonly
setlocal norightleft
setlocal rightleftcmd=search
setlocal noscrollbind
setlocal shiftwidth=4
setlocal noshortname
setlocal nosmartindent
setlocal softtabstop=0
setlocal nospell
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
setlocal spellfile=
setlocal spelllang=en
setlocal statusline=
setlocal suffixesadd=
setlocal swapfile
setlocal synmaxcol=3000
if &syntax != 'groovy'
setlocal syntax=groovy
endif
setlocal tabstop=4
setlocal tags=
setlocal textwidth=0
setlocal thesaurus=
setlocal nowinfixheight
setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 37 - ((36 * winheight(0) + 39) / 78)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
37
normal! 035l
wincmd w
3wincmd w
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
tabedit ../src/main/com/jdbernard/timestamper/gui/TimelineDayDisplay.java
set splitbelow splitright
wincmd _ | wincmd |
@ -1186,8 +1643,8 @@ set nosplitbelow
set nosplitright
wincmd t
set winheight=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 90 + 91) / 182)
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
argglobal
setlocal keymap=
setlocal noarabic
@ -1293,7 +1750,7 @@ normal zc
normal zc
76
normal zc
let s:l = 215 - ((188 * winheight(0) + 39) / 78)
let s:l = 215 - ((190 * winheight(0) + 39) / 78)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -1301,7 +1758,7 @@ normal! zt
normal! 0
wincmd w
argglobal
edit ../src/main/com/jdbernard/timestamper/GUIUtil.groovy
edit ../src/main/com/jdbernard/GUIUtil.groovy
setlocal keymap=
setlocal noarabic
setlocal autoindent
@ -1358,7 +1815,7 @@ setlocal nolisp
setlocal nolist
setlocal makeprg=
setlocal matchpairs=(:),{:},[:]
setlocal modeline
setlocal nomodeline
setlocal modifiable
setlocal nrformats=octal,hex
set number
@ -1404,9 +1861,10 @@ normal! zt
1
normal! 0
wincmd w
exe 'vert 1resize ' . ((&columns * 90 + 91) / 182)
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
tabnext 4
3wincmd w
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
tabnext 1
if exists('s:wipebuf')
silent exe 'bwipe ' . s:wipebuf
endif

View File

@ -0,0 +1,10 @@
package com.jdbernard.timestamper
import javax.swing.JDialog
dialog = dialog(new JDialog(model.mainMVC.view.frame),
title: 'Error Messages...',
modal: false) {
logger.traceIfEnabled { "Building LogDialog view." }
}

View File

@ -46,7 +46,7 @@ dialog = dialog(new JDialog(model.mainMVC.view.frame),
return p
} else return dialog.location })
) {
logger.traceIfEnabled('Building NotesDialog GUI')
logger.traceIfEnabled {'Building NotesDialog GUI'}
panel(
border:lineBorder(color: Color.BLACK, thickness:1, parent:true),
layout: new MigLayout('insets 10 10 10 10, fill')

View File

@ -51,7 +51,7 @@ dialog = dialog(new JDialog(model.mainMVC.view.frame),
return p
} else return dialog.location })
) {
logger.traceIfEnabled('Building PunchcardDialog GUI')
logger.traceIfEnabled {'Building PunchcardDialog GUI'}
panel(
border:lineBorder(color: Color.BLACK, thickness:1, parent:true),
layout: new MigLayout('fill, insets 10 10 10 10',

View File

@ -107,7 +107,7 @@ frame = application(title:'TimeStamper',
imageIcon('/appointment-new-16x16.png').image],
componentMoved: { evt -> model.absoluteLocation = frame.location }
) {
logger.traceIfEnabled('Building TimeStamperMain GUI')
logger.traceIfEnabled {'Building TimeStamperMain GUI'}
panel(
border:lineBorder(color:Color.BLACK, thickness:1, parent:true),
layout: new MigLayout('insets 0 5 0 0, fill','', '[]0[]0[]'),

View File

@ -0,0 +1,10 @@
import griffon.util.IGriffonApplication
class LogDialogTests extends GroovyTestCase {
IGriffonApplication app
void testSomething() {
}
}