added icons to actions groups (shortcuts)

This commit is contained in:
Luis Ángel San Martín 2014-07-19 16:29:19 +02:00
parent 40a4f40829
commit 2712ef89b2
12 changed files with 28 additions and 11 deletions

View File

@ -983,7 +983,7 @@ void MainWindowViewer::setUpShortcutsManagement()
//actions holder //actions holder
QObject * orphanActions = new QObject; QObject * orphanActions = new QObject;
editShortcutsDialog->addActionsGroup(tr("Comics"),QIcon(":/images/openInYACReader.png"), editShortcutsDialog->addActionsGroup(tr("Comics"),QIcon(":/images/shortcuts_group_comics.png"),
QList<QAction *>() QList<QAction *>()
<< openAction << openAction
<< openFolderAction << openFolderAction
@ -1000,7 +1000,7 @@ void MainWindowViewer::setUpShortcutsManagement()
toggleToolbarsAction->setData(TOGGLE_TOOL_BARS_ACTION_Y); toggleToolbarsAction->setData(TOGGLE_TOOL_BARS_ACTION_Y);
toggleToolbarsAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(TOGGLE_TOOL_BARS_ACTION_Y)); toggleToolbarsAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(TOGGLE_TOOL_BARS_ACTION_Y));
editShortcutsDialog->addActionsGroup(tr("General"),QIcon(), editShortcutsDialog->addActionsGroup(tr("General"),QIcon(":/images/shortcuts_group_general.png"),
QList<QAction *>() QList<QAction *>()
<< optionsAction << optionsAction
<< helpAboutAction << helpAboutAction
@ -1030,7 +1030,7 @@ void MainWindowViewer::setUpShortcutsManagement()
zoomOutMglassAction->setData(ZOOM_OUT_MGLASS_ACTION_Y); zoomOutMglassAction->setData(ZOOM_OUT_MGLASS_ACTION_Y);
zoomOutMglassAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(ZOOM_OUT_MGLASS_ACTION_Y)); zoomOutMglassAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(ZOOM_OUT_MGLASS_ACTION_Y));
editShortcutsDialog->addActionsGroup(tr("Magnifiying glass"),QIcon(), editShortcutsDialog->addActionsGroup(tr("Magnifiying glass"),QIcon(":/images/shortcuts_group_mglass.png"),
QList<QAction *>() QList<QAction *>()
<< showMagnifyingGlassAction << showMagnifyingGlassAction
<< sizeUpMglassAction << sizeUpMglassAction
@ -1043,7 +1043,7 @@ void MainWindowViewer::setUpShortcutsManagement()
toggleFitToScreenAction->setData(CHANGE_FIT_ACTION_Y); toggleFitToScreenAction->setData(CHANGE_FIT_ACTION_Y);
toggleFitToScreenAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(CHANGE_FIT_ACTION_Y)); toggleFitToScreenAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(CHANGE_FIT_ACTION_Y));
editShortcutsDialog->addActionsGroup(tr("Page adjustement"),QIcon(), editShortcutsDialog->addActionsGroup(tr("Page adjustement"),QIcon(":/images/shortcuts_group_page.png"),
QList<QAction *>() QList<QAction *>()
<< adjustHeightAction << adjustHeightAction
<< adjustWidthAction << adjustWidthAction
@ -1085,7 +1085,7 @@ void MainWindowViewer::setUpShortcutsManagement()
goToLastPageAction->setData(GO_TO_LAST_PAGE_ACTION_Y); goToLastPageAction->setData(GO_TO_LAST_PAGE_ACTION_Y);
goToLastPageAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(GO_TO_LAST_PAGE_ACTION_Y)); goToLastPageAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(GO_TO_LAST_PAGE_ACTION_Y));
editShortcutsDialog->addActionsGroup(tr("Reading"),QIcon(), editShortcutsDialog->addActionsGroup(tr("Reading"),QIcon(":/images/shortcuts_group_reading.png"),
QList<QAction *>() QList<QAction *>()
<< nextAction << nextAction
<< prevAction << prevAction

View File

@ -75,5 +75,13 @@
<file>../images/speaker.png</file> <file>../images/speaker.png</file>
<file>../images/clear_shortcut.png</file> <file>../images/clear_shortcut.png</file>
<file>../images/accept_shortcut.png</file> <file>../images/accept_shortcut.png</file>
<file>../images/shortcuts_group_comics.png</file>
<file>../images/shortcuts_group_folders.png</file>
<file>../images/shortcuts_group_general.png</file>
<file>../images/shortcuts_group_libraries.png</file>
<file>../images/shortcuts_group_mglass.png</file>
<file>../images/shortcuts_group_page.png</file>
<file>../images/shortcuts_group_reading.png</file>
<file>../images/shortcuts_group_visualization.png</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@ -77,7 +77,7 @@
<file>../images/social_dialog/shadow.png</file> <file>../images/social_dialog/shadow.png</file>
<file>../images/social_dialog/twitter.png</file> <file>../images/social_dialog/twitter.png</file>
<file>../images/social_dialog/separator.png</file>--> <file>../images/social_dialog/separator.png</file>-->
<file>../images/main_toolbar/divider.png</file> <file>../images/main_toolbar/divider.png</file>
<file>../images/collapsed_branch_osx.png</file> <file>../images/collapsed_branch_osx.png</file>
<file>../images/expanded_branch_osx.png</file> <file>../images/expanded_branch_osx.png</file>
<file>../images/folder_macosx.png</file> <file>../images/folder_macosx.png</file>
@ -102,6 +102,14 @@
<file>../images/find_folder.png</file> <file>../images/find_folder.png</file>
<file>../images/clear_shortcut.png</file> <file>../images/clear_shortcut.png</file>
<file>../images/accept_shortcut.png</file> <file>../images/accept_shortcut.png</file>
<file>../images/shortcuts_group_comics.png</file>
<file>../images/shortcuts_group_folders.png</file>
<file>../images/shortcuts_group_general.png</file>
<file>../images/shortcuts_group_libraries.png</file>
<file>../images/shortcuts_group_mglass.png</file>
<file>../images/shortcuts_group_page.png</file>
<file>../images/shortcuts_group_reading.png</file>
<file>../images/shortcuts_group_visualization.png</file>
<!--<file>../images/busy_background.png</file>--> <!--<file>../images/busy_background.png</file>-->
</qresource> </qresource>
</RCC> </RCC>

View File

@ -297,7 +297,8 @@ void LibraryWindow::doDialogs()
void LibraryWindow::setUpShortcutsManagement() void LibraryWindow::setUpShortcutsManagement()
{ {
editShortcutsDialog->addActionsGroup("Comics",QIcon(":/images/openInYACReader.png"),
editShortcutsDialog->addActionsGroup("Comics",QIcon(":/images/shortcuts_group_comics.png"),
QList<QAction *>() QList<QAction *>()
<< openComicAction << openComicAction
<< setAsReadAction << setAsReadAction
@ -310,7 +311,7 @@ void LibraryWindow::setUpShortcutsManagement()
<< deleteComicsAction << deleteComicsAction
<< getInfoAction); << getInfoAction);
editShortcutsDialog->addActionsGroup("Folders",QIcon(), editShortcutsDialog->addActionsGroup("Folders",QIcon(":/images/shortcuts_group_folders.png"),
QList<QAction *>() QList<QAction *>()
<< setRootIndexAction << setRootIndexAction
<< expandAllNodesAction << expandAllNodesAction
@ -321,7 +322,7 @@ void LibraryWindow::setUpShortcutsManagement()
<< setFolderAsReadAction << setFolderAsReadAction
<< setFolderAsUnreadAction); << setFolderAsUnreadAction);
editShortcutsDialog->addActionsGroup("General",QIcon(), editShortcutsDialog->addActionsGroup("General",QIcon(":/images/shortcuts_group_general.png"),
QList<QAction *>() QList<QAction *>()
<< backAction << backAction
<< forwardAction << forwardAction
@ -330,7 +331,7 @@ void LibraryWindow::setUpShortcutsManagement()
<< serverConfigAction << serverConfigAction
<< showEditShortcutsAction); << showEditShortcutsAction);
editShortcutsDialog->addActionsGroup("Libraries",QIcon(), editShortcutsDialog->addActionsGroup("Libraries",QIcon(":/images/shortcuts_group_libraries.png"),
QList<QAction *>() QList<QAction *>()
<< createLibraryAction << createLibraryAction
<< openLibraryAction << openLibraryAction
@ -342,7 +343,7 @@ void LibraryWindow::setUpShortcutsManagement()
<< renameLibraryAction << renameLibraryAction
<< removeLibraryAction); << removeLibraryAction);
editShortcutsDialog->addActionsGroup("Visualization",QIcon(), editShortcutsDialog->addActionsGroup("Visualization",QIcon(":/images/shortcuts_group_visualization.png"),
QList<QAction *>() QList<QAction *>()
<< showHideMarksAction << showHideMarksAction
<< toggleFullScreenAction << toggleFullScreenAction

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B