modules/gui/kde/menu.cpp \
modules/gui/kde/preferences.cpp \
modules/gui/kde/pluginsbox.cpp \
- modules/gui/kde/QConfigItem.cpp
+ modules/gui/kde/QConfigItem.cpp \
+ modules/gui/kde/messages.cpp
nodist_SOURCES_kde = \
modules/gui/kde/interface.moc.cpp \
modules/gui/kde/menu.moc.cpp \
modules/gui/kde/preferences.moc.cpp \
modules/gui/kde/pluginsbox.moc.cpp \
- modules/gui/kde/QConfigItem.moc.cpp
+ modules/gui/kde/QConfigItem.moc.cpp \
+ modules/gui/kde/messages.moc.cpp
noinst_HEADERS += \
modules/gui/kde/common.h \
modules/gui/kde/net.h \
modules/gui/kde/pluginsbox.h \
modules/gui/kde/preferences.h \
- modules/gui/kde/slider.h
+ modules/gui/kde/slider.h \
+ modules/gui/kde/messages.h
modules/gui/kde/interface.moc.cpp: modules/gui/kde/interface.h
$(MOC) $< -o $@
$(MOC) $< -o $@
modules/gui/kde/QConfigItem.moc.cpp: modules/gui/kde/QConfigItem.h
$(MOC) $< -o $@
+modules/gui/kde/messages.moc.cpp: modules/gui/kde/messages.h
+ $(MOC) $< -o $@
EXTRA_DIST += modules/gui/kde/ui.rc
setAcceptDrops(true);
this->p_intf = p_intf;
-
+ p_messagesWindow = new KMessagesWindow( p_intf, p_intf->p_sys->p_msg );
+ p_messagesWindow->show();
fDiskDialog = new KDiskDialog( this );
fNetDialog = new KNetDialog( this );
fTitleMenu = new KTitleMenu( p_intf, this );
fast = new KAction( i18n( "Fas&t" ), 0, 0, this, SLOT( slotFast() ), actionCollection(), "fast" );
prev = new KAction( i18n( "Prev" ), 0, 0, this, SLOT( slotPrev() ), actionCollection(), "prev" );
next = new KAction( i18n( "Next" ), 0, 0, this, SLOT( slotNext() ), actionCollection(), "next" );
+ messages = new KAction( _( "Messages..." ), 0, 0, this, SLOT( slotShowMessages() ), actionCollection(), "view_messages");
fileOpen->setStatusText(i18n("Opens an existing document"));
fileOpenRecent->setStatusText(i18n("Opens a recently used file"));
next->setStatusText( i18n( "Next" ) );
// use the absolute path to your ktestui.rc file for testing purpose in createGUI();
- createGUI( DATA_PATH "/vlc_kde_ui.rc" );
+ createGUI( DATA_PATH "/ui.rc" );
+// createGUI( "./modules/gui/kde/ui.rc" );
}
void KInterface::initStatusBar()
/////////////////////////////////////////////////////////////////////
// SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
+void KInterface::slotShowMessages()
+{
+ p_messagesWindow->show();
+}
void KInterface::slotFileOpen()
{
void KInterface::slotManage()
{
+ p_messagesWindow->update();
+ p_intf->p_sys->p_app->processEvents();
vlc_mutex_lock( &p_intf->change_lock );
/* Update the input */
}
vlc_mutex_unlock( &p_intf->change_lock );
+
}
void KInterface::slotSliderMoved( int position )
#include <qdragobject.h>
#include <qstring.h>
#include <qwidget.h>
-
+#include "messages.h"
class KThread;
class KDiskDialog;
* @param text the text that is displayed in the statusbar
*/
void slotStatusMsg( const QString &text );
+ void slotShowMessages();
protected:
/** initializes the KActions of the application */
private:
intf_thread_t *p_intf;
+ KMessagesWindow *p_messagesWindow;
/** to call p_intf->pf_manage every now and then */
QTimer *fTimer;
KAction *fast;
KAction *prev;
KAction *next;
+ KAction *messages;
KAction *preferences;
};
KAboutData *p_about;
input_thread_t *p_input;
+ msg_subscription_t *p_msg;
};
#endif /* _KDE_INTERFACE_H_ */
* kde.cpp : KDE plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: kde.cpp,v 1.2 2002/08/18 13:14:39 sigmunau Exp $
+ * $Id: kde.cpp,v 1.3 2002/10/03 10:15:01 sigmunau Exp $
*
* Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
*
delete p_intf->p_sys->p_app;
delete p_intf->p_sys->p_about;
+ msg_Unsubscribe(p_intf, p_intf->p_sys->p_msg);
free( p_intf->p_sys );
}
_("(C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 - the VideoLAN Team"),
0, 0, "");
- char *authors[][2] = {
- { "the VideoLAN Team", "<videolan@videolan.org>" },
- { NULL, NULL },
- };
-
- for ( int i = 0; NULL != authors[i][0]; i++ ) {
- p_intf->p_sys->p_about->addAuthor( authors[i][0], 0, authors[i][1] );
- }
+ p_intf->p_sys->p_about->addAuthor( "the VideoLAN Team", 0,
+ "<videolan@videolan.org>" );
int argc = 1;
char *argv[] = { p_intf->p_vlc->psz_object_name, NULL };
KCmdLineArgs::init( argc, argv, p_intf->p_sys->p_about );
+ /* Subscribe to message queue */
+ p_intf->p_sys->p_msg = msg_Subscribe( p_intf );
+
p_intf->p_sys->p_app = new KApplication();
p_intf->p_sys->p_window = new KInterface(p_intf);
p_intf->p_sys->p_window->setCaption( VOUT_TITLE " (KDE interface)" );
* preferences.cpp: preferences window for the kde gui
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: preferences.cpp,v 1.4 2002/08/15 12:11:15 sam Exp $
+ * $Id: preferences.cpp,v 1.5 2002/10/03 10:15:01 sigmunau Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> Mon Aug 12 2002
*
#include "preferences.h"
/*
- construkt a new configuration window for the given module
+ construct a new configuration window for the given module
*/
KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
QWidget *parent, const QString &caption) :
<Separator lineSeparator="true"/>
<Action name="file_quit"/>
</Menu>
+ <Menu name="view" noMerge="1">
+ <text>&View</text>
+ <Action name="view_messages"/>
+ </Menu>
</MenuBar>
<ToolBar name="mainToolBar" iconText="icononly" iconSize="16" noMerge="1">