Example #1
0
void COMMANDLINE_OPTIMIZE CommandLine::Interface::helpHandler(Interface* interface, char* args)
{
    char* cmd = StringTools::nextWord(&args);
    if (cmd)
    {
        if (!interface->checkNoArgsLeft(&args)) return;
        for (const Command* command = interface->commandHandlers; true; command++)
        {
            if (!command->command)
            {
                interface->printf("ERR Unknown command \"%s\"\r\n", cmd);
                return;
            }
            if (strcmp(cmd, command->command)) continue;
            interface->printf("DBG Command help:\r\n");
            showSummary(interface, command);
            interface->printMultiline("DBG ", command->helpDetail);
            break;
        }
    }
    else
    {
        interface->printf("DBG List of commands:\r\n");
        for (const Command* command = interface->commandHandlers; command->command; command++)
            showSummary(interface, command);
    }
    interface->printf("OK\r\n");
}
void RemoveRedEyesWindow::threadFinished()
{
    d->progress->hide();
    setBusy(false);
    QApplication::restoreOverrideCursor();

    switch (d->runtype)
    {
        case WorkerThread::Testrun:
            handleUnprocessedImages();
            break;

        case WorkerThread::Correction:
            // show summary and close the plugin
            showSummary();
            break;

        case WorkerThread::Preview:
            // load generated preview images
            d->previewWidget->setPreviewImage(PreviewWidget::OriginalImage,  d->originalImageTempFile.fileName());
            d->previewWidget->setPreviewImage(PreviewWidget::CorrectedImage, d->correctedImageTempFile.fileName());
            d->previewWidget->setPreviewImage(PreviewWidget::MaskImage,      d->maskImageTempFile.fileName());
            break;
    }

    disconnect(d->thread, SIGNAL(calculationFinished(WorkerThreadData*)),
               this, SLOT(calculationFinished(WorkerThreadData*)));
}
LibraryReadingLineGridViewer::LibraryReadingLineGridViewer(QWidget* parent) :
    LibraryGridViewer(parent)
{
    setupUi(this);
    connect(mainBookInfoCont, SIGNAL(tap()), this, SLOT(openMostRecent()));
    connect(mainBookInfoCont, SIGNAL(longPressStart()), this, SLOT(showSummary()));

    subscriptionTagLbl->hide();
}
Example #4
0
void ListView::updateSummary()
{
    int items = m_model->rowCount();
    showSummary( QPixmap(), tr( "%1 issues" ).arg( items ) );
}