ctags2_widget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2004 by Jens Dagerbo * 00003 * jens.dagerbo@swipnet.se * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef CTAGS2_WIDGET_H 00013 #define CTAGS2_WIDGET_H 00014 00015 #include "ctags2_widgetbase.h" 00016 #include "ctags2_part.h" 00017 #include "tags.h" 00018 00019 class QTimer; 00020 class QListViewItem; 00021 00022 class CTags2Widget : public CTags2WidgetBase 00023 { 00024 Q_OBJECT 00025 00026 public: 00027 CTags2Widget( CTags2Part * part, const char* name = 0, WFlags fl = 0 ); 00028 ~CTags2Widget(); 00029 00030 void displayHits( Tags::TagList const & ); 00031 void displayHitsAndClear( Tags::TagList const & ); 00032 00033 //@todo - just push the search tag into the widget lookup widget, the rest is automatic! 00034 00035 void updateDBDateLabel(); 00036 00037 protected: 00038 void focusInEvent( QFocusEvent *e ); 00039 00040 private slots: 00041 virtual void line_edit_changed(); 00042 virtual void line_edit_changed_delayed(); 00043 virtual void regeneratebutton_clicked(); 00044 void itemExecuted( QListViewItem * ); 00045 00046 private: 00047 void showHitCount( int ); 00048 int calculateHitCount(); 00049 00050 CTags2Part * _part; 00051 QTimer * _typeTimeout; 00052 00053 }; 00054 00055 #endif 00056 00057 // kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;