author | hash <hash> | 2002-10-13 02:20:23 (UTC) |
---|---|---|
committer | hash <hash> | 2002-10-13 02:20:23 (UTC) |
commit | 2ce86d9be1bbf99092348adf815578b110fe7289 (patch) (unidiff) | |
tree | 4c2812b4f4edb1704a379e2f6a4d9b2af1a39c23 | |
parent | 173c272fa2dc860dbb2ff54b6be2680c544340bb (diff) | |
download | opie-2ce86d9be1bbf99092348adf815578b110fe7289.zip opie-2ce86d9be1bbf99092348adf815578b110fe7289.tar.gz opie-2ce86d9be1bbf99092348adf815578b110fe7289.tar.bz2 |
added a couple more buttons to the bar
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 2a4d069..3af0cba 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -42,16 +42,17 @@ void MainWindow::initUI() { | |||
42 | m_settings = new QPopupMenu( this ); | 42 | m_settings = new QPopupMenu( this ); |
43 | 43 | ||
44 | /* add a toolbar for icons */ | 44 | /* add a toolbar for icons */ |
45 | m_icons = new QToolBar(this); | 45 | m_icons = new QToolBar(this); |
46 | m_icons->setHorizontalStretchable( TRUE ); | ||
47 | 46 | ||
48 | /* | 47 | /* |
49 | * new Action for new sessions | 48 | * new Action for new sessions |
50 | */ | 49 | */ |
51 | QAction* a = new QAction(); | 50 | QAction* a = new QAction(tr("New Connection"), |
52 | a->setText( tr("New Connection") ); | 51 | Resource::loadPixmap( "new" ), |
52 | QString::null, 0, this, 0); | ||
53 | a->addTo( m_console ); | 53 | a->addTo( m_console ); |
54 | a->addTo( m_icons ); | ||
54 | connect(a, SIGNAL(activated() ), | 55 | connect(a, SIGNAL(activated() ), |
55 | this, SLOT(slotNew() ) ); | 56 | this, SLOT(slotNew() ) ); |
56 | 57 | ||
57 | /* | 58 | /* |
@@ -95,18 +96,20 @@ void MainWindow::initUI() { | |||
95 | 96 | ||
96 | /* | 97 | /* |
97 | * the settings action | 98 | * the settings action |
98 | */ | 99 | */ |
99 | m_setProfiles = new QAction(); | 100 | m_setProfiles = new QAction(tr("Configure Profiles"), |
100 | m_setProfiles->setText( tr("Configure Profiles") ); | 101 | Resource::loadPixmap( "SettingsIcon" ), |
102 | QString::null, 0, this, 0); | ||
101 | m_setProfiles->addTo( m_settings ); | 103 | m_setProfiles->addTo( m_settings ); |
104 | m_setProfiles->addTo( m_icons ); | ||
102 | connect( m_setProfiles, SIGNAL(activated() ), | 105 | connect( m_setProfiles, SIGNAL(activated() ), |
103 | this, SLOT(slotConfigure() ) ); | 106 | this, SLOT(slotConfigure() ) ); |
104 | 107 | ||
105 | /* | 108 | /* |
106 | * action that open/closes the keyboard | 109 | * action that open/closes the keyboard |
107 | */ | 110 | */ |
108 | m_openKeys = new QAction ("Keyboard...", | 111 | m_openKeys = new QAction (tr("Open Keyboard..."), |
109 | Resource::loadPixmap( "down" ), | 112 | Resource::loadPixmap( "down" ), |
110 | QString::null, 0, this, 0); | 113 | QString::null, 0, this, 0); |
111 | 114 | ||
112 | m_openKeys->setToggleAction(true); | 115 | m_openKeys->setToggleAction(true); |