1 |
// qsamplerInstrumentListForm.ui.h |
2 |
// |
3 |
// ui.h extension file, included from the uic-generated form implementation. |
4 |
/**************************************************************************** |
5 |
Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved. |
6 |
|
7 |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
9 |
as published by the Free Software Foundation; either version 2 |
10 |
of the License, or (at your option) any later version. |
11 |
|
12 |
This program is distributed in the hope that it will be useful, |
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
GNU General Public License for more details. |
16 |
|
17 |
You should have received a copy of the GNU General Public License along |
18 |
with this program; if not, write to the Free Software Foundation, Inc., |
19 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20 |
|
21 |
*****************************************************************************/ |
22 |
|
23 |
#include "qsamplerMainForm.h" |
24 |
|
25 |
|
26 |
// Kind of constructor. |
27 |
void qsamplerInstrumentListForm::init (void) |
28 |
{ |
29 |
} |
30 |
|
31 |
|
32 |
// Kind of destructor. |
33 |
void qsamplerInstrumentListForm::destroy (void) |
34 |
{ |
35 |
} |
36 |
|
37 |
|
38 |
// Notify our parent that we're emerging. |
39 |
void qsamplerInstrumentListForm::showEvent ( QShowEvent *pShowEvent ) |
40 |
{ |
41 |
qsamplerMainForm *pMainForm = qsamplerMainForm::getInstance(); |
42 |
if (pMainForm) |
43 |
pMainForm->stabilizeForm(); |
44 |
|
45 |
QWidget::showEvent(pShowEvent); |
46 |
} |
47 |
|
48 |
|
49 |
// Notify our parent that we're closing. |
50 |
void qsamplerInstrumentListForm::hideEvent ( QHideEvent *pHideEvent ) |
51 |
{ |
52 |
QWidget::hideEvent(pHideEvent); |
53 |
|
54 |
qsamplerMainForm *pMainForm = qsamplerMainForm::getInstance(); |
55 |
if (pMainForm) |
56 |
pMainForm->stabilizeForm(); |
57 |
} |
58 |
|
59 |
|
60 |
// Refresh all instrument list and views. |
61 |
void qsamplerInstrumentListForm::refreshInstruments (void) |
62 |
{ |
63 |
InstrumentList->refresh(); |
64 |
} |
65 |
|
66 |
|
67 |
// end of qsamplerInstrumentListForm.ui.h |