1
/***************************************************************************
2
kbpickicondlg.h - description
4
begin : Sat Jul 21 2001
5
copyright : (C) 2001 by Leonid Zeitlin
7
***************************************************************************/
9
/***************************************************************************
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. *
16
***************************************************************************/
18
#ifndef KBPICKICONDLG_H
19
#define KBPICKICONDLG_H
21
#include <kdialogbase.h>
28
/**A dialog to pick an icon for a keyboard layout
29
*@author Leonid Zeitlin
32
class KBPickIconDlg : public KDialogBase {
35
KBPickIconDlg(const QString ¤tPath, const QPixmap ¤tPixmap,
36
QWidget *parent=0, const char *name=0);
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
44
//QStringList m_pathnames;
46
//KIconView *m_iconview;
49
//QRadioButton *rbFlags;
50
//QRadioButton *rbBrowse;
51
void loadCountryFlags();
52
void loadGkbCountryFlags();
53
void showCurrentPath(const QString ¤tPath, const QPixmap ¤tPixmap);
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);