247
237
action = KStandardAction::configureNotifications(this, SLOT(configureNotifications()), actionCollection());
248
238
action->setText( i18n("Configure Notifications...") );
249
action->setToolTip( i18nc("@info:tooltip", "Configure Notifications") );
250
action->setWhatsThis( i18nc( "@info:whatsthis", "<b>Configure Notifications</b><p>Shows a dialog that lets you configure notifications.</p>" ) );
239
action->setToolTip( i18nc("@info:tooltip", "Configure notifications") );
240
action->setWhatsThis( i18nc( "@info:whatsthis", "Shows a dialog that lets you configure notifications." ) );
252
242
action = actionCollection()->addAction( "about_platform", this, SLOT(showAboutPlatform()) );
253
243
action->setText( i18n("About KDevelop Platform") );
254
244
action->setStatusTip( i18n("Show Information about KDevelop Platform") );
255
action->setWhatsThis( i18nc( "@info:whatsthis", "<b>About KDevelop Platform</b><p>Shows a dialog with information about KDevelop Platform.</p>" ) );
245
action->setWhatsThis( i18nc( "@info:whatsthis", "Shows a dialog with information about KDevelop Platform." ) );
257
247
action = actionCollection()->addAction( "loaded_plugins", this, SLOT(showLoadedPlugins()) );
258
248
action->setText( i18n("Loaded Plugins") );
259
249
action->setStatusTip( i18n("Show a list of all loaded plugins") );
260
action->setWhatsThis( i18nc( "@info:whatsthis", "<b>Loaded Plugins</b><p>Shows a dialog with information about all loaded plugins.</p>" ) );
262
// KToolBarPopupAction *popupAction;
263
// popupAction = new KToolBarPopupAction( KIcon( "process-stop" ),
265
// actionCollection()
267
// actionCollection()->addAction( "stop_processes",popupAction );
269
// popupAction->setShortcut( Qt::Key_Escape );
270
// popupAction->setToolTip( i18n( "Stop" ) );
271
// popupAction->setWhatsThis( i18n( "<b>Stop</b><p>Stops all running processes.</p>" ) );
272
// popupAction->setEnabled( false );
273
// connect( popupAction, SIGNAL(triggered()),
274
// this, SLOT(stopButtonPressed()) );
275
// connect( popupAction->menu(), SIGNAL(aboutToShow()),
276
// this, SLOT(stopMenuAboutToShow()) );
277
// connect( popupAction->menu(), SIGNAL(triggered(Action*)),
278
// this, SLOT(stopPopupActivated(QAction*)) );
280
action = actionCollection()->addAction( "view_next_window" );
281
action->setText( i18n( "&Next Window" ) );
282
connect( action, SIGNAL(triggered(bool)), SLOT(gotoNextWindow()) );
283
action->setShortcut( Qt::ALT + Qt::SHIFT + Qt::Key_Right );
284
action->setToolTip( i18nc( "@info:tooltip", "Next window" ) );
285
action->setWhatsThis( i18nc( "@info:whatsthis", "<b>Next window</b><p>Switches to the next window.</p>" ) );
286
action->setIcon(KIcon("go-next"));
288
action = actionCollection()->addAction( "view_previous_window" );
289
action->setText( i18n( "&Previous Window" ) );
290
connect( action, SIGNAL(triggered(bool)), SLOT(gotoPreviousWindow()) );
291
action->setShortcut( Qt::ALT + Qt::SHIFT + Qt::Key_Left );
292
action->setToolTip( i18nc( "@info:tooltip", "Previous window" ) );
293
action->setWhatsThis( i18nc( "@info:whatsthis", "<b>Previous window</b><p>Switches to the previous window.</p>" ) );
294
action->setIcon(KIcon("go-previous"));
296
/*action = actionCollection()->addAction( "new_window" );
297
action->setIcon(KIcon( "window-new" ));
298
action->setText( i18n( "&New Window" ) );
299
action->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_N );
300
connect( action, SIGNAL(triggered(bool)), SLOT(newWindow()) );
301
action->setToolTip( i18n( "New Window" ) );
302
action->setWhatsThis( i18n( "<b>New Window</b><p>Creates a new window with a duplicate of the current area.</p>" ) );*/
250
action->setWhatsThis( i18nc( "@info:whatsthis", "Shows a dialog with information about all loaded plugins." ) );
252
action = actionCollection()->addAction( "view_next_window" );
253
action->setText( i18n( "&Next Window" ) );
254
connect( action, SIGNAL(triggered(bool)), SLOT(gotoNextWindow()) );
255
action->setShortcut( Qt::ALT + Qt::SHIFT + Qt::Key_Right );
256
action->setToolTip( i18nc( "@info:tooltip", "Next window" ) );
257
action->setWhatsThis( i18nc( "@info:whatsthis", "Switches to the next window." ) );
258
action->setIcon(KIcon("go-next"));
260
action = actionCollection()->addAction( "view_previous_window" );
261
action->setText( i18n( "&Previous Window" ) );
262
connect( action, SIGNAL(triggered(bool)), SLOT(gotoPreviousWindow()) );
263
action->setShortcut( Qt::ALT + Qt::SHIFT + Qt::Key_Left );
264
action->setToolTip( i18nc( "@info:tooltip", "Previous window" ) );
265
action->setWhatsThis( i18nc( "@info:whatsthis", "Switches to the previous window." ) );
266
action->setIcon(KIcon("go-previous"));
304
268
action = actionCollection()->addAction( "split_horizontal" );
305
269
action->setIcon(KIcon( "view-split-top-bottom" ));
306
270
action->setText( i18n( "Split View &Top/Bottom" ) );
307
271
action->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_T );
308
272
connect( action, SIGNAL(triggered(bool)), SLOT(splitHorizontal()) );
309
action->setToolTip( i18nc( "@info:tooltip", "Split Horizontal" ) );
310
action->setWhatsThis( i18nc( "@info:whatsthis", "<b>Split Horizontal</b><p>Splits the current view horizontally.</p>" ) );
273
action->setToolTip( i18nc( "@info:tooltip", "Split horizontal" ) );
274
action->setWhatsThis( i18nc( "@info:whatsthis", "Splits the current view horizontally." ) );
312
276
action = actionCollection()->addAction( "split_vertical" );
313
277
action->setIcon(KIcon( "view-split-left-right" ));
314
278
action->setText( i18n( "Split View &Left/Right" ) );
315
279
action->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_L );
316
280
connect( action, SIGNAL(triggered(bool)), SLOT(splitVertical()) );
317
action->setToolTip( i18nc( "@info:tooltip", "Split Vertical" ) );
318
action->setWhatsThis( i18nc( "@info:whatsthis", "<b>Split Vertical</b><p>Splits the current view vertically.</p>" ) );
281
action->setToolTip( i18nc( "@info:tooltip", "Split vertical" ) );
282
action->setWhatsThis( i18nc( "@info:whatsthis", "Splits the current view vertically." ) );
284
action = actionCollection()->addAction( "view_next_split" );
285
action->setText( i18n( "&Next Split View" ) );
286
connect( action, SIGNAL(triggered(bool)), SLOT(gotoNextSplit()) );
287
action->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_N );
288
action->setToolTip( i18nc( "@info:tooltip", "Next split view" ) );
289
action->setWhatsThis( i18nc( "@info:whatsthis", "Switches to the next split view." ) );
290
action->setIcon(KIcon("go-next"));
292
action = actionCollection()->addAction( "view_previous_split" );
293
action->setText( i18n( "&Previous Split View" ) );
294
connect( action, SIGNAL(triggered(bool)), SLOT(gotoPreviousSplit()) );
295
action->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_P );
296
action->setToolTip( i18nc( "@info:tooltip", "Previous split view" ) );
297
action->setWhatsThis( i18nc( "@info:whatsthis", "Switches to the previous split view." ) );
298
action->setIcon(KIcon("go-previous"));
320
300
action = KStandardAction::fullScreen( this, SLOT(toggleFullScreen(bool)), m_mainWindow, actionCollection() );
325
305
action->setText( i18n( "&New" ) );
326
306
action->setIconText( i18nc( "Shorter Text for 'New File' shown in the toolbar", "New") );
327
307
connect( action, SIGNAL(triggered(bool)), SLOT(fileNew()) );
328
action->setToolTip( i18nc( "@info:tooltip", "New File" ) );
329
action->setWhatsThis( i18nc( "@info:whatsthis", "<b>New File</b><p>Creates an empty file.</p>" ) );
308
action->setToolTip( i18nc( "@info:tooltip", "New file" ) );
309
action->setWhatsThis( i18nc( "@info:whatsthis", "Creates an empty file." ) );
331
311
action = actionCollection()->addAction( "add_toolview" );
332
312
action->setIcon(KIcon("window-new"));
333
313
action->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_V );
334
314
action->setText( i18n( "&Add Tool View..." ) );
335
315
connect( action, SIGNAL(triggered(bool)), SLOT(viewAddNewToolView()) );
336
action->setToolTip( i18nc( "@info:tooltip", "Add Tool View" ) );
337
action->setWhatsThis( i18nc( "@info:whatsthis", "<b>Add Tool View</b><p>Adds a new tool view to this window.</p>" ) );
316
action->setToolTip( i18nc( "@info:tooltip", "Add tool view" ) );
317
action->setWhatsThis( i18nc( "@info:whatsthis", "Adds a new tool view to this window." ) );
340
320
void MainWindowPrivate::toggleArea(bool b)