blob: 19087ba65f66c2dbe366c1f434c397e382838976 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/***************************************************************************
* Copyright (C) 2003 by Alexander Dymo *
* cloudtemple@mksat.net *
* *
* 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 FCCONFIGWIDGET_H
#define FCCONFIGWIDGET_H
#include <tqwidget.h>
#include <tqvaluelist.h>
#include <kurl.h>
#include "fcconfigwidgetbase.h"
class FileCreatePart;
class TQListView;
class TQDomDocument;
class TQDomElement;
namespace FileCreate{
class FileType;
}
class FCConfigWidget : public FCConfigWidgetBase
{
Q_OBJECT
TQ_OBJECT
public:
FCConfigWidget(FileCreatePart * part, bool global, TQWidget *tqparent, const char *name);
~FCConfigWidget();
public slots:
void accept();
void removetemplate_button_clicked();
void copyToProject_button_clicked();
void newtype_button_clicked();
void newsubtype_button_clicked();
void remove_button_clicked();
void moveup_button_clicked();
void movedown_button_clicked();
void edittype_button_clicked();
void newtemplate_button_clicked();
void edittemplate_button_clicked();
void edit_template_content_button_clicked();
void edit_type_content_button_clicked();
protected:
void loadGlobalConfig(TQListView *view, bool checkmarks = false);
void loadProjectConfig(TQListView *view);
void loadProjectTemplates(TQListView *view);
void saveGlobalConfig();
void saveProjectConfig();
void loadFileTypes(TQPtrList<FileCreate::FileType> list, TQListView *view, bool checkmarks = false);
void copyTemplate(TQString templateUrl, TQString dest, TQString destName);
void saveConfiguration(TQDomDocument &dom, TQDomElement &element, bool global);
private:
FileCreatePart * m_part;
TQPtrList<FileCreate::FileType> m_globalfiletypes;
TQPtrList<FileCreate::FileType> m_projectfiletypes;
TQPtrList<FileCreate::FileType> m_projectfiletemplates;
bool m_global;
TQValueList<KURL> urlsToEdit;
};
#endif
|