~ubuntu-branches/ubuntu/hardy/lmms/hardy

« back to all changes in this revision

Viewing changes to include/main_window.h

  • Committer: Bazaar Package Importer
  • Author(s): Tobias Doerffel
  • Date: 2007-09-17 15:00:24 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070917150024-mo0zk4ks81jawqii
Tags: 0.3.0-1ubuntu1
* Resynchronized with Debian (LP: #139759, LP: #90806, LP: #102639,
  LP: #113447, LP: #121172, LP: #124890)
* reverted changes from 0.2.1-1.1ubuntu1 as upstream merged/included them

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * main_window.h - declaration of class mainWindow, the main window of LMMS
3
3
 *
4
 
 * Copyright (c) 2004-2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
 
4
 * Copyright (c) 2004-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5
5
 * 
6
6
 * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
7
7
 *
17
17
 *
18
18
 * You should have received a copy of the GNU General Public
19
19
 * License along with this program (see COPYING); if not, write to the
20
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21
 
 * Boston, MA 02111-1307, USA.
 
20
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
21
 * Boston, MA 02110-1301 USA.
22
22
 *
23
23
 */
24
24
 
48
48
#endif
49
49
 
50
50
 
51
 
#include "types.h"
52
 
#include "engine.h"
53
 
 
54
 
 
 
51
class QAction;
55
52
class QDomElement;
56
53
class QGridLayout;
57
54
class QSplashScreen;
58
55
 
59
56
class configManager;
 
57
class tool;
60
58
class toolButton;
61
59
 
62
60
 
63
 
class mainWindow : public QMainWindow, public engineObject
 
61
class mainWindow : public QMainWindow
64
62
{
65
63
        Q_OBJECT
66
64
public:
111
109
                QWhatsThis::enterWhatsThisMode();
112
110
        }
113
111
        void createNewProject( void );
114
 
        void createNewProjectFromTemplate( int _idx );
 
112
        void createNewProjectFromTemplate( QAction * _idx );
 
113
        void createNewProjectFromTemplate( int _id );
115
114
        void openProject( void );
 
115
        void updateRecentlyOpenedProjectsMenu( void );
 
116
        void openRecentlyOpenedProject( int );
116
117
        bool saveProject( void );
117
118
        bool saveProjectAs( void );
118
119
        void showSettingsDialog( void );
136
137
 
137
138
 
138
139
private:
139
 
        mainWindow( engine * _engine );
 
140
        mainWindow( void );
140
141
        mainWindow( const mainWindow & );
141
142
        virtual ~mainWindow();
142
143
 
143
144
        void finalize( void );
144
145
 
 
146
        bool have_www_browser( void );
 
147
 
145
148
 
146
149
        QWorkspace * m_workspace;
147
150
 
149
152
        QGridLayout * m_toolBarLayout;
150
153
 
151
154
        QMenu * m_templatesMenu;
 
155
        QMenu * m_recentlyOpenedProjectsMenu;
152
156
        int m_custom_templates_count;
153
157
 
154
158
        struct keyModifiers
164
168
                bool m_alt;
165
169
        } m_keyMods;
166
170
 
 
171
        QMenu * m_tools_menu;
 
172
        vlist<tool *> m_tools;
 
173
 
167
174
 
168
175
        friend class engine;
169
176
 
170
177
 
171
178
private slots:
 
179
        void browseHelp( void );
172
180
        void fillTemplatesMenu( void );
 
181
        void showTool( QAction * _idx );
 
182
        void showTool( int _idx );
173
183
 
174
184
} ;
175
185