2010-04-08 12:33:10 -04:00
|
|
|
/****************************************************************
|
|
|
|
* RetroShare is distributed under the following license:
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 - 2010 RetroShare Team
|
|
|
|
*
|
|
|
|
* 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 _SHAREDIALOG_H
|
|
|
|
#define _SHAREDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
#include "ui_ShareDialog.h"
|
|
|
|
|
2012-11-02 13:26:20 -04:00
|
|
|
class GroupFlagsWidget ;
|
|
|
|
class GroupSelectionBox ;
|
2012-11-03 13:15:47 -04:00
|
|
|
class QTextEdit ;
|
2012-11-02 13:26:20 -04:00
|
|
|
|
2010-04-08 12:33:10 -04:00
|
|
|
class ShareDialog : public QDialog
|
|
|
|
{
|
2012-11-03 13:15:47 -04:00
|
|
|
Q_OBJECT
|
2010-04-08 12:33:10 -04:00
|
|
|
|
2012-11-03 13:15:47 -04:00
|
|
|
public:
|
|
|
|
/** Default constructor */
|
|
|
|
ShareDialog( std::string filename, QWidget *parent = 0, Qt::WFlags flags = 0);
|
2010-04-08 12:33:10 -04:00
|
|
|
|
2012-11-03 13:15:47 -04:00
|
|
|
private slots:
|
|
|
|
void browseDirectory();
|
|
|
|
void addDirectory();
|
|
|
|
void updateInfoMessage() ;
|
2010-04-08 12:33:10 -04:00
|
|
|
|
2012-11-03 13:15:47 -04:00
|
|
|
private:
|
|
|
|
/** Qt Designer generated object */
|
|
|
|
Ui::ShareDialog ui;
|
2012-11-02 13:26:20 -04:00
|
|
|
|
2012-11-03 13:15:47 -04:00
|
|
|
GroupSelectionBox *groupselectionbox ;
|
|
|
|
GroupFlagsWidget *groupflagsbox ;
|
|
|
|
QTextEdit *messageBox ;
|
2010-04-08 12:33:10 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|