From 57454e04860e6626f3fde22613bcde98d1cd2c2a Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 7 Feb 2010 14:24:51 +0000 Subject: [PATCH] removed not needed sources git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2226 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/RetroShare.pro | 6 - .../src/gui/feeds/ChanGroupItem.cpp | 72 ---- retroshare-gui/src/gui/feeds/ChanGroupItem.h | 55 --- retroshare-gui/src/gui/feeds/ChanGroupItem.ui | 125 ------- retroshare-gui/src/gui/feeds/ChanMenuItem.cpp | 117 ------ retroshare-gui/src/gui/feeds/ChanMenuItem.h | 63 ---- retroshare-gui/src/gui/feeds/ChanMenuItem.ui | 332 ------------------ 7 files changed, 770 deletions(-) delete mode 100644 retroshare-gui/src/gui/feeds/ChanGroupItem.cpp delete mode 100644 retroshare-gui/src/gui/feeds/ChanGroupItem.h delete mode 100644 retroshare-gui/src/gui/feeds/ChanGroupItem.ui delete mode 100644 retroshare-gui/src/gui/feeds/ChanMenuItem.cpp delete mode 100644 retroshare-gui/src/gui/feeds/ChanMenuItem.h delete mode 100644 retroshare-gui/src/gui/feeds/ChanMenuItem.ui diff --git a/retroshare-gui/src/RetroShare.pro b/retroshare-gui/src/RetroShare.pro index e7d340f89..c11d0f43e 100644 --- a/retroshare-gui/src/RetroShare.pro +++ b/retroshare-gui/src/RetroShare.pro @@ -235,8 +235,6 @@ HEADERS += rshare.h \ gui/feeds/ForumMsgItem.h \ gui/feeds/PeerItem.h \ gui/feeds/MsgItem.h \ - gui/feeds/ChanGroupItem.h \ - gui/feeds/ChanMenuItem.h \ gui/feeds/ChanNewItem.h \ gui/feeds/ChanMsgItem.h \ gui/feeds/BlogMsgItem.h \ @@ -302,8 +300,6 @@ FORMS += gui/StartDialog.ui \ gui/feeds/ForumMsgItem.ui \ gui/feeds/PeerItem.ui \ gui/feeds/MsgItem.ui \ - gui/feeds/ChanGroupItem.ui \ - gui/feeds/ChanMenuItem.ui \ gui/feeds/ChanNewItem.ui \ gui/feeds/ChanMsgItem.ui \ gui/feeds/BlogMsgItem.ui \ @@ -417,8 +413,6 @@ SOURCES += main.cpp \ gui/feeds/ForumMsgItem.cpp \ gui/feeds/PeerItem.cpp \ gui/feeds/MsgItem.cpp \ - gui/feeds/ChanGroupItem.cpp \ - gui/feeds/ChanMenuItem.cpp \ gui/feeds/ChanNewItem.cpp \ gui/feeds/ChanMsgItem.cpp \ gui/feeds/BlogMsgItem.cpp \ diff --git a/retroshare-gui/src/gui/feeds/ChanGroupItem.cpp b/retroshare-gui/src/gui/feeds/ChanGroupItem.cpp deleted file mode 100644 index 70e973a01..000000000 --- a/retroshare-gui/src/gui/feeds/ChanGroupItem.cpp +++ /dev/null @@ -1,72 +0,0 @@ -/**************************************************************** - * RetroShare is distributed under the following license: - * - * Copyright (C) 2008 Robert Fernie - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - ****************************************************************/ -#include - -#include "ChanGroupItem.h" -#include "SubFileItem.h" - -#include - -/**** - * #define DEBUG_ITEM 1 - ****/ - -/** Constructor */ -ChanGroupItem::ChanGroupItem(std::string groupName) -:QWidget(NULL), mGroupName(groupName) -{ - /* Invoke the Qt Designer generated object setup routine */ - setupUi(this); - - /* general ones */ - connect( expandButton, SIGNAL( clicked( void ) ), this, SLOT( toggle ( void ) ) ); - - small(); - updateItemStatic(); - updateItem(); -} - - -void ChanGroupItem::updateItemStatic() -{ - /* fill in */ -#ifdef DEBUG_ITEM - std::cerr << "ChanGroupItem::updateItemStatic()"; - std::cerr << std::endl; -#endif - - titleLabel->setText(QString::fromStdString(mGroupName)); -} - - -void ChanGroupItem::updateItem() -{ -} - - -void ChanGroupItem::small() -{ -} - -void ChanGroupItem::toggle() -{ -} - diff --git a/retroshare-gui/src/gui/feeds/ChanGroupItem.h b/retroshare-gui/src/gui/feeds/ChanGroupItem.h deleted file mode 100644 index 162c79a41..000000000 --- a/retroshare-gui/src/gui/feeds/ChanGroupItem.h +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************** - * RetroShare is distributed under the following license: - * - * Copyright (C) 2008 Robert Fernie - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - ****************************************************************/ - -#ifndef _CHAN_GROUP_ITEM_DIALOG_H -#define _CHAN_GROUP_ITEM_DIALOG_H - -#include "ui_ChanGroupItem.h" - -#include - -class ChanGroupItem : public QWidget, private Ui::ChanGroupItem -{ - Q_OBJECT - -public: - /** Default Constructor */ - ChanGroupItem(std::string grpName); - - /** Default Destructor */ - - void updateItemStatic(); - void small(); - -private slots: - /* default stuff */ - void toggle(); - - void updateItem(); - -private: - std::string mGroupName; -}; - - - -#endif - diff --git a/retroshare-gui/src/gui/feeds/ChanGroupItem.ui b/retroshare-gui/src/gui/feeds/ChanGroupItem.ui deleted file mode 100644 index 27ab01f72..000000000 --- a/retroshare-gui/src/gui/feeds/ChanGroupItem.ui +++ /dev/null @@ -1,125 +0,0 @@ - - ChanGroupItem - - - - 0 - 0 - 275 - 53 - - - - - 0 - 0 - - - - Form - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - Expand - - - - - - :/images/add_24x24.png - - - - - - - - 0 - 0 - - - - - 75 - true - true - - - - Channel Group - - - - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 231 - 71 - - - - - - - - - - - - - - diff --git a/retroshare-gui/src/gui/feeds/ChanMenuItem.cpp b/retroshare-gui/src/gui/feeds/ChanMenuItem.cpp deleted file mode 100644 index fa92a3cf5..000000000 --- a/retroshare-gui/src/gui/feeds/ChanMenuItem.cpp +++ /dev/null @@ -1,117 +0,0 @@ -/**************************************************************** - * RetroShare is distributed under the following license: - * - * Copyright (C) 2008 Robert Fernie - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - ****************************************************************/ -#include - -#include "rsiface/rschannels.h" -#include "ChanMenuItem.h" - -#include - -/**** - * #define DEBUG_ITEM 1 - ****/ - -/** Constructor */ -ChanMenuItem::ChanMenuItem(std::string chanId) -:QWidget(NULL), mChanId(chanId) -{ - /* Invoke the Qt Designer generated object setup routine */ - setupUi(this); - - /* general ones */ - connect( expandButton, SIGNAL( clicked( void ) ), this, SLOT( toggle ( void ) ) ); - - small(); - updateItemStatic(); - updateItem(); - expandButton->setIcon(QIcon(QString(":/images/hide_frame.png"))); - -} - - -void ChanMenuItem::updateItemStatic() -{ - /* fill in */ -#ifdef DEBUG_ITEM - std::cerr << "ChanMenuItem::updateItemStatic()"; - std::cerr << std::endl; -#endif - - /* extract details from channels */ - ChannelInfo ci; - if ((rsChannels) && (rsChannels->getChannelInfo(mChanId, ci))) - { - titleLabel->setText(QString::fromStdWString(ci.channelName)); - descLabel->setText(QString::fromStdWString(ci.channelDesc)); - pop_lcd->display((int) ci.pop); - /* TODO */ - fetches_lcd->display(9999); - avail_lcd->display(9999); - } - else - { - titleLabel->setText("Unknown Channel"); - descLabel->setText("No Description"); - } -} - - -void ChanMenuItem::updateItem() -{ - /* fill in */ -#ifdef DEBUG_ITEM - std::cerr << "ChanMenuItem::updateItem()"; - std::cerr << std::endl; -#endif - -} - - -void ChanMenuItem::small() -{ - expandFrame->hide(); -} - -void ChanMenuItem::toggle() -{ - if (expandFrame->isHidden()) - { - expandFrame->show(); - expandButton->setIcon(QIcon(QString(":/images/expand_frame.png"))); - expandButton->setToolTip("Hide"); - } - else - { - expandFrame->hide(); - expandButton->setIcon(QIcon(QString(":/images/hide_frame.png"))); - expandButton->setToolTip("Expand"); - - } -} - -/*********** SPECIFIC FUNCTIOSN ***********************/ - -void ChanMenuItem::mousePressEvent ( QMouseEvent * event ) -{ - selectMe( mChanId ); -} - - diff --git a/retroshare-gui/src/gui/feeds/ChanMenuItem.h b/retroshare-gui/src/gui/feeds/ChanMenuItem.h deleted file mode 100644 index aec7dab55..000000000 --- a/retroshare-gui/src/gui/feeds/ChanMenuItem.h +++ /dev/null @@ -1,63 +0,0 @@ -/**************************************************************** - * RetroShare is distributed under the following license: - * - * Copyright (C) 2008 Robert Fernie - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - ****************************************************************/ - -#ifndef _CHAN_MENU_ITEM_DIALOG_H -#define _CHAN_MENU_ITEM_DIALOG_H - -#include "ui_ChanMenuItem.h" - -#include - -class SubFileItem; - -class ChanMenuItem : public QWidget, private Ui::ChanMenuItem -{ - Q_OBJECT - -public: - /** Default Constructor */ - ChanMenuItem(std::string chanId); - - /** Default Destructor */ - - void updateItemStatic(); - void small(); - -signals: - void selectMe( std::string ); - -private slots: - /* default stuff */ - void toggle(); - - void updateItem(); - -protected: - virtual void mousePressEvent ( QMouseEvent * event ); - -private: - std::string mChanId; -}; - - - -#endif - diff --git a/retroshare-gui/src/gui/feeds/ChanMenuItem.ui b/retroshare-gui/src/gui/feeds/ChanMenuItem.ui deleted file mode 100644 index 33f787609..000000000 --- a/retroshare-gui/src/gui/feeds/ChanMenuItem.ui +++ /dev/null @@ -1,332 +0,0 @@ - - ChanMenuItem - - - - 0 - 0 - 216 - 367 - - - - Form - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 0 - - - - - - 0 - 0 - - - - - 16777215 - 14 - - - - Expand - - - - - - - - - - - - - 0 - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 21 - 28 - - - - - - - - - 0 - 0 - - - - - 200 - 16777215 - - - - - 75 - true - true - - - - Connected - - - - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 341 - 28 - - - - - - - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 0 - - - 0 - - - - - Popularity: - - - - - - - - - - Fetches: - - - - - - - - - - Available: - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - 0 - - - - - - 0 - 0 - - - - - - - :/images/friendsfolder24.png - - - true - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - 0 - 0 - - - - - 200 - 16777215 - - - - Description - of Forum - - - true - - - - - - - - - - - - - - - - - -