kcApp.cpp,kcMain.cpp: Include cmSymTbl.h to support dependency in cmScore.h.

This commit is contained in:
kevin 2013-03-01 17:42:52 -08:00
parent b31d6ebbbf
commit 0f5c8b5897
2 changed files with 15 additions and 1 deletions

View File

@ -34,6 +34,7 @@
#include "cmPrefs.h"
#include "cmAudioFile.h"
#include "cmThread.h"
#include "cmSymTbl.h"
#include "cmProcTest.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);
cmPrefsPathSetInt(_prH,"appWndW",w);
cmPrefsPathSetInt(_prH,"appWndH",h);
cmPrefsPathSetInt(_prH,"appWndX",x);
cmPrefsPathSetInt(_prH,"appWndY",y);
}
void kcApp::tlCtlNewTimeLineFile( tlCtl* tlCtl, const cmChar_t* fn )

View File

@ -23,6 +23,7 @@
#include "cmText.h"
#include "cmFileSys.h"
#include "cmPrefs.h"
#include "cmSymTbl.h"
#include "cmDspValue.h"
#include "cmMsgProtocol.h"
#include "cmAudDspIF.h"
@ -40,7 +41,10 @@
enum
{
kAppWndW = 1600,
kAppWndH = 750
kAppWndH = 750,
kAppWndX = 10,
kAppWndY = 10
};
kcApp* kcAppPtr = NULL;
@ -74,6 +78,8 @@ cmPrRC_t kcInitPrefs( cmCtx_t* ctx, cmPrH_t* prH )
unsigned flags = 0;
cmPrefsCreateInt(*prH, 1, "appWndW", flags, kAppWndW );
cmPrefsCreateInt(*prH, 2, "appWndH", flags, kAppWndH );
cmPrefsCreateInt(*prH, 3, "appWndX", flags, kAppWndX );
cmPrefsCreateInt(*prH, 4, "appWndY", flags, kAppWndY );
return cmPrefsRC(*prH);
}
@ -134,9 +140,13 @@ int main( int argc, char* argv[] )
{
int appWndW = cmPrefsIntDef(prH,"appWndW", kAppWndW);
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->resize(appWndX,appWndY,appWndW,appWndH);
cmAudDspLocalSendSetup(adlH);
Fl::run();