1 /***************************************************************************
2 * Copyright 2006 by Aaron Seigo <aseigo@kde.org> *
3 * Copyright 2008 by Davide Bettio <davide.bettio@kdemail.net> *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
19 ***************************************************************************/
28 #include "krunnerdialog.h"
36 class KHistoryComboBox
;
48 class Interface
: public KRunnerDialog
53 explicit Interface(Plasma::RunnerManager
*m_runnerManager
, QWidget
* parent
= 0);
57 void display(const QString
& term
= QString());
61 void resizeEvent(QResizeEvent
*);
62 void closeEvent(QCloseEvent
* e
);
65 void setWidgetPalettes();
66 void run(ResultItem
*item
);
67 void runDefaultResultItem();
68 void queryTextEdited(const QString
&query
);
69 void updateDescriptionLabel(ResultItem
*item
);
70 void matchCountChanged(int count
);
71 void hideResultsArea();
73 void resetInterface();
76 void centerOnScreen();
77 void setStaticQueryMode(bool staticQuery
);
79 QTimer m_hideResultsTimer
;
81 QWidget
*m_buttonContainer
;
82 QVBoxLayout
* m_layout
;
83 QHBoxLayout
* m_statusLayout
;
84 QLabel
*m_descriptionLabel
;
85 QLabel
*m_previousPage
;
87 QToolButton
*m_configButton
;
88 QToolButton
*m_activityButton
;
89 QToolButton
*m_closeButton
;
90 KHistoryComboBox
* m_searchTerm
;
91 KCompletion
*m_completion
;
92 QGraphicsView
*m_resultsView
;
93 QWidget
*m_dividerLine
;
94 ResultScene
*m_resultsScene
;