Save the work.
This commit is contained in:
parent
c156c13276
commit
bfeb3f4533
3 changed files with 37 additions and 17 deletions
|
@ -259,7 +259,7 @@ void FeedMessageViewer::createConnections() {
|
||||||
SIGNAL(triggered()), m_feedsView, SLOT(openSelectedFeedsInNewspaperMode()));
|
SIGNAL(triggered()), m_feedsView, SLOT(openSelectedFeedsInNewspaperMode()));
|
||||||
connect(form_main->m_ui->m_actionDeleteSelectedFeedCategory,
|
connect(form_main->m_ui->m_actionDeleteSelectedFeedCategory,
|
||||||
SIGNAL(triggered()), m_feedsView, SLOT(deleteSelectedItem()));
|
SIGNAL(triggered()), m_feedsView, SLOT(deleteSelectedItem()));
|
||||||
connect(form_main->m_ui->m_actionSwitchFeedsListVisibility,
|
connect(form_main->m_ui->m_actionSwitchFeedsList,
|
||||||
SIGNAL(triggered()), this, SLOT(switchFeedComponentVisibility()));
|
SIGNAL(triggered()), this, SLOT(switchFeedComponentVisibility()));
|
||||||
connect(form_main->m_ui->m_actionSelectNextFeedCategory,
|
connect(form_main->m_ui->m_actionSelectNextFeedCategory,
|
||||||
SIGNAL(triggered()), m_feedsView, SLOT(selectNextItem()));
|
SIGNAL(triggered()), m_feedsView, SLOT(selectNextItem()));
|
||||||
|
|
|
@ -94,7 +94,7 @@ QList<QAction*> FormMain::allActions() {
|
||||||
// Add basic actions.
|
// Add basic actions.
|
||||||
actions << m_ui->m_actionSettings << m_ui->m_actionQuit <<
|
actions << m_ui->m_actionSettings << m_ui->m_actionQuit <<
|
||||||
m_ui->m_actionFullscreen << m_ui->m_actionAboutGuard <<
|
m_ui->m_actionFullscreen << m_ui->m_actionAboutGuard <<
|
||||||
m_ui->m_actionSwitchFeedsListVisibility << m_ui->m_actionSwitchMainWindow <<
|
m_ui->m_actionSwitchFeedsList << m_ui->m_actionSwitchMainWindow <<
|
||||||
m_ui->m_actionSwitchMainMenu;
|
m_ui->m_actionSwitchMainMenu;
|
||||||
|
|
||||||
// Add web browser actions
|
// Add web browser actions
|
||||||
|
@ -268,8 +268,9 @@ void FormMain::setupIcons() {
|
||||||
// View.
|
// View.
|
||||||
m_ui->m_actionSwitchMainWindow->setIcon(icon_theme_factory->fromTheme("view-switch"));
|
m_ui->m_actionSwitchMainWindow->setIcon(icon_theme_factory->fromTheme("view-switch"));
|
||||||
m_ui->m_actionFullscreen->setIcon(icon_theme_factory->fromTheme("view-fullscreen"));
|
m_ui->m_actionFullscreen->setIcon(icon_theme_factory->fromTheme("view-fullscreen"));
|
||||||
m_ui->m_actionSwitchFeedsListVisibility->setIcon(icon_theme_factory->fromTheme("view-switch"));
|
m_ui->m_actionSwitchFeedsList->setIcon(icon_theme_factory->fromTheme("view-switch"));
|
||||||
m_ui->m_actionSwitchMainMenu->setIcon(icon_theme_factory->fromTheme("view-switch"));
|
m_ui->m_actionSwitchMainMenu->setIcon(icon_theme_factory->fromTheme("view-switch"));
|
||||||
|
m_ui->m_menuShowHide->setIcon(icon_theme_factory->fromTheme("view-switch"));
|
||||||
|
|
||||||
// Web browser.
|
// Web browser.
|
||||||
m_ui->m_actionAddBrowser->setIcon(icon_theme_factory->fromTheme("list-add"));
|
m_ui->m_actionAddBrowser->setIcon(icon_theme_factory->fromTheme("list-add"));
|
||||||
|
@ -333,7 +334,8 @@ void FormMain::loadSize() {
|
||||||
|
|
||||||
// Hide the main menu if user wants it.
|
// Hide the main menu if user wants it.
|
||||||
if (!(m_mainMenuActivated = settings->value(APP_CFG_GUI, "main_menu_visible", true).toBool())) {
|
if (!(m_mainMenuActivated = settings->value(APP_CFG_GUI, "main_menu_visible", true).toBool())) {
|
||||||
m_ui->m_menuBar->setVisible(false);
|
m_mainMenuActivated = !m_mainMenuActivated;
|
||||||
|
m_ui->m_actionSwitchMainMenu->setChecked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjust dimensions of "feeds & messages" widget.
|
// Adjust dimensions of "feeds & messages" widget.
|
||||||
|
@ -368,7 +370,7 @@ void FormMain::createConnections() {
|
||||||
// Menu "View" connections.
|
// Menu "View" connections.
|
||||||
connect(m_ui->m_actionFullscreen, SIGNAL(triggered()), this, SLOT(switchFullscreenMode()));
|
connect(m_ui->m_actionFullscreen, SIGNAL(triggered()), this, SLOT(switchFullscreenMode()));
|
||||||
connect(m_ui->m_actionSwitchMainWindow, SIGNAL(triggered()), this, SLOT(switchVisibility()));
|
connect(m_ui->m_actionSwitchMainWindow, SIGNAL(triggered()), this, SLOT(switchVisibility()));
|
||||||
connect(m_ui->m_actionSwitchMainMenu, SIGNAL(triggered()), this, SLOT(switchMainMenu()));
|
connect(m_ui->m_actionSwitchMainMenu, SIGNAL(toggled(bool)), this, SLOT(switchMainMenu()));
|
||||||
|
|
||||||
// Menu "Tools" connections.
|
// Menu "Tools" connections.
|
||||||
connect(m_ui->m_actionSettings, SIGNAL(triggered()), this, SLOT(showSettings()));
|
connect(m_ui->m_actionSettings, SIGNAL(triggered()), this, SLOT(showSettings()));
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>979</width>
|
<width>979</width>
|
||||||
<height>19</height>
|
<height>21</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="m_menuFile">
|
<widget class="QMenu" name="m_menuFile">
|
||||||
|
@ -68,10 +68,16 @@
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>&View</string>
|
<string>&View</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="m_actionFullscreen"/>
|
<widget class="QMenu" name="m_menuShowHide">
|
||||||
|
<property name="title">
|
||||||
|
<string>Show/hide</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="m_actionSwitchFeedsList"/>
|
||||||
|
<addaction name="m_actionSwitchMainMenu"/>
|
||||||
|
</widget>
|
||||||
|
<addaction name="m_menuShowHide"/>
|
||||||
<addaction name="m_actionSwitchMainWindow"/>
|
<addaction name="m_actionSwitchMainWindow"/>
|
||||||
<addaction name="m_actionSwitchFeedsListVisibility"/>
|
<addaction name="m_actionFullscreen"/>
|
||||||
<addaction name="m_actionSwitchMainMenu"/>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="m_menuTools">
|
<widget class="QMenu" name="m_menuTools">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
@ -358,15 +364,15 @@
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="m_actionSwitchMainWindow">
|
<action name="m_actionSwitchMainWindow">
|
||||||
|
<property name="checked">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Switch visibility of main &window</string>
|
<string>Switch main &window</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Hides main window if it is visible and shows it if it is hidden.</string>
|
<string>Hides main window if it is visible and shows it if it is hidden.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
</action>
|
</action>
|
||||||
<action name="m_actionDefragmentDatabase">
|
<action name="m_actionDefragmentDatabase">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -376,13 +382,19 @@
|
||||||
<string>Defragment database file so that its size decreases.</string>
|
<string>Defragment database file so that its size decreases.</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="m_actionSwitchFeedsListVisibility">
|
<action name="m_actionSwitchFeedsList">
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Switch &feed list visibility</string>
|
<string>&Feed list</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Hides or shows the list of feeds/categories.</string>
|
<string>Hides or shows the list of feeds/categories.</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>F</string>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="m_actionClearAllFeeds">
|
<action name="m_actionClearAllFeeds">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -436,14 +448,20 @@
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="m_actionSwitchMainMenu">
|
<action name="m_actionSwitchMainMenu">
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Switch &main menu visibility</string>
|
<string>&Main menu</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Hides or displays the main menu.</string>
|
<string>Hides or displays the main menu.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string notr="true">M</string>
|
<string>M</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="m_actionWebEnableJavascript">
|
<action name="m_actionWebEnableJavascript">
|
||||||
|
|
Loading…
Add table
Reference in a new issue