mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-29 13:54:05 +02:00
Modified the key shortcuts for the small popups (deleting a link...).
This commit is contained in:
parent
826d622285
commit
16b050be05
@ -620,7 +620,7 @@ void GMenu2X::viewLog() {
|
|||||||
|
|
||||||
MessageBox mb(this, tr["Do you want to delete the log file?"], "icons/ebook.png");
|
MessageBox mb(this, tr["Do you want to delete the log file?"], "icons/ebook.png");
|
||||||
mb.setButton(ACCEPT, tr["Yes"]);
|
mb.setButton(ACCEPT, tr["Yes"]);
|
||||||
mb.setButton(CLEAR, tr["No"]);
|
mb.setButton(CANCEL, tr["No"]);
|
||||||
if (mb.exec() == ACCEPT) {
|
if (mb.exec() == ACCEPT) {
|
||||||
ledOn();
|
ledOn();
|
||||||
unlink(logfile.c_str());
|
unlink(logfile.c_str());
|
||||||
@ -1728,7 +1728,7 @@ void GMenu2X::deleteLink() {
|
|||||||
if (menu->selLinkApp()!=NULL) {
|
if (menu->selLinkApp()!=NULL) {
|
||||||
MessageBox mb(this, tr.translate("Deleting $1",menu->selLink()->getTitle().c_str(),NULL)+"\n"+tr["Are you sure?"], menu->selLink()->getIconPath());
|
MessageBox mb(this, tr.translate("Deleting $1",menu->selLink()->getTitle().c_str(),NULL)+"\n"+tr["Are you sure?"], menu->selLink()->getIconPath());
|
||||||
mb.setButton(ACCEPT, tr["Yes"]);
|
mb.setButton(ACCEPT, tr["Yes"]);
|
||||||
mb.setButton(CLEAR, tr["No"]);
|
mb.setButton(CANCEL, tr["No"]);
|
||||||
if (mb.exec() == ACCEPT) {
|
if (mb.exec() == ACCEPT) {
|
||||||
ledOn();
|
ledOn();
|
||||||
menu->deleteSelectedLink();
|
menu->deleteSelectedLink();
|
||||||
@ -1793,7 +1793,7 @@ void GMenu2X::renameSection() {
|
|||||||
void GMenu2X::deleteSection() {
|
void GMenu2X::deleteSection() {
|
||||||
MessageBox mb(this,tr["You will lose all the links in this section."]+"\n"+tr["Are you sure?"]);
|
MessageBox mb(this,tr["You will lose all the links in this section."]+"\n"+tr["Are you sure?"]);
|
||||||
mb.setButton(ACCEPT, tr["Yes"]);
|
mb.setButton(ACCEPT, tr["Yes"]);
|
||||||
mb.setButton(CLEAR, tr["No"]);
|
mb.setButton(CANCEL, tr["No"]);
|
||||||
if (mb.exec() == ACCEPT) {
|
if (mb.exec() == ACCEPT) {
|
||||||
ledOn();
|
ledOn();
|
||||||
if (rmtree(getHome() + "/sections/" + menu->selSection())) {
|
if (rmtree(getHome() + "/sections/" + menu->selSection())) {
|
||||||
@ -1806,7 +1806,7 @@ void GMenu2X::deleteSection() {
|
|||||||
|
|
||||||
void GMenu2X::scanner() {
|
void GMenu2X::scanner() {
|
||||||
Surface scanbg(bg);
|
Surface scanbg(bg);
|
||||||
drawButton(&scanbg, "x", tr["Exit"],
|
drawButton(&scanbg, "a", tr["Exit"],
|
||||||
drawButton(&scanbg, "b", "", 5)-10);
|
drawButton(&scanbg, "b", "", 5)-10);
|
||||||
scanbg.write(font,tr["Link Scanner"],halfX,7,ASFont::HAlignCenter,ASFont::VAlignMiddle);
|
scanbg.write(font,tr["Link Scanner"],halfX,7,ASFont::HAlignCenter,ASFont::VAlignMiddle);
|
||||||
scanbg.convertToDisplayFormat();
|
scanbg.convertToDisplayFormat();
|
||||||
@ -1901,7 +1901,7 @@ void GMenu2X::scanner() {
|
|||||||
button = input.waitForPressedButton();
|
button = input.waitForPressedButton();
|
||||||
} while ((button != SETTINGS)
|
} while ((button != SETTINGS)
|
||||||
&& (button != ACCEPT)
|
&& (button != ACCEPT)
|
||||||
&& (button != CLEAR));
|
&& (button != CANCEL));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
bevent_t event;
|
bevent_t event;
|
||||||
|
Loading…
Reference in New Issue
Block a user