~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/plugins/contrib/codestat/codestatexec.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************
 
2
 * Name:      codestatexec.h
 
3
 * Purpose:   Code::Blocks CodeStat plugin: main window
 
4
 * Author:    Zlika
 
5
 * Created:   11/09/2005
 
6
 * Copyright: (c) Zlika
 
7
 * License:   GPL
 
8
 **************************************************************/
 
9
 
 
10
#ifndef CODESTATEXEC_H
 
11
#define CODESTATEXEC_H
 
12
 
 
13
#include <wx/dialog.h>
 
14
#include <wx/filename.h>
 
15
#include "language_def.h"
 
16
 
 
17
class wxWindow;
 
18
 
 
19
/** This class computes the statistics of the project's files and display them.
 
20
 *  @see CodeStat, CodeStatConfigDlg, CodeStatExecDlg, LanguageDef
 
21
 */
 
22
class CodeStatExecDlg : public wxDialog
 
23
{
 
24
        public:
 
25
                CodeStatExecDlg(wxWindow* parent) : parent(parent){}
 
26
                virtual ~CodeStatExecDlg();
 
27
                int Execute(LanguageDef languages[NB_FILETYPES_MAX], int nb_languages);
 
28
        private:
 
29
      void EndModal(int retCode);
 
30
      void CountLines(wxFileName filename, LanguageDef &language,
 
31
                      long int &code_lines, long int &codecomments_lines,
 
32
                      long int &comment_lines, long int &empty_lines, long int &total_lines);
 
33
      void AnalyseLine(LanguageDef &language, wxString line, bool &comment, bool &code, bool &multi_line_comment);
 
34
      wxWindow* parent;
 
35
};
 
36
 
 
37
#endif // CODESTATEXEC_H