root/trunk/qt4-gui/src/dialogs/editfilelistdlg.h

Revision 5489, 1.5 kB (checked in by eugene, 14 months ago)

Tiny fixup for EditFileListDlg?

  • Property svn:eol-style set to native
Line 
1/*
2 * This file is part of Licq, an instant messaging client for UNIX.
3 * Copyright (C) 2003-2006 Licq developers
4 *
5 * Licq is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * Licq is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with Licq; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 */
19
20#ifndef EDITFILEDLG_H
21#define EDITFILEDLG_H
22
23#include <QDialog>
24
25#include <licq_filetransfer.h>
26
27class QListWidget;
28class QPushButton;
29
30namespace LicqQtGui
31{
32
33class EditFileListDlg : public QDialog
34{
35  Q_OBJECT
36
37public:
38  EditFileListDlg(ConstFileList* fileList, QWidget* parent = 0);
39
40signals:
41  void fileDeleted(unsigned);
42
43private:
44  QListWidget* lstFiles;
45  ConstFileList* myFileList;
46  QPushButton* btnDone;
47  QPushButton* btnUp;
48  QPushButton* btnDown;
49  QPushButton* btnDelete;
50
51  void refreshList();
52  void moveCurrentItem(bool up = true);
53
54private slots:
55  void currentChanged(int newCurrent);
56  void up();
57  void down();
58  void remove();
59};
60
61} // namespace LicqQtGui
62
63#endif
Note: See TracBrowser for help on using the browser.