Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/blame/commit/9c6074607989bfc3bae952c20951adc8ee9a16ab/src/gui/UBDockPaletteWidget.cpp You should set ROOT_URL correctly, otherwise the web may not work correctly.
новые иконки в OpenBoard
OpenBoard/src/gui/UBDockPaletteWidget.cpp

72 lines
1.8 KiB

/*
12 years ago
* Copyright (C) 2013 Open Education Foundation
*
12 years ago
* Copyright (C) 2010-2013 Groupement d'Intérêt Public pour
* l'Education Numérique en Afrique (GIP ENA)
*
12 years ago
* This file is part of OpenBoard.
*
* OpenBoard is free software: you can redistribute it and/or modify
12 years ago
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License,
* with a specific linking exception for the OpenSSL project's
* "OpenSSL" library (or with modified versions of it that use the
* same license as the "OpenSSL" library).
*
12 years ago
* OpenBoard is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12 years ago
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 years ago
* GNU General Public License for more details.
*
12 years ago
* You should have received a copy of the GNU General Public License
12 years ago
* along with OpenBoard. If not, see <http://www.gnu.org/licenses/>.
*/
12 years ago
12 years ago
14 years ago
#include "UBDockPaletteWidget.h"
#include "core/memcheck.h"
UBDockPaletteWidget::UBDockPaletteWidget(QWidget *parent, const char *name):QWidget(parent)
14 years ago
{
setObjectName(name);
}
UBDockPaletteWidget::~UBDockPaletteWidget()
{
14 years ago
}
QPixmap UBDockPaletteWidget::iconToRight()
14 years ago
{
return mIconToRight;
14 years ago
}
QPixmap UBDockPaletteWidget::iconToLeft()
14 years ago
{
return mIconToLeft;
14 years ago
}
QString UBDockPaletteWidget::name()
14 years ago
{
return mName;
14 years ago
}
/**
* When a widget registers a mode it means that it would be displayed on that mode
*/
void UBDockPaletteWidget::registerMode(eUBDockPaletteWidgetMode mode)
{
if(!mRegisteredModes.contains(mode))
mRegisteredModes.append(mode);
}
void UBDockPaletteWidget::slot_changeMode(eUBDockPaletteWidgetMode newMode)
{
this->setVisible(this->visibleInMode( newMode ));
}