UBFeaturesTab added basic functionality partialy implemented

preferencesAboutTextFull
Anna Udovichenko 13 years ago
parent 71ca20fe22
commit 2e04977035
  1. 10
      resources/style.qss
  2. 1
      src/board/UBBoardPaletteManager.cpp
  3. 3
      src/board/UBBoardView.cpp
  4. 16
      src/gui/UBFeaturesWidget.cpp

@ -4,7 +4,8 @@ QWidget#UBLibPathViewer,
QWidget#UBLibNavigatorWidget, QWidget#UBLibNavigatorWidget,
QWidget#UBLibItemProperties, QWidget#UBLibItemProperties,
QWidget#UBDownloadWidget, QWidget#UBDownloadWidget,
QWidget#UBTeacherGuideWidget QWidget#UBTeacherGuideWidget,
QWidget#UBFeatureProperties
{ {
background: #EEEEEE; background: #EEEEEE;
border-radius: 10px; border-radius: 10px;
@ -25,6 +26,13 @@ QWidget#UBLibWebView
border: 2px solid #999999; border: 2px solid #999999;
} }
QListView
{
background: #EEEEEE;
border-radius : 10px;
border: 2px solid #999999;
}
QWebView#SearchEngineView QWebView#SearchEngineView
{ {
background:white; background:white;

@ -138,6 +138,7 @@ void UBBoardPaletteManager::setupDockPaletteWidgets()
mpDownloadWidget = new UBDockDownloadWidget(); mpDownloadWidget = new UBDockDownloadWidget();
mpTeacherGuideWidget = new UBDockTeacherGuideWidget(); mpTeacherGuideWidget = new UBDockTeacherGuideWidget();
mpFeaturesWidget = new UBFeaturesWidget();
// Add the dock palettes // Add the dock palettes
mLeftPalette = new UBLeftPalette(mContainer); mLeftPalette = new UBLeftPalette(mContainer);

@ -16,6 +16,7 @@
#include <QtGui> #include <QtGui>
#include <QtXml> #include <QtXml>
#include <QListView>
#include "UBDrawingController.h" #include "UBDrawingController.h"
@ -808,7 +809,7 @@ void UBBoardView::dropEvent (QDropEvent *event)
} else if (!event->source() } else if (!event->source()
|| dynamic_cast<UBThumbnailWidget *>(event->source()) || dynamic_cast<UBThumbnailWidget *>(event->source())
|| dynamic_cast<QWebView*>(event->source()) || dynamic_cast<QWebView*>(event->source())
|| dynamic_cast<UBTGMediaWidget*>(event->source())) || dynamic_cast<UBTGMediaWidget*>(event->source())
|| dynamic_cast<QListView *>(event->source()) ) { || dynamic_cast<QListView *>(event->source()) ) {
mController->processMimeData (event->mimeData (), mapToScene (event->pos ())); mController->processMimeData (event->mimeData (), mapToScene (event->pos ()));

@ -4,6 +4,7 @@
#include "frameworks/UBFileSystemUtils.h" #include "frameworks/UBFileSystemUtils.h"
#include "core/UBApplication.h" #include "core/UBApplication.h"
#include "core/UBDownloadManager.h" #include "core/UBDownloadManager.h"
#include "globals/UBGlobals.h"
UBFeaturesWidget::UBFeaturesWidget(QWidget *parent, const char *name):UBDockPaletteWidget(parent) UBFeaturesWidget::UBFeaturesWidget(QWidget *parent, const char *name):UBDockPaletteWidget(parent)
{ {
@ -11,8 +12,9 @@ UBFeaturesWidget::UBFeaturesWidget(QWidget *parent, const char *name):UBDockPale
mName = "FeaturesWidget"; mName = "FeaturesWidget";
mVisibleState = true; mVisibleState = true;
setAttribute(Qt::WA_StyledBackground, true); SET_STYLE_SHEET();
setStyleSheet(UBApplication::globalStyleSheet()); //setAttribute(Qt::WA_StyledBackground, true);
//setStyleSheet(UBApplication::globalStyleSheet());
mIconToLeft = QPixmap(":images/library_open.png"); mIconToLeft = QPixmap(":images/library_open.png");
mIconToRight = QPixmap(":images/library_close.png"); mIconToRight = QPixmap(":images/library_close.png");
@ -44,6 +46,7 @@ UBFeaturesWidget::UBFeaturesWidget(QWidget *parent, const char *name):UBDockPale
featuresPathModel->setSourceModel( featuresModel ); featuresPathModel->setSourceModel( featuresModel );
//featuresListView->setStyleSheet( QString("background: #EEEEEE;border-radius: 10px;border: 2px solid #999999;") );
featuresListView->setDragDropMode( QAbstractItemView::InternalMove ); featuresListView->setDragDropMode( QAbstractItemView::InternalMove );
featuresListView->setModel( featuresProxyModel ); featuresListView->setModel( featuresProxyModel );
@ -55,6 +58,7 @@ UBFeaturesWidget::UBFeaturesWidget(QWidget *parent, const char *name):UBDockPale
featuresListView->setIconSize( QSize(40, 40) ); featuresListView->setIconSize( QSize(40, 40) );
featuresListView->setGridSize( QSize(70, 70) ); featuresListView->setGridSize( QSize(70, 70) );
//pathListView->setStyleSheet( QString("background: #EEEEEE; border-radius : 10px; border : 2px solid #999999;") );
pathListView->setModel( featuresPathModel ); pathListView->setModel( featuresPathModel );
pathListView->setViewMode( QListView::IconMode ); pathListView->setViewMode( QListView::IconMode );
pathListView->setIconSize( QSize(30, 30) ); pathListView->setIconSize( QSize(30, 30) );
@ -201,8 +205,8 @@ UBFeatureProperties::UBFeatureProperties( QWidget *parent, const char *name ) :
{ {
setObjectName(name); setObjectName(name);
setAttribute(Qt::WA_StyledBackground, true); SET_STYLE_SHEET();
setStyleSheet(UBApplication::globalStyleSheet()); //setStyleSheet(UBApplication::globalStyleSheet());
// Create the GUI // Create the GUI
mpLayout = new QVBoxLayout(this); mpLayout = new QVBoxLayout(this);
@ -316,9 +320,9 @@ UBFeaturesPathViewer::UBFeaturesPathViewer(const QPixmap &root, const QString &r
{ {
setObjectName(name); setObjectName(name);
setAttribute(Qt::WA_StyledBackground, true); /*setAttribute(Qt::WA_StyledBackground, true);
setStyleSheet(UBApplication::globalStyleSheet()); setStyleSheet(UBApplication::globalStyleSheet());
*/
layout = new QGraphicsLinearLayout(); layout = new QGraphicsLinearLayout();
container = new QGraphicsWidget(); container = new QGraphicsWidget();

Loading…
Cancel
Save