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

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

Moved out *dlg.* into a separate dir.

  • Property svn:eol-style set to native
Line 
1// -*- c-basic-offset: 2 -*-
2/*
3 * This file is part of Licq, an instant messaging client for UNIX.
4 * Copyright (C) 2004-2006 Licq developers
5 *
6 * Licq is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * Licq is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Licq; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19 */
20
21#ifndef CATDLG_H
22#define CATDLG_H
23
24#include <QDialog>
25
26#include <licq_user.h>
27
28class QComboBox;
29class QLineEdit;
30
31struct SCategory;
32
33namespace LicqQtGui
34{
35
36class EditCategoryDlg : public QDialog
37{
38  Q_OBJECT
39
40public:
41  EditCategoryDlg(ICQUserCategory* cat, QWidget* parent = 0);
42
43signals:
44  void updated(ICQUserCategory* cat);
45
46private:
47  static const unsigned MAX_CAT = ICQUserCategory::MAX_CATEGORIES;
48  QComboBox* myCats[MAX_CAT];
49  QLineEdit* myDescr[MAX_CAT];
50  unsigned short myNumCats;
51  UserCat myUserCat;
52
53  const struct SCategory* (*getEntry)(unsigned short index);
54
55private slots:
56  void ok();
57  void checkEnabled();
58};
59
60} // namespace LicqQtGui
61
62#endif
Note: See TracBrowser for help on using the browser.