Source-highlight Qt Library
LanguageComboBox.h
1 /*
2  * Copyright (C) 2008-2010 Lorenzo Bettini, http://www.lorenzobettini.it
3  * License: See COPYING file that comes with this distribution
4  */
5 
6 #ifndef LANGUAGECOMBOBOX_H
7 #define LANGUAGECOMBOBOX_H
8 
9 #include <QComboBox>
10 #include "Qt4SyntaxHighlighter.h"
11 
12 namespace srchiliteqt {
13 
18 class LanguageComboBox : public QComboBox
19 {
20  Q_OBJECT
21 public:
28  LanguageComboBox(const QString &path = "");
29 
36 
37 public slots:
43  void setCurrentLanguage(const QString &lang);
44 
48  const QString getCurrentLanguage() const;
49 
55  void reload(const QString &path);
56 };
57 
58 }
59 
60 #endif // LANGUAGECOMBOBOX_H
61