Work on webbrowser.
This commit is contained in:
parent
2feb05328f
commit
dbbedc7b74
@ -71,6 +71,10 @@
|
||||
<source>Hyperlink</source>
|
||||
<translation>Hypertextový odkaz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Page not found</source>
|
||||
<translation>Stránka nenalezena</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CornerButton</name>
|
||||
@ -79,6 +83,13 @@
|
||||
<translation>Otevřít nový panel</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FeedMessageViewer</name>
|
||||
<message>
|
||||
<source>Toolbar for messages</source>
|
||||
<translation>Panel zpráv</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FormAbout</name>
|
||||
<message>
|
||||
@ -190,7 +201,39 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Web browser</source>
|
||||
<translation type="unfinished">Webový prohlížeč</translation>
|
||||
<translation>Webový prohlížeč</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Current tab</source>
|
||||
<translation>&Aktivní panel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Add tab</source>
|
||||
<translation>&Přidat panel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add tab</source>
|
||||
<translation>Přidat panel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close &all tabs except current one</source>
|
||||
<translation>Zavřít &všechny panely kromě aktivního</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close all tabs except current one</source>
|
||||
<translation>Zavřít všechny panely kromě aktivního</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close current &tab</source>
|
||||
<translation>Zavřít aktivní &panel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&No actions possible</source>
|
||||
<translation>Žádné &povolené akce</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No actions are possible at this point of time.</source>
|
||||
<translation>Nejsou povoleny žádné akce.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -446,19 +489,19 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Active skin</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Aktivní vzhled</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Selected skin</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Vybraný vzhled</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Newly selected skin is activated after the applicaton gets restarted!!!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Nově zvolený vzhled bude aktivován po znovuspuštění aplikace!!!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Název</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -476,6 +519,13 @@
|
||||
<translation><html><head/><body><p>RSS Guard je (velmi) jednoduchá čtečka kanálů. Podporuje všechny rozšířené formáty, včetně RSS, ATOM a RDF.</p><p>Ujistěte se, že projdete všechny funkce této aplikace. Pokud chcete nahlásit chybu nebo chcete v programu mít novou vlastnost, pak vyplňte <a href="https://sourceforge.net/p/rssguard/tickets"><span style=" text-decoration: underline; color:#0000ff;">hlášení o chybě</span></a>.</p><p>RSS Guard může být přeložen do libovolného jazyka. Kontaktujte <a href="mailto:rotter.martinos@gmail.com"><span style=" text-decoration: underline; color:#0000ff;">autora</span></a> v případě zájmu o překlad.</p><p><br/></p></body></html></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LocationLineEdit</name>
|
||||
<message>
|
||||
<source>Website address goes here</source>
|
||||
<translation>Adresu webové stránky zadejte sem</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
@ -573,11 +623,23 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Zoom </source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No title</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Bez názvu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Decrease zoom.</source>
|
||||
<translation>Oddálit aktivní webovou stránku.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Reset zoom to default.</source>
|
||||
<translation>Obnovit zoom na 100%.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Increase zoom.</source>
|
||||
<translation>Přiblížit aktivní webovou stránku.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -71,6 +71,10 @@
|
||||
<source>Hyperlink</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Page not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CornerButton</name>
|
||||
@ -79,6 +83,13 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FeedMessageViewer</name>
|
||||
<message>
|
||||
<source>Toolbar for messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FormAbout</name>
|
||||
<message>
|
||||
@ -192,6 +203,38 @@
|
||||
<source>Web browser</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Current tab</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Add tab</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add tab</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close &all tabs except current one</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close all tabs except current one</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close current &tab</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&No actions possible</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No actions are possible at this point of time.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FormSettings</name>
|
||||
@ -470,6 +513,13 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LocationLineEdit</name>
|
||||
<message>
|
||||
<source>Website address goes here</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
@ -573,5 +623,17 @@
|
||||
<source>No title</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Decrease zoom.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Reset zoom to default.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Increase zoom.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -122,8 +122,8 @@ void FormMain::display() {
|
||||
QtSingleApplication::alert(this);
|
||||
}
|
||||
|
||||
void FormMain::cleanupResources() {
|
||||
qDebug("Cleaning up resources before the application exits.");
|
||||
void FormMain::onAboutToQuit() {
|
||||
qDebug("Cleaning up resources and saving application state before it exits.");
|
||||
}
|
||||
|
||||
bool FormMain::event(QEvent *event) {
|
||||
@ -169,11 +169,13 @@ void FormMain::createConnections() {
|
||||
connect(m_ui->m_actionAboutGuard, SIGNAL(triggered()), this, SLOT(showAbout()));
|
||||
|
||||
// General connections.
|
||||
connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(cleanupResources()));
|
||||
connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(onAboutToQuit()));
|
||||
|
||||
// Menu "Web browser" connections.
|
||||
connect(m_ui->m_tabWidget, SIGNAL(currentChanged(int)),
|
||||
this, SLOT(loadWebBrowserMenu(int)));
|
||||
connect(m_ui->m_actionCloseCurrentTab, SIGNAL(triggered()),
|
||||
m_ui->m_tabWidget, SLOT(closeCurrentTab()));
|
||||
}
|
||||
|
||||
void FormMain::loadWebBrowserMenu(int index) {
|
||||
@ -187,6 +189,8 @@ void FormMain::loadWebBrowserMenu(int index) {
|
||||
m_ui->m_menuCurrentTab->insertAction(NULL, m_ui->m_actionNoActions);
|
||||
}
|
||||
}
|
||||
|
||||
m_ui->m_actionCloseCurrentTab->setEnabled(m_ui->m_tabWidget->tabBar()->tabType(index) == TabBar::Closable);
|
||||
}
|
||||
|
||||
void FormMain::closeEvent(QCloseEvent *event) {
|
||||
|
@ -61,9 +61,10 @@ class FormMain : public QMainWindow {
|
||||
void switchFullscreenMode(bool turn_fullscreen_on);
|
||||
|
||||
protected slots:
|
||||
// Used for last-minute cleanups.
|
||||
void cleanupResources();
|
||||
// Used for last-minute actions.
|
||||
void onAboutToQuit();
|
||||
|
||||
// Loads web browser menu if user selects to change tabs.
|
||||
void loadWebBrowserMenu(int index);
|
||||
|
||||
// Displays various dialogs.
|
||||
|
@ -77,7 +77,13 @@ void TabWidget::setupIcons() {
|
||||
}
|
||||
|
||||
void TabWidget::closeTab(int index) {
|
||||
removeTab(index);
|
||||
if (tabBar()->tabType(index) == TabBar::Closable) {
|
||||
removeTab(index);
|
||||
}
|
||||
}
|
||||
|
||||
void TabWidget::closeCurrentTab() {
|
||||
closeTab(currentIndex());
|
||||
}
|
||||
|
||||
void TabWidget::removeTab(int index) {
|
||||
|
@ -60,6 +60,7 @@ class TabWidget : public QTabWidget {
|
||||
|
||||
// Closes tab with given index and deletes contained widget.
|
||||
void closeTab(int index);
|
||||
void closeCurrentTab();
|
||||
|
||||
// Adds new WebBrowser tab to global TabWidget.
|
||||
int addEmptyBrowser();
|
||||
|
Loading…
x
Reference in New Issue
Block a user