00001 /* 00002 * Copyright (C) 2008-2010 Lorenzo Bettini, http://www.lorenzobettini.it 00003 * License: See COPYING file that comes with this distribution 00004 */ 00005 00006 #ifndef OUTPUTFORMATCOMBOBOX_H 00007 #define OUTPUTFORMATCOMBOBOX_H 00008 00009 #include <QComboBox> 00010 #include "Qt4SyntaxHighlighter.h" 00011 00012 namespace srchiliteqt { 00013 00020 class OutputFormatComboBox : public QComboBox 00021 { 00022 Q_OBJECT 00023 public: 00030 OutputFormatComboBox(const QString &path = ""); 00031 00037 OutputFormatComboBox(srchiliteqt::Qt4SyntaxHighlighter *_highlighter); 00038 00039 public slots: 00045 void setCurrentOutputFormat(const QString &outlang); 00046 00050 const QString getCurrentOutputFormat() const; 00051 00057 void reload(const QString &path); 00058 00059 }; 00060 00061 } 00062 00063 #endif // OUTPUTFORMATCOMBOBOX_H 00064