205 |
205 |
Client::instance(), SLOT(disconnectFromCore())));
|
206 |
206 |
coll->addAction("CoreInfo", new Action(SmallIcon("help-about"), tr("Core &Info..."), coll,
|
207 |
207 |
this, SLOT(showCoreInfoDlg())));
|
208 |
|
coll->addAction("EditNetworks", new Action(SmallIcon("configure"), tr("Edit &Networks..."), coll,
|
209 |
|
this, SLOT(on_actionEditNetworks_triggered())));
|
|
208 |
coll->addAction("ConfigureNetworks", new Action(SmallIcon("configure"), tr("Configure &Networks..."), coll,
|
|
209 |
this, SLOT(on_actionConfigureNetworks_triggered())));
|
210 |
210 |
coll->addAction("Quit", new Action(SmallIcon("application-exit"), tr("&Quit"), coll,
|
211 |
211 |
qApp, SLOT(quit()), tr("Ctrl+Q")));
|
212 |
212 |
|
213 |
213 |
// View
|
214 |
|
coll->addAction("ManageBufferViews", new Action(tr("&Manage Buffer Views..."), coll,
|
215 |
|
this, SLOT(on_actionManageViews_triggered())));
|
|
214 |
coll->addAction("ConfigureBufferViews", new Action(tr("&Configure Buffer Views..."), coll,
|
|
215 |
this, SLOT(on_actionConfigureViews_triggered())));
|
216 |
216 |
QAction *lockAct = coll->addAction("LockDockPositions", new Action(tr("&Lock Dock Positions"), coll));
|
217 |
217 |
lockAct->setCheckable(true);
|
218 |
218 |
connect(lockAct, SIGNAL(toggled(bool)), SLOT(on_actionLockDockPositions_toggled(bool)));
|
... | ... | |
248 |
248 |
_fileMenu->addAction(coll->action("CoreInfo"));
|
249 |
249 |
_fileMenu->addSeparator();
|
250 |
250 |
_networksMenu = _fileMenu->addMenu(tr("&Networks"));
|
251 |
|
_networksMenu->addAction(coll->action("EditNetworks"));
|
|
251 |
_networksMenu->addAction(coll->action("ConfigureNetworks"));
|
252 |
252 |
_networksMenu->addSeparator();
|
253 |
253 |
_fileMenu->addSeparator();
|
254 |
254 |
_fileMenu->addAction(coll->action("Quit"));
|
255 |
255 |
|
256 |
256 |
_viewMenu = menuBar()->addMenu(tr("&View"));
|
257 |
257 |
_bufferViewsMenu = _viewMenu->addMenu(tr("&Buffer Views"));
|
258 |
|
_bufferViewsMenu->addAction(coll->action("ManageBufferViews"));
|
|
258 |
_bufferViewsMenu->addAction(coll->action("ConfigureBufferViews"));
|
259 |
259 |
_viewMenu->addSeparator();
|
260 |
260 |
_viewMenu->addAction(coll->action("ToggleSearchBar"));
|
261 |
261 |
_viewMenu->addAction(coll->action("ToggleStatusBar"));
|
... | ... | |
349 |
349 |
dlg.exec();
|
350 |
350 |
}
|
351 |
351 |
|
352 |
|
void MainWin::on_actionEditNetworks_triggered() {
|
|
352 |
void MainWin::on_actionConfigureNetworks_triggered() {
|
353 |
353 |
SettingsPageDlg dlg(new NetworksSettingsPage(this), this);
|
354 |
354 |
dlg.exec();
|
355 |
355 |
}
|
356 |
356 |
|
357 |
|
void MainWin::on_actionManageViews_triggered() {
|
|
357 |
void MainWin::on_actionConfigureViews_triggered() {
|
358 |
358 |
SettingsPageDlg dlg(new BufferViewSettingsPage(this), this);
|
359 |
359 |
dlg.exec();
|
360 |
360 |
}
|