Trying to add FEST-Swing tests.
This commit is contained in:
parent
ec690f8a98
commit
591fb91d17
@ -2,3 +2,4 @@ build/
|
|||||||
\..*sw[op]
|
\..*sw[op]
|
||||||
dist/
|
dist/
|
||||||
staging/
|
staging/
|
||||||
|
target/test-reports
|
||||||
|
24
issues/pit-swing/0019fn5.rst
Normal file
24
issues/pit-swing/0019fn5.rst
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Add the ability to change the Issue text size.
|
||||||
|
=====
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Type a description of the feature here.
|
||||||
|
|
||||||
|
Implementation Notes
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
Optionally, describe any specific implementation notes.
|
||||||
|
|
||||||
|
Solution
|
||||||
|
--------
|
||||||
|
|
||||||
|
How was the feature realized?
|
||||||
|
|
||||||
|
Resolution
|
||||||
|
----------
|
||||||
|
|
||||||
|
Date Created: YYYY-MM-DD
|
||||||
|
Date Resolved: YYYY-MM-DD
|
||||||
|
Delivery: ####
|
4
issues/pit-swing/0020bn5.rst
Normal file
4
issues/pit-swing/0020bn5.rst
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
The auto-generated pit-swing.groovy file needs to be renamed.
|
||||||
|
=============================================================
|
||||||
|
|
||||||
|
Currently, when
|
19
issues/pit-swing/0020tn5.rst
Normal file
19
issues/pit-swing/0020tn5.rst
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
The auto-generated pit-swing.groovy file needs to be renamed.
|
||||||
|
=============================================================
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Currently, when
|
||||||
|
|
||||||
|
Solution
|
||||||
|
--------
|
||||||
|
|
||||||
|
TBD
|
||||||
|
|
||||||
|
Resolution
|
||||||
|
----------
|
||||||
|
|
||||||
|
Date Created: 2010-03-19
|
||||||
|
Date Resolved: YYYY-MM-DD
|
||||||
|
Delivery: 0020
|
@ -1,5 +1,6 @@
|
|||||||
#utf-8
|
#utf-8
|
||||||
#Mon Mar 01 10:39:50 CST 2010
|
#Wed Mar 10 12:10:54 CST 2010
|
||||||
app.version=2.1.0
|
app.version=2.1.0
|
||||||
|
plugins.fest=0.3
|
||||||
app.griffon.version=0.2.1
|
app.griffon.version=0.2.1
|
||||||
app.name=pit-swing
|
app.name=pit-swing
|
||||||
|
@ -1,33 +1,22 @@
|
|||||||
application {
|
application {
|
||||||
title='PitSwing'
|
title="PitSwing"
|
||||||
startupGroups = ['PIT']
|
startupGroups=["PIT"]
|
||||||
|
autoShutdown=true
|
||||||
// Should Griffon exit when no Griffon created frames are showing?
|
|
||||||
autoShutdown = true
|
|
||||||
|
|
||||||
// If you want some non-standard application class, apply it here
|
|
||||||
//frameClass = 'javax.swing.JFrame'
|
|
||||||
}
|
}
|
||||||
mvcGroups {
|
mvcGroups {
|
||||||
// MVC Group for "com.jdbernard.pit.swing.NewIssueDialog"
|
NewIssueDialog {
|
||||||
'NewIssueDialog' {
|
model="com.jdbernard.pit.swing.NewIssueDialogModel"
|
||||||
model = 'com.jdbernard.pit.swing.NewIssueDialogModel'
|
controller="com.jdbernard.pit.swing.NewIssueDialogController"
|
||||||
controller = 'com.jdbernard.pit.swing.NewIssueDialogController'
|
view="com.jdbernard.pit.swing.NewIssueDialogView"
|
||||||
view = 'com.jdbernard.pit.swing.NewIssueDialogView'
|
}
|
||||||
}
|
ProjectPanel {
|
||||||
|
model="com.jdbernard.pit.swing.ProjectPanelModel"
|
||||||
// MVC Group for "com.jdbernard.pit.swing.ProjectPanel"
|
view="com.jdbernard.pit.swing.ProjectPanelView"
|
||||||
'ProjectPanel' {
|
controller="com.jdbernard.pit.swing.ProjectPanelController"
|
||||||
model = 'com.jdbernard.pit.swing.ProjectPanelModel'
|
}
|
||||||
view = 'com.jdbernard.pit.swing.ProjectPanelView'
|
PIT {
|
||||||
controller = 'com.jdbernard.pit.swing.ProjectPanelController'
|
model="com.jdbernard.pit.swing.PITModel"
|
||||||
}
|
view="com.jdbernard.pit.swing.PITView"
|
||||||
|
controller="com.jdbernard.pit.swing.PITController"
|
||||||
// MVC Group for "com.jdbernard.pit.swing.PIT"
|
}
|
||||||
'PIT' {
|
|
||||||
model = 'com.jdbernard.pit.swing.PITModel'
|
|
||||||
view = 'com.jdbernard.pit.swing.PITView'
|
|
||||||
controller = 'com.jdbernard.pit.swing.PITController'
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import com.jdbernard.pit.Issue
|
|||||||
import com.jdbernard.pit.Project
|
import com.jdbernard.pit.Project
|
||||||
import com.jdbernard.pit.Status
|
import com.jdbernard.pit.Status
|
||||||
import groovy.beans.Bindable
|
import groovy.beans.Bindable
|
||||||
|
import java.awt.Font
|
||||||
|
|
||||||
class PITModel {
|
class PITModel {
|
||||||
// filter for projects and issues
|
// filter for projects and issues
|
||||||
@ -24,4 +25,6 @@ class PITModel {
|
|||||||
def projectPanelMVCs = [:]
|
def projectPanelMVCs = [:]
|
||||||
|
|
||||||
def projectIdMap = [:]
|
def projectIdMap = [:]
|
||||||
|
|
||||||
|
@Bindable issueDetailFont = new Font(Font.MONOSPACED, Font.PLAIN, 10)
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ import javax.swing.DefaultComboBoxModel
|
|||||||
import javax.swing.DefaultListModel
|
import javax.swing.DefaultListModel
|
||||||
import javax.swing.JDialog
|
import javax.swing.JDialog
|
||||||
import javax.swing.JFileChooser
|
import javax.swing.JFileChooser
|
||||||
|
import javax.swing.JOptionPane
|
||||||
import net.miginfocom.swing.MigLayout
|
import net.miginfocom.swing.MigLayout
|
||||||
|
|
||||||
import java.awt.Color
|
import java.awt.Color
|
||||||
@ -109,6 +110,21 @@ frame = application(title:'Personal Issue Tracker',
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
separator()
|
||||||
|
|
||||||
|
menuItem('Detail Text Size...',
|
||||||
|
actionPerformed: {
|
||||||
|
def newSize = JOptionPane.showInputDialog(frame,
|
||||||
|
'New text size: ', 'Change Issue Detail Text Size...',
|
||||||
|
JOptionPane.QUESTION_MESSAGE)
|
||||||
|
if (!newSize.isInteger())
|
||||||
|
JOptionPane.showMessageDialog(frame,
|
||||||
|
"$newSize is not a valid size.",
|
||||||
|
'Change Issue Detail Text Size...',
|
||||||
|
JOptionPane.ERROR_MESSAGE)
|
||||||
|
model.issueDetailFont = model.issueDetailFont.deriveFont(
|
||||||
|
newSize.toInteger())
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
menu('Sort') {
|
menu('Sort') {
|
||||||
|
@ -217,6 +217,7 @@ panel = splitPane(orientation: JSplitPane.HORIZONTAL_SPLIT,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
println model.mainMVC?.model?.issueDetailFont
|
||||||
scrollPane(constraints: "bottom") {
|
scrollPane(constraints: "bottom") {
|
||||||
issueTextArea = textArea(
|
issueTextArea = textArea(
|
||||||
wrapStyleWord: true,
|
wrapStyleWord: true,
|
||||||
@ -224,7 +225,8 @@ panel = splitPane(orientation: JSplitPane.HORIZONTAL_SPLIT,
|
|||||||
sourceProperty: 'selected'),
|
sourceProperty: 'selected'),
|
||||||
editable: bind( source: issueList, sourceEvent: 'valueChanged',
|
editable: bind( source: issueList, sourceEvent: 'valueChanged',
|
||||||
sourceValue: { issueList.selectedValue != null }),
|
sourceValue: { issueList.selectedValue != null }),
|
||||||
font: new Font(Font.MONOSPACED, Font.PLAIN, 10),
|
font: bind(source: model.mainMVC.model,
|
||||||
|
property: 'issueDetailFont'),
|
||||||
focusGained: {},
|
focusGained: {},
|
||||||
focusLost: {
|
focusLost: {
|
||||||
if (!issueList?.selectedValue) return
|
if (!issueList?.selectedValue) return
|
||||||
|
@ -12,50 +12,50 @@
|
|||||||
<component name="libraryTable">
|
<component name="libraryTable">
|
||||||
<library name="Griffon 0.2.1">
|
<library name="Griffon 0.2.1">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="jar:///usr/share/griffon/lib/swingx-0.9.3.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/commons-cli-1.0.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/asm-2.2.3.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/ant-nodeps-1.7.1.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/MultipleGradientPaint.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/junit-3.8.2.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/jline-0.9.94.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/ant-junit-1.7.1.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/swingxbuilder-0.1.6-SNAPSHOT.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/swingx-0.9.3.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/groovy-all-1.6.4.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/svnkit-1.2.0.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/ant-trax-1.7.1.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/spring-2.5.6.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/lib/commons-lang-2.4.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/swing-worker.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/swing-worker.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/commons-lang-2.4.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/ant-1.7.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/ant-launcher-1.7.1.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/ant-launcher-1.7.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/gant_groovy1.6-1.6.0.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/gant_groovy1.6-1.6.0.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/asm-2.2.3.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/commons-logging-1.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/commons-cli-1.0.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/groovy-all-1.6.4.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/swingxbuilder-0.1.6-SNAPSHOT.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/jline-0.9.94.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/svnkit-1.2.0.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/log4j-1.2.15.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/log4j-1.2.15.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/ant-nodeps-1.7.1.jar!/" />
|
<root url="jar:///usr/share/griffon/dist/griffon-resources-0.2.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/ant-1.7.1.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/ant-trax-1.7.1.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/commons-logging-1.1.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/ant-junit-1.7.1.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/MultipleGradientPaint.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/spring-2.5.6.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/lib/junit-3.8.2.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/dist/griffon-rt-0.2.1.jar!/" />
|
<root url="jar:///usr/share/griffon/dist/griffon-rt-0.2.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/dist/griffon-resources-0.2.1.jar!/" />
|
|
||||||
|
|
||||||
<root url="jar:///usr/share/griffon/dist/griffon-cli-0.2.1.jar!/" />
|
<root url="jar:///usr/share/griffon/dist/griffon-cli-0.2.1.jar!/" />
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,10 +3,13 @@ if &cp | set nocp | endif
|
|||||||
nmap v :call Screen_Vars()
|
nmap v :call Screen_Vars()
|
||||||
nmap vip
|
nmap vip
|
||||||
vmap "ry :call Send_to_Screen(@r)
|
vmap "ry :call Send_to_Screen(@r)
|
||||||
|
vnoremap :Hexmode
|
||||||
|
nnoremap :Hexmode
|
||||||
let s:cpo_save=&cpo
|
let s:cpo_save=&cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
nmap gx <Plug>NetrwBrowseX
|
nmap gx <Plug>NetrwBrowseX
|
||||||
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
|
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
|
||||||
|
inoremap :Hexmode
|
||||||
let &cpo=s:cpo_save
|
let &cpo=s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
set autoindent
|
set autoindent
|
||||||
@ -42,8 +45,11 @@ badd +3 src/com/jdbernard/pit/swing/IssueListCellRenderer.groovy
|
|||||||
badd +15 src/main/com/jdbernard/pit/swing/IssueListCellRenderer.groovy
|
badd +15 src/main/com/jdbernard/pit/swing/IssueListCellRenderer.groovy
|
||||||
badd +1 griffon-app/lifecycle/Initialize.groovy
|
badd +1 griffon-app/lifecycle/Initialize.groovy
|
||||||
badd +1 griffon-app/models/com/jdbernard/pit/swing/NewIssueDialogModel.groovy
|
badd +1 griffon-app/models/com/jdbernard/pit/swing/NewIssueDialogModel.groovy
|
||||||
badd +0 griffon-app/controllers/com/jdbernard/pit/swing/NewIssueDialogController.groovy
|
badd +1 griffon-app/controllers/com/jdbernard/pit/swing/NewIssueDialogController.groovy
|
||||||
badd +0 griffon-app/views/com/jdbernard/pit/swing/NewIssueDialogView.groovy
|
badd +1 griffon-app/views/com/jdbernard/pit/swing/NewIssueDialogView.groovy
|
||||||
|
badd +0 griffon-app/models/com/jdbernard/pit/swing/ProjectPanelModel.groovy
|
||||||
|
badd +0 griffon-app/views/com/jdbernard/pit/swing/ProjectPanelView.groovy
|
||||||
|
badd +0 griffon-app/controllers/com/jdbernard/pit/swing/ProjectPanelController.groovy
|
||||||
args griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy
|
args griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy
|
||||||
edit griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy
|
edit griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy
|
||||||
set splitbelow splitright
|
set splitbelow splitright
|
||||||
@ -59,9 +65,9 @@ set nosplitbelow
|
|||||||
set nosplitright
|
set nosplitright
|
||||||
wincmd t
|
wincmd t
|
||||||
set winheight=1 winwidth=1
|
set winheight=1 winwidth=1
|
||||||
exe '1resize ' . ((&lines * 21 + 40) / 81)
|
exe '1resize ' . ((&lines * 16 + 30) / 60)
|
||||||
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe '2resize ' . ((&lines * 56 + 40) / 81)
|
exe '2resize ' . ((&lines * 40 + 30) / 60)
|
||||||
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
||||||
argglobal
|
argglobal
|
||||||
@ -160,12 +166,12 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 10) / 21)
|
let s:l = 27 - ((15 * winheight(0) + 8) / 16)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
1
|
27
|
||||||
normal! 030l
|
normal! 0
|
||||||
wincmd w
|
wincmd w
|
||||||
argglobal
|
argglobal
|
||||||
edit griffon-app/views/com/jdbernard/pit/swing/PITView.groovy
|
edit griffon-app/views/com/jdbernard/pit/swing/PITView.groovy
|
||||||
@ -264,12 +270,12 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 40 - ((0 * winheight(0) + 28) / 56)
|
let s:l = 52 - ((0 * winheight(0) + 20) / 40)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
40
|
52
|
||||||
normal! 0
|
normal! 015l
|
||||||
wincmd w
|
wincmd w
|
||||||
argglobal
|
argglobal
|
||||||
edit griffon-app/controllers/com/jdbernard/pit/swing/PITController.groovy
|
edit griffon-app/controllers/com/jdbernard/pit/swing/PITController.groovy
|
||||||
@ -368,19 +374,19 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 11 - ((0 * winheight(0) + 39) / 78)
|
let s:l = 53 - ((42 * winheight(0) + 28) / 57)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
11
|
53
|
||||||
normal! 04l
|
normal! 04l
|
||||||
wincmd w
|
wincmd w
|
||||||
exe '1resize ' . ((&lines * 21 + 40) / 81)
|
exe '1resize ' . ((&lines * 16 + 30) / 60)
|
||||||
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe '2resize ' . ((&lines * 56 + 40) / 81)
|
exe '2resize ' . ((&lines * 40 + 30) / 60)
|
||||||
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
||||||
tabedit griffon-app/models/com/jdbernard/pit/swing/PITModel.groovy
|
tabedit griffon-app/models/com/jdbernard/pit/swing/ProjectPanelModel.groovy
|
||||||
set splitbelow splitright
|
set splitbelow splitright
|
||||||
wincmd _ | wincmd |
|
wincmd _ | wincmd |
|
||||||
vsplit
|
vsplit
|
||||||
@ -394,9 +400,9 @@ set nosplitbelow
|
|||||||
set nosplitright
|
set nosplitright
|
||||||
wincmd t
|
wincmd t
|
||||||
set winheight=1 winwidth=1
|
set winheight=1 winwidth=1
|
||||||
exe '1resize ' . ((&lines * 29 + 40) / 81)
|
exe '1resize ' . ((&lines * 20 + 30) / 60)
|
||||||
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe '2resize ' . ((&lines * 48 + 40) / 81)
|
exe '2resize ' . ((&lines * 36 + 30) / 60)
|
||||||
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
||||||
argglobal
|
argglobal
|
||||||
@ -495,15 +501,15 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 14) / 29)
|
let s:l = 25 - ((19 * winheight(0) + 10) / 20)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
1
|
25
|
||||||
normal! 0
|
normal! 0
|
||||||
wincmd w
|
wincmd w
|
||||||
argglobal
|
argglobal
|
||||||
edit griffon-app/views/com/jdbernard/pit/swing/PITView.groovy
|
edit griffon-app/views/com/jdbernard/pit/swing/ProjectPanelView.groovy
|
||||||
setlocal keymap=
|
setlocal keymap=
|
||||||
setlocal noarabic
|
setlocal noarabic
|
||||||
setlocal autoindent
|
setlocal autoindent
|
||||||
@ -599,15 +605,15 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 18 - ((17 * winheight(0) + 24) / 48)
|
let s:l = 143 - ((24 * winheight(0) + 18) / 36)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
18
|
143
|
||||||
normal! 0
|
normal! 0
|
||||||
wincmd w
|
wincmd w
|
||||||
argglobal
|
argglobal
|
||||||
edit griffon-app/controllers/com/jdbernard/pit/swing/PITController.groovy
|
edit griffon-app/controllers/com/jdbernard/pit/swing/ProjectPanelController.groovy
|
||||||
setlocal keymap=
|
setlocal keymap=
|
||||||
setlocal noarabic
|
setlocal noarabic
|
||||||
setlocal autoindent
|
setlocal autoindent
|
||||||
@ -703,16 +709,17 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 39) / 78)
|
let s:l = 93 - ((11 * winheight(0) + 28) / 57)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
1
|
93
|
||||||
normal! 0
|
normal! 032l
|
||||||
wincmd w
|
wincmd w
|
||||||
exe '1resize ' . ((&lines * 29 + 40) / 81)
|
3wincmd w
|
||||||
|
exe '1resize ' . ((&lines * 20 + 30) / 60)
|
||||||
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe '2resize ' . ((&lines * 48 + 40) / 81)
|
exe '2resize ' . ((&lines * 36 + 30) / 60)
|
||||||
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
||||||
tabedit griffon-app/models/com/jdbernard/pit/swing/NewIssueDialogModel.groovy
|
tabedit griffon-app/models/com/jdbernard/pit/swing/NewIssueDialogModel.groovy
|
||||||
@ -729,9 +736,9 @@ set nosplitbelow
|
|||||||
set nosplitright
|
set nosplitright
|
||||||
wincmd t
|
wincmd t
|
||||||
set winheight=1 winwidth=1
|
set winheight=1 winwidth=1
|
||||||
exe '1resize ' . ((&lines * 24 + 40) / 81)
|
exe '1resize ' . ((&lines * 17 + 30) / 60)
|
||||||
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe '2resize ' . ((&lines * 53 + 40) / 81)
|
exe '2resize ' . ((&lines * 39 + 30) / 60)
|
||||||
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
||||||
argglobal
|
argglobal
|
||||||
@ -830,7 +837,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 12) / 24)
|
let s:l = 1 - ((0 * winheight(0) + 8) / 17)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -934,7 +941,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 26) / 53)
|
let s:l = 1 - ((0 * winheight(0) + 19) / 39)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -1038,17 +1045,17 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 39) / 78)
|
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
1
|
1
|
||||||
normal! 0
|
normal! 0
|
||||||
wincmd w
|
wincmd w
|
||||||
2wincmd w
|
3wincmd w
|
||||||
exe '1resize ' . ((&lines * 24 + 40) / 81)
|
exe '1resize ' . ((&lines * 17 + 30) / 60)
|
||||||
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe '2resize ' . ((&lines * 53 + 40) / 81)
|
exe '2resize ' . ((&lines * 39 + 30) / 60)
|
||||||
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 2resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
exe 'vert 3resize ' . ((&columns * 90 + 91) / 182)
|
||||||
tabedit griffon-app/conf/Application.groovy
|
tabedit griffon-app/conf/Application.groovy
|
||||||
@ -1159,7 +1166,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 16 - ((15 * winheight(0) + 39) / 78)
|
let s:l = 16 - ((11 * winheight(0) + 28) / 57)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -1263,14 +1270,14 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 56 - ((55 * winheight(0) + 39) / 78)
|
let s:l = 56 - ((40 * winheight(0) + 28) / 57)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
56
|
56
|
||||||
normal! 0
|
normal! 0
|
||||||
wincmd w
|
wincmd w
|
||||||
2wincmd w
|
3wincmd w
|
||||||
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
|
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
|
||||||
tabedit griffon-app/lifecycle/Initialize.groovy
|
tabedit griffon-app/lifecycle/Initialize.groovy
|
||||||
@ -1375,14 +1382,14 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
let s:l = 1 - ((0 * winheight(0) + 29) / 58)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
1
|
1
|
||||||
normal! 0
|
normal! 0
|
||||||
2wincmd w
|
3wincmd w
|
||||||
tabnext 3
|
tabnext 2
|
||||||
if exists('s:wipebuf')
|
if exists('s:wipebuf')
|
||||||
silent exe 'bwipe ' . s:wipebuf
|
silent exe 'bwipe ' . s:wipebuf
|
||||||
endif
|
endif
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
package com.jdbernard.pit.swing
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import org.fest.swing.fixture.*
|
||||||
|
import griffon.test.FestSwingTestCase
|
||||||
|
|
||||||
|
import javax.swing.JDialog
|
||||||
|
|
||||||
|
class NewIssueDialogTestTests extends FestSwingTestCase {
|
||||||
|
// instance variables:
|
||||||
|
// app - current application
|
||||||
|
// window - value returned from initWindow()
|
||||||
|
// defaults to app.appFrames[0]
|
||||||
|
|
||||||
|
JDialog newIssueDialog
|
||||||
|
|
||||||
|
void testSomething() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void onSetUp() throws Exception {
|
||||||
|
println app.appFrames
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void onTearDown() throws Exception { }
|
||||||
|
|
||||||
|
/*
|
||||||
|
protected FrameFixture initWindow() {
|
||||||
|
return new FrameFixture(app.appFrames[0])
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user