Commit 31ac41d4 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Show the wizard when the application starts.

Developers: you can use the 'Escape' key to bypass it :)
parent 7d65b89f
......@@ -59,17 +59,26 @@ MainWindow::MainWindow( QWidget *parent ) :
QMainWindow( parent ), m_renderer( NULL )
{
m_ui.setupUi( this );
qRegisterMetaType<MainWorkflow::TrackType>( "MainWorkflow::TrackType" );
qRegisterMetaType<MainWorkflow::FrameChangedReason>( "MainWorkflow::FrameChangedReason" );
// Settings
VLMCSettingsDefault::load( "default" );
VLMCSettingsDefault::load( "VLMC" );
// GUI
DockWidgetManager::instance( this )->setMainWindow( this );
initializeDockWidgets();
createStatusBar();
VLMCSettingsDefault::load( "default" );
VLMCSettingsDefault::load( "VLMC" );
m_pWizard = new ProjectWizard( this );
createGlobalPreferences();
createProjectPreferences();
// Wizard
m_pWizard = new ProjectWizard( this );
m_pWizard->setModal( true );
m_pWizard->show();
// Translations
connect( this, SIGNAL( translateDockWidgetTitle() ),
DockWidgetManager::instance(), SLOT( transLateWidgetTitle() ) );
......@@ -331,7 +340,7 @@ void MainWindow::on_actionNew_Project_triggered()
//TODO : clear the library, the timeline, and show the configuration box
//of the newly created project
m_projectPreferences->show();
m_pWizard->show();
}
void MainWindow::on_actionHelp_triggered()
......@@ -390,11 +399,6 @@ void MainWindow::on_actionProject_Preferences_triggered()
m_projectPreferences->show( "project" );
}
void MainWindow::on_actionProject_Wizard_triggered()
{
m_pWizard->show();
}
void MainWindow::closeEvent( QCloseEvent* e )
{
if ( ProjectManager::getInstance()->needSave() == true )
......
......@@ -93,7 +93,6 @@ private slots:
void on_actionImport_triggered();
void on_actionHelp_triggered();
void on_actionProject_Preferences_triggered();
void on_actionProject_Wizard_triggered();
void toolButtonClicked( int id );
void projectChanged( const QString& projectName, bool savedStatus );
......
......@@ -27,7 +27,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>24</height>
<height>23</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
......@@ -69,7 +69,6 @@
<string>Tools</string>
</property>
<addaction name="actionTranscode"/>
<addaction name="actionProject_Wizard"/>
</widget>
<widget class="QMenu" name="menuWindow">
<property name="title">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment