Files
lmms/include/WelcomeScreen.h
Tobias Doerffel fe99a7a35c 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).
2009-08-21 23:48:33 +02:00

66 lines
1.7 KiB
C++

/*
* WelcomeScreen.h - header file for WelcomeScreen
*
* Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program (see COPYING); if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
*/
#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
{
Q_OBJECT
public:
WelcomeScreen( QWidget * _parent );
~WelcomeScreen();
private slots:
void createNewProject();
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;
} ;
#endif