FileBrowser::Private::Private( FileBrowser *parent ) : placesModel( 0 ) , showingPlaces( false ) , q( parent ) { KHBox *topHBox = new KHBox( q ); KToolBar *navigationToolbar = new KToolBar( topHBox ); navigationToolbar->setToolButtonStyle( Qt::ToolButtonIconOnly ); navigationToolbar->setIconDimensions( 16 ); backAction = KStandardAction::back( q, SLOT(back()), topHBox ); forwardAction = KStandardAction::forward( q, SLOT(forward()), topHBox ); backAction->setEnabled( false ); forwardAction->setEnabled( false ); upAction = KStandardAction::up( q, SLOT(up()), topHBox ); homeAction = KStandardAction::home( q, SLOT(home()), topHBox ); placesAction = new KAction( KIcon( "folder-remote" ), i18nc( "Show Dolphin Places the user configured", "Places" ), topHBox ); navigationToolbar->addAction( backAction ); navigationToolbar->addAction( forwardAction ); navigationToolbar->addAction( upAction ); navigationToolbar->addAction( homeAction ); navigationToolbar->addAction( placesAction ); searchWidget = new SearchWidget( topHBox, false ); searchWidget->setClickMessage( i18n( "Filter Files" ) ); fileView = new FileView( q ); }
QWidget* MainWindow::setupScriptPanel() { m_hScriptSplitter = new QSplitter(this); m_hScriptSplitter->setOrientation(Qt::Horizontal); KToolBar *executeCommands = new KToolBar(this); executeCommands->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); executeCommands->setOrientation(Qt::Vertical); m_runScript = new QAction(QIcon::fromTheme("media-playback-start"), i18nc("@action:intoolbar Script Execution", "Run"), this); m_runScript->setToolTip(i18nc("@info:tooltip", "Execute currently active script on active graph document.")); m_stopScript = new QAction(QIcon::fromTheme("process-stop"), i18nc("@action:intoolbar Script Execution", "Stop"), this); m_stopScript->setToolTip(i18nc("@info:tooltip", "Stop script execution.")); m_stopScript->setEnabled(false); executeCommands->addAction(m_runScript); executeCommands->addAction(m_stopScript); // add actions to action collection to be able to set shortcuts on them in the ui actionCollection()->addAction("_runScript", m_runScript); actionCollection()->addAction("_stopScript", m_stopScript); connect(m_runScript, &QAction::triggered, this, &MainWindow::executeScript); connect(m_stopScript, &QAction::triggered, this, &MainWindow::stopScript); m_hScriptSplitter->addWidget(m_codeEditorWidget); m_hScriptSplitter->addWidget(m_outputWidget); QWidget *scriptInterface = new QWidget(this); scriptInterface->setLayout(new QHBoxLayout); scriptInterface->layout()->addWidget(m_hScriptSplitter); scriptInterface->layout()->addWidget(executeCommands); return scriptInterface; }
FileBrowser::Private::Private( FileBrowser *parent ) : placesModel( 0 ) , q( parent ) { KHBox *topHBox = new KHBox( q ); KToolBar *navigationToolbar = new KToolBar( topHBox ); navigationToolbar->setToolButtonStyle( Qt::ToolButtonIconOnly ); navigationToolbar->setIconDimensions( 16 ); backAction = KStandardAction::back( q, SLOT(back()), topHBox ); forwardAction = KStandardAction::forward( q, SLOT(forward()), topHBox ); backAction->setEnabled( false ); forwardAction->setEnabled( false ); upAction = KStandardAction::up( q, SLOT(up()), topHBox ); homeAction = KStandardAction::home( q, SLOT(home()), topHBox ); refreshAction = new KAction( KIcon("view-refresh"), i18n( "Refresh" ), topHBox ); QObject::connect( refreshAction, SIGNAL(triggered(bool)), q, SLOT(refresh()) ); navigationToolbar->addAction( backAction ); navigationToolbar->addAction( forwardAction ); navigationToolbar->addAction( upAction ); navigationToolbar->addAction( homeAction ); navigationToolbar->addAction( refreshAction ); searchWidget = new SearchWidget( topHBox, false ); searchWidget->setClickMessage( i18n( "Filter Files" ) ); fileView = new FileView( q ); }
DataOutputWidget::DataOutputWidget(QWidget *parent) : QWidget(parent) , m_model(new DataOutputModel(this)) , m_view(new DataOutputView(this)) , m_isEmpty(true) { m_view->setModel(m_model); QHBoxLayout *layout = new QHBoxLayout(this); m_dataLayout = new QVBoxLayout(); KToolBar *toolbar = new KToolBar(this); toolbar->setOrientation(Qt::Vertical); toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly); toolbar->setIconSize(QSize(16, 16)); /// TODO: disable actions if no results are displayed or selected KAction *action; action = new KAction( KIcon("distribute-horizontal-x"), i18nc("@action:intoolbar", "Resize columns to contents"), this); toolbar->addAction(action); connect(action, SIGNAL(triggered()), this, SLOT(resizeColumnsToContents())); action = new KAction( KIcon("distribute-vertical-y"), i18nc("@action:intoolbar", "Resize rows to contents"), this); toolbar->addAction(action); connect(action, SIGNAL(triggered()), this, SLOT(resizeRowsToContents())); action = new KAction( KIcon("edit-copy"), i18nc("@action:intoolbar", "Copy"), this); toolbar->addAction(action); m_view->addAction(action); connect(action, SIGNAL(triggered()), this, SLOT(slotCopySelected())); action = new KAction( KIcon("document-export-table"), i18nc("@action:intoolbar", "Export..."), this); toolbar->addAction(action); m_view->addAction(action); connect(action, SIGNAL(triggered()), this, SLOT(slotExport())); action = new KAction( KIcon("edit-clear"), i18nc("@action:intoolbar", "Clear"), this); toolbar->addAction(action); connect(action, SIGNAL(triggered()), this, SLOT(clearResults())); toolbar->addSeparator(); KToggleAction *toggleAction = new KToggleAction( KIcon("applications-education-language"), i18nc("@action:intoolbar", "Use system locale"), this); toolbar->addAction(toggleAction); connect(toggleAction, SIGNAL(triggered()), this, SLOT(slotToggleLocale())); m_dataLayout->addWidget(m_view); layout->addWidget(toolbar); layout->addLayout(m_dataLayout); layout->setContentsMargins(0, 0, 0, 0); setLayout(layout); }
KToolBar *ComposerWebEngineWidgetPrivate::createToolBar(const QList<ComposerWebEngine::ComposerWebEngineAction> &lstActions) { KToolBar *toolbar = new KToolBar(q); toolbar->setIconSize(QSize(22, 22)); toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly); toolBarLayout->addWidget(toolbar); webEngine->createToolBar(lstActions, toolbar); listToolBar.append(toolbar); return toolbar; }
KUI_project::KUI_project(QWidget* parent): KMainWindow(parent) { model = 0; trayIcon = new KSystemTrayIcon("media-playback-stop", 0 ); connect(trayIcon, SIGNAL( activated(QSystemTrayIcon::ActivationReason)), this, SLOT( unhideSlot() ) ); path.append( QDir::homePath() ); recArea.setCoords( 0, 0, 0, 0); setupConfig(); this->resize( 700, 300 ); collection = new KActionCollection(this); setupCentralWidget(); menuBar = new KMenuBar; setupMenuFile(); setupMenuWindow(); setupMenuSettings(); menuBar->addMenu(helpMenu()); this->setMenuBar(menuBar); setupActions(); KToolBar *tools = new KToolBar(i18n("&Tools"), this); tools->addAction(collection->action("new_file")); tools->addAction(collection->action("open_file")); tools->addAction(collection->action("add")); collection->action("add")->setEnabled( false ); tools->addAction(collection->action("remove")); collection->action("remove")->setEnabled( false ); //tools->addAction(collection->action("save_file")); tools->setToolButtonStyle(Qt::ToolButtonIconOnly); playBar = new MainToolBar( collection, this); playBar->setAccessibleDescription("Play Bar"); this->addToolBar(Qt::BottomToolBarArea, playBar); connect( playBar->timeSlider, SIGNAL( sliderMoved(int) ), this, SLOT( seekSlot(int) ) ); }
TextOutputWidget::TextOutputWidget(QWidget *parent) : QWidget(parent) { m_succesTextColor = QColor::fromRgb(3, 191, 3); m_succesBackgroundColor = QColor::fromRgb(231, 247, 231); m_errorTextColor = QColor::fromRgb(191, 3, 3); m_errorBackgroundColor = QColor::fromRgb(247, 231, 231); m_layout = new QHBoxLayout(this); m_output = new QTextEdit(); m_output->setReadOnly(true); QFont fixedFont(KGlobalSettings::fixedFont()); m_output->setCurrentFont(fixedFont); KToolBar *toolbar = new KToolBar(this); toolbar->setOrientation(Qt::Vertical); toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly); toolbar->setIconSize(QSize(16, 16)); /// TODO: disable actions if no results are displayed KAction *action; action = new KAction( KIcon("edit-clear"), i18nc("@action:intoolbar", "Clear"), this); toolbar->addAction(action); connect(action, SIGNAL(triggered()), m_output, SLOT(clear())); m_layout->addWidget(toolbar); m_layout->addWidget(m_output, 1); setLayout(m_layout); }
DynamicCategory::DynamicCategory( QWidget* parent ) : QWidget( parent ) , m_biasListView( 0 ) , m_biasModel( 0 ) , m_biasDelegate( 0 ) { bool enabled = AmarokConfig::dynamicMode(); setContentsMargins(0,0,0,0); m_vLayout = new QVBoxLayout( this ); m_onOffCheckbox = new QCheckBox( this ); m_onOffCheckbox->setIcon( KIcon( "dynamic-amarok" ) ); m_onOffCheckbox->setText( i18n( "On" ) ); m_onOffCheckbox->setToolTip( i18n( "Turn dynamic mode on." ) ); m_onOffCheckbox->setCheckable( true ); m_onOffCheckbox->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed ); QObject::connect( m_onOffCheckbox, SIGNAL( toggled( bool ) ), this, SLOT( OnOff ( bool ) ) ); QObject::connect( (const QObject*)Amarok::actionCollection()->action( "playlist_clear" ), SIGNAL( triggered( bool ) ), this, SLOT( playlistCleared() ) ); m_repopulateButton = new QPushButton( this ); m_repopulateButton->setText( i18n("Repopulate") ); m_repopulateButton->setToolTip( i18n("Replace the upcoming tracks with fresh ones.") ); m_repopulateButton->setIcon( KIcon( "view-refresh-amarok" ) ); m_repopulateButton->setEnabled( enabled ); m_repopulateButton->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ) ); QObject::connect( m_repopulateButton, SIGNAL( clicked(bool) ), The::playlistActions(), SLOT( repopulateDynamicPlaylist() ) ); KHBox* presetLayout = new KHBox( this ); QLabel* presetLabel = new QLabel( i18n( "Playlist:" ), presetLayout ); m_presetComboBox = new KComboBox( presetLayout ); m_presetComboBox->setPalette( QApplication::palette() ); DynamicModel::instance()->loadPlaylists(); m_presetComboBox->setModel( DynamicModel::instance() ); connect( DynamicModel::instance(), SIGNAL( changeActive( int ) ), m_presetComboBox, SLOT(setCurrentIndex(int)) ); connect( DynamicModel::instance(), SIGNAL( enableDynamicMode( bool ) ), SLOT(enableDynamicMode(bool)) ); connect( m_presetComboBox, SIGNAL(currentIndexChanged( int ) ), this, SLOT(playlistSelectionChanged( int ) ) ); presetLabel->setBuddy( m_presetComboBox ); presetLayout->setStretchFactor( m_presetComboBox, 1 ); KToolBar* presetToolbar = new KToolBar( presetLayout ); presetToolbar->setToolButtonStyle( Qt::ToolButtonIconOnly ); presetToolbar->setMovable( false ); presetToolbar->setFloatable( false ); presetToolbar->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Preferred ); m_saveButton = new QToolButton( presetToolbar ); //m_saveButton->setText( i18n("Save") ); m_saveButton->setIcon( KIcon( "document-save-amarok" ) ); m_saveButton->setToolTip( i18n( "Save the preset." ) ); presetToolbar->addWidget( m_saveButton ); connect( m_saveButton, SIGNAL( clicked( bool ) ), SLOT( save() ) ); m_deleteButton = new QToolButton( presetToolbar ); //m_deleteButton->setText( i18n("Delete") ); m_deleteButton->setEnabled( false ); m_deleteButton->setIcon( KIcon( "edit-delete-amarok" ) ); m_deleteButton->setToolTip( i18n( "Delete the preset.") ); presetToolbar->addWidget( m_deleteButton ); connect( m_deleteButton, SIGNAL(clicked(bool)), DynamicModel::instance(), SLOT(removeActive()) ); m_biasListView = new QListView( this ); m_biasListView->setFrameShape( QFrame::NoFrame ); m_biasListView->setAlternatingRowColors( true ); The::paletteHandler()->updateItemView( m_biasListView ); connect( The::paletteHandler(), SIGNAL( newPalette( const QPalette & ) ), SLOT( newPalette( const QPalette & ) ) ); m_biasModel = new DynamicBiasModel( m_biasListView ); m_biasListView->setModel( m_biasModel ); connect( m_biasModel, SIGNAL(playlistModified(Dynamic::BiasedPlaylistPtr)), DynamicModel::instance(), SLOT(playlistModified(Dynamic::BiasedPlaylistPtr)) ); m_biasDelegate = new DynamicBiasDelegate( m_biasListView ); m_biasListView->setItemDelegate( m_biasDelegate ); m_vLayout->addWidget( m_onOffCheckbox ); m_vLayout->addWidget( m_repopulateButton ); m_vLayout->addWidget( presetLayout ); m_vLayout->addWidget( m_biasListView ); this->setLayout( m_vLayout ); int index = DynamicModel::instance()->playlistIndex( AmarokConfig::lastDynamicMode() ); debug() << "Setting index: " << index; if( index >= 0 ) { m_presetComboBox->setCurrentIndex( index ); playlistSelectionChanged( index ); } else { m_presetComboBox->setCurrentIndex( 0 ); playlistSelectionChanged( 0 ); } m_onOffCheckbox->setChecked( AmarokConfig::dynamicMode() ); }
InteractiveConsole::InteractiveConsole(QWidget *parent) : QDialog(parent), m_splitter(new QSplitter(Qt::Vertical, this)), m_editorPart(0), m_editor(0), m_output(0), m_loadAction(KStandardAction::open(this, SLOT(openScriptFile()), this)), m_saveAction(KStandardAction::saveAs(this, SLOT(saveScript()), this)), m_clearAction(KStandardAction::clear(this, SLOT(clearEditor()), this)), m_executeAction(new QAction(QIcon::fromTheme(QStringLiteral("system-run")), i18n("&Execute"), this)), m_plasmaAction(new QAction(QIcon::fromTheme(QStringLiteral("plasma")), i18nc("Toolbar Button to switch to Plasma Scripting Mode", "Plasma"), this)), m_kwinAction(new QAction(QIcon::fromTheme(QStringLiteral("kwin")), i18nc("Toolbar Button to switch to KWin Scripting Mode", "KWin"), this)), m_snippetsMenu(new QMenu(i18n("Templates"), this)), m_fileDialog(0), m_closeWhenCompleted(false), m_mode(PlasmaConsole) { addAction(KStandardAction::close(this, SLOT(close()), this)); addAction(m_saveAction); addAction(m_clearAction); setWindowTitle(i18n("Desktop Shell Scripting Console")); setAttribute(Qt::WA_DeleteOnClose); //setButtons(QDialog::None); QWidget *widget = new QWidget(m_splitter); QVBoxLayout *editorLayout = new QVBoxLayout(widget); QLabel *label = new QLabel(i18n("Editor"), widget); QFont f = label->font(); f.setBold(true); label->setFont(f); editorLayout->addWidget(label); connect(m_snippetsMenu, &QMenu::aboutToShow, this, &InteractiveConsole::populateTemplatesMenu); QToolButton *loadTemplateButton = new QToolButton(this); loadTemplateButton->setPopupMode(QToolButton::InstantPopup); loadTemplateButton->setMenu(m_snippetsMenu); loadTemplateButton->setText(i18n("Load")); connect(loadTemplateButton, &QToolButton::triggered, this, &InteractiveConsole::loadTemplate); QToolButton *useTemplateButton = new QToolButton(this); useTemplateButton->setPopupMode(QToolButton::InstantPopup); useTemplateButton->setMenu(m_snippetsMenu); useTemplateButton->setText(i18n("Use")); connect(useTemplateButton, &QToolButton::triggered, this, &InteractiveConsole::useTemplate); QActionGroup *modeGroup = new QActionGroup(this); modeGroup->addAction(m_plasmaAction); modeGroup->addAction(m_kwinAction); m_plasmaAction->setCheckable(true); m_kwinAction->setCheckable(true); m_plasmaAction->setChecked(true); connect(modeGroup, &QActionGroup::triggered, this, &InteractiveConsole::modeSelectionChanged); KToolBar *toolBar = new KToolBar(this, true, false); toolBar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); toolBar->addAction(m_loadAction); toolBar->addAction(m_saveAction); toolBar->addAction(m_clearAction); toolBar->addAction(m_executeAction); toolBar->addAction(m_plasmaAction); toolBar->addAction(m_kwinAction); toolBar->addWidget(loadTemplateButton); toolBar->addWidget(useTemplateButton); editorLayout->addWidget(toolBar); KService::List offers = KServiceTypeTrader::self()->query(QStringLiteral("KTextEditor/Document")); foreach (const KService::Ptr service, offers) { m_editorPart = service->createInstance<KTextEditor::Document>(widget); if (m_editorPart) { m_editorPart->setHighlightingMode(QStringLiteral("JavaScript/PlasmaDesktop")); KTextEditor::View * view = m_editorPart->createView(widget); view->setContextMenu(view->defaultContextMenu()); KTextEditor::ConfigInterface *config = qobject_cast<KTextEditor::ConfigInterface*>(view); if (config) { config->setConfigValue(QStringLiteral("line-numbers"), true); config->setConfigValue(QStringLiteral("dynamic-word-wrap"), true); } editorLayout->addWidget(view); connect(m_editorPart, &KTextEditor::Document::textChanged, this, &InteractiveConsole::scriptTextChanged); break; } }
PlaylistBrowserNS::DynamicCategory::DynamicCategory( QWidget* parent ) : BrowserCategory( "dynamic category", parent ) { setPrettyName( i18n( "Dynamic Playlists" ) ); setShortDescription( i18n( "Dynamically updating parameter based playlists" ) ); setIcon( KIcon( "dynamic-amarok" ) ); setLongDescription( i18n( "With a dynamic playlist, Amarok becomes your own personal dj, automatically selecting tracks for you, based on a number of parameters that you select." ) ); setImagePath( KStandardDirs::locate( "data", "amarok/images/hover_info_dynamic_playlists.png" ) ); // set background if( AmarokConfig::showBrowserBackgroundImage() ) setBackgroundImage( imagePath() ); bool enabled = AmarokConfig::dynamicMode(); setContentsMargins( 0, 0, 0, 0 ); KHBox* controls2Layout = new KHBox( this ); QLabel *label; label = new QLabel( i18n( "Previous:" ), controls2Layout ); label->setAlignment( Qt::AlignRight | Qt::AlignVCenter ); m_previous = new QSpinBox( controls2Layout ); m_previous->setMinimum( 0 ); m_previous->setToolTip( i18n( "Number of previous tracks to remain in the playlist." ) ); m_previous->setValue( AmarokConfig::previousTracks() ); QObject::connect( m_previous, SIGNAL(valueChanged(int)), this, SLOT(setPreviousTracks(int)) ); label = new QLabel( i18n( "Upcoming:" ), controls2Layout ); // label->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding ); label->setAlignment( Qt::AlignRight | Qt::AlignVCenter ); m_upcoming = new QSpinBox( controls2Layout ); m_upcoming->setMinimum( 1 ); m_upcoming->setToolTip( i18n( "Number of upcoming tracks to add to the playlist." ) ); m_upcoming->setValue( AmarokConfig::upcomingTracks() ); QObject::connect( m_upcoming, SIGNAL(valueChanged(int)), this, SLOT(setUpcomingTracks(int)) ); QObject::connect( (const QObject*)Amarok::actionCollection()->action( "playlist_clear" ), SIGNAL(triggered(bool)), this, SLOT(playlistCleared()) ); QObject::connect( (const QObject*)Amarok::actionCollection()->action( "disable_dynamic" ), SIGNAL(triggered(bool)), this, SLOT(playlistCleared()), Qt::DirectConnection ); // -- the tool bar KHBox* presetLayout = new KHBox( this ); KToolBar* presetToolbar = new KToolBar( presetLayout ); presetToolbar->setIconSize( QSize( 22, 22 ) ); presetToolbar->setToolButtonStyle( Qt::ToolButtonIconOnly ); presetToolbar->setMovable( false ); presetToolbar->setFloatable( false ); presetToolbar->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Preferred ); m_onOffButton = new QToolButton( presetToolbar ); m_onOffButton->setText( i18nc( "Turn dynamic mode on", "On") ); m_onOffButton->setCheckable( true ); m_onOffButton->setIcon( KIcon( "dynamic-amarok" ) ); m_onOffButton->setToolTip( i18n( "Turn dynamic mode on." ) ); presetToolbar->addWidget( m_onOffButton ); m_duplicateButton = new QToolButton( presetToolbar ); m_duplicateButton->setText( i18n("Duplicates") ); m_duplicateButton->setCheckable( true ); m_duplicateButton->setChecked( allowDuplicates() ); m_duplicateButton->setIcon( KIcon( "edit-copy" ) ); m_duplicateButton->setToolTip( i18n( "Allow duplicate songs in result" ) ); presetToolbar->addWidget( m_duplicateButton ); m_addButton = new QToolButton( presetToolbar ); m_addButton->setText( i18n("New") ); m_addButton->setIcon( KIcon( "document-new" ) ); m_addButton->setToolTip( i18n( "New playlist" ) ); presetToolbar->addWidget( m_addButton ); m_editButton = new QToolButton( presetToolbar ); m_editButton->setText( i18n("Edit") ); m_editButton->setIcon( KIcon( "document-properties-amarok" ) ); m_editButton->setToolTip( i18n( "Edit the selected playlist or bias" ) ); presetToolbar->addWidget( m_editButton ); m_deleteButton = new QToolButton( presetToolbar ); m_deleteButton->setText( i18n("Delete") ); m_deleteButton->setEnabled( false ); m_deleteButton->setIcon( KIcon( "edit-delete" ) ); m_deleteButton->setToolTip( i18n( "Delete the selected playlist or bias") ); presetToolbar->addWidget( m_deleteButton ); m_repopulateButton = new QPushButton( presetLayout ); m_repopulateButton->setText( i18n("Repopulate") ); m_repopulateButton->setToolTip( i18n("Replace the upcoming tracks with fresh ones.") ); m_repopulateButton->setIcon( KIcon( "view-refresh-amarok" ) ); m_repopulateButton->setEnabled( enabled ); // m_repopulateButton->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ) ); QObject::connect( m_repopulateButton, SIGNAL(clicked(bool)), The::playlistActions(), SLOT(repopulateDynamicPlaylist()) ); // -- the tree view m_tree = new DynamicView( this ); connect( m_tree->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(selectionChanged()) ); connect( m_onOffButton, SIGNAL(toggled(bool)), The::playlistActions(), SLOT(enableDynamicMode(bool)) ); connect( m_duplicateButton, SIGNAL(toggled(bool)), this, SLOT(setAllowDuplicates(bool)) ); connect( m_addButton, SIGNAL(clicked(bool)), m_tree, SLOT(addPlaylist()) ); connect( m_editButton, SIGNAL(clicked(bool)), m_tree, SLOT(editSelected()) ); connect( m_deleteButton, SIGNAL(clicked(bool)), m_tree, SLOT(removeSelected()) ); navigatorChanged(); selectionChanged(); connect( The::playlistActions(), SIGNAL(navigatorChanged()), this, SLOT(navigatorChanged()) ); }