diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-05-12 00:58:40 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-05-12 00:58:40 +0800 |
commit | a7407edaf81c685d4a389785a405a53a5de4b148 (patch) | |
tree | e6e4f2d85f2172c94ac83a6e8f01e1e90a78ede9 /qmidiplayer-desktop/qmpplistwindow.hpp | |
parent | 437b7b16c322a8e53ac55a5f831098494d9a7073 (diff) | |
download | QMidiPlayer-a7407edaf81c685d4a389785a405a53a5de4b148.tar.xz |
Format EVERYTHING.
Hopefully this will make the source code less horrendous and actually
readable.
The command used was:
```
astyle --suffix=none --style=allman --attach-extern-c --attach-closing-while --indent-switches --indent-after-parens --pad-oper --pad-header --unpad-paren --align-pointer=name --recursive './*.cpp,*.hpp'
```
Diffstat (limited to 'qmidiplayer-desktop/qmpplistwindow.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpplistwindow.hpp | 91 |
1 files changed, 46 insertions, 45 deletions
diff --git a/qmidiplayer-desktop/qmpplistwindow.hpp b/qmidiplayer-desktop/qmpplistwindow.hpp index afd3ae3..7d93345 100644 --- a/qmidiplayer-desktop/qmpplistwindow.hpp +++ b/qmidiplayer-desktop/qmpplistwindow.hpp @@ -10,63 +10,64 @@ #include <QListWidgetItem> #include "../include/qmpcorepublic.hpp" -namespace Ui { - class qmpPlistWindow; +namespace Ui +{ +class qmpPlistWindow; } class qmpPlistWindow; class qmpSettings; -class qmpPlistFunc:public qmpFuncBaseIntf +class qmpPlistFunc: public qmpFuncBaseIntf { - private: - qmpPlistWindow* p; - public: - qmpPlistFunc(qmpPlistWindow *par); - void show(); - void close(); +private: + qmpPlistWindow *p; +public: + qmpPlistFunc(qmpPlistWindow *par); + void show(); + void close(); }; -class qmpPlistWindow:public QWidget +class qmpPlistWindow: public QWidget { - Q_OBJECT + Q_OBJECT - public: - explicit qmpPlistWindow(QWidget *parent=0); - ~qmpPlistWindow(); - void showEvent(QShowEvent *event); - void closeEvent(QCloseEvent *event); - void dropEvent(QDropEvent *event); - void dragEnterEvent(QDragEnterEvent *event); - int getRepeat(); - QString getFirstItem(bool a=false); - QString getLastItem(bool a=false); - QString getNextItem(); - QString getPrevItem(); - QString getSelectedItem(); - void emptyList(); - void insertItem(QString i); - void insertItems(QStringList il); - signals: - void selectionChanging(); +public: + explicit qmpPlistWindow(QWidget *parent = 0); + ~qmpPlistWindow(); + void showEvent(QShowEvent *event); + void closeEvent(QCloseEvent *event); + void dropEvent(QDropEvent *event); + void dragEnterEvent(QDragEnterEvent *event); + int getRepeat(); + QString getFirstItem(bool a = false); + QString getLastItem(bool a = false); + QString getNextItem(); + QString getPrevItem(); + QString getSelectedItem(); + void emptyList(); + void insertItem(QString i); + void insertItems(QStringList il); +signals: + void selectionChanging(); - public slots: - int on_pbAdd_clicked(); - private slots: - void on_pbAddFolder_clicked(); - void on_pbRemove_clicked(); - void on_pbClear_clicked(); - void on_pbRepeat_clicked(); - void on_pbShuffle_clicked(); - void on_lwFiles_itemDoubleClicked(); - void on_pbSave_clicked(); - void on_pbLoad_clicked(); +public slots: + int on_pbAdd_clicked(); +private slots: + void on_pbAddFolder_clicked(); + void on_pbRemove_clicked(); + void on_pbClear_clicked(); + void on_pbRepeat_clicked(); + void on_pbShuffle_clicked(); + void on_lwFiles_itemDoubleClicked(); + void on_pbSave_clicked(); + void on_pbLoad_clicked(); - private: - qmpPlistFunc* plistf; - Ui::qmpPlistWindow *ui; - int shuffle,repeat;//rep 0=off 1=one 2=all - qmpSettings* settings; +private: + qmpPlistFunc *plistf; + Ui::qmpPlistWindow *ui; + int shuffle, repeat; //rep 0=off 1=one 2=all + qmpSettings *settings; }; #endif // QMPPLISTWINDOW_H |