Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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 = ''
Exemplo n.º 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 = ''
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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 = ""
Exemplo n.º 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 = ''
Exemplo n.º 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 = ''
Exemplo n.º 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