added myself to Authors and small cleanups

This commit is contained in:
Thomas Frauendorfer 2007-10-17 02:02:21 +02:00
parent 7d43b773fe
commit c988db9f31
8 changed files with 33 additions and 9 deletions

View file

@ -12,6 +12,10 @@ N: Tobias Bengtsson
E: tobbe@tobbe.nu E: tobbe@tobbe.nu
D: Various widgets D: Various widgets
N: Thomas Frauendorfer
E: Thomas.Frauendorfer@googlemail.com
D: Developer
N: Chris Gilbert N: Chris Gilbert
E: neovanglist@neovanglist.net E: neovanglist@neovanglist.net
D: Various widgets and fixes D: Various widgets and fixes

1
TODO
View file

@ -5,6 +5,7 @@ Todo:
* ApplicationConfig * ApplicationConfig
* Balance * Balance
* Playlist * Playlist
+ Display Playtime
+ Add scrollbuttons to slider + Add scrollbuttons to slider
+ Make drag and drop work again + Make drag and drop work again
* Jump entry to dialog * Jump entry to dialog

View file

@ -1,2 +1,4 @@
Contains a copy of some of Esperanzas src/lib/ directory Contains a copy of some of Esperanzas src/lib/ directory
Will have to be removed as soon as those files become a seperate lib Will have to be removed as soon as those files become a seperate lib
Redo XSettings with something better

View file

@ -1,3 +1,19 @@
/**
* This file is a part of Promoe, an XMMS2 Client
*
* Copyright (C) 2007 Thomas Frauendorfer
*
* This program 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 2
* of the License, or (at your option) any later version.
*
* This program 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.
*/
#include <xmmsclient/xmmsclient++.h> #include <xmmsclient/xmmsclient++.h>
#include "xsettings.h" #include "xsettings.h"
@ -15,14 +31,14 @@ XSettings::XSettings (QObject *parent, XClient *client) : QObject (parent)
} }
QString QString
XSettings::valueGet (QString key) XSettings::value_get (QString key)
{ {
/* local cache should be identical to serverside config */ /* local cache should be identical to serverside config */
return m_config_cache.value (key); return m_config_cache.value (key);
} }
void void
XSettings::valueSet (QString key, QString val) XSettings::value_get (QString key, QString val)
{ {
/* Only send change request to server here /* Only send change request to server here
* update of local cache will be done through handle_config_value_changed * update of local cache will be done through handle_config_value_changed
@ -31,7 +47,7 @@ XSettings::valueSet (QString key, QString val)
} }
void void
XSettings::valueRegister (QString key, QString defval) XSettings::value_register (QString key, QString defval)
{ {
m_client->config ()->valueRegister (key.toStdString (), m_client->config ()->valueRegister (key.toStdString (),
defval.toStdString ()); defval.toStdString ());

View file

@ -31,9 +31,9 @@ class XSettings : public QObject
public: public:
XSettings (QObject *parent, XClient *client); XSettings (QObject *parent, XClient *client);
QString valueGet (QString key); QString value_get (QString key);
void valueSet (QString key, QString value); void value_set (QString key, QString value);
void valueRegister (QString key, QString defval); void value_register (QString key, QString defval);
signals: signals:
void configChanged(QString key, QString value); void configChanged(QString key, QString value);

View file

@ -48,7 +48,7 @@ PlaylistScrollBar::mouseMoveEvent (QMouseEvent *event)
setValue(tmp); setValue(tmp);
//TODO only repaint necessyry range //TODO only repaint necessary range
repaint (); repaint ();
} }
@ -303,6 +303,7 @@ PlaylistWidget::PlaylistWidget (QWidget *parent) : QWidget (parent)
m_view = new PlaylistView (this); m_view = new PlaylistView (this);
m_view->move (10, 20); m_view->move (10, 20);
m_view->resize (size().width()-30, size().height()-20-38); m_view->resize (size().width()-30, size().height()-20-38);
// TODO: creation of Playlistmodel should be done elsewhere
m_view->setModel (XMMSHandler::getInstance().getPlaylistModel()); m_view->setModel (XMMSHandler::getInstance().getPlaylistModel());
//m_list = new PlaylistList (m_view); //m_list = new PlaylistList (m_view);
@ -313,7 +314,6 @@ PlaylistWidget::PlaylistWidget (QWidget *parent) : QWidget (parent)
* QT library (as of Version 4.3 * QT library (as of Version 4.3
* TODO: This might in a future Qt version. Try to find a better solution * TODO: This might in a future Qt version. Try to find a better solution
*/ */
//m_scroller = new PlaylistScrollBar (this);
m_scrollBar = new PlaylistScrollBar (this); m_scrollBar = new PlaylistScrollBar (this);
m_view->setVerticalScrollBar (m_scrollBar); m_view->setVerticalScrollBar (m_scrollBar);
m_scrollBar->setParent(this); m_scrollBar->setParent(this);
@ -324,6 +324,7 @@ PlaylistWidget::PlaylistWidget (QWidget *parent) : QWidget (parent)
connect (m_scrollBar, SIGNAL(valueChanged (int)), connect (m_scrollBar, SIGNAL(valueChanged (int)),
m_view, SLOT(verticalScrollbarValueChanged (int))); m_view, SLOT(verticalScrollbarValueChanged (int)));
m_drag = new dragButton (this); m_drag = new dragButton (this);
m_drag->resize (30, 30); m_drag->resize (30, 30);

View file

@ -1,3 +1,4 @@
// old File, not in use any more
#include <xmmsclient/xmmsclient++.h> #include <xmmsclient/xmmsclient++.h>
#include "XMMSHandler.h" #include "XMMSHandler.h"

View file

@ -70,7 +70,6 @@ PlaylistDelegate::sizeHint ( const QStyleOptionViewItem &option,
/* /*
* PlaylistView * PlaylistView
*/ */
//PlaylistView::PlaylistView (QWidget *parent) : QTableView (parent)
PlaylistView::PlaylistView (QWidget *parent) : QListView (parent) PlaylistView::PlaylistView (QWidget *parent) : QListView (parent)
{ {
QSettings s; QSettings s;