1*bb02e0acSNicolas Bonnefon /* 2*bb02e0acSNicolas Bonnefon * Copyright (C) 2009, 2010, 2011, 2013 Nicolas Bonnefon 3*bb02e0acSNicolas Bonnefon * and other contributors 4*bb02e0acSNicolas Bonnefon * 5*bb02e0acSNicolas Bonnefon * This file is part of glogg. 6*bb02e0acSNicolas Bonnefon * 7*bb02e0acSNicolas Bonnefon * glogg is free software: you can redistribute it and/or modify 8*bb02e0acSNicolas Bonnefon * it under the terms of the GNU General Public License as published by 9*bb02e0acSNicolas Bonnefon * the Free Software Foundation, either version 3 of the License, or 10*bb02e0acSNicolas Bonnefon * (at your option) any later version. 11*bb02e0acSNicolas Bonnefon * 12*bb02e0acSNicolas Bonnefon * glogg is distributed in the hope that it will be useful, 13*bb02e0acSNicolas Bonnefon * but WITHOUT ANY WARRANTY; without even the implied warranty of 14*bb02e0acSNicolas Bonnefon * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*bb02e0acSNicolas Bonnefon * GNU General Public License for more details. 16*bb02e0acSNicolas Bonnefon * 17*bb02e0acSNicolas Bonnefon * You should have received a copy of the GNU General Public License 18*bb02e0acSNicolas Bonnefon * along with glogg. If not, see <http://www.gnu.org/licenses/>. 19*bb02e0acSNicolas Bonnefon */ 20*bb02e0acSNicolas Bonnefon 21*bb02e0acSNicolas Bonnefon #ifndef LOGMAINVIEW_H 22*bb02e0acSNicolas Bonnefon #define LOGMAINVIEW_H 23*bb02e0acSNicolas Bonnefon 24*bb02e0acSNicolas Bonnefon #include "abstractlogview.h" 25*bb02e0acSNicolas Bonnefon #include "data/logdata.h" 26*bb02e0acSNicolas Bonnefon 27*bb02e0acSNicolas Bonnefon // Class implementing the main (top) view widget. 28*bb02e0acSNicolas Bonnefon class LogMainView : public AbstractLogView 29*bb02e0acSNicolas Bonnefon { 30*bb02e0acSNicolas Bonnefon public: 31*bb02e0acSNicolas Bonnefon LogMainView( const LogData* newLogData, 32*bb02e0acSNicolas Bonnefon const QuickFindPattern* const quickFindPattern, 33*bb02e0acSNicolas Bonnefon Overview* overview, 34*bb02e0acSNicolas Bonnefon OverviewWidget* overview_widget, 35*bb02e0acSNicolas Bonnefon QWidget* parent = 0 ); 36*bb02e0acSNicolas Bonnefon 37*bb02e0acSNicolas Bonnefon // Configure the view to use the passed filtered list 38*bb02e0acSNicolas Bonnefon // (used for couloured bullets) 39*bb02e0acSNicolas Bonnefon // Should be NULL or the empty LFD if no filtering is used 40*bb02e0acSNicolas Bonnefon void useNewFiltering( LogFilteredData* filteredData ); 41*bb02e0acSNicolas Bonnefon 42*bb02e0acSNicolas Bonnefon protected: 43*bb02e0acSNicolas Bonnefon // Implements the virtual function 44*bb02e0acSNicolas Bonnefon virtual LineType lineType( int lineNumber ) const; 45*bb02e0acSNicolas Bonnefon 46*bb02e0acSNicolas Bonnefon private: 47*bb02e0acSNicolas Bonnefon LogFilteredData* filteredData_; 48*bb02e0acSNicolas Bonnefon }; 49*bb02e0acSNicolas Bonnefon 50*bb02e0acSNicolas Bonnefon #endif 51