1
/***************************************************************************
2
* Copyright (C) 2005 by Adam Treat *
5
* Copyright (C) 2004 by Scott Wheeler *
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; either version 2 of the License, or *
11
* (at your option) any later version. *
13
***************************************************************************/
18
#include <kapplication.h>
19
#include <kparts/mainwindow.h>
20
#include <kparts/partmanager.h>
22
#include <kmainwindow.h>
23
#include "statuslabel.h"
24
#include "datatablesplitter.h"
30
class DataTableSplitter;
32
class DataKiosk /*: public KMainWindow*/ : public KParts::MainWindow
37
DataKiosk( QWidget* parent = 0, const char *name = "datakiosk" );
39
virtual KActionCollection *actionCollection() const;
41
void setStatusLeft( const QString &text )
43
m_statusLabel->setLeft( text );
45
void setStatusRight( const QString &text )
47
m_statusLabel->setRight( text );
49
void setStatusFarRight( const QString &text )
51
m_statusLabel->setFarRight( text );
54
KParts::PartManager *partManager() const
66
virtual void showEvent( QShowEvent *ev );
67
virtual void hideEvent( QHideEvent *ev );
68
virtual void windowActivationChange( bool oldActive );
79
void keyPressEvent( QKeyEvent * );
85
virtual bool queryExit();
86
virtual bool queryClose();
89
DataTableSplitter *m_splitter;
90
StatusLabel *m_statusLabel;
92
KParts::PartManager *m_partManager;