Commit 8511c7ac authored by Claudio Valerio's avatar Claudio Valerio

some missing headers

parent 3988bc83
...@@ -3,24 +3,24 @@ ...@@ -3,24 +3,24 @@
* *
* This file is part of Open-Sankoré. * This file is part of Open-Sankoré.
* *
* Open-Sankoré is free software; you can redistribute it and/or * Open-Sankoré is free software: you can redistribute it and/or modify
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU General Public License as published by
* License as published by the Free Software Foundation, version 2, * the Free Software Foundation, version 3 of the License,
* with a specific linking exception for the OpenSSL project's * with a specific linking exception for the OpenSSL project's
* "OpenSSL" library (or with modified versions of it that use the * "OpenSSL" library (or with modified versions of it that use the
* same license as the "OpenSSL" library). * same license as the "OpenSSL" library).
* *
* Open-Sankoré is distributed in the hope that it will be useful, * Open-Sankoré is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Library General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU General Public License
* License along with Open-Sankoré; if not, see * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
* <http://www.gnu.org/licenses/>.
*/ */
#include "UBCFFAdaptor.h" #include "UBCFFAdaptor.h"
#include <QtCore> #include <QtCore>
......
...@@ -3,21 +3,20 @@ ...@@ -3,21 +3,20 @@
* *
* This file is part of Open-Sankoré. * This file is part of Open-Sankoré.
* *
* Open-Sankoré is free software; you can redistribute it and/or * Open-Sankoré is free software: you can redistribute it and/or modify
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU General Public License as published by
* License as published by the Free Software Foundation, version 2, * the Free Software Foundation, version 3 of the License,
* with a specific linking exception for the OpenSSL project's * with a specific linking exception for the OpenSSL project's
* "OpenSSL" library (or with modified versions of it that use the * "OpenSSL" library (or with modified versions of it that use the
* same license as the "OpenSSL" library). * same license as the "OpenSSL" library).
* *
* Open-Sankoré is distributed in the hope that it will be useful, * Open-Sankoré is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Library General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU General Public License
* License along with Open-Sankoré; if not, see * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
* <http://www.gnu.org/licenses/>.
*/ */
......
...@@ -3,21 +3,20 @@ ...@@ -3,21 +3,20 @@
* *
* This file is part of Open-Sankoré. * This file is part of Open-Sankoré.
* *
* Open-Sankoré is free software; you can redistribute it and/or * Open-Sankoré is free software: you can redistribute it and/or modify
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU General Public License as published by
* License as published by the Free Software Foundation, version 2, * the Free Software Foundation, version 3 of the License,
* with a specific linking exception for the OpenSSL project's * with a specific linking exception for the OpenSSL project's
* "OpenSSL" library (or with modified versions of it that use the * "OpenSSL" library (or with modified versions of it that use the
* same license as the "OpenSSL" library). * same license as the "OpenSSL" library).
* *
* Open-Sankoré is distributed in the hope that it will be useful, * Open-Sankoré is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Library General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU General Public License
* License along with Open-Sankoré; if not, see * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
* <http://www.gnu.org/licenses/>.
*/ */
......
...@@ -3,21 +3,20 @@ ...@@ -3,21 +3,20 @@
* *
* This file is part of Open-Sankoré. * This file is part of Open-Sankoré.
* *
* Open-Sankoré is free software; you can redistribute it and/or * Open-Sankoré is free software: you can redistribute it and/or modify
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU General Public License as published by
* License as published by the Free Software Foundation, version 2, * the Free Software Foundation, version 3 of the License,
* with a specific linking exception for the OpenSSL project's * with a specific linking exception for the OpenSSL project's
* "OpenSSL" library (or with modified versions of it that use the * "OpenSSL" library (or with modified versions of it that use the
* same license as the "OpenSSL" library). * same license as the "OpenSSL" library).
* *
* Open-Sankoré is distributed in the hope that it will be useful, * Open-Sankoré is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Library General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU General Public License
* License along with Open-Sankoré; if not, see * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
* <http://www.gnu.org/licenses/>.
*/ */
......
...@@ -3,21 +3,20 @@ ...@@ -3,21 +3,20 @@
* *
* This file is part of Open-Sankoré. * This file is part of Open-Sankoré.
* *
* Open-Sankoré is free software; you can redistribute it and/or * Open-Sankoré is free software: you can redistribute it and/or modify
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU General Public License as published by
* License as published by the Free Software Foundation, version 2, * the Free Software Foundation, version 3 of the License,
* with a specific linking exception for the OpenSSL project's * with a specific linking exception for the OpenSSL project's
* "OpenSSL" library (or with modified versions of it that use the * "OpenSSL" library (or with modified versions of it that use the
* same license as the "OpenSSL" library). * same license as the "OpenSSL" library).
* *
* Open-Sankoré is distributed in the hope that it will be useful, * Open-Sankoré is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Library General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU General Public License
* License along with Open-Sankoré; if not, see * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
* <http://www.gnu.org/licenses/>.
*/ */
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
...@@ -19,32 +19,32 @@ ...@@ -19,32 +19,32 @@
* along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>. * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef UBIMPORTCFF_H #ifndef UBIMPORTCFF_H
#define UBIMPORTCFF_H #define UBIMPORTCFF_H
#include <QtGui> #include <QtGui>
#include "UBImportAdaptor.h" #include "UBImportAdaptor.h"
class UBDocumentProxy; class UBDocumentProxy;
class UBImportCFF : public UBDocumentBasedImportAdaptor class UBImportCFF : public UBDocumentBasedImportAdaptor
{ {
Q_OBJECT; Q_OBJECT;
public: public:
UBImportCFF(QObject *parent = 0); UBImportCFF(QObject *parent = 0);
virtual ~UBImportCFF(); virtual ~UBImportCFF();
virtual QStringList supportedExtentions(); virtual QStringList supportedExtentions();
virtual QString importFileFilter(); virtual QString importFileFilter();
virtual bool addFileToDocument(UBDocumentProxy* pDocument, const QFile& pFile); virtual bool addFileToDocument(UBDocumentProxy* pDocument, const QFile& pFile);
virtual UBDocumentProxy* importFile(const QFile& pFile, const QString& pGroup); virtual UBDocumentProxy* importFile(const QFile& pFile, const QString& pGroup);
private: private:
QString expandFileToDir(const QFile& pZipFile, const QString& pDir); QString expandFileToDir(const QFile& pZipFile, const QString& pDir);
}; };
#endif // UBIMPORTCFF_H #endif // UBIMPORTCFF_H
This diff is collapsed.
This diff is collapsed.
...@@ -19,34 +19,34 @@ ...@@ -19,34 +19,34 @@
* along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>. * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef UBTHUMBNAILADAPTOR_H #ifndef UBTHUMBNAILADAPTOR_H
#define UBTHUMBNAILADAPTOR_H #define UBTHUMBNAILADAPTOR_H
#include <QtCore> #include <QtCore>
class UBDocument; class UBDocument;
class UBDocumentProxy; class UBDocumentProxy;
class UBGraphicsScene; class UBGraphicsScene;
class UBThumbnailAdaptor //static class class UBThumbnailAdaptor //static class
{ {
Q_DECLARE_TR_FUNCTIONS(UBThumbnailAdaptor) Q_DECLARE_TR_FUNCTIONS(UBThumbnailAdaptor)
public: public:
static QUrl thumbnailUrl(UBDocumentProxy* proxy, int pageIndex); static QUrl thumbnailUrl(UBDocumentProxy* proxy, int pageIndex);
static void persistScene(UBDocumentProxy* proxy, UBGraphicsScene* pScene, int pageIndex, bool overrideModified = false); static void persistScene(UBDocumentProxy* proxy, UBGraphicsScene* pScene, int pageIndex, bool overrideModified = false);
static const QPixmap* get(UBDocumentProxy* proxy, int index); static const QPixmap* get(UBDocumentProxy* proxy, int index);
static void load(UBDocumentProxy* proxy, QList<const QPixmap*>& list); static void load(UBDocumentProxy* proxy, QList<const QPixmap*>& list);
private: private:
static void generateMissingThumbnails(UBDocumentProxy* proxy); static void generateMissingThumbnails(UBDocumentProxy* proxy);
static void updateDocumentToHandleZeroPage(UBDocumentProxy* proxy); static void updateDocumentToHandleZeroPage(UBDocumentProxy* proxy);
UBThumbnailAdaptor() {} UBThumbnailAdaptor() {}
}; };
#endif // UBTHUMBNAILADAPTOR_H #endif // UBTHUMBNAILADAPTOR_H
...@@ -19,124 +19,124 @@ ...@@ -19,124 +19,124 @@
* along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>. * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef UBDOCUMENTPUBLISHER_H #ifndef UBDOCUMENTPUBLISHER_H
#define UBDOCUMENTPUBLISHER_H #define UBDOCUMENTPUBLISHER_H
#include <QtGui> #include <QtGui>
#include <QtNetwork> #include <QtNetwork>
#include "ui_webPublishing.h" #include "ui_webPublishing.h"
#define DOCPUBLICATION_URL "http://planete.sankore.org/xwiki/bin/view/CreateResources/UniboardUpload?xpage=plain&outputSyntax=plain" #define DOCPUBLICATION_URL "http://planete.sankore.org/xwiki/bin/view/CreateResources/UniboardUpload?xpage=plain&outputSyntax=plain"
typedef struct typedef struct
{ {
QString title; QString title;
QString description; QString description;
} sDocumentInfos; } sDocumentInfos;
class UBDocumentProxy; class UBDocumentProxy;
class UBServerXMLHttpRequest; class UBServerXMLHttpRequest;
class UBGraphicsW3CWidgetItem; class UBGraphicsW3CWidgetItem;
class QWebView; class QWebView;
class UBProxyLoginDlg : public QDialog class UBProxyLoginDlg : public QDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
UBProxyLoginDlg(QWidget* parent=0, const char* name="ProxyLoginDlg"); UBProxyLoginDlg(QWidget* parent=0, const char* name="ProxyLoginDlg");
~UBProxyLoginDlg(); ~UBProxyLoginDlg();
QString username(){return mpUsername->text();} QString username(){return mpUsername->text();}
QString password(){return mpPassword->text();} QString password(){return mpPassword->text();}
private: private:
QVBoxLayout* mpLayout; QVBoxLayout* mpLayout;
QHBoxLayout* mpUserLayout; QHBoxLayout* mpUserLayout;
QHBoxLayout* mpPasswordLayout; QHBoxLayout* mpPasswordLayout;
QDialogButtonBox* mpButtons; QDialogButtonBox* mpButtons;
QLabel* mpUserLabel; QLabel* mpUserLabel;
QLabel* mpPasswordLabel; QLabel* mpPasswordLabel;
QLineEdit* mpUsername; QLineEdit* mpUsername;
QLineEdit* mpPassword; QLineEdit* mpPassword;
}; };
class UBPublicationDlg : public QDialog class UBPublicationDlg : public QDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
UBPublicationDlg(QWidget* parent=0, const char* name="UBPublicationDlg"); UBPublicationDlg(QWidget* parent=0, const char* name="UBPublicationDlg");
~UBPublicationDlg(); ~UBPublicationDlg();
QString title(){return mpTitle->text();} QString title(){return mpTitle->text();}
QString description(){return mpDescription->document()->toPlainText();} QString description(){return mpDescription->document()->toPlainText();}
private slots: private slots:
void onTextChanged(); void onTextChanged();
private: private:
QVBoxLayout* mpLayout; QVBoxLayout* mpLayout;
QHBoxLayout* mpTitleLayout; QHBoxLayout* mpTitleLayout;
QLabel* mpTitleLabel; QLabel* mpTitleLabel;
QLineEdit* mpTitle; QLineEdit* mpTitle;
QLabel* mpDescLabel; QLabel* mpDescLabel;
QTextEdit* mpDescription; QTextEdit* mpDescription;
QDialogButtonBox* mpButtons; QDialogButtonBox* mpButtons;
}; };
class UBDocumentPublisher : public QObject class UBDocumentPublisher : public QObject
{ {
Q_OBJECT; Q_OBJECT;
public: public:
explicit UBDocumentPublisher(UBDocumentProxy* sourceDocument, QObject *parent = 0); explicit UBDocumentPublisher(UBDocumentProxy* sourceDocument, QObject *parent = 0);
virtual ~UBDocumentPublisher(); virtual ~UBDocumentPublisher();
void publish(); void publish();
signals: signals:
void loginDone(); void loginDone();
protected: protected:
virtual void updateGoogleMapApiKey(); virtual void updateGoogleMapApiKey();
virtual void rasterizeScenes(); virtual void rasterizeScenes();
virtual void upgradeDocumentForPublishing(); virtual void upgradeDocumentForPublishing();
virtual void generateWidgetPropertyScript(UBGraphicsW3CWidgetItem *widgetItem, int pageNumber); virtual void generateWidgetPropertyScript(UBGraphicsW3CWidgetItem *widgetItem, int pageNumber);
private slots: private slots:
void onFinished(QNetworkReply* reply); void onFinished(QNetworkReply* reply);
private: private:
UBDocumentProxy *mSourceDocument; UBDocumentProxy *mSourceDocument;
//UBDocumentProxy *mPublishingDocument; //UBDocumentProxy *mPublishingDocument;
QString mPublishingPath; QString mPublishingPath;
int mPublishingSize; int mPublishingSize;
void init(); void init();
void sendUbw(QString username, QString password); void sendUbw(QString username, QString password);
QString getBase64Of(QString stringToEncode); QString getBase64Of(QString stringToEncode);
QHBoxLayout* mpLayout; QHBoxLayout* mpLayout;
QNetworkAccessManager* mpNetworkMgr; QNetworkAccessManager* mpNetworkMgr;
QNetworkCookieJar* mpCookieJar; QNetworkCookieJar* mpCookieJar;
QString mUsername; QString mUsername;
QString mPassword; QString mPassword;
QString mCrlf; QString mCrlf;
bool bLoginCookieSet; bool bLoginCookieSet;
void buildUbwFile(); void buildUbwFile();
QString mTmpZipFile; QString mTmpZipFile;
QList<QNetworkCookie> mCookies; QList<QNetworkCookie> mCookies;
sDocumentInfos mDocInfos; sDocumentInfos mDocInfos;
}; };
#endif // UBDOCUMENTPUBLISHER_H #endif // UBDOCUMENTPUBLISHER_H
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -28,22 +28,22 @@ ...@@ -28,22 +28,22 @@
UBWindowCapture::UBWindowCapture(UBDesktopAnnotationController *parent) UBWindowCapture::UBWindowCapture(UBDesktopAnnotationController *parent)
: QObject(parent) : QObject(parent)
, mParent(parent) , mParent(parent)
{ {
// NOOP // NOOP
} }
UBWindowCapture::~UBWindowCapture() UBWindowCapture::~UBWindowCapture()
{ {
// NOOP // NOOP
} }
const QPixmap UBWindowCapture::getCapturedWindow() const QPixmap UBWindowCapture::getCapturedWindow()
{ {
return mWindowPixmap; return mWindowPixmap;
} }
...@@ -51,20 +51,20 @@ int UBWindowCapture::execute() ...@@ -51,20 +51,20 @@ int UBWindowCapture::execute()
{ {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *path = [NSString pathWithComponents: [NSArray arrayWithObjects: NSTemporaryDirectory(), NSString *path = [NSString pathWithComponents: [NSArray arrayWithObjects: NSTemporaryDirectory(),
[[NSString stringWithFormat:@"%d",[NSDate timeIntervalSinceReferenceDate]] stringByAppendingPathExtension:@"uninote"], [[NSString stringWithFormat:@"%d",[NSDate timeIntervalSinceReferenceDate]] stringByAppendingPathExtension:@"uninote"],
nil]]; nil]];
NSTask *task = [[NSTask alloc] init]; NSTask *task = [[NSTask alloc] init];
NSArray *arguments = [NSArray arrayWithObjects: @"-i", @"-W", @"-m", @"-tpng", path, nil]; NSArray *arguments = [NSArray arrayWithObjects: @"-i", @"-W", @"-m", @"-tpng", path, nil];
[task setLaunchPath: @"/usr/sbin/screencapture"]; [task setLaunchPath: @"/usr/sbin/screencapture"];
[task setArguments: arguments]; [task setArguments: arguments];
[task launch]; [task launch];
[task waitUntilExit]; [task waitUntilExit];
[task release]; [task release];
QString resultPath = QString::fromUtf8([path UTF8String], strlen([path UTF8String])); QString resultPath = QString::fromUtf8([path UTF8String], strlen([path UTF8String]));
mWindowPixmap.load(resultPath); mWindowPixmap.load(resultPath);
QFile::remove(resultPath); QFile::remove(resultPath);
......
This diff is collapsed.
...@@ -19,54 +19,54 @@ ...@@ -19,54 +19,54 @@
* along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>. * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef UBDOCUMENTCONTAINER_H_ #ifndef UBDOCUMENTCONTAINER_H_
#define UBDOCUMENTCONTAINER_H_ #define UBDOCUMENTCONTAINER_H_
#include <QtGui> #include <QtGui>
#include "UBDocumentProxy.h" #include "UBDocumentProxy.h"
class UBDocumentContainer : public QObject class UBDocumentContainer : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
UBDocumentContainer(QObject * parent = 0); UBDocumentContainer(QObject * parent = 0);
virtual ~UBDocumentContainer(); virtual ~UBDocumentContainer();
void setDocument(UBDocumentProxy* document, bool forceReload = false); void setDocument(UBDocumentProxy* document, bool forceReload = false);
UBDocumentProxy* selectedDocument(){return mCurrentDocument;} UBDocumentProxy* selectedDocument(){return mCurrentDocument;}
int pageCount(){return mDocumentThumbs.size();} int pageCount(){return mDocumentThumbs.size();}
const QPixmap* pageAt(int index){return mDocumentThumbs[index];} const QPixmap* pageAt(int index){return mDocumentThumbs[index];}
static int pageFromSceneIndex(int sceneIndex); static int pageFromSceneIndex(int sceneIndex);
static int sceneIndexFromPage(int sceneIndex); static int sceneIndexFromPage(int sceneIndex);
void duplicatePages(QList<int>& pageIndexes); void duplicatePages(QList<int>& pageIndexes);
bool movePageToIndex(int source, int target); bool movePageToIndex(int source, int target);
void deletePages(QList<int>& pageIndexes); void deletePages(QList<int>& pageIndexes);
void addPage(int index); void addPage(int index);
void updatePage(int index); void updatePage(int index);
void addEmptyThumbPage(); void addEmptyThumbPage();
private: private:
UBDocumentProxy* mCurrentDocument; UBDocumentProxy* mCurrentDocument;
QList<const QPixmap*> mDocumentThumbs; QList<const QPixmap*> mDocumentThumbs;
protected: protected:
void deleteThumbPage(int index); void deleteThumbPage(int index);
void updateThumbPage(int index); void updateThumbPage(int index);
void insertThumbPage(int index); void insertThumbPage(int index);
void reloadThumbnails(); void reloadThumbnails();
signals: signals:
void documentSet(UBDocumentProxy* document); void documentSet(UBDocumentProxy* document);
void documentPageUpdated(int index); void documentPageUpdated(int index);
void documentThumbnailsUpdated(UBDocumentContainer* source); void documentThumbnailsUpdated(UBDocumentContainer* source);
}; };
#endif /* UBDOCUMENTPROXY_H_ */ #endif /* UBDOCUMENTPROXY_H_ */
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -19,39 +19,39 @@ ...@@ -19,39 +19,39 @@
* along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>. * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef UBGEOMETRYUTILS_H_ #ifndef UBGEOMETRYUTILS_H_
#define UBGEOMETRYUTILS_H_ #define UBGEOMETRYUTILS_H_
#include <QtGui> #include <QtGui>
class UBGeometryUtils class UBGeometryUtils
{ {
private: private:
UBGeometryUtils(); UBGeometryUtils();
virtual ~UBGeometryUtils(); virtual ~UBGeometryUtils();
public: public:
static QPolygonF lineToPolygon(const QLineF& pLine, const qreal& pWidth); static QPolygonF lineToPolygon(const QLineF& pLine, const qreal& pWidth);
static QRectF lineToInnerRect(const QLineF& pLine, const qreal& pWidth); static QRectF lineToInnerRect(const QLineF& pLine, const qreal& pWidth);
static QPolygonF arcToPolygon(const QLineF& startRadius, qreal spanAngle, qreal width); static QPolygonF arcToPolygon(const QLineF& startRadius, qreal spanAngle, qreal width);
static QPolygonF lineToPolygon(const QPointF& pStart, const QPointF& pEnd, static QPolygonF lineToPolygon(const QPointF& pStart, const QPointF& pEnd,
const qreal& pStartWidth, const qreal& pEndWidth); const qreal& pStartWidth, const qreal& pEndWidth);
static QPointF pointConstrainedInRect(QPointF point, QRectF rect); static QPointF pointConstrainedInRect(QPointF point, QRectF rect);
static QPoint pointConstrainedInRect(QPoint point, QRect rect); static QPoint pointConstrainedInRect(QPoint point, QRect rect);
static void crashPointList(QVector<QPointF> &points); static void crashPointList(QVector<QPointF> &points);
const static int centimeterGraduationHeight; const static int centimeterGraduationHeight;
const static int halfCentimeterGraduationHeight; const static int halfCentimeterGraduationHeight;
const static int millimeterGraduationHeight; const static int millimeterGraduationHeight;
const static int millimetersPerCentimeter; const static int millimetersPerCentimeter;
const static int millimetersPerHalfCentimeter; const static int millimetersPerHalfCentimeter;
const static float inchSize; const static float inchSize;
}; };
#endif /* UBGEOMETRYUTILS_H_ */ #endif /* UBGEOMETRYUTILS_H_ */
...@@ -461,8 +461,8 @@ void UBPlatformUtils::initializeKeyboardLayouts() ...@@ -461,8 +461,8 @@ void UBPlatformUtils::initializeKeyboardLayouts()
int count = CFArrayGetCount(kbds); int count = CFArrayGetCount(kbds);
QList<UBKeyboardLocale*> result; QList<UBKeyboardLocale*> result;
qDebug() << "initializeKeyboardLayouts"; qDebug() << "initializeKeyboardLayouts";
qDebug() << "Found system locales: " << count; qDebug() << "Found system locales: " << count;
for(int i=0; i<count; i++) for(int i=0; i<count; i++)
{ {
...@@ -554,7 +554,7 @@ void UBPlatformUtils::initializeKeyboardLayouts() ...@@ -554,7 +554,7 @@ void UBPlatformUtils::initializeKeyboardLayouts()
const QString resName = ":/images/flags/" + name + ".png"; const QString resName = ":/images/flags/" + name + ".png";
QIcon *iconLang = new QIcon(resName); QIcon *iconLang = new QIcon(resName);
qDebug() << "Locale: " << ID << ", name: " << name; qDebug() << "Locale: " << ID << ", name: " << name;
result.append(new UBKeyboardLocale(fullName, name, ID, iconLang, keybt)); result.append(new UBKeyboardLocale(fullName, name, ID, iconLang, keybt));
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -3,21 +3,20 @@ ...@@ -3,21 +3,20 @@
* *
* This file is part of Open-Sankoré. * This file is part of Open-Sankoré.
* *
* Open-Sankoré is free software; you can redistribute it and/or * Open-Sankoré is free software: you can redistribute it and/or modify
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU General Public License as published by
* License as published by the Free Software Foundation, version 2, * the Free Software Foundation, version 3 of the License,
* with a specific linking exception for the OpenSSL project's * with a specific linking exception for the OpenSSL project's
* "OpenSSL" library (or with modified versions of it that use the * "OpenSSL" library (or with modified versions of it that use the
* same license as the "OpenSSL" library). * same license as the "OpenSSL" library).
* *
* Open-Sankoré is distributed in the hope that it will be useful, * Open-Sankoré is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Library General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU General Public License
* License along with Open-Sankoré; if not, see * along with Open-Sankoré. If not, see <http://www.gnu.org/licenses/>.
* <http://www.gnu.org/licenses/>.
*/ */
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment