~ubuntu-branches/ubuntu/lucid/kkbswitch/lucid

« back to all changes in this revision

Viewing changes to kkbswitch/kbpickicondlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Lior Kaplan
  • Date: 2005-09-07 02:01:14 UTC
  • Revision ID: james.westby@ubuntu.com-20050907020114-2wyo9eu21uihq86n
Tags: upstream-1.4.3
ImportĀ upstreamĀ versionĀ 1.4.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          kbpickicondlg.h  -  description
 
3
                             -------------------
 
4
    begin                : Sat Jul 21 2001
 
5
    copyright            : (C) 2001 by Leonid Zeitlin
 
6
    email                : lz@europe.com
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef KBPICKICONDLG_H
 
19
#define KBPICKICONDLG_H
 
20
 
 
21
#include <kdialogbase.h>
 
22
 
 
23
class QWidget;
 
24
class QStringList;
 
25
class QPixmap;
 
26
class KListBox;
 
27
 
 
28
/**A dialog to pick an icon for a keyboard layout
 
29
  *@author Leonid Zeitlin
 
30
  */
 
31
 
 
32
class KBPickIconDlg : public KDialogBase  {
 
33
   Q_OBJECT
 
34
public: 
 
35
        KBPickIconDlg(const QString &currentPath, const QPixmap &currentPixmap,
 
36
          QWidget *parent=0, const char *name=0);
 
37
        ~KBPickIconDlg();
 
38
  /** Get the path name of the selected icon. Returns empty string if no icon selected */
 
39
  QString getIconPath();
 
40
  /** No descriptions */
 
41
  const QPixmap* getIcon();
 
42
private: // Private attributes
 
43
  /**  */
 
44
  //QStringList m_pathnames;
 
45
  //QString m_iconpath;
 
46
  //KIconView *m_iconview;
 
47
  KListBox *lbIcons;
 
48
  //QLabel *lblIcon;
 
49
  //QRadioButton *rbFlags;
 
50
  //QRadioButton *rbBrowse;
 
51
  void loadCountryFlags();
 
52
  void loadGkbCountryFlags();
 
53
  void showCurrentPath(const QString &currentPath, const QPixmap &currentPixmap);
 
54
private slots: // Private slots
 
55
  /** Browse for an arbitrary icon file */
 
56
  void slotBrowseForIcon();
 
57
  /** Respond to user selecting a flag in the icon view */
 
58
  //void slotFlagSelected(QIconViewItem *item);
 
59
};
 
60
 
 
61
#endif