1
#ifndef __KCM_FONT_INST_H__
2
#define __KCM_FONT_INST_H__
5
* KFontInst - KDE Font Installer
7
* Copyright 2003-2007 Craig Drummond <craig@kde.org>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; see the file COPYING. If not, write to
23
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24
* Boston, MA 02110-1301, USA.
27
#include <config-workspace.h>
28
#include "GroupList.h"
29
#include "JobRunner.h"
30
#include <QtCore/QSet>
31
#include <KDE/KCModule>
33
#include <KDE/KConfig>
34
#include <KDE/KIO/Job>
37
class KProgressDialog;
57
class CPreviewListView;
59
class CKCmFontInst : public KCModule
65
explicit CKCmFontInst(QWidget *parent=NULL, const QVariantList &list=QVariantList());
66
virtual ~CKCmFontInst();
70
QString quickHelp() const;
71
void previewMenu(const QPoint &pos);
72
void fontsSelected(const QModelIndexList &list);
73
void groupSelected(const QModelIndex &index);
85
void duplicateFonts();
88
void listingPercent(int p);
89
void refreshFontList();
90
void refreshFamilies();
91
void showInfo(const QString &info);
93
void addFonts(const QSet<KUrl> &src);
97
void removeDeletedFontsFromGroups();
98
void selectGroup(CGroupListItem::EType grp);
100
void toggleGroup(bool enable);
101
void toggleFonts(bool enable, const QString &grp=QString());
102
void toggleFonts(CJobRunner::ItemList &urls, const QStringList &fonts, bool enable, const QString &grp);
103
void selectMainGroup();
104
void doCmd(CJobRunner::ECommand cmd, const CJobRunner::ItemList &urls, bool system=false);
108
QSplitter *itsGroupSplitter,
110
CFontPreview *itsPreview;
111
CPreviewListView *itsPreviewList;
113
QLabel *itsStatusLabel;
114
CProgressBar *itsListingProgress;
115
CFontList *itsFontList;
116
CFontListView *itsFontListView;
117
CGroupList *itsGroupList;
118
CGroupListView *itsGroupListView;
119
KActionMenu *itsToolsMenu;
120
KPushButton *itsDeleteGroupControl,
121
*itsEnableGroupControl,
122
*itsDisableGroupControl,
124
*itsDeleteFontControl;
125
CFontFilter *itsFilter;
126
QString itsLastStatusBarMsg;
128
KProgressDialog *itsProgress;
129
CUpdateDialog *itsUpdateDialog;
130
KTempDir *itsTempDir;
131
QProcess *itsPrintProc;
132
QSet<QString> itsDeletedFonts;
133
KUrl::List itsModifiedUrls;
134
CJobRunner *itsRunner;
135
QMenu *itsPreviewMenu,