/* * 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 _MODELCOLUMNS_HH #define _MODELCOLUMNS_HH #include #include #include #include #include #include #include #include #include "QueryProperties.h" /// Model column for text combo boxes. class ComboModelColumns : public Gtk::TreeModel::ColumnRecord { public: ComboModelColumns(); virtual ~ComboModelColumns(); Gtk::TreeModelColumn m_name; }; /// Main window, model column for the search engines tree. class EnginesModelColumns : public Gtk::TreeModel::ColumnRecord { public: EnginesModelColumns(); virtual ~EnginesModelColumns(); Gtk::TreeModelColumn m_name; Gtk::TreeModelColumn m_engineName; Gtk::TreeModelColumn m_option; typedef enum { ENGINE_SEPARATOR = 0, ENGINE_FOLDER, WEB_ENGINE, INTERNAL_INDEX_ENGINE, INDEX_ENGINE } EngineType; Gtk::TreeModelColumn m_type; }; /// Main window, model column for the queries tree. class QueryModelColumns : public Gtk::TreeModel::ColumnRecord { public: QueryModelColumns(); virtual ~QueryModelColumns(); Gtk::TreeModelColumn m_name; Gtk::TreeModelColumn m_lastRun; Gtk::TreeModelColumn m_lastRunTime; Gtk::TreeModelColumn m_summary; Gtk::TreeModelColumn m_properties; }; /// Main window, model column for the search results tree. class ResultsModelColumns : public Gtk::TreeModel::ColumnRecord { public: ResultsModelColumns(); virtual ~ResultsModelColumns(); Gtk::TreeModelColumn m_text; Gtk::TreeModelColumn m_url; Gtk::TreeModelColumn m_indexed; Gtk::TreeModelColumn m_viewed; Gtk::TreeModelColumn m_rankDiff; Gtk::TreeModelColumn m_score; Gtk::TreeModelColumn m_scoreText; Gtk::TreeModelColumn m_engines; Gtk::TreeModelColumn m_indexes; Gtk::TreeModelColumn m_docId; typedef enum { ROW_ENGINE = 0, ROW_HOST, ROW_RESULT, ROW_OTHER } RowType; Gtk::TreeModelColumn m_resultType; Gtk::TreeModelColumn m_timestamp; Gtk::TreeModelColumn m_timestampTime; Gtk::TreeModelColumn m_serial; }; /// Preferences window, model column for the Xapian indexes tree. class OtherIndexModelColumns : public Gtk::TreeModel::ColumnRecord { public: OtherIndexModelColumns(); virtual ~OtherIndexModelColumns(); Gtk::TreeModelColumn m_name; Gtk::TreeModelColumn m_location; }; /// Preferences window, model column for the labels tree. /// Export/import window, model column for the labels tree. class LabelModelColumns : public Gtk::TreeModel::ColumnRecord { public: LabelModelColumns(); virtual ~LabelModelColumns(); Gtk::TreeModelColumn m_enabled; Gtk::TreeModelColumn m_name; Gtk::TreeModelColumn m_oldName; }; /// Preferences window, model column for the mail accounts tree. class TimestampedModelColumns : public Gtk::TreeModel::ColumnRecord { public: TimestampedModelColumns(); virtual ~TimestampedModelColumns(); Gtk::TreeModelColumn m_location; Gtk::TreeModelColumn m_mTime; }; /// Preferences window, model column for the directories tree. class IndexableModelColumns : public Gtk::TreeModel::ColumnRecord { public: IndexableModelColumns(); virtual ~IndexableModelColumns(); Gtk::TreeModelColumn m_monitor; Gtk::TreeModelColumn m_location; }; #endif // _MODELCOLUMNS_HH