mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 06:32:55 -04:00
added hide feature for toolbarservice, by default now hided
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@443 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8ec9476c38
commit
bbd59db20f
4 changed files with 26 additions and 20 deletions
|
@ -67,7 +67,7 @@
|
||||||
#define IMAGE_STATISTIC ":/images/utilities-system-monitor.png"
|
#define IMAGE_STATISTIC ":/images/utilities-system-monitor.png"
|
||||||
#define IMAGE_MESSAGES ":/images/evolution.png"
|
#define IMAGE_MESSAGES ":/images/evolution.png"
|
||||||
#define IMAGE_BWGRAPH ":/images/ksysguard.png"
|
#define IMAGE_BWGRAPH ":/images/ksysguard.png"
|
||||||
#define IMAGE_RSM32 ":/images/rsmessenger32.png"
|
#define IMAGE_RSM32 ":/images/kdmconfig.png"
|
||||||
#define IMAGE_RSM16 ":/images/rsmessenger16.png"
|
#define IMAGE_RSM16 ":/images/rsmessenger16.png"
|
||||||
#define IMAGE_CLOSE ":/images/close_normal.png"
|
#define IMAGE_CLOSE ":/images/close_normal.png"
|
||||||
#define IMAGE_SMPLAYER ":/images/smplayer_icon32.png"
|
#define IMAGE_SMPLAYER ":/images/smplayer_icon32.png"
|
||||||
|
@ -106,8 +106,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
||||||
//showConsoleFrame(false);
|
//showConsoleFrame(false);
|
||||||
//connect(ui.btnToggleConsole, SIGNAL(toggled(bool)), this, SLOT(showConsoleFrame(bool)));
|
//connect(ui.btnToggleConsole, SIGNAL(toggled(bool)), this, SLOT(showConsoleFrame(bool)));
|
||||||
|
|
||||||
/* Hide ToolBox frame */
|
ui.toolBarservice->hide();
|
||||||
//showToolboxFrame(true);
|
|
||||||
|
|
||||||
// Setting icons
|
// Setting icons
|
||||||
this->setWindowIcon(QIcon(QString::fromUtf8(":/images/rstray3.png")));
|
this->setWindowIcon(QIcon(QString::fromUtf8(":/images/rstray3.png")));
|
||||||
|
@ -130,15 +129,9 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
||||||
//connect(ui.qcheckersButton, SIGNAL(clicked( bool )), this, SLOT( startqcheckers()) );
|
//connect(ui.qcheckersButton, SIGNAL(clicked( bool )), this, SLOT( startqcheckers()) );
|
||||||
|
|
||||||
|
|
||||||
//ui.addfriendButton->setToolTip(tr("Add a Friend"));
|
|
||||||
//ui.invitefriendButton->setToolTip(tr("Invite a Friend"));
|
|
||||||
//ui.addshareButton->setToolTip(tr("Add a Share"));
|
|
||||||
//ui.optionsButton->setToolTip(tr("Options"));
|
|
||||||
|
|
||||||
/** adjusted quit behaviour: trigger a warning that can be switched off in the saved
|
/** adjusted quit behaviour: trigger a warning that can be switched off in the saved
|
||||||
config file RetroShare.conf */
|
config file RetroShare.conf */
|
||||||
//ui.actionQuit->setToolTip(tr("Quit"));
|
//ui.actionQuit->setToolTip(tr("Quit"));
|
||||||
//connect(ui.quitButton, SIGNAL(clicked()), qApp, SLOT(quit()));
|
|
||||||
connect(ui.actionQuit, SIGNAL(triggered()), this, SLOT(doQuit()));
|
connect(ui.actionQuit, SIGNAL(triggered()), this, SLOT(doQuit()));
|
||||||
|
|
||||||
/* load the StyleSheet*/
|
/* load the StyleSheet*/
|
||||||
|
@ -215,8 +208,11 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
||||||
addAction(new QAction(QIcon(IMAGE_BLOCK), tr("Unfinished"), ui.toolBar), SLOT(showApplWindow()));
|
addAction(new QAction(QIcon(IMAGE_BLOCK), tr("Unfinished"), ui.toolBar), SLOT(showApplWindow()));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//addAction(new QAction(QIcon(IMAGE_COLOR), tr("Color"), ui.toolBar), SLOT(setStyle()));
|
toolAct = ui.toolBarservice->toggleViewAction();
|
||||||
|
toolAct->setText("Service");
|
||||||
|
toolAct->setShortcut(tr("Ctrl+T"));
|
||||||
|
toolAct->setIcon(QIcon(":/images/blockdevice2.png"));
|
||||||
|
ui.toolBar->addAction(toolAct);
|
||||||
|
|
||||||
|
|
||||||
/* Select the first action */
|
/* Select the first action */
|
||||||
|
@ -225,10 +221,6 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
||||||
/* Create the Service pages and actions */
|
/* Create the Service pages and actions */
|
||||||
QActionGroup *servicegrp = new QActionGroup(this);
|
QActionGroup *servicegrp = new QActionGroup(this);
|
||||||
|
|
||||||
/* Create and bind the Add Friend button */
|
|
||||||
//addActionservice(new QAction(QIcon(IMAGE_ADDFRIEND), tr("Add Friend"), ui.toolBarservice), SLOT(addFriend()));
|
|
||||||
//addActionservice(new QAction(QIcon(IMAGE_INVITEFRIEND), tr("Invite Friend"), ui.toolBarservice), SLOT(inviteFriend()));
|
|
||||||
//addActionservice(new QAction(QIcon(IMAGE_ADDSHARE), tr("Add Share"), ui.toolBarservice), SLOT(addSharedDirectory()));
|
|
||||||
|
|
||||||
LinksDialog *linksDialog = NULL;
|
LinksDialog *linksDialog = NULL;
|
||||||
ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages),
|
ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages),
|
||||||
|
@ -677,3 +669,12 @@ void MainWindow::setStyle()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*void MainWindow::toggleViewAction ()
|
||||||
|
{
|
||||||
|
|
||||||
|
ui.toolBarservice->toggleViewAction();
|
||||||
|
|
||||||
|
//ui.toolBarservice->show();
|
||||||
|
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
|
@ -137,6 +137,9 @@ private slots:
|
||||||
/** Called when user attempts to quit via quit button*/
|
/** Called when user attempts to quit via quit button*/
|
||||||
void doQuit();
|
void doQuit();
|
||||||
|
|
||||||
|
//void toggleViewAction ();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void closeEvent(QCloseEvent *);
|
void closeEvent(QCloseEvent *);
|
||||||
|
@ -177,7 +180,7 @@ private:
|
||||||
void loadStyleSheet(const QString &sheetName);
|
void loadStyleSheet(const QString &sheetName);
|
||||||
|
|
||||||
QSystemTrayIcon *trayIcon;
|
QSystemTrayIcon *trayIcon;
|
||||||
QAction *toggleVisibilityAction;
|
QAction *toggleVisibilityAction, *toolAct;
|
||||||
QMenu *menu;
|
QMenu *menu;
|
||||||
|
|
||||||
/** Qt Designer generated object */
|
/** Qt Designer generated object */
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
<file>images/addfriendlabel.png</file>
|
<file>images/addfriendlabel.png</file>
|
||||||
<file>images/backgroundl.png</file>
|
<file>images/backgroundl.png</file>
|
||||||
<file>images/blockdevice.png</file>
|
<file>images/blockdevice.png</file>
|
||||||
|
<file>images/blockdevice2.png</file>
|
||||||
<file>images/channels.png</file>
|
<file>images/channels.png</file>
|
||||||
<file>images/channeldelete.png</file>
|
<file>images/channeldelete.png</file>
|
||||||
<file>images/channelsubscribe.png</file>
|
<file>images/channelsubscribe.png</file>
|
||||||
|
@ -127,6 +128,7 @@
|
||||||
<file>images/invite-friend24.png</file>
|
<file>images/invite-friend24.png</file>
|
||||||
<file>images/invitefriendlabel.png</file>
|
<file>images/invitefriendlabel.png</file>
|
||||||
<file>images/kbackgammon.png</file>
|
<file>images/kbackgammon.png</file>
|
||||||
|
<file>images/kdmconfig.png</file>
|
||||||
<file>images/konsole.png</file>
|
<file>images/konsole.png</file>
|
||||||
<file>images/ksysguard.png</file>
|
<file>images/ksysguard.png</file>
|
||||||
<file>images/ktorrent.png</file>
|
<file>images/ktorrent.png</file>
|
||||||
|
|
BIN
retroshare-gui/src/gui/images/kdmconfig.png
Normal file
BIN
retroshare-gui/src/gui/images/kdmconfig.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue