Source-highlight Qt Library
|
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 SOURCEHIGHLIGHTSETTINGSPAGE_H 00007 #define SOURCEHIGHLIGHTSETTINGSPAGE_H 00008 00009 #include <QWidget> 00010 00011 namespace Ui { 00012 class SourceHighlightSettingsPage; 00013 } 00014 00015 namespace srchilite { 00016 class Settings; 00017 } 00018 00019 namespace srchiliteqt { 00020 00030 class SourceHighlightSettingsPage : public QWidget { 00031 Q_OBJECT 00032 public: 00033 SourceHighlightSettingsPage(QWidget *parent = 0); 00034 ~SourceHighlightSettingsPage(); 00035 00039 void setSourceHighlightDataDirPath(const QString &path); 00040 00044 const QString getSourceHighlightDataDirPath() const; 00045 00046 protected: 00047 void changeEvent(QEvent *e); 00048 00049 protected slots: 00053 void browseDir(); 00054 00059 void defaultDir(); 00060 00066 void validateDir(const QString &path); 00067 00068 private: 00069 Ui::SourceHighlightSettingsPage *ui; 00070 00071 srchilite::Settings *sourceHighlightSettings; 00072 }; 00073 00074 } 00075 00076 #endif // SOURCEHIGHLIGHTSETTINGSPAGE_H