summaryrefslogtreecommitdiffstats
path: root/src/kile/kilestatsdlg.h
blob: 178d3f96e196dcfba4da75ca145c3d5396b4fb34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/***************************************************************************
    begin                : Tuesday Nov 1 2005
    copyright            : (C) 2005 by Thomas Braun
    email                : braun@physik.fu-berlin.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef KILESTATSDLG_H
#define KILESTATSDLG_H


#include <kdialogbase.h>
#include <klocale.h>
#include <kapplication.h>
#include <tqclipboard.h>
#include <tqlabel.h>

#include "kileproject.h"
#include "kiledocumentinfo.h"
#include "kilestatswidget.h"

class KileStatsDlg : public KDialogBase
{
public:
	KileStatsDlg(KileProject *project, KileDocument::TextInfo* docinfo, TQWidget* parent = 0,  const char* name = 0, const TQString &caption = TQString());
	~KileStatsDlg();

private:
	void fillWidget (const long* stats, KileWidgetStatistics* widget);
	void slotUser1();
	void slotUser2();
	void convertText(TQString* text, bool forLaTeX);

protected:
	KileProject				*m_project;
	KileDocument::TextInfo			*m_docinfo;
	long					*m_summarystats;
	bool 					m_hasSelection;
	bool					m_notAllFilesOpenWarning;
	TQMap<int, KileWidgetStatistics*> 	m_pagetowidget;
	TQMap<int, TQString> 			m_pagetoname;
};

#endif