Browse Source

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

master
kevin 11 years ago
parent
commit
0f5c8b5897
2 changed files with 15 additions and 1 deletions
  1. 4
    0
      src/kc/kcApp.cpp
  2. 11
    1
      src/kc/kcMain.cpp

+ 4
- 0
src/kc/kcApp.cpp View File

@@ -34,6 +34,7 @@
34 34
 #include "cmPrefs.h"
35 35
 #include "cmAudioFile.h"
36 36
 #include "cmThread.h"
37
+#include "cmSymTbl.h"
37 38
 #include "cmProcTest.h"
38 39
 
39 40
 #include "cmDspValue.h"
@@ -142,6 +143,9 @@ void kcApp::resize(int x, int y, int w, int h)
142 143
   Fl_Double_Window::resize(x, y, w, h);
143 144
   cmPrefsPathSetInt(_prH,"appWndW",w);
144 145
   cmPrefsPathSetInt(_prH,"appWndH",h);
146
+  cmPrefsPathSetInt(_prH,"appWndX",x);
147
+  cmPrefsPathSetInt(_prH,"appWndY",y);
148
+
145 149
 }
146 150
 
147 151
 void kcApp::tlCtlNewTimeLineFile( tlCtl* tlCtl, const cmChar_t* fn )

+ 11
- 1
src/kc/kcMain.cpp View File

@@ -23,6 +23,7 @@
23 23
 #include "cmText.h"
24 24
 #include "cmFileSys.h"
25 25
 #include "cmPrefs.h"
26
+#include "cmSymTbl.h"
26 27
 #include "cmDspValue.h"
27 28
 #include "cmMsgProtocol.h"
28 29
 #include "cmAudDspIF.h"
@@ -40,7 +41,10 @@
40 41
 enum
41 42
 {
42 43
   kAppWndW = 1600,
43
-  kAppWndH = 750
44
+  kAppWndH = 750,
45
+  kAppWndX = 10,
46
+  kAppWndY = 10
47
+  
44 48
 };
45 49
   
46 50
 kcApp* kcAppPtr = NULL;
@@ -74,6 +78,8 @@ cmPrRC_t kcInitPrefs( cmCtx_t* ctx, cmPrH_t* prH )
74 78
   unsigned flags = 0;
75 79
   cmPrefsCreateInt(*prH, 1, "appWndW", flags, kAppWndW );
76 80
   cmPrefsCreateInt(*prH, 2, "appWndH", flags, kAppWndH );
81
+  cmPrefsCreateInt(*prH, 3, "appWndX", flags, kAppWndX );
82
+  cmPrefsCreateInt(*prH, 4, "appWndY", flags, kAppWndY );
77 83
 
78 84
   return cmPrefsRC(*prH);
79 85
 }
@@ -134,9 +140,13 @@ int main( int argc, char* argv[] )
134 140
   {
135 141
     int appWndW = cmPrefsIntDef(prH,"appWndW", kAppWndW);
136 142
     int appWndH = cmPrefsIntDef(prH,"appWndH", kAppWndH);
143
+    int appWndX = cmPrefsIntDef(prH,"appWndX", kAppWndX);
144
+    int appWndY = cmPrefsIntDef(prH,"appWndY", kAppWndY);
137 145
     
138 146
     kcAppPtr = new kcApp(&ctx, prH, printqH, appWndW, appWndH, appTitle, aiH, argc, argv);
139 147
     
148
+    kcAppPtr->resize(appWndX,appWndY,appWndW,appWndH);
149
+
140 150
     cmAudDspLocalSendSetup(adlH);
141 151
 
142 152
     Fl::run();

Loading…
Cancel
Save