author | llornkcor <llornkcor> | 2002-05-06 19:00:18 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-06 19:00:18 (UTC) |
commit | d1dd3ae2eb11a9c6e83eaad817a6f84a53d68691 (patch) (unidiff) | |
tree | 190c870ef6cae2ca27c71e75d84e828174c8f000 | |
parent | 26c522550dc1736a463efbe8c1cdc19f83a85f5d (diff) | |
download | opie-d1dd3ae2eb11a9c6e83eaad817a6f84a53d68691.zip opie-d1dd3ae2eb11a9c6e83eaad817a6f84a53d68691.tar.gz opie-d1dd3ae2eb11a9c6e83eaad817a6f84a53d68691.tar.bz2 |
added translation stuff
-rw-r--r-- | noncore/settings/tabmanager/tabmanager.cpp | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/noncore/settings/tabmanager/tabmanager.cpp b/noncore/settings/tabmanager/tabmanager.cpp index db65d26..af76251 100644 --- a/noncore/settings/tabmanager/tabmanager.cpp +++ b/noncore/settings/tabmanager/tabmanager.cpp | |||
@@ -59,9 +59,11 @@ TabManager::TabManager( QWidget* parent, const char* name):TabManagerBase(parent | |||
59 | rescanFolder(HOME_APP_DIR); | 59 | rescanFolder(HOME_APP_DIR); |
60 | 60 | ||
61 | // Connect the signals and slots | 61 | // Connect the signals and slots |
62 | connect(tabList, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(editItem(QListViewItem*))); | 62 | connect(tabList, SIGNAL(doubleClicked(QListViewItem *)), |
63 | this, SLOT(editItem(QListViewItem*))); | ||
63 | (tabList->header())->hide(); | 64 | (tabList->header())->hide(); |
64 | connect(tabList, SIGNAL(moveItem(QListViewItem *, QListViewItem *)), this, SLOT(moveApplication(QListViewItem *, QListViewItem *))); | 65 | connect(tabList, SIGNAL(moveItem(QListViewItem *, QListViewItem *)), |
66 | this, SLOT(moveApplication(QListViewItem *, QListViewItem *))); | ||
65 | } | 67 | } |
66 | 68 | ||
67 | /** | 69 | /** |
@@ -70,7 +72,7 @@ TabManager::TabManager( QWidget* parent, const char* name):TabManagerBase(parent | |||
70 | */ | 72 | */ |
71 | TabManager::~TabManager(){ | 73 | TabManager::~TabManager(){ |
72 | if(changed){ | 74 | if(changed){ |
73 | //QMessageBox::critical(this, "Message", "Please restart Qtopia to see all new changes.",QString("Ok") ); | 75 | //QMessageBox::critical(this, tr("Message"), tr("Please restart Qtopia to see all new changes."),tr("Ok") ); |
74 | //filename = fn; | 76 | //filename = fn; |
75 | QCopEnvelope e("QPE/System", "linkChanged(QString)"); | 77 | QCopEnvelope e("QPE/System", "linkChanged(QString)"); |
76 | //e << description << filename << mimetype; | 78 | //e << description << filename << mimetype; |
@@ -203,12 +205,14 @@ void TabManager::removeItem(){ | |||
203 | if(!item) | 205 | if(!item) |
204 | return; | 206 | return; |
205 | if(item->childCount() > 0){ | 207 | if(item->childCount() > 0){ |
206 | QMessageBox::critical(this, "Message", "Can't remove with applications\nstill in the group.",QString("Ok") ); | 208 | QMessageBox::critical(this, tr("Message"), tr("Can't remove with applications\nstill in the group."), |
209 | tr("Ok") ); | ||
207 | return; | 210 | return; |
208 | } | 211 | } |
209 | 212 | ||
210 | // Prompt. | 213 | // Prompt. |
211 | int answer = QMessageBox::warning(this, "Message", "Are you sure you want to delete?","Yes", "Cancel", 0, 1 ); | 214 | int answer = QMessageBox::warning(this, tr("Message"), tr("Are you sure you want to delete?"), |
215 | tr("Yes"), tr("Cancel"), 0, 1 ); | ||
212 | if (answer) | 216 | if (answer) |
213 | return; | 217 | return; |
214 | 218 | ||
@@ -230,7 +234,8 @@ void TabManager::removeItem(){ | |||
230 | // If removing failed. | 234 | // If removing failed. |
231 | if(!removeSuccessfull){ | 235 | if(!removeSuccessfull){ |
232 | qDebug((QString("removeItem: ") + location).latin1()); | 236 | qDebug((QString("removeItem: ") + location).latin1()); |
233 | QMessageBox::critical(this, "Message", "Can't remove.",QString("Ok") ); | 237 | QMessageBox::critical(this, tr("Message"), tr("Can't remove."), |
238 | tr("Ok") ); | ||
234 | return; | 239 | return; |
235 | } | 240 | } |
236 | 241 | ||
@@ -270,7 +275,7 @@ void TabManager::editItem( QListViewItem * item){ | |||
270 | return; | 275 | return; |
271 | } | 276 | } |
272 | 277 | ||
273 | AppEdit application(this, "Application edit", true); | 278 | AppEdit application(this, tr("Application edit"), true); |
274 | application.nameLineEdit->setText(app.name()); | 279 | application.nameLineEdit->setText(app.name()); |
275 | application.iconLineEdit->setText(app.pixmapString()); | 280 | application.iconLineEdit->setText(app.pixmapString()); |
276 | application.execLineEdit->setText(app.exec()); | 281 | application.execLineEdit->setText(app.exec()); |
@@ -279,7 +284,7 @@ void TabManager::editItem( QListViewItem * item){ | |||
279 | if(item->parent() == NULL){ | 284 | if(item->parent() == NULL){ |
280 | application.execLineEdit->setEnabled(false); | 285 | application.execLineEdit->setEnabled(false); |
281 | application.TextLabel3->setEnabled(false); | 286 | application.TextLabel3->setEnabled(false); |
282 | application.setCaption("Tab"); | 287 | application.setCaption(tr("Tab")); |
283 | } | 288 | } |
284 | 289 | ||
285 | // Only do somthing if they hit OK | 290 | // Only do somthing if they hit OK |
@@ -300,7 +305,8 @@ void TabManager::editItem( QListViewItem * item){ | |||
300 | app.setComment(application.commentLineEdit->text()); | 305 | app.setComment(application.commentLineEdit->text()); |
301 | app.setExec(application.execLineEdit->text()); | 306 | app.setExec(application.execLineEdit->text()); |
302 | if(!app.writeLink()){ | 307 | if(!app.writeLink()){ |
303 | QMessageBox::critical(this, "Message", "Can't save.",QString("Ok") ); | 308 | QMessageBox::critical(this, tr("Message"), tr("Can't save."), |
309 | tr("Ok") ); | ||
304 | return; | 310 | return; |
305 | } | 311 | } |
306 | 312 | ||
@@ -364,7 +370,8 @@ void TabManager::moveApplication(QListViewItem *item, QListViewItem *newGroup){ | |||
364 | // Move file | 370 | // Move file |
365 | QDir r; | 371 | QDir r; |
366 | if(!r.rename(itemList[item], newFolder)){ | 372 | if(!r.rename(itemList[item], newFolder)){ |
367 | QMessageBox::critical(this, "Message", "Can't move application.",QString("Ok") ); | 373 | QMessageBox::critical(this, tr("Message"), tr("Can't move application."), |
374 | tr("Ok") ); | ||
368 | return; | 375 | return; |
369 | } | 376 | } |
370 | //qDebug((QString("moveApplication: ") + itemList[item]).latin1()); | 377 | //qDebug((QString("moveApplication: ") + itemList[item]).latin1()); |