[go: up one dir, main page]

Menu

[r65]: / WinCycle.h  Maximize  Restore  History

Download this file

177 lines (160 with data), 4.3 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/* WinCycle.h
*
*
* this file is part of:
*
* Cyclone --- Loop Giant
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* 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.
*
* Sergio Atzori, 2010
*
*
*/
#ifndef WINCYCLE_H
#define WINCYCLE_H
#include <QMainWindow>
#include <QList>
#include "AuxCycle.h"
#include "CyTab.h"
#include "CyUndo.h"
#include "CyMidi.h"
#include "CyUi.h"
#include "CyLoop.h"
#include "JackThread.h"
#include "MidiThread.h"
#include "Dialogs.h"
class QAction;
class QTableWidget;
class QString;
class QLabel;
class CyUndo;
class WinCycle : public QMainWindow
{
Q_OBJECT
public:
WinCycle(QString file);
void printOutput(QString string);
void refreshPaste();
bool closeProject();
void midiLearnButton(int x, int y, int type);
void shutdownJ();
void start();
QString focus; /* now fixed to 'Resources', in future will switch among various widgets */
CyTabWidget *sessions;
CyUndo *undo;
MidiThread mix;
JackThread jax;
midicmd globalmidifunctions[13];
/*
globalmidifuncions[0] = global volume
globalmidifuncions[1] = previous loop
globalmidifuncions[2] = transport play
globalmidifuncions[3] = next loop
globalmidifuncions[4] = next session
globalmidifuncions[5] = transport stop
globalmidifuncions[6] = previous session
globalmidifuncions[7] = transport first
globalmidifuncions[8] = transport previous
globalmidifuncions[9] = transport rec
globalmidifuncions[10] = transport next
globalmidifuncions[11] = transport last
globalmidifuncions[12] = ?????????????
*/
QSlider *volume;
QPushButton *ejectL;
QPushButton *rewL;
QPushButton *firstL;
QPushButton *fwdL;
QPushButton *lastL;
QPushButton *recL;
QPushButton *playL;
QPushButton *stopL;
QPushButton *moveUp;
QPushButton *moveDown;
QPushButton *moveLeft;
QPushButton *moveRight;
QPushButton *nextUp;
QPushButton *nextDown;
QPushButton *nextLeft;
QPushButton *nextRight;
QPushButton *mute;
QAction *newProjectAction;
QAction *openProjectAction;
QAction *addFilesAction;
QAction *preferencesAction;
QAction *connectSooperlooper;
QAction *stopJack;
QAction *startJack;
QAction *exitAction;
QAction *helpAction;
QAction *websiteAction;
QAction *aboutAction;
QAction *aboutQtAction;
QAction *moveUpAction;
QAction *moveDownAction;
QAction *moveLeftAction;
QAction *moveRightAction;
QAction *nextUpAction;
QAction *nextDownAction;
QAction *nextLeftAction;
QAction *nextRightAction;
QAction *muteAction;
QAction *copyLoop;
QAction *copySession;
QAction *pasteLoop;
QAction *pasteSession;
QAction *saveProjectAction;
QAction *saveAsProjectAction;
QAction *removeLoopAction;
QAction *removeSessionAction;
QAction *renameSessionAction;
QAction *addSessionAction;
QAction *undoAction;
QAction *redoAction;
QShortcut *mfS;
QShortcut *mbS;
QShortcut *nextS;
QShortcut *prevS;
QShortcut *pL;
QShortcut *sL;
QShortcut *mfL;
QShortcut *mbL;
QShortcut *nextL;
QShortcut *prevL;
int windebug;
AuxCycle *aux;
CyMidi *cymidi;
CyUi *ui;
QLabel *durLabel;
bool gvpress;
public slots:
void jackUp();
void jackDown();
void stop(bool clrow = true);
void preferences(bool forced = false);
void stopJ();
void startJ();
private slots:
void generalVolume(int vl);
void generalVolumeUndo();
void csl();
void newProject();
void about();
void winMod(bool mod);
void muteButton(bool mt);
void refreshTitle(QString title);
private:
bool okToContinue();
void closeEvent(QCloseEvent *event);
void modifyMidiButtons(bool playing);
bool fStart;
};
#endif