1
/***************************************************************
3
* Purpose: Code::Blocks CodeStat plugin: main window
8
**************************************************************/
10
#ifndef CODESTATEXEC_H
11
#define CODESTATEXEC_H
13
#include <wx/dialog.h>
14
#include <wx/filename.h>
15
#include "language_def.h"
19
/** This class computes the statistics of the project's files and display them.
20
* @see CodeStat, CodeStatConfigDlg, CodeStatExecDlg, LanguageDef
22
class CodeStatExecDlg : public wxDialog
25
CodeStatExecDlg(wxWindow* parent) : parent(parent){}
26
virtual ~CodeStatExecDlg();
27
int Execute(LanguageDef languages[NB_FILETYPES_MAX], int nb_languages);
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);
37
#endif // CODESTATEXEC_H