WelcomeScreen: implemented project loading functionality

It's now possible to load projects by clicking them in one of the
two lists (recent projects, recent community resources).
This commit is contained in:
Tobias Doerffel
2009-08-21 23:48:33 +02:00
parent 97e52de521
commit fe99a7a35c
2 changed files with 59 additions and 6 deletions

View File

@@ -25,11 +25,13 @@
#ifndef _WELCOME_SCREEN_H
#define _WELCOME_SCREEN_H
#include <QtCore/QModelIndex>
#include <QtGui/QWidget>
namespace Ui { class WelcomeScreen; }
class QListWidgetItem;
class RecentResourceListModel;
class WelcomeScreen : public QWidget
@@ -45,11 +47,17 @@ private slots:
void importProject();
void openTutorial();
void instantMidiAction();
void openRecentProject( const QModelIndex & );
void openCommunityResource( const QModelIndex & );
void openOnlineResource( QListWidgetItem * _item );
private:
void switchView();
Ui::WelcomeScreen * ui;
RecentResourceListModel * m_recentProjectsModel;
RecentResourceListModel * m_communityResourcesModel;
} ;