Пример #1
0
    def __init__(self, parent, model):
        ListCtrlView.__init__(
            self,
            parent,
            model,
            wx.LC_REPORT,
            (
                (_("Open"), self.OnOpen, self.openBmp, ""),
                ("-", None, "", ""),
                (_("Add"), self.OnAdd, self.addModBmp, "Insert"),
                (_("Edit"), self.OnEdit, "-", ""),
                (_("Remove"), self.OnRemove, self.remModBmp, "Delete"),
                ("-", None, "", ""),
                (_("Find"), self.OnFind, self.findBmp, "Find"),
                ("-", None, "-", ""),
                (_("Make module main module"), self.OnMakeMain, "-", ""),
            ),
            0,
        )

        self.InsertColumn(0, _("Module"), width=150)
        self.InsertColumn(1, _("Type"), width=50)
        self.InsertColumn(2, _("Description"), width=150)
        self.InsertColumn(3, _("Relative path"), width=220)

        self.sortOnColumns = [0, 1, 3]

        self.SetImageList(model.editor.modelImageList, wx.IMAGE_LIST_SMALL)

        self.lastSearchPattern = ""
        self.active = True
        self.canExplore = True
        self.model = model
Пример #2
0
    def __init__(self, parent, model):
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT, (
            (_('Open'), self.OnOpen, self.openBmp, ''),
            ('-', None, '', ''),
            (_('Add'), self.OnAdd, self.addModBmp, 'Insert'),
            (_('Edit'), self.OnEdit, '-', ''),
            (_('Remove'), self.OnRemove, self.remModBmp, 'Delete'),
            ('-', None, '', ''),
            (_('Find'), self.OnFind, self.findBmp, 'Find'),
            ('-', None, '-', ''),
            (_('Make module main module'), self.OnMakeMain, '-', ''),
        ), 0)

        self.InsertColumn(0, _('Module'), width=150)
        self.InsertColumn(1, _('Type'), width=50)
        self.InsertColumn(2, _('Description'), width=150)
        self.InsertColumn(3, _('Relative path'), width=220)

        self.sortOnColumns = [0, 1, 3]

        self.SetImageList(model.editor.modelImageList, wx.IMAGE_LIST_SMALL)

        self.lastSearchPattern = ''
        self.active = True
        self.canExplore = True
        self.model = model
Пример #3
0
    def __init__(self, parent, model):
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
          ((_('Open'), self.OnOpen, self.openBmp, ''),
           ('-', None, '', ''),
           (_('Add'), self.OnAdd, self.addModBmp, 'Insert'),
           (_('Edit'), self.OnEdit, '-', ''),
           (_('Remove'), self.OnRemove, self.remModBmp, 'Delete'),
           ('-', None, '', ''),
           (_('Find'), self.OnFind, self.findBmp, 'Find'),
           ('-', None, '-', ''),
           (_('Make module main module'), self.OnMakeMain, '-', ''),
           ), 0)

        self.InsertColumn(0, _('Module'), width = 150)
        self.InsertColumn(1, _('Type'), width = 50)
        self.InsertColumn(2, _('Description'), width = 150)
        self.InsertColumn(3, _('Relative path'), width = 220)

        self.sortOnColumns = [0, 1, 3]

        self.SetImageList(model.editor.modelImageList, wx.IMAGE_LIST_SMALL)

        self.lastSearchPattern = ''
        self.active = True
        self.canExplore = True
        self.model = model
Пример #4
0
    def __init__(self, parent, model):
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
          ((_('Goto file'), self.OnGoto, self.gotoLineBmp, ''),), 0)

        self.sortOnColumns = [0, 1]

        self.InsertColumn(0, _('Name'))
        self.InsertColumn(1, _('#Todos'))
        self.InsertColumn(2, _('Filepath'))
        self.SetColumnWidth(0, 75)
        self.SetColumnWidth(1, 25)
        self.SetColumnWidth(2, 350)

        self.todos = []
        self.active = True
Пример #5
0
    def __init__(self, parent, model):
        ListCtrlView.__init__(
            self, parent, model, wx.LC_REPORT,
            ((_('Goto file'), self.OnGoto, self.gotoLineBmp, ''), ), 0)

        self.sortOnColumns = [0, 1]

        self.InsertColumn(0, _('Name'))
        self.InsertColumn(1, _('#Todos'))
        self.InsertColumn(2, _('Filepath'))
        self.SetColumnWidth(0, 75)
        self.SetColumnWidth(1, 25)
        self.SetColumnWidth(2, 350)

        self.todos = []
        self.active = True
Пример #6
0
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _('compare results'))
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
          ( ('Do diff', self.OnGoto, self.gotoLineBmp, ''), ) +\
           self.closingActionItems, 0)

        self.InsertColumn(0, _('Module'), width=100)
        self.InsertColumn(1, _('Differs from'), width=450)
        self.InsertColumn(2, _('Result'), width=75)

        self.results = {}
        self.listResultIdxs = []
        self.tabName = 'App. Compare'
        self.active = True
        self.model = model
        self.compareTo = ''
Пример #7
0
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _('compare results'))
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
          ( ('Do diff', self.OnGoto, self.gotoLineBmp, ''), ) +\
           self.closingActionItems, 0)

        self.InsertColumn(0, _('Module'), width = 100)
        self.InsertColumn(1, _('Differs from'), width = 450)
        self.InsertColumn(2, _('Result'), width = 75)

        self.results = {}
        self.listResultIdxs = []
        self.tabName = 'App. Compare'
        self.active = True
        self.model = model
        self.compareTo = ''
