summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index a0622d4..291912c 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -26,12 +26,16 @@ using namespace Opie::Ui;
26#include <qwhatsthis.h> 26#include <qwhatsthis.h>
27#include <qfileinfo.h> 27#include <qfileinfo.h>
28 28
29/* STD */ 29/* STD */
30#include <assert.h> 30#include <assert.h>
31 31
32#ifdef EAST
33#include <opie2/oconfig.h>
34#endif
35
32MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) { 36MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) {
33 37
34#ifdef FSCKED_DISTRI 38#ifdef FSCKED_DISTRI
35 FixIt fix; 39 FixIt fix;
36 fix.fixIt(); 40 fix.fixIt();
37#endif 41#endif
@@ -200,14 +204,16 @@ void MainWindow::initUI() {
200 m_recordScript->addTo(m_scripts); 204 m_recordScript->addTo(m_scripts);
201 connect(m_recordScript, SIGNAL(activated()), this, SLOT(slotRecordScript())); 205 connect(m_recordScript, SIGNAL(activated()), this, SLOT(slotRecordScript()));
202 206
203 m_saveScript = new QAction(tr("Save Script"), QString::null, 0, this, 0); 207 m_saveScript = new QAction(tr("Save Script"), QString::null, 0, this, 0);
204 m_saveScript->addTo(m_scripts); 208 m_saveScript->addTo(m_scripts);
205 connect(m_saveScript, SIGNAL(activated()), this, SLOT(slotSaveScript())); 209 connect(m_saveScript, SIGNAL(activated()), this, SLOT(slotSaveScript()));
206 210
207 211
212
213
208 /* 214 /*
209 * action that open/closes the keyboard 215 * action that open/closes the keyboard
210 */ 216 */
211 m_openKeys = new QAction (tr("Open Keyboard..."), 217 m_openKeys = new QAction (tr("Open Keyboard..."),
212 Resource::loadPixmap( "console/keys/keyboard_icon" ), 218 Resource::loadPixmap( "console/keys/keyboard_icon" ),
213 QString::null, 0, this, 0); 219 QString::null, 0, this, 0);
@@ -219,13 +225,19 @@ void MainWindow::initUI() {
219 -1, 0); 225 -1, 0);
220 226
221 /* insert the connection menu */ 227 /* insert the connection menu */
222 m_bar->insertItem( tr("Connection"), m_console ); 228 m_bar->insertItem( tr("Connection"), m_console );
223 229
224 /* the scripts menu */ 230 /* the scripts menu */
225 m_bar->insertItem( tr("Scripts"), m_scripts ); 231 #ifdef EAST
232 OConfig cfg("opie-console");
233 cfg.setGroup("10east");
234 if( !cfg.readEntry("scripthide",0) ) {
235 m_bar->insertItem( tr("Scripts"), m_scripts );
236 }
237 #endif
226 238
227 /* and the keyboard */ 239 /* and the keyboard */
228 m_keyBar = new QToolBar(this); 240 m_keyBar = new QToolBar(this);
229 addToolBar( m_keyBar, "Keyboard", QMainWindow::Top, TRUE ); 241 addToolBar( m_keyBar, "Keyboard", QMainWindow::Top, TRUE );
230 m_keyBar->setHorizontalStretchable( TRUE ); 242 m_keyBar->setHorizontalStretchable( TRUE );
231 m_keyBar->hide(); 243 m_keyBar->hide();