• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

百人一首かるた自動読み上げソフト


Commit MetaInfo

Révisiondfc0d989ea20cd3d134e1614f02cc6d9e7187661 (tree)
l'heure2011-11-05 09:41:22
Auteurarakaki <alucky4416@user...>
Commiterarakaki

Message de Log

CHG: add ui Wait1Time spinbox

Change Summary

Modification

--- a/fudaselectdlg.cpp
+++ b/fudaselectdlg.cpp
@@ -34,18 +34,18 @@ void FudaSelectDlg::SetFList(QList<int> *List)
3434
3535 void FudaSelectDlg::on_buttonBox_accepted()
3636 {
37- qDebug() << "Click Dialog->OkBtn";
38-
37+// qDebug() << "Click Dialog->OkBtn";
3938 GetCheckedList_CheckBox();
4039
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+// }
4443 }
4544
4645 void FudaSelectDlg::on_buttonBox_rejected()
4746 {
48- qDebug() << "Click Dialog->CancelBtn";
47+// qDebug() << "Click Dialog->CancelBtn";
48+ ;
4949 }
5050
5151 void FudaSelectDlg::ConnectSlotSignal_BtnAndCheckBox()
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -38,7 +38,7 @@ MainWindow::MainWindow(QWidget *parent) :
3838 QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); // source codec is UTF-8
3939
4040 QCoreApplication::setApplicationName("QtKarutaEishow");
41- QCoreApplication::setApplicationVersion("1.0 beta4");
41+ QCoreApplication::setApplicationVersion("1.0 beta6");
4242 this->setWindowTitle(QCoreApplication::applicationName());
4343 IniFilePath = QCoreApplication::applicationDirPath() + QDir::separator() + QCoreApplication::applicationName() + ".ini";
4444
@@ -62,10 +62,11 @@ MainWindow::MainWindow(QWidget *parent) :
6262
6363 // Play setting
6464 chk_joka = true;
65- Wait1Time = 1;
65+ Wait1Time = 10;
6666 Wait2Time = 3;
6767 ui->checkBox->setChecked(chk_joka);
68- ui->spinBox->setValue(Wait2Time);
68+ ui->spinBox_1->setValue(Wait1Time);
69+ ui->spinBox_2->setValue(Wait2Time);
6970 PlayCounter = 0;
7071 PlayListCount = 0;
7172 // statusBar
@@ -143,7 +144,8 @@ void MainWindow::on_Btn_Start_clicked()
143144 {
144145 if (!flag_playseqstate) {
145146 // WaitTime, CheckBox disable
146- ui->spinBox->setEnabled(false);
147+ ui->spinBox_1->setEnabled(false);
148+ ui->spinBox_2->setEnabled(false);
147149 ui->checkBox->setEnabled(false);
148150
149151 // Generate Play FudaList
@@ -252,25 +254,27 @@ void MainWindow::SequenceEnded(int status)
252254 flag_pause = false;
253255
254256 // WaitTime, CheckBox enable
255- ui->spinBox->setEnabled(true);
257+ ui->spinBox_1->setEnabled(true);
258+ ui->spinBox_2->setEnabled(true);
256259 ui->checkBox->setEnabled(true);
257260
258261 ui->Btn_Start->setIcon(QIcon(QPixmap(":/images/Play.png")));
259262 }
260263
261-void MainWindow::on_spinBox_valueChanged(int arg1)
264+
265+void MainWindow::on_spinBox_1_valueChanged(int arg1)
262266 {
263-// chk_joka = true;
264-// Wait1Time = 1;
265- Wait2Time = arg1;
267+ Wait1Time = arg1;
266268 }
267269
270+void MainWindow::on_spinBox_2_valueChanged(int arg1)
271+{
272+ Wait2Time = arg1;
273+}
268274
269275 void MainWindow::on_checkBox_toggled(bool checked)
270276 {
271277 chk_joka = checked;
272-// Wait1Time = 1;
273-// Wait2Time = arg1;
274278 }
275279
276280
@@ -298,14 +302,14 @@ void MainWindow::LoadSaveSetting(QString filepath, bool store = false)
298302 if (store) {
299303 // Save
300304 QString FudaListStr = FudaList_ToCSVString(FList);
301- qDebug() << "FudaListStr is " << FudaListStr;
305+ // qDebug() << "FudaListStr is " << FudaListStr;
302306
303307 settings.setValue("SETTING/FudaList", FudaListStr);
304308
305309 } else {
306310 // Load
307311 QString FudaListStr(settings.value("SETTING/FudaList", QString("")).toString());
308- qDebug() << "FudaListStr is " << FudaListStr;
312+ // qDebug() << "FudaListStr is " << FudaListStr;
309313
310314 FList->clear();
311315 if (FudaListStr.isEmpty()) {
@@ -320,7 +324,7 @@ void MainWindow::LoadSaveSetting(QString filepath, bool store = false)
320324 x = FudaStrList.at(i).toInt();
321325 if (1 <= x && x <= 100) {
322326 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());
324328 }
325329 }
326330 }
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -26,6 +26,10 @@ private slots:
2626 void on_Btn_Start_clicked();
2727 void on_Btn_Stop_clicked();
2828 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();
2933
3034 // signals:
3135 // void SequencStartded();
@@ -41,12 +45,6 @@ private slots:
4145 void Music2Ended();
4246 void SequenceEnded(int status); // status 0 is success, !0 is Fail
4347
44- void on_spinBox_valueChanged(int arg1);
45-
46- void on_checkBox_toggled(bool checked);
47-
48- void on_actionFuda_triggered();
49-
5048 private:
5149 Ui::MainWindow *ui;
5250
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -6,20 +6,20 @@
66 <rect>
77 <x>0</x>
88 <y>0</y>
9- <width>348</width>
10- <height>367</height>
9+ <width>391</width>
10+ <height>429</height>
1111 </rect>
1212 </property>
1313 <property name="minimumSize">
1414 <size>
15- <width>277</width>
16- <height>296</height>
15+ <width>391</width>
16+ <height>429</height>
1717 </size>
1818 </property>
1919 <property name="maximumSize">
2020 <size>
21- <width>400</width>
22- <height>500</height>
21+ <width>391</width>
22+ <height>429</height>
2323 </size>
2424 </property>
2525 <property name="windowTitle">
@@ -33,8 +33,8 @@
3333 <widget class="QCommandLinkButton" name="Btn_Stop">
3434 <property name="geometry">
3535 <rect>
36- <x>210</x>
37- <y>190</y>
36+ <x>230</x>
37+ <y>250</y>
3838 <width>41</width>
3939 <height>81</height>
4040 </rect>
@@ -68,8 +68,8 @@
6868 <widget class="QCommandLinkButton" name="Btn_Start">
6969 <property name="geometry">
7070 <rect>
71- <x>100</x>
72- <y>180</y>
71+ <x>120</x>
72+ <y>240</y>
7373 <width>51</width>
7474 <height>101</height>
7575 </rect>
@@ -125,8 +125,8 @@
125125 <widget class="QLabel" name="label_4">
126126 <property name="geometry">
127127 <rect>
128- <x>20</x>
129- <y>70</y>
128+ <x>70</x>
129+ <y>120</y>
130130 <width>81</width>
131131 <height>31</height>
132132 </rect>
@@ -141,11 +141,11 @@
141141 <bool>true</bool>
142142 </property>
143143 </widget>
144- <widget class="QSpinBox" name="spinBox">
144+ <widget class="QSpinBox" name="spinBox_2">
145145 <property name="geometry">
146146 <rect>
147- <x>120</x>
148- <y>70</y>
147+ <x>160</x>
148+ <y>120</y>
149149 <width>51</width>
150150 <height>30</height>
151151 </rect>
@@ -174,8 +174,8 @@
174174 <widget class="QLabel" name="label_3">
175175 <property name="geometry">
176176 <rect>
177- <x>190</x>
178- <y>70</y>
177+ <x>220</x>
178+ <y>120</y>
179179 <width>31</width>
180180 <height>31</height>
181181 </rect>
@@ -193,8 +193,8 @@
193193 <widget class="QLabel" name="label_2">
194194 <property name="geometry">
195195 <rect>
196- <x>110</x>
197- <y>110</y>
196+ <x>150</x>
197+ <y>180</y>
198198 <width>51</width>
199199 <height>31</height>
200200 </rect>
@@ -212,8 +212,8 @@
212212 <widget class="QCheckBox" name="checkBox">
213213 <property name="geometry">
214214 <rect>
215- <x>80</x>
216- <y>120</y>
215+ <x>120</x>
216+ <y>190</y>
217217 <width>16</width>
218218 <height>16</height>
219219 </rect>
@@ -228,8 +228,8 @@
228228 <widget class="QPushButton" name="Btn_FudaSelect">
229229 <property name="geometry">
230230 <rect>
231- <x>280</x>
232- <y>10</y>
231+ <x>310</x>
232+ <y>70</y>
233233 <width>41</width>
234234 <height>71</height>
235235 </rect>
@@ -248,13 +248,81 @@
248248 </size>
249249 </property>
250250 </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>
251319 </widget>
252320 <widget class="QMenuBar" name="menuBar">
253321 <property name="geometry">
254322 <rect>
255323 <x>0</x>
256324 <y>0</y>
257- <width>348</width>
325+ <width>391</width>
258326 <height>19</height>
259327 </rect>
260328 </property>