Frapper  1.0a
LogPanel.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of FRAPPER
4 research.animationsinstitut.de
5 sourceforge.net/projects/frapper
6 
7 Copyright (c) 2008-2009 Filmakademie Baden-Wuerttemberg, Institute of Animation
8 
9 This program is free software; you can redistribute it and/or modify it under
10 the terms of the GNU Lesser General Public License as published by the Free Software
11 Foundation; version 2.1 of the License.
12 
13 This program is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16 
17 You should have received a copy of the GNU Lesser General Public License along with
18 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19 Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
21 -----------------------------------------------------------------------------
22 */
23 
33 
34 #ifndef LOGPANEL_H
35 #define LOGPANEL_H
36 
37 #include "FrapperPrerequisites.h"
38 #include "Panel.h"
39 #include "ui_LogPanel.h"
40 #include "CopyHandler.h"
41 #include <QtGui/QLineEdit>
42 
43 
44 namespace Frapper {
45 
49 class FRAPPER_GUI_EXPORT LogPanel : public Panel, protected Ui::LogPanel, public CopyHandler
50 {
51 
52  Q_OBJECT
53 
54 public: // constructors and destructors
55 
62  LogPanel ( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
63 
71  virtual ~LogPanel ();
72 
73 public: // functions
74 
81  virtual void fillToolBars ( QToolBar *mainToolBar, QToolBar *panelToolBar );
82 
86  virtual void copy ();
87 
88 protected: // events
89 
95  virtual void timerEvent ( QTimerEvent *event );
96 
97 private slots: //
98 
107  void m_searchEdit_textChanged ( const QString &text );
108 
114  void on_ui_filterAction_toggled ( bool enabled );
115 
121  void on_ui_infoAction_toggled ( bool checked );
122 
131  void on_ui_resetSearchAction_triggered ( bool checked = false );
132 
138  void on_ui_warningAction_toggled ( bool checked );
139 
145  void on_ui_errorAction_toggled ( bool checked );
146 
152  void on_ui_debugAction_toggled ( bool checked );
153 
159  void on_ui_qtAction_toggled ( bool checked );
160 
166  void on_ui_ogreAction_toggled ( bool checked );
167 
171  void on_ui_resetFilterAction_triggered ();
172 
176  void on_ui_copyAction_triggered ();
177 
181  void on_ui_clearAction_triggered ();
182 
183 private: // functions
184 
191  void updateActions ( bool activated );
192 
193 private: // data
194 
199 
203  QLineEdit *m_searchEdit;
204 
210 
211 };
212 
213 } // end namespace Frapper
214 
215 #endif