void Tab_Oggetto::OpenPath()
{
/* apri cartella pathfileroot */
qDebug() << "### pathfileroot " << xapri;
#if defined(Q_WS_WIN)
process.
setReadChannelMode(QProcess::MergedChannels);
if (!process.waitForFinished()) {
QMessageBox::information( this, tr
( "Errore del sistema operativo" ),tr
("Explorer non risponde. Aggiornate Window update! Errore ritornato %1").
arg(process.
errorString()));
} else {
qDebug() << "### reade " << process.readAll();
}
#endif
}
void Tab_Oggetto::OpenBrowserPath()
{
/* pref_browser http://wellson.ciz.ch/webdav/ */
QString browser
= Global_Config
(APPLICATION_SETTING,
"pref_browser");
QString url
= WWW_DOMAIN_USER
+ PATH_OGGETTI_HTML
+ QString::number(UNIXTIMEDIR
) + "/it/";
qDebug() << "### browser " << browser;
qDebug() << "### url " << url;
if (browser.size() < 3) {
QMessageBox::information( this, tr
( "Informazione Browser." ),tr
("Non avete ancora configurato un Applicativo Browser nelle preferenze!"));
} else {
process.
setReadChannelMode(QProcess::MergedChannels);
if (!process.waitForFinished()) {
QMessageBox::information( this, tr
( "Errore del browser!" ),tr
("Il programma Browser configurato risponde con un errore ... %1").
arg(process.
errorString()));
} else {
qDebug() << "### reade " << process.readAll();
}
}
}
void Tab_Oggetto::OpenPath()
{
/* apri cartella pathfileroot */
QString xapri = pathfileroot;
xapri.replace(QString("/"),"\\");
qDebug() << "### pathfileroot " << xapri;
#if defined(Q_WS_WIN)
QProcess process;
process.setReadChannelMode(QProcess::MergedChannels);
process.start("explorer.exe", QStringList() << xapri);
if (!process.waitForFinished()) {
QMessageBox::information( this, tr( "Errore del sistema operativo" ),tr("Explorer non risponde. Aggiornate Window update! Errore ritornato %1").arg(process.errorString()));
} else {
qDebug() << "### reade " << process.readAll();
}
#endif
}
void Tab_Oggetto::OpenBrowserPath()
{
/* pref_browser http://wellson.ciz.ch/webdav/ */
QString browser = Global_Config(APPLICATION_SETTING,"pref_browser");
QString url = WWW_DOMAIN_USER + PATH_OGGETTI_HTML + QString::number(UNIXTIMEDIR) + "/it/";
qDebug() << "### browser " << browser;
qDebug() << "### url " << url;
if (browser.size() < 3) {
QMessageBox::information( this, tr( "Informazione Browser." ),tr("Non avete ancora configurato un Applicativo Browser nelle preferenze!"));
} else {
QProcess process;
process.setReadChannelMode(QProcess::MergedChannels);
process.start(browser, QStringList() << url);
if (!process.waitForFinished()) {
QMessageBox::information( this, tr( "Errore del browser!" ),tr("Il programma Browser configurato risponde con un errore ... %1").arg(process.errorString()));
} else {
qDebug() << "### reade " << process.readAll();
}
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks