diff --git a/gui.ui b/gui.ui new file mode 100644 index 0000000..d93323c --- /dev/null +++ b/gui.ui @@ -0,0 +1,42 @@ + + + Form + + + + 0 + 0 + 941 + 625 + + + + Form + + + + + 290 + 60 + 75 + 23 + + + + PushButton + + + + + + 540 + 120 + 256 + 192 + + + + + + + diff --git a/player.cpp b/player.cpp index 6fd811c..46be3ea 100644 --- a/player.cpp +++ b/player.cpp @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include "player.h" @@ -24,14 +26,14 @@ Player::Player(){ this->sender_laden(); this->sender_ausgeben(); - QPushButton *button; - QFrame *videoWidget; - - videoWidget = new QFrame; - button = new QPushButton("Hallo"); - - videoWidget->show(); - button->show(); + QWidget *window = new QWidget; + QListWidget *list = new QListWidget(); + for(int x=0;xSender;x++){ + list->addItem(this->Name[x]); + } + QHBoxLayout *layout = new QHBoxLayout(window); + layout->addWidget(list); + window->show(); //this->play(); //this->play(); @@ -119,7 +121,7 @@ int Player::play(void){ libvlc_media_release (m); #if defined(Q_OS_WIN) // Windows - libvlc_media_player_set_hwnd(mp, (void *)videoWidget->winId()); +// libvlc_media_player_set_hwnd(mp, (void *)videoWidget->winId()); #elif defined(Q_OS_MAC) // Mac libvlc_media_player_set_nsobject(mp, (void *)videoWidget->winId()); #else //Linux diff --git a/vlc-vdr.pro b/vlc-vdr.pro index 28270c7..91967e2 100644 --- a/vlc-vdr.pro +++ b/vlc-vdr.pro @@ -12,3 +12,8 @@ DEFINES += CURL_STATICLIB VLC_STATICLIB HEADERS += \ player.h + +DISTFILES += + +FORMS += \ + gui.ui