diff options
author | Karol Wojtaszek <sekretarz@gentoo.org> | 2005-04-17 21:46:55 +0000 |
---|---|---|
committer | Karol Wojtaszek <sekretarz@gentoo.org> | 2005-04-17 21:46:55 +0000 |
commit | e97fc69b7e2b152595071fcac2533c34e0a319d4 (patch) | |
tree | 144cf6b546f423e33848969c6a25de440808e488 /net-im/kadu/files | |
parent | Removed old gnustep masked packages that are now no longer in the repo (diff) | |
download | gentoo-2-e97fc69b7e2b152595071fcac2533c34e0a319d4.tar.gz gentoo-2-e97fc69b7e2b152595071fcac2533c34e0a319d4.tar.bz2 gentoo-2-e97fc69b7e2b152595071fcac2533c34e0a319d4.zip |
Version bump
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-im/kadu/files')
-rw-r--r-- | net-im/kadu/files/digest-kadu-0.4.0 | 24 | ||||
-rw-r--r-- | net-im/kadu/files/kadu-toolbar_toggle-gentoo.diff | 162 |
2 files changed, 186 insertions, 0 deletions
diff --git a/net-im/kadu/files/digest-kadu-0.4.0 b/net-im/kadu/files/digest-kadu-0.4.0 new file mode 100644 index 000000000000..45557a0108f8 --- /dev/null +++ b/net-im/kadu/files/digest-kadu-0.4.0 @@ -0,0 +1,24 @@ +MD5 9d6c6e5ece8bb88a9e988c554af07bea kadu-0.4.0.tar.bz2 1198118 +MD5 1cec6670d6441d1251b3f430525564a3 tabs-r34.tar.bz2 11981 +MD5 539afdd2295ec462022f5e10d80a816c amarok-1.13.tar.gz 9201 +MD5 b17becaee7bfd0eeae4b7e22eef9b3bd tcl_scripting-20050403.tar.gz 617946 +MD5 2ef812084512cc14a95c1737535cbbdb kadu-theme-alt_cryst.tar.bz2 121877 +MD5 023085edabaf6a1b844fe6b5fc9315f9 kadu-theme-crystal-16.tar.bz2 45993 +MD5 57852ff3d3fd0063a642fcc173f7fa29 kadu-theme-crystal-22.tar.bz2 48895 +MD5 f0b33b0d42b9dc1de5c6b19097600a9e kadu-theme-gg3d.tar.bz2 78353 +MD5 5ec5ec33849c35ae8d2b114250b664b3 kadu-theme-noia-16.tar.bz2 109294 +MD5 586cc6ff9ba62f0fdd7c7c1adf229efb kadu-theme-nuvola-16.tar.gz 119276 +MD5 7a17b4881141b346c6268ef25c284613 kadu-theme-nuvola-22.tar.gz 147311 +MD5 766e4841651364d032b68b8321f153ef kadu-theme-old_default.tar.bz2 85997 +MD5 a8d5d60e062255e77b732a37ea2e5e7c kadu-theme-piolnet.tar.bz2 79831 +MD5 cbd97ea8302ac4ad9507f104597da0c4 kadu-theme-real_gg.tar.bz2 131697 +MD5 640acacc8f5b33da6e1eb379eb3177dc weather-2.01.tar.bz2 46297 +MD5 001deaa1ebd6beaf104b77fce9aeff2e ext_info-1.2.tar.bz2 17868 +MD5 2f884c06b7fc540e46323d9a4cee6487 spy-0.0.7-test.tar.gz 17594 +MD5 77b0b8da0723ef23caaf1c75125d0fa4 firewall-20050308.tar.bz2 6858 +MD5 4a424362ba3a10ddbce0fb1a4ff4d649 KaduChess-0.3-Calista.tar.bz2 24892 +MD5 7bf1890bc208897e407189e3b504682f led_notify-0.2.tar.bz2 2838 +MD5 4a6e4d52b8efa3d182e2a55e02cc3383 xmms-1.25.tar.gz 14992 +MD5 506d8fc409f228b7feba4b3b7b14f412 xosd_notify-050322.tar.bz2 12454 +MD5 e63393922738bea7a9d1be675c826608 mail-0.2.0.tar.bz2 93363 +MD5 0e427d25f69f5f5d10e303f8d2e79e70 spellchecker-0.13.tar.gz 9121 diff --git a/net-im/kadu/files/kadu-toolbar_toggle-gentoo.diff b/net-im/kadu/files/kadu-toolbar_toggle-gentoo.diff new file mode 100644 index 000000000000..24b931618fac --- /dev/null +++ b/net-im/kadu/files/kadu-toolbar_toggle-gentoo.diff @@ -0,0 +1,162 @@ +diff -aurp kadu.orig/kadu/kadu.cpp kadu/kadu/kadu.cpp +--- kadu.orig/kadu/kadu.cpp 2005-03-20 15:48:41.000000000 +0100 ++++ kadu/kadu/kadu.cpp 2005-03-20 19:07:06.000000000 +0100 +@@ -100,8 +100,21 @@ void ToolBar::createControls() + if ((*j).caption== "--separator--") + addSeparator(); + else +- (*j).button = new QToolButton(icons_manager.loadIcon((*j).iconname), (*j).caption, +- QString::null, (*j).receiver, (*j).slot, this, (*j).name); ++ { ++ if ((*j).type == ToolButton::Push) ++ { ++ (*j).button = new QToolButton(icons_manager.loadIcon((*j).iconname), (*j).caption, ++ QString::null, (*j).receiver, (*j).slot, this, (*j).name); ++ } ++ else ++ { ++ (*j).button = new QToolButton(icons_manager.loadIcon((*j).iconname), (*j).caption, ++ QString::null, 0, 0, this, (*j).name); ++ (*j).button->setToggleButton(true); ++ (*j).button->setOn((*j).type == ToolButton::ToggleOn); ++ connect((*j).button, SIGNAL(toggled(bool)), (*j).receiver, (*j).slot); ++ } ++ } + + setStretchableWidget(new QWidget(this)); + kdebugf2(); +@@ -141,6 +154,34 @@ void ToolBar::registerButton(const QStri + RToolButton.slot= slot; + RToolButton.position= position; + RToolButton.name= name; ++ RToolButton.type= ToolButton::Push; ++ ++ if ((RegisteredToolButtons.count()<(uint)(position+1)) || (position == -1)) ++ RegisteredToolButtons.append(RToolButton); ++ else ++ RegisteredToolButtons.insert(RegisteredToolButtons.at(position), RToolButton); ++ ++ if(instance!=NULL) ++ instance->createControls(); ++ kdebugf2(); ++} ++ ++void ToolBar::registerToggleButton(const QString &iconname, const QString& caption, bool on, ++ QObject* receiver, const char* slot, int position, const char* name) ++{ ++ kdebugf(); ++ if(instance!=NULL) ++ instance->clear(); ++ ++ ToolButton RToolButton; ++ ++ RToolButton.iconname= iconname; ++ RToolButton.caption= caption; ++ RToolButton.receiver= receiver; ++ RToolButton.slot= slot; ++ RToolButton.position= position; ++ RToolButton.name= name; ++ RToolButton.type= on ? ToolButton::ToggleOn : ToolButton::ToggleOff; + + if ((RegisteredToolButtons.count()<(uint)(position+1)) || (position == -1)) + RegisteredToolButtons.append(RToolButton); +@@ -400,8 +441,10 @@ Kadu::Kadu(QWidget *parent, const char * + setActiveGroup(""); + + // dodanie przyciskow do paska narzedzi +- ToolBar::registerButton("ShowHideInactiveUsers", tr("Show / hide inactive users"), Userbox, SLOT(showHideInactive()), -1, "inactiveUsersButton"); +- ToolBar::registerButton("ShowOnlyDescriptionUsers", tr("Show / hide users without description"), Userbox, SLOT(showHideDescriptions()), -1, "withDescriptionUsersButton"); ++ ToolBar::registerToggleButton("ShowHideInactiveUsers", tr("Show / hide inactive users"), ++ config_file.readBoolEntry("General","ShowHideInactive"), Userbox, SLOT(showHideInactive(bool)), -1, "inactiveUsersButton"); ++ ToolBar::registerToggleButton("ShowOnlyDescriptionUsers", tr("Show / hide users without description"), ++ config_file.readBoolEntry("General","ShowOnlyDescriptionUsers"), Userbox, SLOT(showHideDescriptions(bool)), -1, "withDescriptionUsersButton"); + ToolBar::registerButton("Configuration", tr("Configuration"), this, SLOT(configure()), -1, "configurationButton"); + ToolBar::registerSeparator(); + ToolBar::registerButton("History", tr("View history"), this, SLOT(viewHistory()), -1, "historyButton"); +diff -aurp kadu.orig/kadu/kadu.h kadu/kadu/kadu.h +--- kadu.orig/kadu/kadu.h 2005-03-20 15:48:41.000000000 +0100 ++++ kadu/kadu/kadu.h 2005-03-20 19:02:48.000000000 +0100 +@@ -35,6 +35,12 @@ class ToolBar : public QToolBar + QString slot; + QToolButton* button; + int position; ++ enum ++ { ++ Push, ++ ToggleOff, ++ ToggleOn ++ } type; + }; + static QValueList<ToolButton> RegisteredToolButtons; + void createControls(); +@@ -44,6 +50,8 @@ class ToolBar : public QToolBar + ~ToolBar(); + static void registerButton(const QString &iconname, const QString& caption, + QObject* receiver, const char* slot, const int position=-1, const char* name=""); ++ static void registerToggleButton(const QString &iconname, const QString& caption, bool on, ++ QObject* receiver, const char* slot, const int position=-1, const char* name=""); + static void unregisterButton(const char* name); + static void registerSeparator(int position=-1); + static QToolButton* getButton(const char* name); +diff -aurp kadu.orig/kadu/userbox.cpp kadu/kadu/userbox.cpp +--- kadu.orig/kadu/userbox.cpp 2005-03-20 15:48:42.000000000 +0100 ++++ kadu/kadu/userbox.cpp 2005-03-20 18:08:42.000000000 +0100 +@@ -678,6 +678,14 @@ void UserBox::showHideInactive() + kdebugf2(); + } + ++void UserBox::showHideInactive(bool state) ++{ ++ kdebugf(); ++ config_file.writeEntry("General","ShowHideInactive",state); ++ all_refresh(); ++ kdebugf2(); ++} ++ + void UserBox::showHideDescriptions() + { + kdebugf(); +@@ -685,6 +693,13 @@ void UserBox::showHideDescriptions() + all_refresh(); + } + ++void UserBox::showHideDescriptions(bool state) ++{ ++ kdebugf(); ++ config_file.writeEntry("General","ShowOnlyDescriptionUsers",state); ++ all_refresh(); ++} ++ + UinsList UserBox::getSelectedUins() const + { + kdebugf(); +diff -aurp kadu.orig/kadu/userbox.h kadu/kadu/userbox.h +--- kadu.orig/kadu/userbox.h 2005-03-20 15:48:42.000000000 +0100 ++++ kadu/kadu/userbox.h 2005-03-20 17:58:14.000000000 +0100 +@@ -418,12 +418,26 @@ class UserBox : public QListBox , QToolT + void showHideInactive(); + + /** ++ \fn void showHideInactive() ++ Przełącza tryb pokazywania kontaktów niedostępnych. ++ \param state Jeśli true - kontakty nieaktywne sa widoczne ++ **/ ++ void showHideInactive(bool state); ++ ++ /** + \fn void showHideDescriptions() + Przełącza tryb pokazywania opisów kontaktów. + **/ + void showHideDescriptions(); + + /** ++ \fn void showHideDescriptions() ++ Przełącza tryb pokazywania opisów kontaktów. ++ \param state Jeśli true - kontakty bez opisow sa ukryte ++ **/ ++ void showHideDescriptions(bool state); ++ ++ /** + \fn virtual void clear() + Czyśli listę. + **/ |