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