This commit is contained in:
Steffen Schröder committed 2014-05-01 17:35:46 +02:00
1 parent 7145cd267b
commit c0e2ed7370
9 files changed
+270 -254

No files matched your search

@@ -10,8 +10,4 @@ namespace ManiaControl\Manialinks;
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface ManialinkPageAnswerListener {
/*
* Constants
*/
const MANIALINKPAGEANSWERLISTENER_INTERFACE = __CLASS__;
}
+14 -7
View File
@@ -159,12 +159,19 @@ class StyleManager {
*
* @return Frame $frame
*/
public function getDefaultListFrame(Script $script = null, $pagesId = '') {
$paging = null;
if ($script) {
$paging = new Paging();
$script->addFeature($paging);
}
public function getDefaultListFrame() {
$args = func_get_args();
$script = null;
$paging = null;
foreach ($args as $arg) {
if ($arg instanceof Script) {
$script = $arg;
}
if ($arg instanceof Paging) {
$paging = $arg;
}
}
$width = $this->getListWidgetsWidth();
$height = $this->getListWidgetsHeight();
$quadStyle = $this->getDefaultMainWindowStyle();
@@ -189,7 +196,7 @@ class StyleManager {
$closeQuad->setSubStyle(Quad_Icons64x64_1::SUBSTYLE_QuitRace);
$closeQuad->setAction(ManialinkManager::ACTION_CLOSEWIDGET);
if ($pagesId && isset($script)) {
if ($script) {
$pagerSize = 6.;
$pagerPrev = new Quad_Icons64x64_1();
$frame->add($pagerPrev);