0,0 → 1,98 |
/* |
For general Scribus (>=1.3.2) copyright and licensing information please refer |
to the COPYING file provided with the program. Following this notice may exist |
a copyright and/or license notice that predates the release of Scribus 1.3.2 |
for which a new license (GPL+exception) is in place. |
*/ |
/*************************************************************************** |
resourcemanager.h - description |
------------------- |
begin : Sun 20150201 |
copyright : (C) 2015 by Craig Bradney |
email : cbradney@scribus.info |
***************************************************************************/ |
|
/*************************************************************************** |
* * |
* 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 RESOURCEMANAGER_H |
#define RESOURCEMANAGER_H |
|
#include <QDialog> |
#include <QList> |
#include <QMap> |
#include <QString> |
|
#include "scribusapi.h" |
#include "scribusstructs.h" |
#include "ui_resourcemanagerbase.h" |
|
|
|
class SCRIBUS_API ResourceManager : public QDialog, Ui::ResourceManagerBase |
{ |
Q_OBJECT |
|
enum { |
RM_FONTS, |
RM_HYPH, |
RM_PROFILES, |
RM_SPELL, |
RM_TEMPLATES |
}; |
public: |
ResourceManager(QWidget* parent); |
~ResourceManager() {}; |
|
//events: |
//virtual void changeEvent(QEvent *e); |
|
public slots: |
void languageChange(); |
|
protected: |
void setFontCategory(); |
void setHyphCategory(); |
void setSpellCategory(); |
void setTemplatesCategory(); |
|
void updateInstalledFonts(); |
void updateInstalledHyph(); |
void updateInstalledSpell(); |
void updateInstalledTemplates(); |
void updateAvailableFonts(); |
void updateAvailableHyph(); |
void updateAvailableSpell(); |
void updateAvailableTemplates(); |
|
QString currentCategory; |
QMap <int, QString> resourceCategories; |
QMap <int, QString> dataFiles; |
|
QMap<QString, QString> dictionaryMap; |
QStringList dictionaryPaths; |
QList <DownloadItem> dictList; |
QList <DownloadItem> fontList; |
QList <DownloadItem> templateList; |
QList <DownloadItem> profileList; |
QList <DownloadItem> downloadList; |
QString affixFileName(QStringList files); |
QString dictFileName(QStringList files); |
|
protected slots: |
void categoryChanged(); |
void updateDownloadLists(); |
void downloadListFinished(); |
void downloadFilesFinished(); |
void updateProgressBar(); |
void startDownload(); |
|
}; |
|
#endif // RESOURCEMANAGER_H |
Property changes: |
Added: svn:eol-style |
## -0,0 +1 ## |
+native |
\ No newline at end of property |