Added a beginning of the medialib.

This commit is contained in:
Tobias Rundstrom 2006-03-02 23:50:22 -03:00
parent 9b5aac622c
commit b8f4b7acb7
9 changed files with 249 additions and 3 deletions

View file

@ -2,6 +2,7 @@
#include "TitleBar.h"
#include "Display.h"
#include "SkinChooser.h"
#include "Medialib.h"
#include <QMenu>
@ -38,6 +39,11 @@ TitleBar::showMenu (void)
QAction *a;
a = new QAction (tr ("Medialib browser"), this);
a->setShortcut (tr ("Alt+M"));
connect (a, SIGNAL (triggered ()), this, SLOT (showMlib ()));
qm.addAction (a);
qm.addSeparator ();
a = new QAction (tr ("Theme settings"), this);
a->setShortcut (tr ("Alt+T"));
connect (a, SIGNAL (triggered ()), this, SLOT (showTheme ()));
@ -58,6 +64,13 @@ TitleBar::showMenu (void)
}
void
TitleBar::showMlib ()
{
MedialibWindow *mw = new MedialibWindow (window ());
mw->show ();
}
void
TitleBar::showTheme ()
{