1
/***************************************************************************
2
* Copyright (C) 2001 by Bernd Gehrmann *
4
* Copyright (C) 2004 by Jonas Jacobi *
5
* jonas.jacobi@web.de *
7
* This program is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation; either version 2 of the License, or *
10
* (at your option) any later version. *
12
***************************************************************************/
14
#ifndef _DOXYGENPART_H_
15
#define _DOXYGENPART_H_
17
#include <qguardedptr.h>
18
#include <kdialogbase.h>
23
#include "kdevplugin.h"
30
class ConfigWidgetProxy;
35
namespace KTextEditor{
36
class ViewCursorInterface;
40
class DoxygenPart : public KDevPlugin
45
DoxygenPart( QObject *parent, const char *name, const QStringList & );
50
* Configuration dialog under "Project Options..." that alows
51
* to specify doxygen configuration options and store them to
52
* a configuration file. The file name is "Doxyfile" and it's stored
53
* in the project root.
55
// void projectConfigWidget(KDialogBase *dlg);
56
void insertConfigWidget( const KDialogBase* dlg, QWidget * page, unsigned int );
58
/** run doxygen to generate API documentation */
61
/** clean the html API docs (delete the generated html files) */
65
* Gets called, when the Doxygen process for previewing is finished
66
* and shows its output then.
68
void slotPreviewProcessExited();
71
* If the current part is KTextEditor::Document, run Doxygen over it.
72
* When the process exited slotPreviewProcessExited gets called.
74
void slotRunPreview();
77
* Gets called when the currently active part changed.
78
* When the new part is a KTextEditor::Document the filepath gets
79
* internally stored and gets processed if slotRunPreview() is called.
80
* @see KTextEditor::Document
82
void slotActivePartChanged(KParts::Part*);
85
* Inserts a documentation template above a function declaration/definition.
87
void slotDocumentFunction();
93
* If a Doxygen configuration file doesn't exist, create one.
94
* And copy some of the project settings to it.
96
void adjustDoxyfile();
98
DoxygenDialog *m_dialog;
99
ConfigWidgetProxy * _configProxy;
101
//needed for doxygen preview
107
//needed for documentFunction
108
KAction* m_actionDocumentFunction;
109
KAction* m_actionPreview;
110
KTextEditor::EditInterface* m_activeEditor;
111
KTextEditor::ViewCursorInterface* m_cursor;