Пример #8
0
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _('find results'))
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT, (
            (_('Goto match'), self.OnGoto, self.gotoLineBmp, ''),
            (_('Rerun query'), self.OnRerun, '-', ''),
        ) + self.closingActionItems, 0)

        self.InsertColumn(0, _('Module'), width=100)
        self.InsertColumn(1, _('Line no'), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(2, _('Col'), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(3, _('Text'), width=550)

        self.results = {}
        self.listResultIdxs = []
        self.tabName = 'Results'
        self.findPattern = ''
        self.active = True
        self.model = model
Пример #9
0
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _('find results'))
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
          ( (_('Goto match'), self.OnGoto, self.gotoLineBmp, ''),
            (_('Rerun query'), self.OnRerun, '-', ''),
          ) +
            self.closingActionItems, 0)

        self.InsertColumn(0, _('Module'), width = 100)
        self.InsertColumn(1, _('Line no'), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(2, _('Col'), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(3, _('Text'), width = 550)

        self.results = {}
        self.listResultIdxs = []
        self.tabName = 'Results'
        self.findPattern = ''
        self.active = True
        self.model = model
Пример #10
0
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _("compare results"))
        ListCtrlView.__init__(
            self,
            parent,
            model,
            wx.LC_REPORT,
            (("Do diff", self.OnGoto, self.gotoLineBmp, ""),) + self.closingActionItems,
            0,
        )

        self.InsertColumn(0, _("Module"), width=100)
        self.InsertColumn(1, _("Differs from"), width=450)
        self.InsertColumn(2, _("Result"), width=75)

        self.results = {}
        self.listResultIdxs = []
        self.tabName = "App. Compare"
        self.active = True
        self.model = model
        self.compareTo = ""
Пример #11
0
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _('stats'))
        ListCtrlView.__init__(
            self, parent, model, wx.LC_REPORT | wx.LC_SINGLE_SEL,
            ((_('Goto line'), self.OnGoto, self.gotoLineBmp, ''),
             ('-', None, '', ''), (_('Callers (called this function)'),
                                   self.OnCallers, self.callersBmp, ''),
             (_('Callees (are called by this function)'), self.OnCallees,
              self.calleesBmp, ''),
             ('-', None, '', '')) + self.closingActionItems +
            ((_('Save stats'), self.OnSaveStats, self.saveAsBmp, ''), ), 0)

        self.InsertColumn(0, 'module')
        self.InsertColumn(1, 'line')
        self.InsertColumn(2, 'function')
        self.InsertColumn(3, 'ncalls')
        self.InsertColumn(4, 'tottime')
        self.InsertColumn(5, 'totpercall')
        self.InsertColumn(6, 'cumtime')
        self.InsertColumn(7, 'cumpercall')
        self.SetColumnWidth(0, 100)
        self.SetColumnWidth(1, 30)
        self.SetColumnWidth(2, 100)
        self.SetColumnWidth(3, 50)
        self.SetColumnWidth(4, 60)
        self.SetColumnWidth(5, 60)
        self.SetColumnWidth(6, 60)
        self.SetColumnWidth(7, 60)

        self.Bind(wx.EVT_LIST_COL_CLICK, self.OnColClick)

        self.sortAscend = False
        self.sortCol = 0
        self.all_callees = None

        self.active = True
        self.stats = None
        self.profDir = ''
Пример #12
0
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _('stats'))
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT | wx.LC_SINGLE_SEL,
          ( (_('Goto line'), self.OnGoto, self.gotoLineBmp, ''),
            ('-', None, '', ''),
            (_('Callers (called this function)'), self.OnCallers, self.callersBmp, ''),
            (_('Callees (are called by this function)'), self.OnCallees, self.calleesBmp, ''),
            ('-', None, '', '') ) +
            self.closingActionItems +
          ( (_('Save stats'), self.OnSaveStats, self.saveAsBmp, ''),
            ), 0)

        self.InsertColumn(0, 'module')
        self.InsertColumn(1, 'line')
        self.InsertColumn(2, 'function')
        self.InsertColumn(3, 'ncalls')
        self.InsertColumn(4, 'tottime')
        self.InsertColumn(5, 'totpercall')
        self.InsertColumn(6, 'cumtime')
        self.InsertColumn(7, 'cumpercall')
        self.SetColumnWidth(0, 100)
        self.SetColumnWidth(1, 30)
        self.SetColumnWidth(2, 100)
        self.SetColumnWidth(3, 50)
        self.SetColumnWidth(4, 60)
        self.SetColumnWidth(5, 60)
        self.SetColumnWidth(6, 60)
        self.SetColumnWidth(7, 60)

        self.Bind(wx.EVT_LIST_COL_CLICK, self.OnColClick)

        self.sortAscend = False
        self.sortCol = 0
        self.all_callees = None

        self.active = True
        self.stats = None
        self.profDir = ''
Пример #13
0
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _("find results"))
        ListCtrlView.__init__(
            self,
            parent,
            model,
            wx.LC_REPORT,
            ((_("Goto match"), self.OnGoto, self.gotoLineBmp, ""), (_("Rerun query"), self.OnRerun, "-", ""))
            + self.closingActionItems,
            0,
        )

        self.InsertColumn(0, _("Module"), width=100)
        self.InsertColumn(1, _("Line no"), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(2, _("Col"), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(3, _("Text"), width=550)

        self.results = {}
        self.listResultIdxs = []
        self.tabName = "Results"
        self.findPattern = ""
        self.active = True
        self.model = model