digiKam
countryselector.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2009-07-07
7  * Description : country selector combo-box.
8  *
9  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_COUNTRY_SELECTOR_H
25 #define DIGIKAM_COUNTRY_SELECTOR_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QWidget>
31 #include <QComboBox>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_EXPORT CountrySelector : public QComboBox
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit CountrySelector(QWidget* const parent);
47  ~CountrySelector() override;
48 
49  void setCountry(const QString& countryCode);
50  bool country(QString& countryCode, QString& countryName) const;
51 
52 public:
53 
54  static QString countryForCode(const QString& countryCode);
55 
56 private:
57 
58  class Private;
59  Private* const d;
60 };
61 
62 } // namespace Digikam
63 
64 #endif // DIGIKAM_COUNTRY_SELECTOR_H
Definition: countryselector.h:41
Definition: datefolderview.cpp:43