~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to utilities/queuemanager/queuemgrwindow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2010-08-26 19:25:16 UTC
  • mfrom: (1.2.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20100826192516-mkbdww0h5v2x4yoy
Tags: 2:1.4.0-0ubuntu1
* New upstream bugfix release (LP: #626751)
* Install the file NEWS as upstream changelog because "ChangeLog" is
  too verbose.
* Don't copy the desktop .pot file to imageplugins, not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2008-11-21
7
7
 * Description : Batch Queue Manager GUI
8
8
 *
9
 
 * Copyright (C) 2008-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
9
 * Copyright (C) 2008-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
10
 *
11
11
 * This program is free software; you can redistribute it
12
12
 * and/or modify it under the terms of the GNU General
194
194
void QueueMgrWindow::setupUserArea()
195
195
{
196
196
    QWidget* mainW          = new QWidget(this);
197
 
    QVBoxLayout *mainLayout = new QVBoxLayout(mainW);
 
197
    QVBoxLayout* mainLayout = new QVBoxLayout(mainW);
198
198
 
199
199
    // ------------------------------------------------------------------------------
200
200
 
201
 
    QGroupBox *queuesBox = new QGroupBox(i18n("Queues"), mainW);
202
 
    QVBoxLayout *vlay1   = new QVBoxLayout(queuesBox);
 
201
    QGroupBox* queuesBox = new QGroupBox(i18n("Queues"), mainW);
 
202
    QVBoxLayout* vlay1   = new QVBoxLayout(queuesBox);
203
203
    d->queuePool         = new QueuePool(queuesBox);
204
204
    vlay1->addWidget(d->queuePool);
205
205
    vlay1->setSpacing(0);
207
207
 
208
208
    // ------------------------------------------------------------------------------
209
209
 
210
 
    QGroupBox *queueSettingsBox = new QGroupBox(i18n("Queue Settings"), mainW);
211
 
    QVBoxLayout *vlay2          = new QVBoxLayout(queueSettingsBox);
 
210
    QGroupBox* queueSettingsBox = new QGroupBox(i18n("Queue Settings"), mainW);
 
211
    QVBoxLayout* vlay2          = new QVBoxLayout(queueSettingsBox);
212
212
    d->queueSettingsView        = new QueueSettingsView(queueSettingsBox);
213
213
    vlay2->addWidget(d->queueSettingsView);
214
214
    vlay2->setSpacing(0);
216
216
 
217
217
    // ------------------------------------------------------------------------------
218
218
 
219
 
    QGroupBox *toolsBox = new QGroupBox(i18n("Batch Tools Available / History"), mainW);
220
 
    QVBoxLayout *vlay3  = new QVBoxLayout(toolsBox);
 
219
    QGroupBox* toolsBox = new QGroupBox(i18n("Batch Tools Available / History"), mainW);
 
220
    QVBoxLayout* vlay3  = new QVBoxLayout(toolsBox);
221
221
    d->toolsView        = new ToolsView(toolsBox);
222
222
    vlay3->addWidget(d->toolsView);
223
223
    vlay3->setSpacing(0);
225
225
 
226
226
    // ------------------------------------------------------------------------------
227
227
 
228
 
    QGroupBox *assignBox = new QGroupBox(i18n("Assigned Tools"), mainW);
229
 
    QVBoxLayout *vlay4   = new QVBoxLayout(assignBox);
 
228
    QGroupBox* assignBox = new QGroupBox(i18n("Assigned Tools"), mainW);
 
229
    QVBoxLayout* vlay4   = new QVBoxLayout(assignBox);
230
230
    d->assignedList      = new AssignedListView(assignBox);
231
231
    vlay4->addWidget(d->assignedList);
232
232
    vlay4->setSpacing(0);
234
234
 
235
235
    // ------------------------------------------------------------------------------
236
236
 
237
 
    QGroupBox *toolSettingsBox = new QGroupBox(i18n("Tool Settings"), mainW);
238
 
    QVBoxLayout *vlay5         = new QVBoxLayout(toolSettingsBox);
 
237
    QGroupBox* toolSettingsBox = new QGroupBox(i18n("Tool Settings"), mainW);
 
238
    QVBoxLayout* vlay5         = new QVBoxLayout(toolSettingsBox);
239
239
    d->toolSettings            = new ToolSettingsView(toolSettingsBox);
240
240
    vlay5->addWidget(d->toolSettings);
241
241
    vlay5->setSpacing(0);
335
335
    connect(d->progressTimer, SIGNAL(timeout()),
336
336
            this, SLOT(slotProgressTimerDone()));
337
337
 
338
 
    connect(this, SIGNAL(signalWindowHasMoved()),
339
 
            d->queueSettingsView, SLOT(slotUpdateTrackerPos()));
340
 
 
341
 
    connect(this, SIGNAL(signalWindowLostFocus()),
342
 
            d->queueSettingsView, SLOT(slotHideToolTipTracker()));
343
 
 
344
338
    connect(d->toolsView, SIGNAL(signalHistoryEntryClicked(int, qlonglong)),
345
339
            this, SLOT(slotHistoryEntryClicked(int, qlonglong)));
346
340
 
515
509
    // Do not apply general settings from config panel if BQM is busy.
516
510
    if (d->busy) return;
517
511
 
518
 
    AlbumSettings *settings   = AlbumSettings::instance();
 
512
    AlbumSettings* settings   = AlbumSettings::instance();
519
513
    KSharedConfig::Ptr config = KGlobal::config();
520
514
 
521
515
    d->thread->setResetExifOrientationAllowed(settings->getExifSetOrientation());
531
525
 
532
526
    DRawDecoding         rawDecodingSettings;
533
527
    ICCSettingsContainer ICCSettings = IccSettings::instance()->settings();
534
 
    
 
528
 
535
529
    rawDecodingSettings.readSettings(group);
536
 
    
 
530
 
537
531
    if (ICCSettings.enableCM)
538
532
    {
539
533
        if (ICCSettings.defaultUncalibratedBehavior & ICCSettingsContainer::AutomaticColors)
633
627
 
634
628
        if (d->removeFullScreenButton)
635
629
        {
636
 
            QList<KToolBar *> toolbars = toolBars();
637
 
            foreach(KToolBar *toolbar, toolbars)
 
630
            QList<KToolBar*> toolbars = toolBars();
 
631
            foreach(KToolBar* toolbar, toolbars)
638
632
            {
639
633
                // name is set in ui.rc XML file
640
634
                if (toolbar->objectName() == "ToolBar")
661
655
        {
662
656
            showToolBars();
663
657
 
664
 
            QList<KToolBar *> toolbars = toolBars();
665
 
            KToolBar *mainToolbar = 0;
666
 
            foreach(KToolBar *toolbar, toolbars)
 
658
            QList<KToolBar*> toolbars = toolBars();
 
659
            KToolBar* mainToolbar = 0;
 
660
            foreach(KToolBar* toolbar, toolbars)
667
661
            {
668
662
                if (toolbar->objectName() == "ToolBar")
669
663
                {
699
693
 
700
694
void QueueMgrWindow::showToolBars()
701
695
{
702
 
    QList<KToolBar *> toolbars = toolBars();
703
 
    foreach(KToolBar *toolbar, toolbars)
 
696
    QList<KToolBar*> toolbars = toolBars();
 
697
    foreach(KToolBar* toolbar, toolbars)
704
698
    {
705
699
        toolbar->show();
706
700
    }
708
702
 
709
703
void QueueMgrWindow::hideToolBars()
710
704
{
711
 
    QList<KToolBar *> toolbars = toolBars();
712
 
    foreach(KToolBar *toolbar, toolbars)
 
705
    QList<KToolBar*> toolbars = toolBars();
 
706
    foreach(KToolBar* toolbar, toolbars)
713
707
    {
714
708
        toolbar->hide();
715
709
    }
831
825
void QueueMgrWindow::populateToolsList()
832
826
{
833
827
    BatchToolsList list = d->batchToolsMgr->toolsList();
834
 
    foreach(BatchTool *tool, list)
 
828
    foreach(BatchTool* tool, list)
835
829
    {
836
830
        d->toolsView->addTool(tool);
837
831
    }
1242
1236
    return true;
1243
1237
}
1244
1238
 
1245
 
void QueueMgrWindow::moveEvent(QMoveEvent *e)
 
1239
void QueueMgrWindow::moveEvent(QMoveEvent* e)
1246
1240
{
1247
1241
    Q_UNUSED(e)
1248
1242
    emit signalWindowHasMoved();
1249
1243
}
1250
1244
 
1251
 
bool QueueMgrWindow::event(QEvent *e)
 
1245
bool QueueMgrWindow::event(QEvent* e)
1252
1246
{
1253
1247
    switch (e->type())
1254
1248
    {