~ubuntu-branches/ubuntu/quantal/kscd/quantal-proposed

« back to all changes in this revision

Viewing changes to gui/tracklistdlg.h

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-06-14 17:35:46 UTC
  • Revision ID: package-import@ubuntu.com-20120614173546-0t4dq1zkvl62ebpd
Tags: upstream-4.8.90+repack
Import upstream version 4.8.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Kscd - A simple cd player for the KDE Project
 
3
 *
 
4
 * Copyright (c) 1997 Bernd Johannes wuebben@math.cornell.edu
 
5
 * Copyright (c) 2002-2003 Aaron J. Seigo <aseigo@kde.org>
 
6
 * Copyright (c) 2004 Alexander Kern <alex.kern@gmx.de>
 
7
 * Copyright (c) 2003-2006 Richard Lärkäng <nouseforaname@home.se>
 
8
 *
 
9
 * --------------
 
10
 * ISI KsCD Team :
 
11
 * --------------
 
12
 * Stanislas KRZYWDA <stanislas.krzywda@gmail.com>
 
13
 * Sovanramy Var <mastasushi@gmail.com>
 
14
 * Bouchikhi Mohamed-Amine <bouchikhi.amine@gmail.com>
 
15
 * Gastellu Sylvain<sylvain.gastellu@gmail.com>
 
16
 * -----------------------------------------------------------------------------
 
17
 *
 
18
 * This program is free software; you can redistribute it and/or modify
 
19
 * it under the terms of the GNU General Public License as published by
 
20
 * the Free Software Foundation; either version 2, or (at your option)
 
21
 * any later version.
 
22
 *
 
23
 * This program is distributed in the hope that it will be useful,
 
24
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
25
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
26
 * GNU General Public License for more details.
 
27
 *
 
28
 * You should have received a copy of the GNU General Public License
 
29
 * along with this program; if not, write to the Free Software
 
30
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
31
 *
 
32
 */
 
33
 
 
34
#ifndef TRACKLISTDLG_H
 
35
#define TRACKLISTDLG_H
 
36
 
 
37
#include "ui_trackListDlgUI.h"
 
38
 
 
39
#include <KDialog>
 
40
 
 
41
#include <kdebug.h>
 
42
 
 
43
class trackListDlgUI : public QWidget, public Ui::trackListDlgUI
 
44
{
 
45
   public:
 
46
      trackListDlgUI( QWidget *parent ) : QWidget( parent ) {
 
47
         setupUi( this );
 
48
      }
 
49
};
 
50
 
 
51
class TrackListDlg : public KDialog
 
52
{
 
53
    Q_OBJECT
 
54
 
 
55
public:
 
56
    /** Create an instance of TrackListDlg */
 
57
    TrackListDlg(QWidget* parent = 0);
 
58
 
 
59
    /** Destroy an instance of TrackListDlg */
 
60
    ~TrackListDlg();
 
61
 
 
62
    /** Modify the text of the album label
 
63
     * @return void
 
64
     **/
 
65
    void setAlbumLbl(const QString&);
 
66
 
 
67
    /** Modify the text of the year label
 
68
     * @return void
 
69
     **/
 
70
    void setYearLbl(const QString&);
 
71
 
 
72
    /** Add a row to the track table
 
73
     * @return void
 
74
     **/
 
75
    void addItemTrackTable(int,int,const QString&);
 
76
 
 
77
    /** Return the number of column of the track table
 
78
     * @return int
 
79
     **/
 
80
    int numberColumnTrackTable() const;
 
81
 
 
82
    /** Set the number of rows
 
83
     * @return void
 
84
     **/
 
85
    void setRowCount(int nRows);
 
86
 
 
87
    /** Remove all rows to the track table
 
88
     * @return void
 
89
     **/
 
90
    void removeRowsTrackTable();
 
91
 
 
92
    /** Move the track dialog
 
93
     * @return void
 
94
     **/
 
95
    void moveTrackDialog(int, int);
 
96
 
 
97
private:
 
98
    void closeEvent( QCloseEvent * event );
 
99
public slots:
 
100
    /** Mouse double click event on a row of the track table
 
101
     * @return void
 
102
     **/
 
103
    void valueDoubleCliked(QTableWidgetItem*);
 
104
 
 
105
signals:
 
106
    /** Send the postion of the clicked item**/
 
107
    void itemClicked(int);
 
108
    void trackListClosed();
 
109
private:
 
110
    trackListDlgUI *m_ui;
 
111
 
 
112
};
 
113
 
 
114
#endif // TRACKLISTDLG_H