kcApp.cpp,kcMain.cpp: Include cmSymTbl.h to support dependency in cmScore.h.
This commit is contained in:
parent
b31d6ebbbf
commit
0f5c8b5897
@ -34,6 +34,7 @@
|
|||||||
#include "cmPrefs.h"
|
#include "cmPrefs.h"
|
||||||
#include "cmAudioFile.h"
|
#include "cmAudioFile.h"
|
||||||
#include "cmThread.h"
|
#include "cmThread.h"
|
||||||
|
#include "cmSymTbl.h"
|
||||||
#include "cmProcTest.h"
|
#include "cmProcTest.h"
|
||||||
|
|
||||||
#include "cmDspValue.h"
|
#include "cmDspValue.h"
|
||||||
@ -142,6 +143,9 @@ void kcApp::resize(int x, int y, int w, int h)
|
|||||||
Fl_Double_Window::resize(x, y, w, h);
|
Fl_Double_Window::resize(x, y, w, h);
|
||||||
cmPrefsPathSetInt(_prH,"appWndW",w);
|
cmPrefsPathSetInt(_prH,"appWndW",w);
|
||||||
cmPrefsPathSetInt(_prH,"appWndH",h);
|
cmPrefsPathSetInt(_prH,"appWndH",h);
|
||||||
|
cmPrefsPathSetInt(_prH,"appWndX",x);
|
||||||
|
cmPrefsPathSetInt(_prH,"appWndY",y);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void kcApp::tlCtlNewTimeLineFile( tlCtl* tlCtl, const cmChar_t* fn )
|
void kcApp::tlCtlNewTimeLineFile( tlCtl* tlCtl, const cmChar_t* fn )
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "cmText.h"
|
#include "cmText.h"
|
||||||
#include "cmFileSys.h"
|
#include "cmFileSys.h"
|
||||||
#include "cmPrefs.h"
|
#include "cmPrefs.h"
|
||||||
|
#include "cmSymTbl.h"
|
||||||
#include "cmDspValue.h"
|
#include "cmDspValue.h"
|
||||||
#include "cmMsgProtocol.h"
|
#include "cmMsgProtocol.h"
|
||||||
#include "cmAudDspIF.h"
|
#include "cmAudDspIF.h"
|
||||||
@ -40,7 +41,10 @@
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
kAppWndW = 1600,
|
kAppWndW = 1600,
|
||||||
kAppWndH = 750
|
kAppWndH = 750,
|
||||||
|
kAppWndX = 10,
|
||||||
|
kAppWndY = 10
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
kcApp* kcAppPtr = NULL;
|
kcApp* kcAppPtr = NULL;
|
||||||
@ -74,6 +78,8 @@ cmPrRC_t kcInitPrefs( cmCtx_t* ctx, cmPrH_t* prH )
|
|||||||
unsigned flags = 0;
|
unsigned flags = 0;
|
||||||
cmPrefsCreateInt(*prH, 1, "appWndW", flags, kAppWndW );
|
cmPrefsCreateInt(*prH, 1, "appWndW", flags, kAppWndW );
|
||||||
cmPrefsCreateInt(*prH, 2, "appWndH", flags, kAppWndH );
|
cmPrefsCreateInt(*prH, 2, "appWndH", flags, kAppWndH );
|
||||||
|
cmPrefsCreateInt(*prH, 3, "appWndX", flags, kAppWndX );
|
||||||
|
cmPrefsCreateInt(*prH, 4, "appWndY", flags, kAppWndY );
|
||||||
|
|
||||||
return cmPrefsRC(*prH);
|
return cmPrefsRC(*prH);
|
||||||
}
|
}
|
||||||
@ -134,9 +140,13 @@ int main( int argc, char* argv[] )
|
|||||||
{
|
{
|
||||||
int appWndW = cmPrefsIntDef(prH,"appWndW", kAppWndW);
|
int appWndW = cmPrefsIntDef(prH,"appWndW", kAppWndW);
|
||||||
int appWndH = cmPrefsIntDef(prH,"appWndH", kAppWndH);
|
int appWndH = cmPrefsIntDef(prH,"appWndH", kAppWndH);
|
||||||
|
int appWndX = cmPrefsIntDef(prH,"appWndX", kAppWndX);
|
||||||
|
int appWndY = cmPrefsIntDef(prH,"appWndY", kAppWndY);
|
||||||
|
|
||||||
kcAppPtr = new kcApp(&ctx, prH, printqH, appWndW, appWndH, appTitle, aiH, argc, argv);
|
kcAppPtr = new kcApp(&ctx, prH, printqH, appWndW, appWndH, appTitle, aiH, argc, argv);
|
||||||
|
|
||||||
|
kcAppPtr->resize(appWndX,appWndY,appWndW,appWndH);
|
||||||
|
|
||||||
cmAudDspLocalSendSetup(adlH);
|
cmAudDspLocalSendSetup(adlH);
|
||||||
|
|
||||||
Fl::run();
|
Fl::run();
|
||||||
|
Loading…
Reference in New Issue
Block a user