diff options
Diffstat (limited to 'src/app/fullScreenAction.cpp')
-rw-r--r-- | src/app/fullScreenAction.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/app/fullScreenAction.cpp b/src/app/fullScreenAction.cpp index 62ba4fa..3787a33 100644 --- a/src/app/fullScreenAction.cpp +++ b/src/app/fullScreenAction.cpp @@ -3,14 +3,14 @@ #include "extern.h" #include "fullScreenAction.h" -#include <klocale.h> -#include <kwin.h> +#include <tdelocale.h> +#include <twin.h> #include <ntqwidget.h> #include "xineEngine.h" //videoWindow() -FullScreenAction::FullScreenAction( TQWidget* window, KActionCollection *parent ) - : KToggleAction( TQString::null, Key_F, 0, 0, parent, "fullscreen" ) +FullScreenAction::FullScreenAction( TQWidget* window, TDEActionCollection *parent ) + : TDEToggleAction( TQString::null, Key_F, 0, 0, parent, "fullscreen" ) , m_window( window ) , m_shouldBeDisabled( false ) , m_state( 0 ) @@ -22,20 +22,20 @@ FullScreenAction::FullScreenAction( TQWidget* window, KActionCollection *parent void FullScreenAction::setChecked( bool setChecked ) { - KToggleAction::setChecked( setChecked ); + TDEToggleAction::setChecked( setChecked ); m_window->raise(); const int id = m_window->winId(); if( setChecked ) { setText( i18n("Exit F&ull Screen Mode") ); - setIcon("window_nofullscreen"); + setIcon("view-restore"); m_state = KWin::windowInfo( id ).state(); KWin::setState( id, NET::FullScreen ); } else { setText(i18n("F&ull Screen Mode")); - setIcon("window_fullscreen"); + setIcon("view-fullscreen"); KWin::clearState( id, NET::FullScreen ); KWin::setState( id, m_state ); // get round bug in KWin where it forgets maximisation state } @@ -54,14 +54,14 @@ FullScreenAction::setEnabled( bool setEnabled ) m_shouldBeDisabled = true; else { - //FIXME Codeine specific (because videoWindow isn't the window we control, we control the KMainWindow) + //FIXME Codeine specific (because videoWindow isn't the window we control, we control the TDEMainWindow) //NOTE also if the videoWindow is hidden at some point, this is broken.. //TODO new type of actionclass that event filters and is always correct state if( setEnabled && reinterpret_cast<TQWidget*>(Codeine::videoWindow())->isHidden() ) setEnabled = false; m_shouldBeDisabled = false; - KToggleAction::setEnabled( setEnabled ); + TDEToggleAction::setEnabled( setEnabled ); } } |