In the middle of updating pit-swing.

This commit is contained in:
Jonathan Bernard
2010-03-08 21:33:49 -06:00
parent a3f9f4b291
commit cd8cdf02a4
16 changed files with 660 additions and 427 deletions

View File

@ -0,0 +1,14 @@
package com.jdbernard.pit.swing
import com.jdbernard.pit.Category
import com.jdbernard.pit.Status
import groovy.beans.Bindable
class NewIssueDialogModel {
@Bindable boolean accept
String text
Category category
Status status
int priority
}

View File

@ -8,27 +8,20 @@ import com.jdbernard.pit.Status
import groovy.beans.Bindable
class PITModel {
@Bindable Project rootProject
// cache the ListModels
def projectListModels = [:]
// filter for projects and issues
Filter filter = new Filter(categories: [],
status: [Status.NEW, Status.VALIDATION_REQUIRED])
@Bindable Project popupProject = null
@Bindable Project selectedProject = null
@Bindable Issue popupIssue = null
// configurable exntension points
// ==============================
@Bindable def issueListRenderer
def issueListRenderer
// map of category -> issue template
def templates = [:]
def categoryIcons = [:]
def statusIcons = [:]
def newIssueDialogMVC
def projectPanelMVCs = [:]
def projectIdMap = [:]
}

View File

@ -0,0 +1,30 @@
package com.jdbernard.pit.swing
import com.jdbernard.pit.Filter
import com.jdbernard.pit.Issue
import com.jdbernard.pit.Project
import groovy.beans.Bindable
class ProjectPanelModel {
def mainMVC
@Bindable Project rootProject
// cache the ListModels
def projectListModels = [:]
@Bindable Project popupProject = null
@Bindable Project selectedProject = null
@Bindable Issue popupIssue = null
// filter for projects and issues
Filter filter
def newIssueDialogMVC
String id
def issueCellRenderer
}