Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r137 - trunk/java/ch/idok/qtgui

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r137 - trunk/java/ch/idok/qtgui


Chronological Thread 
  • From: "Apache" <apache AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r137 - trunk/java/ch/idok/qtgui
  • Date: Mon, 7 Jul 2008 09:25:51 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: huebner AT PSI.CH
Date: Mon Jul 7 09:25:50 2008
New Revision: 137

Log:
Added Improvement IDO-58: Auto-update Browser List when document is
added/deleted

Modified:
trunk/java/ch/idok/qtgui/MainWindow.java
trunk/java/ch/idok/qtgui/PendingOperationsController.java
trunk/java/ch/idok/qtgui/RepositoryController.java

Modified: trunk/java/ch/idok/qtgui/MainWindow.java
==============================================================================
--- trunk/java/ch/idok/qtgui/MainWindow.java (original)
+++ trunk/java/ch/idok/qtgui/MainWindow.java Mon Jul 7 09:25:50 2008
@@ -54,6 +54,7 @@
import com.trolltech.qt.gui.QScrollArea;
import com.trolltech.qt.gui.QToolBar;
import com.trolltech.qt.gui.QTreeWidgetItem;
+import com.trolltech.qt.gui.QAction.ActionEvent;
import com.trolltech.qt.gui.QKeySequence.StandardKey;
import com.trolltech.qt.webkit.QWebView;

@@ -189,7 +190,7 @@
ui_.actionAbout_Qt.setIcon(Icons.QTLOGO);
ui_.actionAbout_Qt_Jambi.setIcon(Icons.QTLOGO);

- rc_ = new RepositoryController(ui_, handler_);
+ rc_ = new RepositoryController(ui_, handler_, this);
poc_ = new PendingOperationsController(rc_);

fd_ = new QFileDialog(ui_.dockWidgetContentsLocalFS);
@@ -975,5 +976,12 @@
if (ac_.setupProjectsAndRepos())
adminWindow_.show();
}
+
+ public final void refreshRepo() {
+// actionEvent(arg__1)
+// this.reloadAction_.
+// QAction.ActionEvent.;
+ ft_.rootSetupDmsDirModel();
+ }

}

Modified: trunk/java/ch/idok/qtgui/PendingOperationsController.java
==============================================================================
--- trunk/java/ch/idok/qtgui/PendingOperationsController.java (original)
+++ trunk/java/ch/idok/qtgui/PendingOperationsController.java Mon Jul 7
09:25:50 2008
@@ -408,6 +408,7 @@
t.end(pendingOperations_.logMessageLineEdit.text());
progress_.reset();
transactionFinished.emit(destinationList);
+ repoC_.refreshRepositoryFiles();
return true;
} catch (DmsException e) {
QMessageBox.warning(null, "iDok Warning",

Modified: trunk/java/ch/idok/qtgui/RepositoryController.java
==============================================================================
--- trunk/java/ch/idok/qtgui/RepositoryController.java (original)
+++ trunk/java/ch/idok/qtgui/RepositoryController.java Mon Jul 7 09:25:50
2008
@@ -33,6 +33,7 @@
import com.trolltech.qt.QSignalEmitter;
import com.trolltech.qt.core.QPoint;
import com.trolltech.qt.core.Qt;
+import com.trolltech.qt.gui.QAction;
import com.trolltech.qt.gui.QApplication;
import com.trolltech.qt.gui.QColor;
import com.trolltech.qt.gui.QDialog;
@@ -51,6 +52,8 @@
* In addition it keeps the history of selected repositories in Preferences
*/
public class RepositoryController extends QSignalEmitter {
+
+ private MainWindow main_;

private boolean veto_ = false;

@@ -78,7 +81,8 @@

public Signal0 connectionNotSuccesful = new Signal0();

- public RepositoryController(Ui_DmsMainWindow ui, GuiClientHandler
handler) {
+ public RepositoryController(Ui_DmsMainWindow ui, GuiClientHandler
handler, MainWindow main) {
+ main_ = main;
ui_ = ui;
mgr_ = new SvnRepositoryManager(handler);
ui.urlPushButton.clicked.connect(this, "activateComboBox()");
@@ -305,5 +309,9 @@
}
DmsGui.Settings.sync();
}
+
+ public void refreshRepositoryFiles (){
+ main_.refreshRepo();
+ }

}



  • [idok-commit] idok commit r137 - trunk/java/ch/idok/qtgui, Apache, 07/07/2008

Archive powered by MHonArc 2.6.19.

Top of Page