~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/profiler/cbprofilerexec.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define CBPROFILEREXEC_H
3
3
 
4
4
#include <wx/arrstr.h>
5
 
#include <wx/dialog.h>
6
5
#include <wx/string.h>
 
6
#include "scrollingdialog.h"
7
7
 
8
8
struct struct_config
9
9
{
10
 
    bool chkAnnSource;
 
10
    bool     chkAnnSource;
 
11
    bool     chkMinCount;
 
12
    bool     chkBrief;
 
13
    bool     chkFileInfo;
 
14
    bool     chkUnusedFunctions;
 
15
    bool     chkStaticCallGraph;
 
16
    bool     chkNoStatic;
 
17
    bool     chkSum;
 
18
    int      spnMinCount;
11
19
    wxString txtAnnSource;
12
 
    bool chkMinCount;
13
 
    int  spnMinCount;
14
 
    bool chkBrief;
15
 
    bool chkFileInfo;
16
 
    bool chkNoStatic;
17
 
    bool chkSum;
18
20
    wxString txtExtra;
19
21
};
20
22
 
25
27
class wxListEvent;
26
28
class wxCommandEvent;
27
29
 
28
 
class CBProfilerExecDlg : public wxDialog
 
30
class CBProfilerExecDlg : public wxScrollingDialog
29
31
{
30
32
    public:
31
33
        CBProfilerExecDlg(wxWindow* parent) : parent(parent){}
32
34
        virtual ~CBProfilerExecDlg();
33
35
 
34
 
        int Execute(wxString exename, wxString dataname, struct_config config);
35
 
        void ShowOutput(wxArrayString  msg, bool error);
36
 
        wxListCtrl* GetoutputFlatProfileArea() {return outputFlatProfileArea;};
37
 
        int GetsortColumn() {return sortColumn;};
38
 
        int GetsortAscending() {return sortAscending;};
 
36
        int         Execute(wxString exename, wxString dataname, struct_config config);
 
37
        void        ShowOutput(const wxArrayString&  msg, bool error);
 
38
        wxListCtrl* GetoutputFlatProfileArea() { return outputFlatProfileArea; };
 
39
        int         GetsortColumn()            { return sortColumn;            };
 
40
        int         GetsortAscending()         { return sortAscending;         };
39
41
    private:
40
42
        void EndModal(int retCode);
 
43
        void OnColumnClick(wxListEvent& event);
41
44
        void FindInCallGraph(wxListEvent& event);
 
45
        void JumpInCallGraph(wxListEvent& event);
42
46
        void WriteToFile(wxCommandEvent& event);
43
 
        void OnColumnClick(wxListEvent& event);
44
 
 
45
 
        size_t ParseFlatProfile(wxArrayString msg, size_t begin, wxProgressDialog &progress);
46
 
        size_t ParseCallGraph(wxArrayString msg, size_t begin, wxProgressDialog &progress);
47
 
        wxWindow*   parent;
48
 
        wxListCtrl* outputFlatProfileArea;
49
 
        wxTextCtrl* outputHelpFlatProfileArea;
50
 
        wxListCtrl* outputCallGraphArea;
51
 
        wxTextCtrl* outputHelpCallGraphArea;
52
 
        wxTextCtrl* outputMiscArea;
53
 
        wxArrayString gprof_output, gprof_errors;
54
 
        static bool sortAscending;
55
 
        static int sortColumn;
56
 
        int LastListClickedCol;
 
47
 
 
48
        void ParseFlatProfile(const wxArrayString& msg, wxProgressDialog &progress, const size_t maxcount, size_t& count);
 
49
        void ParseCallGraph(const wxArrayString& msg, wxProgressDialog &progress, const size_t maxcount, size_t &count);
 
50
        void ParseMisc(const wxArrayString& msg, wxProgressDialog &progress, const size_t maxcount, size_t &count);
 
51
 
 
52
        wxWindow*     parent;
 
53
        wxListCtrl*   outputFlatProfileArea;
 
54
        wxTextCtrl*   outputHelpFlatProfileArea;
 
55
        wxListCtrl*   outputCallGraphArea;
 
56
        wxTextCtrl*   outputHelpCallGraphArea;
 
57
        wxTextCtrl*   outputMiscArea;
 
58
        wxArrayString gprof_output;
 
59
        wxArrayString gprof_errors;
 
60
 
 
61
        static bool   sortAscending;
 
62
        static int    sortColumn;
57
63
 
58
64
        DECLARE_EVENT_TABLE()
59
65
};