{
MainWindow w;
- w.show();
ret = a.exec();
}
layout->addWidget(view);
// Progress
- progress = new Progress(central);
+ progress = new Progress(this);
// Settings dialog
settings = new QDialog(this);
QString name(fileNameInZip);
for (int i = 0; i < excludedExtensions.length(); i++) {
if (name.endsWith(excludedExtensions[i], Qt::CaseInsensitive)) {
- qDebug() << "Skipping" << name;
+ qDebug() << "extractCurrentFile: Skipping" << name;
free(buf);
return UNZ_OK;
}
}
+ qDebug() << "extractCurrentFile: Extracting" << name;
const char *writeFileName;
int skip = 0;
contentItem.size = 0;
book.content[id] = contentItem;
book.chapters.append(id);
- qDebug() << "" << id << "name" << name << "href" << href;
foreach (TreeItem *child, children) {
child->addToBook(book);
}
}
} else if (name == "navPoint") {
if (currentItem) {
- qDebug() << "NcxHandler::endElement " << currentItem->id;
currentItem = currentItem->parent;
if (currentItem == 0) {
- qDebug() << " Root item reached, dumping tree";
+ // Root navigation point reached, dump TOC tree
rootItem->addToBook(book);
delete rootItem;
rootItem = 0;
currentText = "";
if (name == "navPoint") {
TreeItem *item = new TreeItem(attrs.value("id"), currentItem);
- qDebug() << "NcxHandler::startElement" << attrs.value("id");
if (!rootItem) {
rootItem = item;
}
QString key = attrs.value("id");
book.content[key] = item;
partCount++;
- qDebug() << "OpsHandler::startElement: name" << item.name << "href"
- << attrs.value("href") << "id" << key;
} else if (name == "itemref") {
- qDebug() << "OpsHandler::startElement: parts[" << book.parts.size()
- << "]" << attrs.value("idref");
book.parts.append(attrs.value("idref"));
}
return true;
setValue(0);
show();
}
+
+void ProgressDialog::show()
+{
+ TRACE;
+ QProgressDialog::show();
+}
public:
explicit ProgressDialog(const QString &label, QWidget *parent = 0);
+public slots:
/** Show wait animation instead of progress bar. */
void showWait();
+
+ /** Show dialog, adjust position if needed. */
+ void show();
};
#endif // PROGRESSDIALOG_H