mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 03:22:34 -04:00
* added basic set avatar picture for MessengerWindow and Privat Chat
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@907 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
50b18911c5
commit
d2e64551c2
5 changed files with 408 additions and 369 deletions
|
@ -17,49 +17,50 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
****************************************************************/
|
||||
|
||||
#ifndef _MESSENGERWINDOW_H
|
||||
#define _MESSENGERWINDOW_H
|
||||
#include <QFileDialog>
|
||||
|
||||
#include "mainpage.h"
|
||||
#define _MESSENGERWINDOW_H
|
||||
#include <QFileDialog>
|
||||
|
||||
#include "mainpage.h"
|
||||
#include "ui_MessengerWindow.h"
|
||||
#include "NetworkDialog.h"
|
||||
#include <gui/Preferences/rsharesettings.h>
|
||||
#include <gui/Preferences/rsharesettings.h>
|
||||
|
||||
class LogoBar;
|
||||
class PeersDialog;
|
||||
|
||||
class MessengerWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Default Constructor */
|
||||
MessengerWindow(QWidget *parent = 0);
|
||||
/** Default Destructor */
|
||||
|
||||
class MessengerWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Default Constructor */
|
||||
MessengerWindow(QWidget *parent = 0);
|
||||
/** Default Destructor */
|
||||
|
||||
void insertPeers();
|
||||
void setChatDialog(PeersDialog *cd);
|
||||
|
||||
NetworkDialog *networkDialog2;
|
||||
|
||||
QPixmap picture;
|
||||
|
||||
|
||||
public slots:
|
||||
/** Called when this dialog is to be displayed */
|
||||
public slots:
|
||||
/** Called when this dialog is to be displayed */
|
||||
void show();
|
||||
|
||||
LogoBar & getLogoBar() const;
|
||||
|
||||
protected:
|
||||
void closeEvent (QCloseEvent * event);
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
/** Create the context popup menu and it's submenus */
|
||||
void closeEvent (QCloseEvent * event);
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
/** Create the context popup menu and it's submenus */
|
||||
void messengertreeWidgetCostumPopupMenu( QPoint point );
|
||||
|
||||
/** Export friend in Friends Dialog */
|
||||
|
@ -73,7 +74,10 @@ private slots:
|
|||
|
||||
void configurefriend2();
|
||||
|
||||
void addFriend2();
|
||||
void addFriend2();
|
||||
|
||||
void getPicture();
|
||||
|
||||
|
||||
/** RsServer Friend Calls */
|
||||
void allowfriend2();
|
||||
|
@ -84,8 +88,8 @@ private slots:
|
|||
void changeAvatarClicked();
|
||||
void updateAvatar();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
|
||||
/* Worker Functions */
|
||||
/* (1) Update Display */
|
||||
|
@ -95,9 +99,9 @@ private:
|
|||
|
||||
PeersDialog *chatDialog;
|
||||
|
||||
/** Define the popup menus for the Context menu */
|
||||
/** Define the popup menus for the Context menu */
|
||||
QMenu* contextMnu;
|
||||
/** Defines the actions for the context menu */
|
||||
/** Defines the actions for the context menu */
|
||||
QAction* chatAct;
|
||||
QAction* sendMessageAct;
|
||||
QAction* connectfriendAct;
|
||||
|
@ -108,10 +112,10 @@ private:
|
|||
QTreeView *messengertreeWidget;
|
||||
|
||||
LogoBar * _rsLogoBarmessenger;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::MessengerWindow ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::MessengerWindow ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue