You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
3.2 KiB
117 lines
3.2 KiB
15 years ago
|
#ifndef __KCM_FONT_INST_H__
|
||
|
#define __KCM_FONT_INST_H__
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// Class Name : KFI::CKCmFontInst
|
||
|
// Author : Craig Drummond
|
||
|
// Project : K Font Installer
|
||
|
// Creation Date : 26/04/2003
|
||
|
// Version : $Revision$ $Date$
|
||
|
//
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// 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.
|
||
|
//
|
||
|
// This program is distributed in the hope that it will be useful,
|
||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
// GNU General Public License for more details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public License
|
||
|
// along with this program; if not, write to the Free Software
|
||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
//
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
// (C) Craig Drummond, 2003, 2004
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
#include "config.h"
|
||
|
#endif
|
||
|
|
||
15 years ago
|
#include <tqstringlist.h>
|
||
12 years ago
|
#include <tdecmodule.h>
|
||
15 years ago
|
#include <kurl.h>
|
||
12 years ago
|
#include <tdeconfig.h>
|
||
|
#include <tdeio/job.h>
|
||
15 years ago
|
#ifdef HAVE_XFT
|
||
12 years ago
|
#include <tdeparts/part.h>
|
||
15 years ago
|
#endif
|
||
|
|
||
|
class KDirOperator;
|
||
12 years ago
|
class TDEAction;
|
||
|
class TDERadioAction;
|
||
|
class TDEActionMenu;
|
||
|
class TDEToggleAction;
|
||
15 years ago
|
class KFileItem;
|
||
15 years ago
|
class TQLabel;
|
||
|
class TQSplitter;
|
||
|
class TQDropEvent;
|
||
15 years ago
|
class KFileItem;
|
||
|
|
||
|
namespace KFI
|
||
|
{
|
||
|
|
||
12 years ago
|
class CKCmFontInst : public TDECModule
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
|
||
15 years ago
|
CKCmFontInst(TQWidget *parent=NULL, const char *name=NULL, const TQStringList &list=TQStringList());
|
||
15 years ago
|
virtual ~CKCmFontInst();
|
||
|
|
||
|
void setMimeTypes(bool showBitmap);
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
void filterFonts();
|
||
15 years ago
|
TQString quickHelp() const;
|
||
15 years ago
|
void listView();
|
||
|
void iconView();
|
||
|
void setupMenu();
|
||
|
void setupViewMenu();
|
||
|
void fileHighlighted(const KFileItem *item);
|
||
|
void loadingFinished();
|
||
|
void addFonts();
|
||
|
void removeFonts();
|
||
|
void configure();
|
||
|
void print();
|
||
15 years ago
|
void dropped(const KFileItem *i, TQDropEvent *e, const KURL::List &urls);
|
||
|
void infoMessage(const TQString &msg);
|
||
15 years ago
|
void updateInformation(int dirs, int fonts);
|
||
12 years ago
|
void delResult(TDEIO::Job *job);
|
||
|
void jobResult(TDEIO::Job *job);
|
||
15 years ago
|
|
||
|
private:
|
||
|
|
||
|
void addFonts(const KURL::List &src, const KURL &dest);
|
||
|
|
||
|
private:
|
||
|
|
||
|
KDirOperator *itsDirOp;
|
||
|
KURL itsTop;
|
||
12 years ago
|
TDEToggleAction *itsShowBitmapAct;
|
||
|
TDEAction *itsSepDirsAct,
|
||
15 years ago
|
*itsShowHiddenAct,
|
||
|
*itsDeleteAct;
|
||
12 years ago
|
TDERadioAction *itsListAct,
|
||
15 years ago
|
*itsIconAct;
|
||
12 years ago
|
TDEActionMenu *itsViewMenuAct;
|
||
15 years ago
|
#ifdef HAVE_XFT
|
||
|
KParts::ReadOnlyPart *itsPreview;
|
||
|
#endif
|
||
15 years ago
|
TQSplitter *itsSplitter;
|
||
12 years ago
|
TDEConfig itsConfig;
|
||
15 years ago
|
bool itsEmbeddedAdmin;
|
||
14 years ago
|
TQLabel *itsStatusLabel;
|
||
15 years ago
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|