Logo Search packages:      
Sourcecode: darkroom version File versions  Download package

Darkroom::Darkroom (  ) 

Default Constructor

Definition at line 69 of file Darkroom.cpp.

    : KXmlGuiWindow(), d(new Private)
{
    KGlobal::mainComponent().dirs()->addResourceType("icc_profiles", 0, "share/color/icc/");
 
    d->rawOptionsWidget = 0;
    d->view = new DarkroomView(this);
    d->currentRawFile = 0;
    
    // accept dnd
    setAcceptDrops(true);

    // tell the KXmlGuiWindow that this is indeed the main widget
    setCentralWidget(d->view);

    // then, setup our actions
    setupActions();

    // add a status bar
    statusBar()->show();
    
    // Create the progress bar
    d->progressBar = new QProgressBar(statusBar());
    d->progressBar->setMinimum( 0 );
    d->progressBar->setMaximum( 100 );
    d->progressBar->setVisible( false );
    d->progressBar->setTextVisible( false );
    d->progressBar->setMaximumWidth( 200 );
    d->progressBarTimeLine.setDuration( 10000 );
    d->progressBarTimeLine.setFrameRange( 0, 100 );
    d->progressBarTimeLine.start();
    d->progressBarTimeLine.setLoopCount( 0 );
    connect( &d->progressBarTimeLine, SIGNAL(frameChanged ( int ) ), d->progressBar, SLOT(setValue( int ) ) );
    statusBar()->addPermanentWidget( d->progressBar );

    // a call to KXmlGuiWindow::setupGUI() populates the GUI
    // with actions, using KXMLGUI.
    // It also applies the saved mainwindow settings, if any, and ask the
    // mainwindow to automatically save settings if changed: window size,
    // toolbar position, icon size, etc.
    setupGUI();
    
    // Initialize dockers
    setupDockers();
    setCorner(Qt::TopLeftCorner, Qt::LeftDockWidgetArea );
    setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea );
    setCorner(Qt::TopRightCorner, Qt::RightDockWidgetArea );
    setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea );
    
    // Initialize weaver observer
    observeWeaver( JobPreview::weaver() );
    observeWeaver( JobExport::weaver() );
    observeWeaver( JobThumbnail::weaver() );
}


Generated by  Doxygen 1.6.0   Back to index