/* * Copyright 2005,2006 Fabrice Colin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _PREFSDIALOG_HH #define _PREFSDIALOG_HH #include #include #include #include #include #include #include "ModelColumns.h" #include "PinotSettings.h" #include "prefsDialog_glade.hh" class prefsDialog : public prefsDialog_glade { public: prefsDialog(); virtual ~prefsDialog(); const std::set &getLabelsToAdd(void) const; const std::set &getLabelsToDelete(void) const; const std::map &getLabelsToRename(void) const; bool startDaemon(void) const; protected: PinotSettings &m_settings; Glib::RefPtr m_refViewTree; LabelModelColumns m_labelsColumns; Glib::RefPtr m_refLabelsTree; IndexableModelColumns m_directoriesColumns; Glib::RefPtr m_refDirectoriesTree; TimestampedModelColumns m_mailColumns; TimestampedModelColumns m_patternsColumns; Glib::RefPtr m_refPatternsTree; std::set m_addedLabels; std::set m_deletedLabels; std::map m_renamedLabels; std::set m_deletedDirectories; std::string m_directoriesHash; std::string m_patternsHash; bool m_startDaemon; virtual void on_prefsOkbutton_clicked(); virtual void on_directConnectionRadiobutton_toggled(); virtual void on_addLabelButton_clicked(); virtual void on_removeLabelButton_clicked(); virtual void on_addDirectoryButton_clicked(); virtual void on_removeDirectoryButton_clicked(); virtual void on_patternsCombobox_changed(); virtual void on_addPatternButton_clicked(); virtual void on_removePatternButton_clicked(); void populate_proxyTypeCombobox(); void populate_labelsTreeview(); void save_labelsTreeview(); void populate_directoriesTreeview(); bool save_directoriesTreeview(); void populate_patternsTreeview(); bool save_patternsTreeview(); }; #endif