author | drw <drw> | 2005-05-16 18:56:02 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-16 18:56:02 (UTC) |
commit | 348314c7411500e23ca467289ed92e446be9121b (patch) (side-by-side diff) | |
tree | f2eea2bec6b6e49f66d4a373b94d2e73f6937c46 /noncore/apps | |
parent | 17b9be61d7de14dea0d662a496e3d08bc9b1662e (diff) | |
download | opie-348314c7411500e23ca467289ed92e446be9121b.zip opie-348314c7411500e23ca467289ed92e446be9121b.tar.gz opie-348314c7411500e23ca467289ed92e446be9121b.tar.bz2 |
Resource -> OResource
-rw-r--r-- | noncore/apps/opie-console/function_keyboard.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/opie-console/function_keyboard.h | 5 | ||||
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 42 |
3 files changed, 30 insertions, 26 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.cpp b/noncore/apps/opie-console/function_keyboard.cpp index 0abe0d9..389618c 100644 --- a/noncore/apps/opie-console/function_keyboard.cpp +++ b/noncore/apps/opie-console/function_keyboard.cpp @@ -84,5 +84,5 @@ void FunctionKeyboard::load (const Profile& prof) { if (!l[1].isEmpty()) { - keys[h].pix = new QPixmap( Resource::loadPixmap( "console/keys/" + l[1] ) ); + keys[h].pix = new QPixmap( Opie::Core::OResource::loadPixmap( "console/keys/" + l[1] ) ); } } @@ -278,6 +278,5 @@ FunctionKeyboardConfig::FunctionKeyboardConfig(const QString& name, QWidget* par for (uint i = 0; i < files.count(); i++) { - - m_labels->insertItem( Resource::loadPixmap("console/keys/" + files[i]), files[i]); + m_labels->insertItem( Opie::Core::OResource::loadPixmap("console/keys/" + files[i]), files[i]); } connect (m_labels, SIGNAL(activated(int)), this, SLOT(slotChangeIcon(int))); @@ -329,5 +328,5 @@ void FunctionKeyboardConfig::load (const Profile& prof) { if (!l[1].isEmpty()) { - kb->keys[h].pix = new QPixmap( Resource::loadPixmap( "console/keys/" + l[1] ) ); + kb->keys[h].pix = new QPixmap( Opie::Core::OResource::loadPixmap( "console/keys/" + l[1] ) ); } } @@ -404,5 +403,5 @@ void FunctionKeyboardConfig::slotChangeIcon(int index) { m_labels->setEditable(false); kb->keys[selectedHandle].pixFile = m_labels->currentText(); - kb->keys[selectedHandle].pix = new QPixmap( Resource::loadPixmap( "console/keys/" + m_labels->currentText() ) ); + kb->keys[selectedHandle].pix = new QPixmap( Opie::Core::OResource::loadPixmap( "console/keys/" + m_labels->currentText() ) ); } kb->paintKey(selectedRow, selectedCol); diff --git a/noncore/apps/opie-console/function_keyboard.h b/noncore/apps/opie-console/function_keyboard.h index a60ff4b..b7e211c 100644 --- a/noncore/apps/opie-console/function_keyboard.h +++ b/noncore/apps/opie-console/function_keyboard.h @@ -2,6 +2,7 @@ #define OPIE_FUNCTION_KEYBOARD_H +#include <opie2/oresource.h> + #include <qpe/config.h> -#include <qpe/resource.h> #include <qpe/qpeapplication.h> #include <qframe.h> @@ -23,5 +24,5 @@ struct FKey { if (!f.isEmpty()) { - pix = new QPixmap ( Resource::loadPixmap("console/keys/" + f ) ); + pix = new QPixmap ( Opie::Core::OResource::loadPixmap("console/keys/" + f ) ); } }; diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index eaa78c8..45a662c 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -14,4 +14,5 @@ /* OPIE */ #include <opie2/ofiledialog.h> +#include <opie2/oresource.h> #include <qpe/filemanager.h> using namespace Opie::Ui; @@ -77,6 +78,6 @@ void MainWindow::initUI() { */ m_setProfiles = new QAction(tr("Configure Profiles"), - Resource::loadPixmap( "SettingsIcon" ), - QString::null, 0, this, 0); + Opie::Core::OResource::loadPixmap( "SettingsIcon", Opie::Core::OResource::SmallIcon ), + QString::null, 0, this, 0); m_setProfiles->addTo( m_console ); connect( m_setProfiles, SIGNAL(activated() ), @@ -88,6 +89,6 @@ void MainWindow::initUI() { */ QAction* newCon = new QAction(tr("New Profile"), - Resource::loadPixmap( "new" ), - QString::null, 0, this, 0); + Opie::Core::OResource::loadPixmap( "new", Opie::Core::OResource::SmallIcon ), + QString::null, 0, this, 0); newCon->addTo( m_console ); connect( newCon, SIGNAL(activated() ), @@ -97,6 +98,6 @@ void MainWindow::initUI() { QAction *saveCon = new QAction( tr("Save Profile" ), - Resource::loadPixmap( "save" ), QString::null, - 0, this, 0 ); + Opie::Core::OResource::loadPixmap( "save", Opie::Core::OResource::SmallIcon ), QString::null, + 0, this, 0 ); saveCon->addTo( m_console ); connect( saveCon, SIGNAL(activated() ), @@ -107,6 +108,6 @@ void MainWindow::initUI() { * connect action */ - m_connect = new QAction( tr("Connect"), Resource::loadPixmap("console/connected"), - QString::null, 0, this, 0 ); + m_connect = new QAction( tr("Connect"), Opie::Core::OResource::loadPixmap("console/connected", + Opie::Core::OResource::SmallIcon ), QString::null, 0, this, 0 ); m_connect->addTo( m_console ); connect(m_connect, SIGNAL(activated() ), @@ -116,6 +117,6 @@ void MainWindow::initUI() { * disconnect action */ - m_disconnect = new QAction( tr("Disconnect"), Resource::loadPixmap("console/notconnected"), - QString::null, 0, this, 0 ); + m_disconnect = new QAction( tr("Disconnect"), Opie::Core::OResource::loadPixmap("console/notconnected", + Opie::Core::OResource::SmallIcon ), QString::null, 0, this, 0 ); m_disconnect->addTo( m_console ); connect(m_disconnect, SIGNAL(activated() ), @@ -125,5 +126,7 @@ void MainWindow::initUI() { #ifndef EAST - m_quickLaunch = new QAction( tr("QuickLaunch"), Resource::loadPixmap("console/konsole_mini"), QString::null, 0, this, 0 ); + m_quickLaunch = new QAction( tr("QuickLaunch"), + Opie::Core::OResource::loadPixmap("console/konsole_mini", Opie::Core::OResource::SmallIcon ), + QString::null, 0, this, 0 ); m_quickLaunch->addTo( m_icons ); connect( m_quickLaunch, SIGNAL( activated() ), @@ -133,6 +136,6 @@ void MainWindow::initUI() { QWhatsThis::add( m_icons, tr( "The shell button launches the \"default\" profile. If there is none default values are taken" ) ); - m_transfer = new QAction( tr("Transfer file..."), Resource::loadPixmap("pass") , QString::null, - 0, this, 0 ); + m_transfer = new QAction( tr("Transfer file..."), Opie::Core::OResource::loadPixmap("pass", Opie::Core::OResource::SmallIcon ), + QString::null, 0, this, 0 ); m_transfer->addTo( m_console ); connect(m_transfer, SIGNAL(activated() ), @@ -145,5 +148,6 @@ void MainWindow::initUI() { */ m_isWrapped = true; - m_wrap = new QAction( tr("Line wrap"), Resource::loadPixmap( "linewrap" ), QString::null, 0, this, 0, true ); + m_wrap = new QAction( tr("Line wrap"), Opie::Core::OResource::loadPixmap( "linewrap", Opie::Core::OResource::SmallIcon ), + QString::null, 0, this, 0, true ); m_wrap->addTo( m_console ); m_wrap->setOn( true ); @@ -155,6 +159,6 @@ void MainWindow::initUI() { m_isFullscreen = false; - m_fullscreen = new QAction( tr("Full screen"), Resource::loadPixmap( "fullscreen" ) - , QString::null, 0, this, 0 ); + m_fullscreen = new QAction( tr("Full screen"), Opie::Core::OResource::loadPixmap( "fullscreen", + Opie::Core::OResource::SmallIcon ), QString::null, 0, this, 0 ); m_fullscreen->addTo( m_console ); connect( m_fullscreen, SIGNAL( activated() ), @@ -212,5 +216,5 @@ void MainWindow::initUI() { */ m_openKeys = new QAction (tr("Open Keyboard..."), - Resource::loadPixmap( "console/keys/keyboard_icon" ), + Opie::Core::OResource::loadPixmap( "console/keys/keyboard_icon", Opie::Core::OResource::SmallIcon ), QString::null, 0, this, 0); m_openKeys->setToggleAction(true); @@ -245,5 +249,5 @@ void MainWindow::initUI() { a = new QAction(tr("Copy"), - Resource::loadPixmap("copy"), QString::null, + Opie::Core::OResource::loadPixmap("copy", Opie::Core::OResource::SmallIcon ), QString::null, 0, this, 0 ); //a->addTo( m_icons ); @@ -252,5 +256,5 @@ void MainWindow::initUI() { QAction *paste = new QAction(tr("Paste"), - Resource::loadPixmap("paste"), QString::null, + Opie::Core::OResource::loadPixmap("paste", Opie::Core::OResource::SmallIcon ), QString::null, 0, this, 0 ); connect( paste, SIGNAL(activated() ), |