Commit 1e6e8d4f authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

Merge branch 'Sankore-1.40' of github.com:Sankore/Sankore-3.1 into Sankore-1.40

parents 5940b79e 37c90523
...@@ -13,7 +13,7 @@ linux-g++-64 { ...@@ -13,7 +13,7 @@ linux-g++-64 {
VERSION_MAJ = 1 VERSION_MAJ = 1
VERSION_MIN = 40 VERSION_MIN = 40
VERSION_TYPE = b # a = alpha, b = beta, r = release, other => error VERSION_TYPE = b # a = alpha, b = beta, r = release, other => error
VERSION_PATCH = 06 VERSION_PATCH = 07
VERSION = "$${VERSION_MAJ}.$${VERSION_MIN}.$${VERSION_TYPE}.$${VERSION_PATCH}" VERSION = "$${VERSION_MAJ}.$${VERSION_MIN}.$${VERSION_TYPE}.$${VERSION_PATCH}"
VERSION = $$replace(VERSION, "\\.r", "") VERSION = $$replace(VERSION, "\\.r", "")
......
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.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -45,12 +45,12 @@ var sankoreLang = { ...@@ -45,12 +45,12 @@ var sankoreLang = {
"country":"Niger" "country":"Niger"
}, },
"TD":{ "TD":{
"city":"Ndjamena", "city":"N'Djamena",
"country":"Tchad" "country":"Tchad"
}, },
"SD":{ "SD":{
"city":"Khartoum", "city":"Khartoum",
"country":"Soudan" "country":"Sudan"
}, },
"ER":{ "ER":{
"city":"Asmara", "city":"Asmara",
...@@ -61,11 +61,11 @@ var sankoreLang = { ...@@ -61,11 +61,11 @@ var sankoreLang = {
"country":"Djibouti" "country":"Djibouti"
}, },
"ET":{ "ET":{
"city":"Addis Ababa", "city":"Addis-Ababa",
"country":"Ethiopia" "country":"Ethiopia"
}, },
"SO":{ "SO":{
"city":"Mogadiscio", "city":"Mogadishu",
"country":"Somalia" "country":"Somalia"
}, },
"KE":{ "KE":{
...@@ -86,14 +86,14 @@ var sankoreLang = { ...@@ -86,14 +86,14 @@ var sankoreLang = {
}, },
"CM":{ "CM":{
"city":"Yaounde", "city":"Yaounde",
"country":"Cameroun" "country":"Cameroon"
}, },
"NG":{ "NG":{
"city":"Abuja", "city":"Abuja",
"country":"Nigeria" "country":"Nigeria"
}, },
"BJ":{ "BJ":{
"city":"Porto Novo", "city":"Porto-Novo",
"country":"Benin" "country":"Benin"
}, },
"TG":{ "TG":{
...@@ -106,14 +106,14 @@ var sankoreLang = { ...@@ -106,14 +106,14 @@ var sankoreLang = {
}, },
"CI":{ "CI":{
"city":"Yamoussoukro", "city":"Yamoussoukro",
"country":"Cote d'Ivoire" "country":"Côte d'Ivoire"
}, },
"BF":{ "BF":{
"city":"Ouagadougou", "city":"Ouagadougou",
"country":"Burkina Faso" "country":"Burkina Faso"
}, },
"LR":{ "LR":{
"city":"Monravia", "city":"Monrovia",
"country":"Liberia" "country":"Liberia"
}, },
"SL":{ "SL":{
...@@ -185,7 +185,7 @@ var sankoreLang = { ...@@ -185,7 +185,7 @@ var sankoreLang = {
"country":"Botswana" "country":"Botswana"
}, },
"NA":{ "NA":{
"city":"Windhoec", "city":"Windhoek",
"country":"Namibia" "country":"Namibia"
}, },
"ZA":{ "ZA":{
...@@ -206,11 +206,11 @@ var sankoreLang = { ...@@ -206,11 +206,11 @@ var sankoreLang = {
}, },
"AR":{ "AR":{
"city":"Buenos Aires", "city":"Buenos Aires",
"country":"Argentine" "country":"Argentina"
}, },
"CL":{ "CL":{
"city":"Santiago", "city":"Santiago",
"country":"Chili" "country":"Chile"
}, },
"UY":{ "UY":{
"city":"Montevideo", "city":"Montevideo",
...@@ -221,7 +221,7 @@ var sankoreLang = { ...@@ -221,7 +221,7 @@ var sankoreLang = {
"country":"Paraguay" "country":"Paraguay"
}, },
"BO":{ "BO":{
"city":"La Paz", "city":"Sucre",
"country":"Bolivia" "country":"Bolivia"
}, },
"BR":{ "BR":{
...@@ -253,7 +253,7 @@ var sankoreLang = { ...@@ -253,7 +253,7 @@ var sankoreLang = {
"country":"Suriname" "country":"Suriname"
}, },
"GF":{ "GF":{
"city":"Paris", "city":"Cayenne",
"country":"French Guyana" "country":"French Guyana"
}, },
"CA":{ "CA":{
...@@ -269,7 +269,7 @@ var sankoreLang = { ...@@ -269,7 +269,7 @@ var sankoreLang = {
"country":"United States of America" "country":"United States of America"
}, },
"MX":{ "MX":{
"city":"Mexico", "city":"Mexico city",
"country":"Mexico" "country":"Mexico"
}, },
"CU":{ "CU":{
...@@ -301,7 +301,7 @@ var sankoreLang = { ...@@ -301,7 +301,7 @@ var sankoreLang = {
"country":"Belize" "country":"Belize"
}, },
"SV":{ "SV":{
"city":"Salvador", "city":"El Salvador",
"country":"San Salvador" "country":"San Salvador"
}, },
"HN":{ "HN":{
...@@ -314,7 +314,7 @@ var sankoreLang = { ...@@ -314,7 +314,7 @@ var sankoreLang = {
}, },
"CR":{ "CR":{
"city":"San Jose", "city":"San Jose",
"country":"Costa-Rica" "country":"Costa Rica"
}, },
"PA":{ "PA":{
"city":"Panama", "city":"Panama",
...@@ -345,7 +345,7 @@ var sankoreLang = { ...@@ -345,7 +345,7 @@ var sankoreLang = {
"country":"Vanuatu" "country":"Vanuatu"
}, },
"NC":{ "NC":{
"city":"Paris", "city":"Noumea",
"country":"New Caledonia" "country":"New Caledonia"
}, },
"AL":{ "AL":{
...@@ -373,7 +373,7 @@ var sankoreLang = { ...@@ -373,7 +373,7 @@ var sankoreLang = {
"country":"Azerbaijan" "country":"Azerbaijan"
}, },
"BE":{ "BE":{
"city":"Bruxelles", "city":"Brussels",
"country":"Belgium" "country":"Belgium"
}, },
"BY":{ "BY":{
...@@ -382,7 +382,7 @@ var sankoreLang = { ...@@ -382,7 +382,7 @@ var sankoreLang = {
}, },
"BA":{ "BA":{
"city":"Sarajevo", "city":"Sarajevo",
"country":"Bosnia" "country":"Bosnia and Herzegovina"
}, },
"BG":{ "BG":{
"city":"Sofia", "city":"Sofia",
...@@ -421,7 +421,7 @@ var sankoreLang = { ...@@ -421,7 +421,7 @@ var sankoreLang = {
"country":"Georgia" "country":"Georgia"
}, },
"EL":{ "EL":{
"city":"Athenes", "city":"Athens",
"country":"Greece" "country":"Greece"
}, },
"HU":{ "HU":{
...@@ -434,7 +434,7 @@ var sankoreLang = { ...@@ -434,7 +434,7 @@ var sankoreLang = {
}, },
"IS":{ "IS":{
"city":"Reykjavik", "city":"Reykjavik",
"country":"Island" "country":"Iceland"
}, },
"IT":{ "IT":{
"city":"Rome", "city":"Rome",
...@@ -458,15 +458,15 @@ var sankoreLang = { ...@@ -458,15 +458,15 @@ var sankoreLang = {
}, },
"MK":{ "MK":{
"city":"Skopje", "city":"Skopje",
"country":"Macedoine" "country":"Macedonia"
}, },
"MT":{ "MT":{
"city":"La Valetta", "city":"Valetta",
"country":"Malta" "country":"Malta"
}, },
"MD":{ "MD":{
"city":"Chisinau", "city":"Chisinau",
"country":"Moldavia" "country":"Moldova"
}, },
"MC":{ "MC":{
"city":"Monaco", "city":"Monaco",
...@@ -505,8 +505,8 @@ var sankoreLang = { ...@@ -505,8 +505,8 @@ var sankoreLang = {
"country":"United Kingdom" "country":"United Kingdom"
}, },
"SM":{ "SM":{
"city":"Saint-Marin", "city":"San Marino",
"country":"Saint-Marin" "country":"San Marino"
}, },
"RS":{ "RS":{
"city":"Belgrade", "city":"Belgrade",
...@@ -525,7 +525,7 @@ var sankoreLang = { ...@@ -525,7 +525,7 @@ var sankoreLang = {
"country":"Sweden" "country":"Sweden"
}, },
"CH":{ "CH":{
"city":"Berne", "city":"Bern",
"country":"Switzerland" "country":"Switzerland"
}, },
"TR":{ "TR":{
...@@ -537,7 +537,7 @@ var sankoreLang = { ...@@ -537,7 +537,7 @@ var sankoreLang = {
"country":"Ukraine" "country":"Ukraine"
}, },
"VA":{ "VA":{
"city":"Vatican", "city":"Vatican city",
"country":"Vatican" "country":"Vatican"
}, },
"AF":{ "AF":{
...@@ -550,7 +550,7 @@ var sankoreLang = { ...@@ -550,7 +550,7 @@ var sankoreLang = {
}, },
"BH":{ "BH":{
"city":"Manama", "city":"Manama",
"country":"Bahrein" "country":"Bahrain"
}, },
"BD":{ "BD":{
"city":"Dhaka", "city":"Dhaka",
...@@ -561,7 +561,7 @@ var sankoreLang = { ...@@ -561,7 +561,7 @@ var sankoreLang = {
"country":"Bhutan" "country":"Bhutan"
}, },
"BN":{ "BN":{
"city":"andar Seri Begawan", "city":"Bandar Seri Begawan",
"country":"Brunei" "country":"Brunei"
}, },
"KH":{ "KH":{
...@@ -569,8 +569,8 @@ var sankoreLang = { ...@@ -569,8 +569,8 @@ var sankoreLang = {
"country":"Cambodia" "country":"Cambodia"
}, },
"CN":{ "CN":{
"city":"Pekin", "city":"Beijing",
"country":"Chine" "country":"China"
}, },
"KP":{ "KP":{
"city":"Pyongyang", "city":"Pyongyang",
...@@ -581,19 +581,19 @@ var sankoreLang = { ...@@ -581,19 +581,19 @@ var sankoreLang = {
"country":"South Korea" "country":"South Korea"
}, },
"AE":{ "AE":{
"city":"Abu Dhabi", "city":"Abu Dabi",
"country":"United Arab Emirates" "country":"United Arab Emirates"
}, },
"IN":{ "IN":{
"city":"Delhi", "city":"New Delhi",
"country":"India" "country":"India"
}, },
"IR":{ "IR":{
"city":"Teheran", "city":"Tehran",
"country":"Iran" "country":"Iran"
}, },
"IQ":{ "IQ":{
"city":"Bagdad", "city":"Baghdad",
"country":"Iraq" "country":"Iraq"
}, },
"IL":{ "IL":{
...@@ -617,15 +617,15 @@ var sankoreLang = { ...@@ -617,15 +617,15 @@ var sankoreLang = {
"country":"Kyrgyzstan" "country":"Kyrgyzstan"
}, },
"KW":{ "KW":{
"city":"Koweit", "city":"Kuwait",
"country":"Koweit" "country":"Kuwait"
}, },
"LA":{ "LA":{
"city":"Laos", "city":"Vientiane",
"country":"Vientiane" "country":"Laos"
}, },
"LB":{ "LB":{
"city":"Beyrouth", "city":"Beirut",
"country":"Lebanon" "country":"Lebanon"
}, },
"MY":{ "MY":{
...@@ -637,15 +637,15 @@ var sankoreLang = { ...@@ -637,15 +637,15 @@ var sankoreLang = {
"country":"Maldives" "country":"Maldives"
}, },
"MN":{ "MN":{
"city":"Ulan-Bator", "city":"Ulaanbaatar",
"country":"Mongolia" "country":"Mongolia"
}, },
"MM":{ "MM":{
"city":"Naypyidaw", "city":"Myanmar",
"country":"Myanmar" "country":"Burma"
}, },
"NP":{ "NP":{
"city":"Katmandu", "city":"Kathmandu",
"country":"Nepal" "country":"Nepal"
}, },
"OM":{ "OM":{
...@@ -661,7 +661,7 @@ var sankoreLang = { ...@@ -661,7 +661,7 @@ var sankoreLang = {
"country":"Pakistan" "country":"Pakistan"
}, },
"PH":{ "PH":{
"city":"Manille", "city":"Manila",
"country":"Philippines" "country":"Philippines"
}, },
"QA":{ "QA":{
...@@ -681,7 +681,7 @@ var sankoreLang = { ...@@ -681,7 +681,7 @@ var sankoreLang = {
"country":"Sri Lanka" "country":"Sri Lanka"
}, },
"SY":{ "SY":{
"city":"Damask", "city":"Damascus",
"country":"Syria" "country":"Syria"
}, },
"TJ":{ "TJ":{
...@@ -694,7 +694,7 @@ var sankoreLang = { ...@@ -694,7 +694,7 @@ var sankoreLang = {
}, },
"TL":{ "TL":{
"city":"Dili", "city":"Dili",
"country":"Timor-oriental" "country":"East Timor"
}, },
"TM":{ "TM":{
"city":"Ashgabat", "city":"Ashgabat",
...@@ -702,10 +702,10 @@ var sankoreLang = { ...@@ -702,10 +702,10 @@ var sankoreLang = {
}, },
"VN":{ "VN":{
"city":"Hanoi", "city":"Hanoi",
"country":"Viet Nam" "country":"Vietnam"
}, },
"YE":{ "YE":{
"city":"Sana", "city":"Sana'a",
"country":"Yemen" "country":"Yemen"
} }
}, },
......
...@@ -940,19 +940,21 @@ void UBBoardView::virtualKeyboardActivated(bool b) ...@@ -940,19 +940,21 @@ void UBBoardView::virtualKeyboardActivated(bool b)
// Apple remote desktop sends funny events when the transmission is bad // Apple remote desktop sends funny events when the transmission is bad
bool bool UBBoardView::isAbsurdPoint(QPoint point)
UBBoardView::isAbsurdPoint (QPoint point)
{ {
QDesktopWidget *desktop = qApp->desktop (); #ifdef Q_WS_MACX
QDesktopWidget *desktop = qApp->desktop();
bool isValidPoint = false; bool isValidPoint = false;
for (int i = 0; i < desktop->numScreens (); i++) for (int i = 0; i < desktop->numScreens() && !isValidPoint; i++){
{ QRect screenRect = desktop->screenGeometry(i);
QRect screenRect = desktop->screenGeometry (i); screenRect=QRect(QPoint(0,0),screenRect.size());
isValidPoint = isValidPoint || screenRect.contains (point); isValidPoint = isValidPoint || screenRect.contains(point);
} }
return !isValidPoint; return !isValidPoint;
#else
return false;
#endif
} }
void void
......
...@@ -291,7 +291,6 @@ QImage UBLibraryController::createThumbnail(UBLibElement* pElement) ...@@ -291,7 +291,6 @@ QImage UBLibraryController::createThumbnail(UBLibElement* pElement)
{ {
QString thumbnailPath = UBFileSystemUtils::thumbnailPath(pElement->path().toLocalFile()); QString thumbnailPath = UBFileSystemUtils::thumbnailPath(pElement->path().toLocalFile());
QString mimetype = UBFileSystemUtils::mimeTypeFromFileName(pElement->path().toLocalFile()); QString mimetype = UBFileSystemUtils::mimeTypeFromFileName(pElement->path().toLocalFile());
UBApplication::showMessage(tr("Creating image thumbnail for %1.").arg(pElement->name()));
if (mimetype.contains("audio")) if (mimetype.contains("audio"))
thumbnailPath = ":images/libpalette/soundIcon.svg"; thumbnailPath = ":images/libpalette/soundIcon.svg";
...@@ -309,6 +308,7 @@ QImage UBLibraryController::createThumbnail(UBLibElement* pElement) ...@@ -309,6 +308,7 @@ QImage UBLibraryController::createThumbnail(UBLibElement* pElement)
pix.save(thumbnailPath); pix.save(thumbnailPath);
UBThumbnailPixmap pixmap(pix); UBThumbnailPixmap pixmap(pix);
UBPlatformUtils::hideFile(thumbnailPath); UBPlatformUtils::hideFile(thumbnailPath);
UBApplication::showMessage(tr("Creating image thumbnail for %1.").arg(pElement->name()));
} }
else{ else{
thumbnailPath = ":images/libpalette/notFound.png"; thumbnailPath = ":images/libpalette/notFound.png";
......
...@@ -35,8 +35,6 @@ ...@@ -35,8 +35,6 @@
#include "UBIdleTimer.h" #include "UBIdleTimer.h"
#include "UBApplicationController.h" #include "UBApplicationController.h"
//#include "softwareupdate/UBSoftwareUpdateController.h"
#include "board/UBBoardController.h" #include "board/UBBoardController.h"
#include "board/UBDrawingController.h" #include "board/UBDrawingController.h"
#include "board/UBBoardView.h" #include "board/UBBoardView.h"
......
...@@ -37,7 +37,6 @@ class UBSettings; ...@@ -37,7 +37,6 @@ class UBSettings;
class UBPersistenceManager; class UBPersistenceManager;
class UBApplicationController; class UBApplicationController;
class UBDocumentController; class UBDocumentController;
class UBSoftwareUpdateController;
class UBMainWindow; class UBMainWindow;
class UBApplication : public QtSingleApplication class UBApplication : public QtSingleApplication
...@@ -59,7 +58,6 @@ class UBApplication : public QtSingleApplication ...@@ -59,7 +58,6 @@ class UBApplication : public QtSingleApplication
static UBBoardController* boardController; static UBBoardController* boardController;
static UBWebController* webController; static UBWebController* webController;
static UBDocumentController* documentController; static UBDocumentController* documentController;
static UBSoftwareUpdateController* softwareUpdateController;
static UniboardSankoreTransition* mUniboardSankoreTransition; static UniboardSankoreTransition* mUniboardSankoreTransition;
static UBMainWindow* mainWindow; static UBMainWindow* mainWindow;
......
...@@ -1605,7 +1605,6 @@ void UBGraphicsScene::addTriangle(QPointF center) ...@@ -1605,7 +1605,6 @@ void UBGraphicsScene::addTriangle(QPointF center)
UBGraphicsTriangle* triangle = new UBGraphicsTriangle(); // mem : owned and destroyed by the scene UBGraphicsTriangle* triangle = new UBGraphicsTriangle(); // mem : owned and destroyed by the scene
mTools << triangle; mTools << triangle;
// triangle->setZValue(toolLayerStart + toolOffsetProtractor);
UBGraphicsItem::assignZValue(triangle, toolLayerStart + toolOffsetTriangle); UBGraphicsItem::assignZValue(triangle, toolLayerStart + toolOffsetTriangle);
triangle->setData(UBGraphicsItemData::ItemLayerType, QVariant(UBItemLayerType::Tool)); triangle->setData(UBGraphicsItemData::ItemLayerType, QVariant(UBItemLayerType::Tool));
......
...@@ -559,7 +559,7 @@ UBNewFolderDlg::UBNewFolderDlg(QWidget *parent, const char *name):QDialog(parent ...@@ -559,7 +559,7 @@ UBNewFolderDlg::UBNewFolderDlg(QWidget *parent, const char *name):QDialog(parent
{ {
setObjectName(name); setObjectName(name);
setWindowTitle(tr("Add new folder")); setWindowTitle(tr("Add new folder"));
setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint);
mpLabel = new QLabel(tr("New Folder name:"),this); mpLabel = new QLabel(tr("New Folder name:"),this);
mpLineEdit = new QLineEdit(this); mpLineEdit = new QLineEdit(this);
mpAddButton = new QPushButton(tr("Add")); mpAddButton = new QPushButton(tr("Add"));
...@@ -570,7 +570,7 @@ UBNewFolderDlg::UBNewFolderDlg(QWidget *parent, const char *name):QDialog(parent ...@@ -570,7 +570,7 @@ UBNewFolderDlg::UBNewFolderDlg(QWidget *parent, const char *name):QDialog(parent
mpButtons = new QDialogButtonBox(Qt::Horizontal, this); mpButtons = new QDialogButtonBox(Qt::Horizontal, this);
mpLayout = new QVBoxLayout(this); mpLayout = new QVBoxLayout(this);
mpHLayout = new QHBoxLayout(this); mpHLayout = new QHBoxLayout(0);
setLayout(mpLayout); setLayout(mpLayout);
mpLayout->addLayout(mpHLayout, 0); mpLayout->addLayout(mpHLayout, 0);
mpHLayout->addWidget(mpLabel, 0); mpHLayout->addWidget(mpLabel, 0);
...@@ -699,20 +699,8 @@ void UBLibraryWidget::onAddDownloadedFileToLibrary(bool pSuccess, QUrl sourceUrl ...@@ -699,20 +699,8 @@ void UBLibraryWidget::onAddDownloadedFileToLibrary(bool pSuccess, QUrl sourceUrl
Q_UNUSED(pContentHeader); Q_UNUSED(pContentHeader);
if(pSuccess) if(pSuccess)
{ {
// QDir dir;
// dir.mkdir("tmp");
// QString qsFileName = QFileInfo(sourceUrl.toString()).fileName();
// QString qsFilePath = UBFileSystemUtils::normalizeFilePath(QString("tmp/%0").arg(qsFileName));
// QFile f(qsFilePath);
// if(f.open(QIODevice::WriteOnly))
// {
// f.write(pData);
// f.close();
// }
QString urlString = sourceUrl.toString(); QString urlString = sourceUrl.toString();
mLibraryController->routeDataItem(urlString, pData); mLibraryController->routeDataItem(urlString, pData);
// dir.remove(qsFileName);
// dir.rmdir("tmp"); // Due to Qt, the directoy will be removed only if it's empty :)
} }
} }
......
...@@ -162,14 +162,10 @@ QString UBAudioQueueRecorder::deviceNameFromDeviceID(AudioDeviceID id) ...@@ -162,14 +162,10 @@ QString UBAudioQueueRecorder::deviceNameFromDeviceID(AudioDeviceID id)
if (noErr == AudioDeviceGetProperty(id, 0, true, kAudioObjectPropertyName, &size, &name)) if (noErr == AudioDeviceGetProperty(id, 0, true, kAudioObjectPropertyName, &size, &name))
{ {
char *cname = new char[1024]; char cname[1024];
memset(cname,0,1024);
bool result = CFStringGetCString (name, cname, 1024, kCFStringEncodingUTF8); CFStringGetCString (name, cname, 1024, kCFStringEncodingUTF8);
int length = CFStringGetLength (name); deviceName = QString::fromUtf8(cname);
deviceName = QString::fromUtf8(cname, length);
delete cname;
} }
CFRelease(name); CFRelease(name);
......
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