-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
942f5e9
commit b8624db
Showing
6 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* Phaethon - A FLOSS resource explorer for BioWare's Aurora engine games | ||
* | ||
* Phaethon is the legal property of its developers, whose names | ||
* can be found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* Phaethon is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* Phaethon is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Phaethon. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** @file | ||
* Wrapper class for status bar in order to | ||
* have identical functionality to Phaethon (wx version.) | ||
*/ | ||
|
||
#include "statusbar.h" | ||
|
||
namespace GUI { | ||
|
||
StatusBar::StatusBar(QStatusBar *statusBar) { | ||
_statusBar = statusBar; | ||
} | ||
|
||
void StatusBar::setText(const QString &text) { | ||
_statusBar->showMessage(text); | ||
_text = text; | ||
} | ||
|
||
void StatusBar::push(const QString &text, int timeout) { | ||
_statusBar->showMessage(text, timeout); | ||
} | ||
|
||
void StatusBar::pop() { | ||
_statusBar->showMessage(_text); | ||
} | ||
|
||
} // End of namespace GUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* Phaethon - A FLOSS resource explorer for BioWare's Aurora engine games | ||
* | ||
* Phaethon is the legal property of its developers, whose names | ||
* can be found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* Phaethon is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* Phaethon is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Phaethon. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** @file | ||
* Wrapper class for status bar in order to | ||
* have identical functionality to Phaethon (wx version.) | ||
*/ | ||
|
||
#ifndef STATUSBAR_H | ||
#define STATUSBAR_H | ||
|
||
#include <QMainWindow> | ||
#include <QStatusBar> | ||
#include <QWidget> | ||
|
||
namespace GUI { | ||
|
||
class StatusBar { | ||
public: | ||
StatusBar(QStatusBar *statusBar); | ||
void setText(const QString &text); | ||
void push(const QString &text, int timeout = 0); | ||
void pop(); | ||
|
||
private: | ||
QStatusBar *_statusBar; | ||
QString _text; | ||
}; | ||
|
||
} // End of namespace GUI | ||
|
||
#endif // STATUSBAR_H |