aboutsummaryrefslogtreecommitdiff
path: root/qmpplistwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-31 23:49:04 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-31 23:49:04 +0800
commit3db127ce64eadb54568e218124744a1de713667e (patch)
treee360f2cba2afb1c369e28907aa19934cf3c45ca5 /qmpplistwindow.cpp
parentb1be9e45b5abdf0a03181b9cee8dc208a762fe57 (diff)
downloadQMidiPlayer-3db127ce64eadb54568e218124744a1de713667e.tar.xz
Inanimate Dream. (WTF)
Diffstat (limited to 'qmpplistwindow.cpp')
-rw-r--r--qmpplistwindow.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/qmpplistwindow.cpp b/qmpplistwindow.cpp
index 65c01f8..e0c52db 100644
--- a/qmpplistwindow.cpp
+++ b/qmpplistwindow.cpp
@@ -5,9 +5,9 @@
#include "ui_qmpplistwindow.h"
#include "qmpmainwindow.hpp"
-qmpplistwindow::qmpplistwindow(QWidget *parent) :
+qmpPlistWindow::qmpPlistWindow(QWidget *parent) :
QDialog(parent),
- ui(new Ui::qmpplistwindow)
+ ui(new Ui::qmpPlistWindow)
{
ui->setupUi(this);
connect(this,SIGNAL(dialogClosing()),parent,SLOT(dialogClosed()));
@@ -15,19 +15,19 @@ qmpplistwindow::qmpplistwindow(QWidget *parent) :
repeat=0;shuffle=0;
}
-qmpplistwindow::~qmpplistwindow()
+qmpPlistWindow::~qmpPlistWindow()
{
delete ui;
}
-void qmpplistwindow::closeEvent(QCloseEvent *event)
+void qmpPlistWindow::closeEvent(QCloseEvent *event)
{
setVisible(false);
emit dialogClosing();
event->accept();
}
-void qmpplistwindow::on_pbAdd_clicked()
+void qmpPlistWindow::on_pbAdd_clicked()
{
QStringList sl=QFileDialog::getOpenFileNames(this,"Add File","","Midi files (*.mid *.midi)");
for(int i=0;i<sl.size();++i)
@@ -36,13 +36,13 @@ void qmpplistwindow::on_pbAdd_clicked()
}
}
-void qmpplistwindow::on_pbAddFolder_clicked()
+void qmpPlistWindow::on_pbAddFolder_clicked()
{
QFileDialog::getExistingDirectory(this,"Add Folder");
//...
}
-void qmpplistwindow::on_pbRemove_clicked()
+void qmpPlistWindow::on_pbRemove_clicked()
{
QList<QListWidgetItem*> sl=ui->lwFiles->selectedItems();
for(int i=0;i<sl.size();++i)
@@ -52,7 +52,7 @@ void qmpplistwindow::on_pbRemove_clicked()
}
}
-void qmpplistwindow::on_pbClear_clicked()
+void qmpPlistWindow::on_pbClear_clicked()
{
while(ui->lwFiles->count()>0)
{
@@ -62,7 +62,7 @@ void qmpplistwindow::on_pbClear_clicked()
}
}
-void qmpplistwindow::on_pbRepeat_clicked()
+void qmpPlistWindow::on_pbRepeat_clicked()
{
++repeat;repeat%=3;
switch(repeat)
@@ -82,7 +82,7 @@ void qmpplistwindow::on_pbRepeat_clicked()
}
}
-void qmpplistwindow::on_pbShuffle_clicked()
+void qmpPlistWindow::on_pbShuffle_clicked()
{
shuffle=1-shuffle;
switch(shuffle)
@@ -99,7 +99,7 @@ void qmpplistwindow::on_pbShuffle_clicked()
}
}
-QString qmpplistwindow::getFirstItem()
+QString qmpPlistWindow::getFirstItem()
{
if(ui->lwFiles->count()==0)return QString();
int id=0;
@@ -107,7 +107,7 @@ QString qmpplistwindow::getFirstItem()
ui->lwFiles->setCurrentRow(id);
return ui->lwFiles->item(id)->text();
}
-QString qmpplistwindow::getNextItem()
+QString qmpPlistWindow::getNextItem()
{
if(ui->lwFiles->count()==0)return QString();
if(repeat==1)return ui->lwFiles->item(ui->lwFiles->currentRow())->text();
@@ -116,7 +116,7 @@ QString qmpplistwindow::getNextItem()
ui->lwFiles->setCurrentRow(id);
return ui->lwFiles->item(id)->text();
}
-QString qmpplistwindow::getPrevItem()
+QString qmpPlistWindow::getPrevItem()
{
if(ui->lwFiles->count()==0)return QString();
if(repeat==1)return ui->lwFiles->item(ui->lwFiles->currentRow())->text();
@@ -126,14 +126,14 @@ QString qmpplistwindow::getPrevItem()
ui->lwFiles->setCurrentRow(id);
return ui->lwFiles->item(id)->text();
}
-QString qmpplistwindow::getSelectedItem()
+QString qmpPlistWindow::getSelectedItem()
{
if(ui->lwFiles->count()==0)return QString();
return ui->lwFiles->item(ui->lwFiles->currentRow())->text();
}
-int qmpplistwindow::getRepeat(){return repeat;}
+int qmpPlistWindow::getRepeat(){return repeat;}
-void qmpplistwindow::on_lwFiles_itemDoubleClicked()
+void qmpPlistWindow::on_lwFiles_itemDoubleClicked()
{
emit selectionChanging();
}