mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
cleaned include files
- removed some dependencies between other header files - removed many includes of <QtGui> and replaced it with only needed files git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3312 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ba47eedfe3
commit
569ac25843
94 changed files with 251 additions and 462 deletions
|
@ -18,13 +18,11 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
#include <QtGui>
|
||||
#include <QContextMenuEvent>
|
||||
#include <QCursor>
|
||||
#include <QMenu>
|
||||
#include <QPoint>
|
||||
|
||||
#include <iostream>
|
||||
#include <QMenu>
|
||||
#include <QTimer>
|
||||
#include <QStandardItemModel>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "rsiface/rsblogs.h"
|
||||
|
|
|
@ -25,10 +25,10 @@
|
|||
#include "gui/mainpage.h"
|
||||
#include "ui_BlogsDialog.h"
|
||||
|
||||
#include <QStandardItemModel>
|
||||
|
||||
#include "gui/feeds/FeedHolder.h"
|
||||
|
||||
class QStandardItemModel;
|
||||
|
||||
#define OWN 0
|
||||
#define SUBSCRIBED 1
|
||||
#define POPULAR 2
|
||||
|
|
|
@ -18,19 +18,14 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
#include <QtGui>
|
||||
|
||||
#include <QDateTime>
|
||||
|
||||
#include "BlogsMsgItem.h"
|
||||
|
||||
#include "gui/feeds/FeedHolder.h"
|
||||
#include "gui/feeds/SubFileItem.h"
|
||||
|
||||
#include "rsiface/rsblogs.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
|
||||
/****
|
||||
* #define DEBUG_ITEM 1
|
||||
|
|
|
@ -23,10 +23,9 @@
|
|||
#define _BLOGS_MSG_ITEM_DIALOG_H
|
||||
|
||||
#include "ui_BlogsMsgItem.h"
|
||||
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
class FeedHolder;
|
||||
class SubFileItem;
|
||||
|
||||
|
|
|
@ -19,8 +19,9 @@
|
|||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QMessageBox>
|
||||
#include <QFileDialog>
|
||||
#include <QBuffer>
|
||||
|
||||
#include "CreateBlog.h"
|
||||
|
||||
|
@ -89,7 +90,7 @@ void CreateBlog::createBlog()
|
|||
|
||||
if(name.isEmpty())
|
||||
{ /* error message */
|
||||
int ret = QMessageBox::warning(this, tr("RetroShare"),
|
||||
QMessageBox::warning(this, tr("RetroShare"),
|
||||
tr("Please add a Name"),
|
||||
QMessageBox::Ok, QMessageBox::Ok);
|
||||
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
#ifndef _CREATE_BLOG_DIALOG_H
|
||||
#define _CREATE_BLOG_DIALOG_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
#include "ui_CreateBlog.h"
|
||||
|
||||
class CreateBlog : public QDialog
|
||||
|
|
|
@ -18,46 +18,25 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
#include <QtGui>
|
||||
//#include <QtWebKit>
|
||||
#include <QAction>
|
||||
#include <QApplication>
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QColorDialog>
|
||||
#include <QComboBox>
|
||||
#include <QFontComboBox>
|
||||
#include <QFile>
|
||||
#include <QFileDialog>
|
||||
#include <QFileInfo>
|
||||
#include <QFontDatabase>
|
||||
#include <QMenu>
|
||||
#include <QMenuBar>
|
||||
#include <QPrintDialog>
|
||||
#include <QPrinter>
|
||||
#include <QTextCodec>
|
||||
#include <QTextEdit>
|
||||
#include <QToolBar>
|
||||
#include <QTextCursor>
|
||||
#include <QTextDocumentWriter>
|
||||
#include <QTextList>
|
||||
#include <QtDebug>
|
||||
#include <QCloseEvent>
|
||||
#include <QTextDocumentFragment>
|
||||
#include <QMessageBox>
|
||||
#include <QPrintPreviewDialog>
|
||||
#include <QTextBlock>
|
||||
|
||||
#include "CreateBlogMsg.h"
|
||||
|
||||
#include "gui/feeds/SubFileItem.h"
|
||||
#include "gui/msgs/textformat.h"
|
||||
|
||||
#include "rsiface/rstypes.h"
|
||||
#include "rsiface/rspeers.h"
|
||||
#include "rsiface/rsforums.h"
|
||||
#include "rsiface/rsblogs.h"
|
||||
#include "rsiface/rsmsgs.h"
|
||||
#include "rsiface/rsfiles.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
/** Constructor */
|
||||
CreateBlogMsg::CreateBlogMsg(std::string cId ,QWidget* parent, Qt::WFlags flags)
|
||||
|
@ -215,7 +194,7 @@ void CreateBlogMsg::sendMessage(std::wstring subject, std::wstring msg)
|
|||
|
||||
if(name.isEmpty())
|
||||
{ /* error message */
|
||||
int ret = QMessageBox::warning(this, tr("RetroShare"),
|
||||
QMessageBox::warning(this, tr("RetroShare"),
|
||||
tr("Please add a Subject"),
|
||||
QMessageBox::Ok, QMessageBox::Ok);
|
||||
|
||||
|
|
|
@ -22,11 +22,7 @@
|
|||
#ifndef _CREATEBLOGMSG_H
|
||||
#define _CREATEBLOGMSG_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QMap>
|
||||
#include <QPointer>
|
||||
#include <QObject>
|
||||
#include <qsettings.h>
|
||||
#include <QSettings>
|
||||
|
||||
#include "ui_CreateBlogMsg.h"
|
||||
#include <stdint.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue