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