|
Lines 212-217
Link Here
|
| 212 |
,kWinModule(0) |
212 |
,kWinModule(0) |
| 213 |
,menubar(0) |
213 |
,menubar(0) |
| 214 |
,statusbar(0) |
214 |
,statusbar(0) |
|
|
215 |
,m_session_string(i18n("&Session")) |
| 216 |
,m_edit_string(i18n("&Edit")) |
| 217 |
,m_view_string(i18n("&View")) |
| 218 |
,m_bookmarks_string(i18n("&Bookmarks")) |
| 219 |
,m_options_string(i18n("Se&ttings")) |
| 220 |
,m_help_string(i18n("&Help")) |
| 221 |
,m_session_id(-1) |
| 222 |
,m_edit_id(-1) |
| 223 |
,m_view_id(-1) |
| 224 |
,m_bookmarks_id(-1) |
| 225 |
,m_options_id(-1) |
| 226 |
,m_help_id(-1) |
| 215 |
,m_session(0) |
227 |
,m_session(0) |
| 216 |
,m_edit(0) |
228 |
,m_edit(0) |
| 217 |
,m_view(0) |
229 |
,m_view(0) |
|
Lines 321-326
Link Here
|
| 321 |
readProperties(config, schema, false); |
333 |
readProperties(config, schema, false); |
| 322 |
|
334 |
|
| 323 |
makeBasicGUI(); |
335 |
makeBasicGUI(); |
|
|
336 |
setMenuAcceleratos(); |
| 324 |
|
337 |
|
| 325 |
if (isRestored) { |
338 |
if (isRestored) { |
| 326 |
n_tabbar = wanted_tabbar; |
339 |
n_tabbar = wanted_tabbar; |
|
Lines 1074-1088
Link Here
|
| 1074 |
if (m_bookmarksSession) |
1087 |
if (m_bookmarksSession) |
| 1075 |
connect(m_bookmarksSession,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI())); |
1088 |
connect(m_bookmarksSession,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI())); |
| 1076 |
|
1089 |
|
| 1077 |
menubar->insertItem(i18n("Session") , m_session); |
1090 |
m_session_id=menubar->insertItem(m_session_string , m_session); |
| 1078 |
menubar->insertItem(i18n("Edit"), m_edit); |
1091 |
m_edit_id=menubar->insertItem(m_edit_string, m_edit); |
| 1079 |
menubar->insertItem(i18n("View"), m_view); |
1092 |
m_view_id=menubar->insertItem(m_view_string, m_view); |
| 1080 |
if (m_bookmarks) |
1093 |
if (m_bookmarks) |
| 1081 |
menubar->insertItem(i18n("Bookmarks"), m_bookmarks); |
1094 |
m_bookmarks_id=menubar->insertItem(m_bookmarks_string, m_bookmarks); |
| 1082 |
if (m_options) |
1095 |
if (m_options) |
| 1083 |
menubar->insertItem(i18n("Settings"), m_options); |
1096 |
m_options_id=menubar->insertItem(m_options_string, m_options); |
| 1084 |
if (m_help) |
1097 |
if (m_help) |
| 1085 |
menubar->insertItem(i18n("Help"), m_help); |
1098 |
m_help_id=menubar->insertItem(m_help_string, m_help); |
| 1086 |
|
1099 |
|
| 1087 |
m_shortcuts = new TDEActionCollection(this); |
1100 |
m_shortcuts = new TDEActionCollection(this); |
| 1088 |
|
1101 |
|
|
Lines 1149-1155
Link Here
|
| 1149 |
masterMode = new TDEToggleAction ( i18n( "Send &Input to All Sessions" ), "remote", 0, TQT_TQOBJECT(this), |
1162 |
masterMode = new TDEToggleAction ( i18n( "Send &Input to All Sessions" ), "remote", 0, TQT_TQOBJECT(this), |
| 1150 |
TQT_SLOT( slotToggleMasterMode() ), m_shortcuts, "send_input_to_all_sessions" ); |
1163 |
TQT_SLOT( slotToggleMasterMode() ), m_shortcuts, "send_input_to_all_sessions" ); |
| 1151 |
|
1164 |
|
| 1152 |
showMenubar = new TDEToggleAction ( i18n( "Show &Menubar" ), "showmenu", 0, TQT_TQOBJECT(this), |
1165 |
showMenubar = new TDEToggleAction ( i18n( "Show &Menubar" ), "showmenu", Qt::CTRL+Qt::SHIFT+Qt::ALT+Qt::Key_M, TQT_TQOBJECT(this), |
| 1153 |
TQT_SLOT( slotToggleMenubar() ), m_shortcuts, "show_menubar" ); |
1166 |
TQT_SLOT( slotToggleMenubar() ), m_shortcuts, "show_menubar" ); |
| 1154 |
showMenubar->setCheckedState( KGuiItem( i18n("Hide &Menubar"), "showmenu", TQString::null, TQString::null ) ); |
1167 |
showMenubar->setCheckedState( KGuiItem( i18n("Hide &Menubar"), "showmenu", TQString::null, TQString::null ) ); |
| 1155 |
|
1168 |
|
|
Lines 1628-1633
Link Here
|
| 1628 |
b_xonXoff = config->readBoolEntry("XonXoff",false); |
1641 |
b_xonXoff = config->readBoolEntry("XonXoff",false); |
| 1629 |
b_matchTabWinTitle = config->readBoolEntry("MatchTabWinTitle",false); |
1642 |
b_matchTabWinTitle = config->readBoolEntry("MatchTabWinTitle",false); |
| 1630 |
b_mouseWheelScroll = config->readBoolEntry("TabsCycleWheel",true); |
1643 |
b_mouseWheelScroll = config->readBoolEntry("TabsCycleWheel",true); |
|
|
1644 |
b_menuAccelerators = config->readBoolEntry("MenuAccelerators",false); |
| 1631 |
config->setGroup("UTMP"); |
1645 |
config->setGroup("UTMP"); |
| 1632 |
b_addToUtmp = config->readBoolEntry("AddToUtmp",true); |
1646 |
b_addToUtmp = config->readBoolEntry("AddToUtmp",true); |
| 1633 |
config->setDesktopGroup(); |
1647 |
config->setDesktopGroup(); |
|
Lines 2183-2188
Link Here
|
| 2183 |
} |
2197 |
} |
| 2184 |
|
2198 |
|
| 2185 |
tabwidget->setMouseWheelScroll(b_mouseWheelScroll); |
2199 |
tabwidget->setMouseWheelScroll(b_mouseWheelScroll); |
|
|
2200 |
setMenuAcceleratos(); |
| 2186 |
} |
2201 |
} |
| 2187 |
|
2202 |
|
| 2188 |
// Called via emulation via session |
2203 |
// Called via emulation via session |
|
Lines 4427-4430
Link Here
|
| 4427 |
return ret; |
4442 |
return ret; |
| 4428 |
} |
4443 |
} |
| 4429 |
|
4444 |
|
|
|
4445 |
void Konsole::setMenuAcceleratos() |
| 4446 |
{ |
| 4447 |
if (b_menuAccelerators) |
| 4448 |
{ |
| 4449 |
menubar->changeItem(m_session_id, m_session_string); |
| 4450 |
menubar->changeItem(m_edit_id, m_edit_string); |
| 4451 |
menubar->changeItem(m_view_id, m_view_string); |
| 4452 |
if (m_bookmarks) |
| 4453 |
menubar->changeItem(m_bookmarks_id, m_bookmarks_string); |
| 4454 |
if (m_options) |
| 4455 |
menubar->changeItem(m_options_id, m_options_string); |
| 4456 |
if (m_help) |
| 4457 |
menubar->changeItem(m_help_id, m_help_string); |
| 4458 |
} |
| 4459 |
else |
| 4460 |
{ |
| 4461 |
menubar->changeItem(m_session_id, TQString(m_session_string).replace(TQRegExp("&([^&])"), "\\1")); |
| 4462 |
menubar->changeItem(m_edit_id, TQString(m_edit_string).replace(TQRegExp("&([^&])"), "\\1")); |
| 4463 |
menubar->changeItem(m_view_id, TQString(m_view_string).replace(TQRegExp("&([^&])"), "\\1")); |
| 4464 |
if (m_bookmarks) |
| 4465 |
menubar->changeItem(m_bookmarks_id, TQString(m_bookmarks_string).replace(TQRegExp("&([^&])"), "\\1")); |
| 4466 |
if (m_options) |
| 4467 |
menubar->changeItem(m_options_id, TQString(m_options_string).replace(TQRegExp("&([^&])"), "\\1")); |
| 4468 |
if (m_help) |
| 4469 |
menubar->changeItem(m_help_id, TQString(m_help_string).replace(TQRegExp("&([^&])"), "\\1")); |
| 4470 |
} |
| 4471 |
} |
| 4472 |
|
| 4430 |
#include "konsole.moc" |
4473 |
#include "konsole.moc" |