redesign SharedFiles, with splitted view for Remote and Local Dirs and added QFrame's for switch to different views.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1392 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-07-20 17:03:27 +00:00
parent 400ad9e0bd
commit 13eed1c932
6 changed files with 437 additions and 264 deletions

View File

@ -82,7 +82,10 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent)
connect(ui.checkButton, SIGNAL(clicked()), this, SLOT(forceCheck()));
//connect(ui.frameButton, SIGNAL(toggled(bool)), this, SLOT(showFrame(bool)));
connect(ui.localButton, SIGNAL(toggled(bool)), this, SLOT(showFrame(bool)));
connect(ui.remoteButton, SIGNAL(toggled(bool)), this, SLOT(showFrameRemote(bool)));
connect(ui.splittedButton, SIGNAL(toggled(bool)), this, SLOT(showFrameSplitted(bool)));
connect( ui.localDirTreeView, SIGNAL( customContextMenuRequested( QPoint ) ),
this, SLOT( sharedDirTreeWidgetContextMenu( QPoint ) ) );
@ -687,20 +690,46 @@ SharedFilesDialog::tryToAddNewAssotiation()
//============================================================================
/**
Toggles the Lokal TreeView on and off, changes toggle button text
Toggles the Splitted, Remote and Local View on and off*/
void SharedFilesDialog::showFrame(bool show)
{
if (show) {
ui.frame->setVisible(true);
ui.frameButton->setChecked(true);
ui.frameButton->setToolTip(tr("Hide Lokal Direrectories"));
ui.frameButton->setIcon(QIcon(tr(":images/hide_toolbox_frame.png")));
} else {
ui.frame->setVisible(false);
ui.frameButton->setChecked(false);
ui.frameButton->setToolTip(tr("Show Lokal Directories"));
ui.frameButton->setIcon(QIcon(tr(":images/show_toolbox_frame.png")));
}
}*/
ui.localframe->setVisible(true);
ui.remoteframe->setVisible(false);
ui.localButton->setChecked(true);
ui.remoteButton->setChecked(false);
ui.splittedButton->setChecked(false);
}
}
void SharedFilesDialog::showFrameRemote(bool show)
{
if (show) {
ui.remoteframe->setVisible(true);
ui.localframe->setVisible(false);
ui.remoteButton->setChecked(true);
ui.localButton->setChecked(false);
ui.splittedButton->setChecked(false);
}
}
void SharedFilesDialog::showFrameSplitted(bool show)
{
if (show) {
ui.remoteframe->setVisible(true);
ui.localframe->setVisible(true);
ui.splittedButton->setChecked(true);
ui.localButton->setChecked(false);
ui.remoteButton->setChecked(false);
}
}

View File

@ -66,7 +66,10 @@ private slots:
void sendLinkTo();
void sendremoteLinkTo();
//void showFrame(bool show);
void showFrame(bool show);
void showFrameRemote(bool show);
void showFrameSplitted(bool show);
// void recommendfile();

File diff suppressed because it is too large Load Diff

View File

@ -507,7 +507,7 @@
<number>6</number>
</property>
<property name="topMargin">
<number>1</number>
<number>6</number>
</property>
<property name="rightMargin">
<number>6</number>
@ -578,6 +578,7 @@ p, li { white-space: pre-wrap; }
<widget class="QTreeView" name="downloadList">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
</font>
</property>
@ -636,6 +637,7 @@ p, li { white-space: pre-wrap; }
<widget class="QTreeView" name="uploadsList">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
</font>
</property>

View File

@ -352,6 +352,7 @@
<file>images/view_calendar_day.png</file>
<file>images/view_calendar_week.png</file>
<file>images/view_calendar_month.png</file>
<file>images/view_split_top_bottom.png</file>
<file>images/window_fullscreen.png</file>
<file>images/window_nofullscreen.png</file>
<file>layouts/default.ui</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B