diff --git a/pit-swing/griffon-app/conf/Application.groovy b/pit-swing/griffon-app/conf/Application.groovy index e82ae82..ab29ae1 100644 --- a/pit-swing/griffon-app/conf/Application.groovy +++ b/pit-swing/griffon-app/conf/Application.groovy @@ -9,6 +9,13 @@ application { //frameClass = 'javax.swing.JFrame' } mvcGroups { + // MVC Group for "com.jdbernard.pit.swing.PIT" + 'PIT' { + model = 'com.jdbernard.pit.swing.PITModel' + controller = 'com.jdbernard.pit.swing.PITController' + view = 'com.jdbernard.pit.swing.PITView' + } + // MVC Group for "pit-swing" 'pit-swing' { model = 'PitSwingModel' diff --git a/pit-swing/griffon-app/controllers/PitSwingController.groovy b/pit-swing/griffon-app/controllers/com/jdbernard/pit/swing/PITController.groovy similarity index 80% rename from pit-swing/griffon-app/controllers/PitSwingController.groovy rename to pit-swing/griffon-app/controllers/com/jdbernard/pit/swing/PITController.groovy index f647a5d..1b1eebf 100644 --- a/pit-swing/griffon-app/controllers/PitSwingController.groovy +++ b/pit-swing/griffon-app/controllers/com/jdbernard/pit/swing/PITController.groovy @@ -1,4 +1,6 @@ -class PitSwingController { +package com.jdbernard.pit.swing + +class PITController { // these will be injected by Griffon def model def view diff --git a/pit-swing/griffon-app/models/PitSwingModel.groovy b/pit-swing/griffon-app/models/PitSwingModel.groovy deleted file mode 100644 index 84556de..0000000 --- a/pit-swing/griffon-app/models/PitSwingModel.groovy +++ /dev/null @@ -1,5 +0,0 @@ -import groovy.beans.Bindable - -class PitSwingModel { - // @Bindable String propName -} \ No newline at end of file diff --git a/pit-swing/griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy b/pit-swing/griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy new file mode 100644 index 0000000..48205af --- /dev/null +++ b/pit-swing/griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy @@ -0,0 +1,8 @@ +package com.jdbernard.pit.swing + +import com.jdbernard.pit.Project +import groovy.beans.Bindable + +class PITModel { + @Bindable Project rootProject +} diff --git a/pit-swing/griffon-app/views/PitSwingView.groovy b/pit-swing/griffon-app/views/com/jdbernard/pit/swing/PITView.groovy similarity index 55% rename from pit-swing/griffon-app/views/PitSwingView.groovy rename to pit-swing/griffon-app/views/com/jdbernard/pit/swing/PITView.groovy index 03be85c..3eeda81 100644 --- a/pit-swing/griffon-app/views/PitSwingView.groovy +++ b/pit-swing/griffon-app/views/com/jdbernard/pit/swing/PITView.groovy @@ -1,4 +1,9 @@ -application(title:'pit-swing', +package com.jdbernard.pit.swing + +import net.miginfocom.swing.MigLayout + +frame = application(title:'Personal Issue Tracker', + locationRelativeTo: null, //size:[320,480], pack:true, //location:[50,50], @@ -8,6 +13,8 @@ application(title:'pit-swing', imageIcon('/griffon-icon-32x32.png').image, imageIcon('/griffon-icon-16x16.png').image] ) { - // add content here - label('Content Goes Here') // deleteme + // MENU GOES HERE + panel(layout: new MigLayout('insets 5 5 5 5')) { + scrollPane() + } } diff --git a/pit-swing/lib/miglayout-3.7.1-swing.jar b/pit-swing/lib/miglayout-3.7.1-swing.jar new file mode 100644 index 0000000..5a762c8 Binary files /dev/null and b/pit-swing/lib/miglayout-3.7.1-swing.jar differ diff --git a/pit-swing/lib/pit-1.1.4.jar b/pit-swing/lib/pit-1.1.4.jar new file mode 100644 index 0000000..8dc6a2a Binary files /dev/null and b/pit-swing/lib/pit-1.1.4.jar differ diff --git a/pit-swing/session.vim b/pit-swing/session.vim new file mode 100644 index 0000000..3f03cf0 --- /dev/null +++ b/pit-swing/session.vim @@ -0,0 +1,388 @@ +let SessionLoad = 1 +if &cp | set nocp | endif +nmap v :call Screen_Vars() +nmap  vip +vmap  "ry :call Send_to_Screen(@r) +let s:cpo_save=&cpo +set cpo&vim +nmap gx NetrwBrowseX +nnoremap NetrwBrowseX :call netrw#NetrwBrowseX(expand(""),0) +let &cpo=s:cpo_save +unlet s:cpo_save +set autoindent +set backspace=indent,eol,start +set expandtab +set fileencodings=ucs-bom,utf-8,default,latin1 +set helplang=en +set history=50 +set hlsearch +set incsearch +set nomodeline +set printoptions=paper:letter +set ruler +set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim72,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after +set shiftwidth=4 +set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc +set tabstop=4 +let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 +let v:this_session=expand(":p") +silent only +cd ~/projects/personal-issue-tracker/pit-swing +if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' + let s:wipebuf = bufnr('%') +endif +set shortmess=aoO +badd +7 griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy +badd +0 griffon-app/controllers/com/jdbernard/pit/swing/PITController.groovy +badd +18 griffon-app/views/com/jdbernard/pit/swing/PITView.groovy +args griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy +edit griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy +set splitbelow splitright +wincmd _ | wincmd | +vsplit +1wincmd h +wincmd _ | wincmd | +split +1wincmd k +wincmd w +wincmd w +set nosplitbelow +set nosplitright +wincmd t +set winheight=1 winwidth=1 +exe '1resize ' . ((&lines * 19 + 40) / 81) +exe 'vert 1resize ' . ((&columns * 91 + 91) / 182) +exe '2resize ' . ((&lines * 59 + 40) / 81) +exe 'vert 2resize ' . ((&columns * 91 + 91) / 182) +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=2 +setlocal imsearch=2 +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 = 1 - ((0 * winheight(0) + 9) / 19) +if s:l < 1 | let s:l = 1 | endif +exe s:l +normal! zt +1 +normal! 030l +wincmd w +argglobal +edit griffon-app/models/com/jdbernard/pit/swing/PITModel.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=2 +setlocal imsearch=2 +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 = 1 - ((0 * winheight(0) + 29) / 59) +if s:l < 1 | let s:l = 1 | endif +exe s:l +normal! zt +1 +normal! 030l +wincmd w +argglobal +edit griffon-app/controllers/com/jdbernard/pit/swing/PITController.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=2 +setlocal imsearch=2 +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 = 1 - ((0 * winheight(0) + 39) / 79) +if s:l < 1 | let s:l = 1 | endif +exe s:l +normal! zt +1 +normal! 0 +wincmd w +2wincmd w +exe '1resize ' . ((&lines * 19 + 40) / 81) +exe 'vert 1resize ' . ((&columns * 91 + 91) / 182) +exe '2resize ' . ((&lines * 59 + 40) / 81) +exe 'vert 2resize ' . ((&columns * 91 + 91) / 182) +exe 'vert 3resize ' . ((&columns * 90 + 91) / 182) +tabnext 1 +if exists('s:wipebuf') + silent exe 'bwipe ' . s:wipebuf +endif +unlet! s:wipebuf +set winheight=1 winwidth=20 shortmess=filnxtToO +let s:sx = expand(":p:r")."x.vim" +if file_readable(s:sx) + exe "source " . fnameescape(s:sx) +endif +let &so = s:so_save | let &siso = s:siso_save +doautoall SessionLoadPost +unlet SessionLoad +" vim: set ft=vim : diff --git a/pit-swing/test/integration/PITTests.groovy b/pit-swing/test/integration/PITTests.groovy new file mode 100644 index 0000000..67250cd --- /dev/null +++ b/pit-swing/test/integration/PITTests.groovy @@ -0,0 +1,10 @@ +import griffon.util.IGriffonApplication + +class PITTests extends GroovyTestCase { + + IGriffonApplication app + + void testSomething() { + + } +}