You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tellico/src/statusbar.h

65 lines
1.6 KiB

/***************************************************************************
copyright : (C) 2005-2006 by Robby Stephenson
email : robby@periapsis.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of version 2 of the GNU General Public License as *
* published by the Free Software Foundation; *
* *
***************************************************************************/
// much of this code is adapted from amarok
// which is GPL licensed, Copyright (C) 2005 by Max Howell
#ifndef TELLICO_STATUSBAR_H
#define TELLICO_STATUSBAR_H
#include <kstatusbar.h>
namespace Tellico {
namespace GUI {
class Progress;
}
class MainWindow;
/**
* @author Robby Stephenson
*/
class StatusBar : public KStatusBar {
Q_OBJECT
public:
void clearStatus();
void setStatus(const TQString& status);
void setCount(const TQString& count);
static StatusBar* self() { return s_self; }
protected:
virtual void polish();
private slots:
void slotProgress(uint progress);
void slotUpdate();
private:
static StatusBar* s_self;
friend class MainWindow;
StatusBar(TQWidget* parent);
KStatusBarLabel* m_mainLabel;
KStatusBarLabel* m_countLabel;
GUI::Progress* m_progress;
TQWidget* m_cancelButton;
};
}
#endif