AboutDialog::AboutDialog(const QString &version, QWidget *parent) : QDialog(parent) , ui(new Ui::AboutDialog) { ui->setupUi(this); m_LicenseFiles[LICENSE_LGPL3] = "lgpl-3.0.txt"; m_LicenseFiles[LICENSE_GPL3] = "gpl-3.0.txt"; m_LicenseFiles[LICENSE_BSD3] = "bsd3.txt"; m_LicenseFiles[LICENSE_BOOST] = "boost.txt"; m_LicenseFiles[LICENSE_CCBY3] = "by-sa3.txt"; m_LicenseFiles[LICENSE_ZLIB] = "zlib.txt"; m_LicenseFiles[LICENSE_APACHE2] = "apache-license-2.0.txt"; addLicense("Qt", LICENSE_LGPL3); addLicense("Qt Json", LICENSE_GPL3); addLicense("Boost Library", LICENSE_BOOST); addLicense("7-zip", LICENSE_LGPL3); addLicense("ZLib", LICENSE_ZLIB); addLicense("Tango Icon Theme", LICENSE_NONE); addLicense("RRZE Icon Set", LICENSE_CCBY3); addLicense("Icons by Lorc, Delapouite and sbed available on http://game-icons.net", LICENSE_CCBY3); addLicense("Castle Core", LICENSE_APACHE2); ui->nameLabel->setText(QString("<span style=\"font-size:12pt; font-weight:600;\">%1 %2</span>").arg(ui->nameLabel->text()).arg(version)); #ifdef HGID ui->revisionLabel->setText(ui->revisionLabel->text() + " " + HGID); #else ui->revisionLabel->setText(ui->revisionLabel->text() + " unknown"); #endif }
// Initialize using code only bool ofxOpenNIContext::setup() { if (initContext()) { addLicense("PrimeSense", "0KOIk2JeIBYClPWVnMoRKn5cdY4="); enableLogging(); return true; } else return false; }
// Initialize using an .ONI recording. //---------------------------------------- bool ofxOpenNIContext::setupUsingRecording(std::string sFileRecording) { xn::EnumerationErrors errors; initContext(); addLicense("PrimeSense", "0KOIk2JeIBYClPWVnMoRKn5cdY4="); is_using_recording = true; std::string file_path = ofToDataPath(sFileRecording.c_str(), true); printf("Attempting to open file: %s\n", file_path.c_str()); XnStatus result = context.OpenFileRecording(file_path.c_str()); if(result != XN_STATUS_OK) logErrors(errors); BOOL_RC(result, "Loading file"); }
OktetaAboutData::OktetaAboutData() : KAboutData( ProgramId, 0, ki18n("Okteta"), ProgramVersion, // name ki18n("KDE byte editor"), // description KAboutData::License_GPL_V2, ki18n("Copyright 2006-2010 Friedrich W. H. Kossebau"), //copyright ki18n("Edit the raw data of files"), // comment ProgramHomepage ) { setProgramIconName( QString::fromLatin1("okteta") ); addLicense(KAboutData::License_GPL_V3); setOrganizationDomain( "kde.org" ); addAuthor( ki18n("Friedrich W. H. Kossebau"), // name ki18n("Author"), // task FWHKEmailAddress ); addAuthor( ki18nc("Author","Alexander Richardson"),// name ki18nc("Task description","Structures tool"), // task AREmailAddress ); }
OktetaAboutData::OktetaAboutData() : KAboutData( QStringLiteral("okteta"), i18n("Okteta"), // name QStringLiteral("0.21.60"), i18n("Hex editor"), // description KAboutLicense::GPL_V2, i18n("Copyright 2006-2016 Friedrich W. H. Kossebau"), //copyright i18n("Edit the raw data of files"), // comment QStringLiteral("https://userbase.kde.org/Okteta") ) { addLicense(KAboutLicense::GPL_V3); setOrganizationDomain( "kde.org" ); addAuthor( i18n("Friedrich W. H. Kossebau"), // name i18n("Author"), // task QStringLiteral("*****@*****.**") ); addAuthor( i18nc("Author","Alexander Richardson"),// name i18nc("Task description","Structures tool"), // task QStringLiteral("*****@*****.**") ); #if KCOREADDONS_VERSION >= 0x051600 setDesktopFileName(QStringLiteral("org.kde.okteta")); #endif }