Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/widget/wlibrarytextbrowser.cpp

Go to the documentation of this file.
00001 // wlibrarytextbrowser.cpp
00002 // Created 10/23/2009 by RJ Ryan (rryan@mit.edu)
00003 
00004 #include "widget/wlibrarytextbrowser.h"
00005 
00006 #include "widget/wwidget.h"
00007 #include "widget/wskincolor.h"
00008 
00009 WLibraryTextBrowser::WLibraryTextBrowser(QWidget* parent)
00010         : QTextBrowser(parent) {
00011 
00012 }
00013 
00014 WLibraryTextBrowser::~WLibraryTextBrowser() {
00015 
00016 }
00017 
00018 void WLibraryTextBrowser::setup(QDomNode node) {
00019     QPalette pal = palette();
00020     if (!WWidget::selectNode(node, "BgColor").isNull()) {
00021         QString bgColor = WWidget::selectNodeQString(node, "BgColor");
00022         QColor bg;
00023         bg.setNamedColor(bgColor);
00024         bg = WSkinColor::getCorrectColor(bg);
00025         pal.setColor(QPalette::Base, bg);
00026     }
00027     if (!WWidget::selectNode(node, "FgColor").isNull()) {
00028         QString fgColor = WWidget::selectNodeQString(node, "FgColor");
00029         QColor fg;
00030         fg.setNamedColor(fgColor);
00031         fg = WSkinColor::getCorrectColor(fg);
00032         pal.setColor(QPalette::Text, fg);
00033     }
00034     setPalette(pal);
00035 }
00036 
00037 void WLibraryTextBrowser::onSearch(const QString& text) {
00038 
00039 }
00040 
00041 void WLibraryTextBrowser::onSearchStarting() {
00042 
00043 }
00044 
00045 void WLibraryTextBrowser::onSearchCleared() {
00046 
00047 }
00048 
00049 void WLibraryTextBrowser::onShow() {
00050 
00051 }
00052 
00053 void WLibraryTextBrowser::loadSelectedTrack() {
00054     // Not applicable to text views
00055 }
00056 
00057 void WLibraryTextBrowser::loadSelectedTrackToGroup(QString group) {
00058     // Not applicable to text views
00059 }
00060 
00061 void WLibraryTextBrowser::moveSelection(int delta) {
00062     // Not applicable to text views
00063 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines