百人一首かるた自動読み上げソフト
Revision | dfc0d989ea20cd3d134e1614f02cc6d9e7187661 (tree) |
---|---|
Zeit | 2011-11-05 09:41:22 |
Autor | arakaki <alucky4416@user...> |
Commiter | arakaki |
CHG: add ui Wait1Time spinbox
@@ -34,18 +34,18 @@ void FudaSelectDlg::SetFList(QList<int> *List) | ||
34 | 34 | |
35 | 35 | void FudaSelectDlg::on_buttonBox_accepted() |
36 | 36 | { |
37 | - qDebug() << "Click Dialog->OkBtn"; | |
38 | - | |
37 | +// qDebug() << "Click Dialog->OkBtn"; | |
39 | 38 | GetCheckedList_CheckBox(); |
40 | 39 | |
41 | - for (int i = 0; i < FudaList->count(); i++) { | |
42 | - qDebug() << QString("FudaList[%1] = %2").arg(i).arg(FudaList->at(i)); | |
43 | - } | |
40 | +// for (int i = 0; i < FudaList->count(); i++) { | |
41 | +// qDebug() << QString("FudaList[%1] = %2").arg(i).arg(FudaList->at(i)); | |
42 | +// } | |
44 | 43 | } |
45 | 44 | |
46 | 45 | void FudaSelectDlg::on_buttonBox_rejected() |
47 | 46 | { |
48 | - qDebug() << "Click Dialog->CancelBtn"; | |
47 | +// qDebug() << "Click Dialog->CancelBtn"; | |
48 | + ; | |
49 | 49 | } |
50 | 50 | |
51 | 51 | void FudaSelectDlg::ConnectSlotSignal_BtnAndCheckBox() |
@@ -38,7 +38,7 @@ MainWindow::MainWindow(QWidget *parent) : | ||
38 | 38 | QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); // source codec is UTF-8 |
39 | 39 | |
40 | 40 | QCoreApplication::setApplicationName("QtKarutaEishow"); |
41 | - QCoreApplication::setApplicationVersion("1.0 beta4"); | |
41 | + QCoreApplication::setApplicationVersion("1.0 beta6"); | |
42 | 42 | this->setWindowTitle(QCoreApplication::applicationName()); |
43 | 43 | IniFilePath = QCoreApplication::applicationDirPath() + QDir::separator() + QCoreApplication::applicationName() + ".ini"; |
44 | 44 |
@@ -62,10 +62,11 @@ MainWindow::MainWindow(QWidget *parent) : | ||
62 | 62 | |
63 | 63 | // Play setting |
64 | 64 | chk_joka = true; |
65 | - Wait1Time = 1; | |
65 | + Wait1Time = 10; | |
66 | 66 | Wait2Time = 3; |
67 | 67 | ui->checkBox->setChecked(chk_joka); |
68 | - ui->spinBox->setValue(Wait2Time); | |
68 | + ui->spinBox_1->setValue(Wait1Time); | |
69 | + ui->spinBox_2->setValue(Wait2Time); | |
69 | 70 | PlayCounter = 0; |
70 | 71 | PlayListCount = 0; |
71 | 72 | // statusBar |
@@ -143,7 +144,8 @@ void MainWindow::on_Btn_Start_clicked() | ||
143 | 144 | { |
144 | 145 | if (!flag_playseqstate) { |
145 | 146 | // WaitTime, CheckBox disable |
146 | - ui->spinBox->setEnabled(false); | |
147 | + ui->spinBox_1->setEnabled(false); | |
148 | + ui->spinBox_2->setEnabled(false); | |
147 | 149 | ui->checkBox->setEnabled(false); |
148 | 150 | |
149 | 151 | // Generate Play FudaList |
@@ -252,25 +254,27 @@ void MainWindow::SequenceEnded(int status) | ||
252 | 254 | flag_pause = false; |
253 | 255 | |
254 | 256 | // WaitTime, CheckBox enable |
255 | - ui->spinBox->setEnabled(true); | |
257 | + ui->spinBox_1->setEnabled(true); | |
258 | + ui->spinBox_2->setEnabled(true); | |
256 | 259 | ui->checkBox->setEnabled(true); |
257 | 260 | |
258 | 261 | ui->Btn_Start->setIcon(QIcon(QPixmap(":/images/Play.png"))); |
259 | 262 | } |
260 | 263 | |
261 | -void MainWindow::on_spinBox_valueChanged(int arg1) | |
264 | + | |
265 | +void MainWindow::on_spinBox_1_valueChanged(int arg1) | |
262 | 266 | { |
263 | -// chk_joka = true; | |
264 | -// Wait1Time = 1; | |
265 | - Wait2Time = arg1; | |
267 | + Wait1Time = arg1; | |
266 | 268 | } |
267 | 269 | |
270 | +void MainWindow::on_spinBox_2_valueChanged(int arg1) | |
271 | +{ | |
272 | + Wait2Time = arg1; | |
273 | +} | |
268 | 274 | |
269 | 275 | void MainWindow::on_checkBox_toggled(bool checked) |
270 | 276 | { |
271 | 277 | chk_joka = checked; |
272 | -// Wait1Time = 1; | |
273 | -// Wait2Time = arg1; | |
274 | 278 | } |
275 | 279 | |
276 | 280 |
@@ -298,14 +302,14 @@ void MainWindow::LoadSaveSetting(QString filepath, bool store = false) | ||
298 | 302 | if (store) { |
299 | 303 | // Save |
300 | 304 | QString FudaListStr = FudaList_ToCSVString(FList); |
301 | - qDebug() << "FudaListStr is " << FudaListStr; | |
305 | + // qDebug() << "FudaListStr is " << FudaListStr; | |
302 | 306 | |
303 | 307 | settings.setValue("SETTING/FudaList", FudaListStr); |
304 | 308 | |
305 | 309 | } else { |
306 | 310 | // Load |
307 | 311 | QString FudaListStr(settings.value("SETTING/FudaList", QString("")).toString()); |
308 | - qDebug() << "FudaListStr is " << FudaListStr; | |
312 | + // qDebug() << "FudaListStr is " << FudaListStr; | |
309 | 313 | |
310 | 314 | FList->clear(); |
311 | 315 | if (FudaListStr.isEmpty()) { |
@@ -320,7 +324,7 @@ void MainWindow::LoadSaveSetting(QString filepath, bool store = false) | ||
320 | 324 | x = FudaStrList.at(i).toInt(); |
321 | 325 | if (1 <= x && x <= 100) { |
322 | 326 | FList->append(x); |
323 | - qDebug() << QString("FList [%1] is %2").arg(i).arg(FList->last()); | |
327 | + // qDebug() << QString("FList [%1] is %2").arg(i).arg(FList->last()); | |
324 | 328 | } |
325 | 329 | } |
326 | 330 | } |
@@ -26,6 +26,10 @@ private slots: | ||
26 | 26 | void on_Btn_Start_clicked(); |
27 | 27 | void on_Btn_Stop_clicked(); |
28 | 28 | void on_Btn_FudaSelect_clicked(); |
29 | + void on_spinBox_1_valueChanged(int arg1); | |
30 | + void on_spinBox_2_valueChanged(int arg1); | |
31 | + void on_checkBox_toggled(bool checked); | |
32 | + void on_actionFuda_triggered(); | |
29 | 33 | |
30 | 34 | // signals: |
31 | 35 | // void SequencStartded(); |
@@ -41,12 +45,6 @@ private slots: | ||
41 | 45 | void Music2Ended(); |
42 | 46 | void SequenceEnded(int status); // status 0 is success, !0 is Fail |
43 | 47 | |
44 | - void on_spinBox_valueChanged(int arg1); | |
45 | - | |
46 | - void on_checkBox_toggled(bool checked); | |
47 | - | |
48 | - void on_actionFuda_triggered(); | |
49 | - | |
50 | 48 | private: |
51 | 49 | Ui::MainWindow *ui; |
52 | 50 |
@@ -6,20 +6,20 @@ | ||
6 | 6 | <rect> |
7 | 7 | <x>0</x> |
8 | 8 | <y>0</y> |
9 | - <width>348</width> | |
10 | - <height>367</height> | |
9 | + <width>391</width> | |
10 | + <height>429</height> | |
11 | 11 | </rect> |
12 | 12 | </property> |
13 | 13 | <property name="minimumSize"> |
14 | 14 | <size> |
15 | - <width>277</width> | |
16 | - <height>296</height> | |
15 | + <width>391</width> | |
16 | + <height>429</height> | |
17 | 17 | </size> |
18 | 18 | </property> |
19 | 19 | <property name="maximumSize"> |
20 | 20 | <size> |
21 | - <width>400</width> | |
22 | - <height>500</height> | |
21 | + <width>391</width> | |
22 | + <height>429</height> | |
23 | 23 | </size> |
24 | 24 | </property> |
25 | 25 | <property name="windowTitle"> |
@@ -33,8 +33,8 @@ | ||
33 | 33 | <widget class="QCommandLinkButton" name="Btn_Stop"> |
34 | 34 | <property name="geometry"> |
35 | 35 | <rect> |
36 | - <x>210</x> | |
37 | - <y>190</y> | |
36 | + <x>230</x> | |
37 | + <y>250</y> | |
38 | 38 | <width>41</width> |
39 | 39 | <height>81</height> |
40 | 40 | </rect> |
@@ -68,8 +68,8 @@ | ||
68 | 68 | <widget class="QCommandLinkButton" name="Btn_Start"> |
69 | 69 | <property name="geometry"> |
70 | 70 | <rect> |
71 | - <x>100</x> | |
72 | - <y>180</y> | |
71 | + <x>120</x> | |
72 | + <y>240</y> | |
73 | 73 | <width>51</width> |
74 | 74 | <height>101</height> |
75 | 75 | </rect> |
@@ -125,8 +125,8 @@ | ||
125 | 125 | <widget class="QLabel" name="label_4"> |
126 | 126 | <property name="geometry"> |
127 | 127 | <rect> |
128 | - <x>20</x> | |
129 | - <y>70</y> | |
128 | + <x>70</x> | |
129 | + <y>120</y> | |
130 | 130 | <width>81</width> |
131 | 131 | <height>31</height> |
132 | 132 | </rect> |
@@ -141,11 +141,11 @@ | ||
141 | 141 | <bool>true</bool> |
142 | 142 | </property> |
143 | 143 | </widget> |
144 | - <widget class="QSpinBox" name="spinBox"> | |
144 | + <widget class="QSpinBox" name="spinBox_2"> | |
145 | 145 | <property name="geometry"> |
146 | 146 | <rect> |
147 | - <x>120</x> | |
148 | - <y>70</y> | |
147 | + <x>160</x> | |
148 | + <y>120</y> | |
149 | 149 | <width>51</width> |
150 | 150 | <height>30</height> |
151 | 151 | </rect> |
@@ -174,8 +174,8 @@ | ||
174 | 174 | <widget class="QLabel" name="label_3"> |
175 | 175 | <property name="geometry"> |
176 | 176 | <rect> |
177 | - <x>190</x> | |
178 | - <y>70</y> | |
177 | + <x>220</x> | |
178 | + <y>120</y> | |
179 | 179 | <width>31</width> |
180 | 180 | <height>31</height> |
181 | 181 | </rect> |
@@ -193,8 +193,8 @@ | ||
193 | 193 | <widget class="QLabel" name="label_2"> |
194 | 194 | <property name="geometry"> |
195 | 195 | <rect> |
196 | - <x>110</x> | |
197 | - <y>110</y> | |
196 | + <x>150</x> | |
197 | + <y>180</y> | |
198 | 198 | <width>51</width> |
199 | 199 | <height>31</height> |
200 | 200 | </rect> |
@@ -212,8 +212,8 @@ | ||
212 | 212 | <widget class="QCheckBox" name="checkBox"> |
213 | 213 | <property name="geometry"> |
214 | 214 | <rect> |
215 | - <x>80</x> | |
216 | - <y>120</y> | |
215 | + <x>120</x> | |
216 | + <y>190</y> | |
217 | 217 | <width>16</width> |
218 | 218 | <height>16</height> |
219 | 219 | </rect> |
@@ -228,8 +228,8 @@ | ||
228 | 228 | <widget class="QPushButton" name="Btn_FudaSelect"> |
229 | 229 | <property name="geometry"> |
230 | 230 | <rect> |
231 | - <x>280</x> | |
232 | - <y>10</y> | |
231 | + <x>310</x> | |
232 | + <y>70</y> | |
233 | 233 | <width>41</width> |
234 | 234 | <height>71</height> |
235 | 235 | </rect> |
@@ -248,13 +248,81 @@ | ||
248 | 248 | </size> |
249 | 249 | </property> |
250 | 250 | </widget> |
251 | + <widget class="QSpinBox" name="spinBox_1"> | |
252 | + <property name="geometry"> | |
253 | + <rect> | |
254 | + <x>160</x> | |
255 | + <y>70</y> | |
256 | + <width>51</width> | |
257 | + <height>30</height> | |
258 | + </rect> | |
259 | + </property> | |
260 | + <property name="font"> | |
261 | + <font> | |
262 | + <pointsize>18</pointsize> | |
263 | + </font> | |
264 | + </property> | |
265 | + <property name="layoutDirection"> | |
266 | + <enum>Qt::LeftToRight</enum> | |
267 | + </property> | |
268 | + <property name="autoFillBackground"> | |
269 | + <bool>false</bool> | |
270 | + </property> | |
271 | + <property name="minimum"> | |
272 | + <number>1</number> | |
273 | + </property> | |
274 | + <property name="maximum"> | |
275 | + <number>20</number> | |
276 | + </property> | |
277 | + <property name="value"> | |
278 | + <number>10</number> | |
279 | + </property> | |
280 | + </widget> | |
281 | + <widget class="QLabel" name="label_5"> | |
282 | + <property name="geometry"> | |
283 | + <rect> | |
284 | + <x>220</x> | |
285 | + <y>70</y> | |
286 | + <width>31</width> | |
287 | + <height>31</height> | |
288 | + </rect> | |
289 | + </property> | |
290 | + <property name="text"> | |
291 | + <string/> | |
292 | + </property> | |
293 | + <property name="pixmap"> | |
294 | + <pixmap resource="QtKarutaEishow.qrc">:/images/Image/second_jp.png</pixmap> | |
295 | + </property> | |
296 | + <property name="scaledContents"> | |
297 | + <bool>true</bool> | |
298 | + </property> | |
299 | + </widget> | |
300 | + <widget class="QLabel" name="label_6"> | |
301 | + <property name="geometry"> | |
302 | + <rect> | |
303 | + <x>70</x> | |
304 | + <y>70</y> | |
305 | + <width>81</width> | |
306 | + <height>31</height> | |
307 | + </rect> | |
308 | + </property> | |
309 | + <property name="text"> | |
310 | + <string/> | |
311 | + </property> | |
312 | + <property name="pixmap"> | |
313 | + <pixmap resource="QtKarutaEishow.qrc">:/images/Image/maai_jp.png</pixmap> | |
314 | + </property> | |
315 | + <property name="scaledContents"> | |
316 | + <bool>true</bool> | |
317 | + </property> | |
318 | + </widget> | |
251 | 319 | </widget> |
252 | 320 | <widget class="QMenuBar" name="menuBar"> |
253 | 321 | <property name="geometry"> |
254 | 322 | <rect> |
255 | 323 | <x>0</x> |
256 | 324 | <y>0</y> |
257 | - <width>348</width> | |
325 | + <width>391</width> | |
258 | 326 | <height>19</height> |
259 | 327 | </rect> |
260 | 328 | </property> |