[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/klinkstatus_proceed/src
From: Paulo Moura Guedes <moura () kdewebdev ! org>
Date: 2005-10-20 19:18:18
Message-ID: 1129835898.195474.12345.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 472442 by mojo:
Add the ability to hide/show the search options.
M +28 -0 klinkstatus_part.cpp
M +2 -0 klinkstatus_part.h
M +40 -36 klinkstatus_part.rc
M +2 -4 ui/sessionwidget.cpp
M +1 -1 ui/treeview.cpp
--- branches/work/klinkstatus_proceed/src/klinkstatus_part.cpp #472441:472442
@@ -35,6 +35,8 @@
#include <kaccel.h>
#include <kkeydialog.h>
+#include <qbuttongroup.h>
+
#include "global.h"
#include "cfg/klsconfig.h"
#include "klinkstatus_part.h"
@@ -152,6 +154,15 @@
(void) new KAction(i18n("&Report Bug..."), 0, 0, this,
SLOT(slotReportBug()), actionCollection(), "report_bug");
+
+ //________________________________________
+
+ KAction* action = new KAction(i18n("&Hide Search Panel"), "bottom", "Ctrl+h",
+ this, SLOT(slotHideSearchPanel()), \
actionCollection(), "hide_search_bar"); +
+ action = new KAction(i18n("&Show Search Panel"), "top", "Ctrl+s",
+ this, SLOT(slotShowSearchPanel()), actionCollection(), \
"show_search_bar"); + action->setEnabled(false);
}
void KLinkStatusPart::setModified(bool modified)
@@ -343,6 +354,23 @@
KBugReport bugReportDlg(0, true, &aboutData);
bugReportDlg.exec();
}
+
+void KLinkStatusPart::slotHideSearchPanel()
+{
+ tabwidget_->currentSession()->buttongroup_search->hide();
+
+ actionCollection()->action("hide_search_bar")->setEnabled(false);
+ actionCollection()->action("show_search_bar")->setEnabled(true);
+}
+
+void KLinkStatusPart::slotShowSearchPanel()
+{
+ tabwidget_->currentSession()->buttongroup_search->show();
+
+ actionCollection()->action("hide_search_bar")->setEnabled(true);
+ actionCollection()->action("show_search_bar")->setEnabled(false);
+}
+
/*
void KLinkStatusPart::slotShowToolbar()
{
--- branches/work/klinkstatus_proceed/src/klinkstatus_part.h #472441:472442
@@ -65,6 +65,8 @@
void slotDisplayUndeterminedLinks();
void slotAbout();
void slotReportBug();
+ void slotHideSearchPanel();
+ void slotShowSearchPanel();
//void slotShowToolbar();
//void slotConfigureShortcuts();
//void slotConfigureToolbars();
--- branches/work/klinkstatus_proceed/src/klinkstatus_part.rc #472441:472442
@@ -1,39 +1,43 @@
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="klinkstatus_part" version="2">
-<MenuBar>
-
- <Menu name="file"><text>File</text>
- <Action name="new_link_check"/>
- <Action name="open_link"/>
- <Action name="close_tab"/>
- <Separator/>
- </Menu>
-
- <Menu name="settings"><text>&Settings</text>
- <Separator/>
- <Action name="configure_klinkstatus"/>
- </Menu>
-
- <Menu name="view"><text>&View</text>
- <Action name="display_all_links"/>
- <Separator/>
- <Action name="display_good_links"/>
- <Action name="display_bad_links"/>
- <Action name="display_malformed_links"/>
- <Action name="display_undetermined_links"/>
- </Menu>
-
- <Menu name="help"><text>&Help</text>
- <Separator/>
- <Action name="about_klinkstatus"/>
- <Action name="report_bug"/>
- </Menu>
-</MenuBar>
-
-<ToolBar name="linksToolBar">
- <Action name="new_link_check"/>
- <Action name="open_link"/>
- <Action name="close_tab"/>
- <Separator/>
-</ToolBar>
+ <MenuBar>
+
+ <Menu name="file"><text>File</text>
+ <Action name="new_link_check"/>
+ <Action name="open_link"/>
+ <Action name="close_tab"/>
+ <Separator/>
+ </Menu>
+
+ <Menu name="settings"><text>&Settings</text>
+ <Separator/>
+ <Action name="configure_klinkstatus"/>
+ </Menu>
+
+ <Menu name="view"><text>&View</text>
+ <Action name="hide_search_bar"/>
+ <Action name="show_search_bar"/>
+ <Separator/>
+ <Action name="display_all_links"/>
+ <Action name="display_good_links"/>
+ <Action name="display_bad_links"/>
+ <Action name="display_malformed_links"/>
+ <Action name="display_undetermined_links"/>
+ </Menu>
+
+ <Menu name="help"><text>&Help</text>
+ <Separator/>
+ <Action name="about_klinkstatus"/>
+ <Action name="report_bug"/>
+ </Menu>
+ </MenuBar>
+
+ <ToolBar name="linksToolBar">
+ <Action name="new_link_check"/>
+ <Action name="open_link"/>
+ <Action name="close_tab"/>
+ <Separator/>
+ <Action name="hide_search_bar"/>
+ <Action name="show_search_bar"/>
+ </ToolBar>
</kpartgui>
--- branches/work/klinkstatus_proceed/src/ui/sessionwidget.cpp #472441:472442
@@ -517,11 +517,9 @@
textlabel_status->setText(status);
if(textlabel_status->sizeHint().width() > textlabel_status->maximumWidth())
- QToolTip::add
- (textlabel_status, status);
+ QToolTip::add(textlabel_status, status);
else
- QToolTip::remove
- (textlabel_status);
+ QToolTip::remove(textlabel_status);
bottom_status_timer_.stop();
bottom_status_timer_.start(5 * 1000, true);
--- branches/work/klinkstatus_proceed/src/ui/treeview.cpp #472441:472442
@@ -82,7 +82,7 @@
addColumn(i18n(columns[i])/*, (int)(0.45 * width() - 79)*/);
}
- setColumnWidthMode(i, Manual);
+ setColumnWidthMode(i, QListView::Manual);
}
setColumnAlignment(col_status_ - 1, Qt::AlignCenter);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic