# # # patch "guitone/res/dialogs/databaseview.ui" # from [60721fa4ec6ecba2a4dba1823954291a24b5fc4e] # to [dca9ea47934658b3d60fbb154932f2b21fc0133f] # # patch "guitone/res/i18n/guitone_de.ts" # from [baf70459803acb6ee6557e27a7c184c242bab19a] # to [5e73a7bc11b7d61fc74b67edca91faca0bcf68e7] # # patch "guitone/src/util/Settings.cpp" # from [7c9541d2328e46bfbcf5ef069734ce0863a207f4] # to [659b9c2878fdf9d802dc6096ee1c31abdfb4ba42] # # patch "guitone/src/util/TreeBuilder.cpp" # from [45c9d6b4cd5a25d8c9a4ee72b606a24757118d49] # to [081d27103c3d86fe87890fc1a29f9aee8e943af3] # # patch "guitone/src/view/dialogs/DatabaseView.cpp" # from [3b204b6a8f23ab3e5d63abef85aeb7fc5c831370] # to [b90047b3c6b8787061a1805779bc30871cf2cf10] # # patch "guitone/src/view/dialogs/DatabaseView.h" # from [0e7102460b4f07c235c07c87117673dd07f74e39] # to [77883e12c09eeee07a328582ea84712e02de5343] # ============================================================ --- guitone/res/dialogs/databaseview.ui 60721fa4ec6ecba2a4dba1823954291a24b5fc4e +++ guitone/res/dialogs/databaseview.ui dca9ea47934658b3d60fbb154932f2b21fc0133f @@ -46,12 +46,12 @@ 6 - + Qt::Horizontal - - + + Qt::Vertical @@ -124,6 +124,18 @@ + + + Splitter + QSplitter +
../Splitter.h
+
+ + TreeView + QTreeView +
../TreeView.h
+
+
============================================================ --- guitone/res/i18n/guitone_de.ts baf70459803acb6ee6557e27a7c184c242bab19a +++ guitone/res/i18n/guitone_de.ts 5e73a7bc11b7d61fc74b67edca91faca0bcf68e7 @@ -189,7 +189,7 @@ Beenden - + Branches Zweige @@ -323,12 +323,12 @@ Guitone - + guitone - a frontend for monotone guitone - ein Frontend für monotone - + &File &Datei @@ -338,7 +338,7 @@ Arbeitsbereich &importieren - + &Quit &Beenden @@ -348,17 +348,17 @@ Bereit - + Select your workspace... Wählen Sie Ihren Arbeitsbereich aus... - + Loading aborted Laden abgebrochen - + Invalid workspace Ungültiger Arbeitsbereich @@ -378,7 +378,7 @@ Das Inventar konnte nicht gelesen werden. Vielleicht läuft noch ein anderer Prozess? - + Loading workspace... Lade Arbeitsbereich... @@ -395,7 +395,7 @@ STRG+Q - + The chosen directory is no monotone workspace! Das gewählte Verzeichnis ist kein monotone-Arbeitsverzeichnis! @@ -405,7 +405,7 @@ &Importiere Arbeitsbereich - + Critical Monotone Error Kritischer monotone-Fehler @@ -416,7 +416,7 @@ STRG+I - + &View &Ansicht @@ -431,32 +431,32 @@ Ignorierte Dateien a&nzeigen - + &Recent Workspaces &Vorherige Arbeitsbereiche - + &Open Workspace Arbeitsbereich &öffnen - + &%1 %2 &%1 %2 - + No previous workspaces available. Keine vorherigen Arbeitsbereiche verfügbar. - + &Workspace A&rbeitsbereich - + &Switch revision Auf andere &Revision aktualisieren @@ -471,17 +471,17 @@ &Schlüsselverwaltung - + About &Qt Über &Qt - + &Help &Hilfe - + &Database Daten&bank @@ -491,27 +491,27 @@ &Historiengraph anzeigen - + &Preferences... &Einstellungen... - + &Key Management &Schlüsselverwaltung - + Unable to execute command Konnte Kommando nicht ausführen - + Unable to execute '%1' - maybe another command is still running? Konnte '%1' nicht ausführen - eventuell läuft noch ein anderes Kommando? - + Error Fehler @@ -521,12 +521,12 @@ Der Pfad zur ausführbaren Datei von monotone ist entweder ungültig oder zeigt auf eine ältere Version von monotone. Guitone benötigt Version %1 oder neuer. - + The path to the monotone binary is either invalid or points to an older version of monotone. Guitone requires monotone version %1 or a monotone with interface version %2 or later. Der Pfad zur ausführbaren Datei von monotone ist entweder ungültig oder zeigt auf eine ältere Version von monotone. Guitone benötigt monotone Version %1 oder ein monotone mit einer Interface-Version %2 oder neuer. - + Hide &ignored files &Ignorierte Dateien verstecken @@ -536,7 +536,7 @@ Zeige nur &geänderte Dateien - + Show &ignored files &Ignorierte Dateien anzeigen @@ -546,67 +546,67 @@ A&lle Dateien anzeigen - + Show Zeige - + &All files &Alle Dateien - + All &changed files Alle &geänderten Dateien - + &Patched files Dateien mit I&nhaltsänderungen - + A&dded files Hin&zugefügte Dateien - + R&emoved files En&tfernte Dateien - + &Renamed files &Umbenannte Dateien - + &Missing files &Fehlende Dateien - + &Unknown files Unbe&kannte Dateien - + I&gnored files I&gnorierte Dateien - + E&xpand tree Baum &aufklappen - + Co&llapse tree Baum zuk&lappen - + About &guitone Über &guitone @@ -838,27 +838,27 @@ Schließen - + Unable to execute command Konnte Kommando nicht ausführen - + Copy key name to clipboard Kopiere Schlüsselnamen in die Zwischenablage - + Copy public key hash to clipboard Kopiere öffentliche Prüfsumme in die Zwischenablage - + Copy public key data to clipboard Kopiere öffentliche Schlüsseldaten in die Zwischenablage - + Unable to execute '%1' - maybe another command is still running? Konnte '%1' nicht ausführen - eventuell läuft noch ein anderes Kommando? @@ -1106,12 +1106,12 @@ korrekt installiert? RevisionDiff - + base revision Basis-Revision - + workspace revision Arbeitsbereich-Revision @@ -1371,12 +1371,12 @@ korrekt installiert? Die Liste der Revisionen konnte nicht gelesen werden. Eventuell ist noch ein anderer Prozess aktiv? - + Invalid selection Ungültige Auswahl - + The given selection could not be processed: %1 Die eingegebene Auswahl kann nicht ausgeführt werden: %1 @@ -1386,12 +1386,12 @@ korrekt installiert? Kombiniert - + Unable to execute command Konnte Kommando nicht ausführen - + Unable to execute '%1' - maybe another command is still running? Konnte '%1' nicht ausführen - eventuell läuft noch ein anderes Kommando? ============================================================ --- guitone/src/util/Settings.cpp 7c9541d2328e46bfbcf5ef069734ce0863a207f4 +++ guitone/src/util/Settings.cpp 659b9c2878fdf9d802dc6096ee1c31abdfb4ba42 @@ -56,7 +56,9 @@ Qt::WindowStates Settings::getWindowStat Qt::WindowStates Settings::getWindowState(const QString &name) { - return singleton()->value(name, Qt::WindowNoState).toInt(); + return static_cast( + singleton()->value(name, Qt::WindowNoState).toInt() + ); } void Settings::setWindowState(const QString &name, Qt::WindowStates state) ============================================================ --- guitone/src/util/TreeBuilder.cpp 45c9d6b4cd5a25d8c9a4ee72b606a24757118d49 +++ guitone/src/util/TreeBuilder.cpp 081d27103c3d86fe87890fc1a29f9aee8e943af3 @@ -1,6 +1,6 @@ -/*************************************************************************** -* Copyright (C) 2006 by Jean-Louis Fuchs * -* address@hidden * +/************************************************************************** +* Copyright (C) 2006 by Jean-Louis Fuchs * +* address@hidden * * * * 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 * @@ -10,7 +10,7 @@ * 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. QStandardItem * +* 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 * ============================================================ --- guitone/src/view/dialogs/DatabaseView.cpp 3b204b6a8f23ab3e5d63abef85aeb7fc5c831370 +++ guitone/src/view/dialogs/DatabaseView.cpp b90047b3c6b8787061a1805779bc30871cf2cf10 @@ -27,7 +27,6 @@ DatabaseView::DatabaseView(QWidget *pare setupUi(this); this->setWindowFlags(this->windowFlags() | Qt::WindowMaximizeButtonHint); this->setWindowFlags(this->windowFlags() | Qt::WindowMinimizeButtonHint); - setupSplitterGUI(parent); initTreeWidget(); readBranches(); @@ -68,10 +67,10 @@ void DatabaseView::closeEvent(QCloseEven void DatabaseView::closeEvent(QCloseEvent *event) { // Do some cleanup before closing down the application + // FIXME: there should be a generalized Dialog class which does that for + // all dialogs automatically Settings::setStartupSize("DatabaseViewStartupSize", curSize); Settings::setWindowState("DatabaseViewWindowState", windowState()); - Settings::setSplitterState(outerSplitter->saveState(), "OuterSplitter"); - Settings::setSplitterState(innerSplitter->saveState(), "InnerSplitter"); event->accept(); } @@ -101,17 +100,21 @@ void DatabaseView::addBranches(int ret) void DatabaseView::addBranches(int ret) { - if(!ret) - builder->addList(mtn->getDataAndReset()); - disconnect( + QString data(mtn->getDataAndReset()); + + if (ret == 0) + { + builder->addList(data); + } + else + { + // FIXME: should be generalized / pushed to the user somehow + qDebug("DatabaseView::addBranches: error while executing 'branches': %s", qPrintable(data)); + } + + disconnect( mtn, SIGNAL(commandFinished(int)), this, SLOT(addBranches(int)) ); } -void DatabaseView::setupSplitterGUI(QWidget *parent) -{ - outerSplitter->restoreState(Settings::getSplitterState("OuterSplitter")); - innerSplitter->restoreState(Settings::getSplitterState("InnerSplitter")); -} - ============================================================ --- guitone/src/view/dialogs/DatabaseView.h 0e7102460b4f07c235c07c87117673dd07f74e39 +++ guitone/src/view/dialogs/DatabaseView.h 77883e12c09eeee07a328582ea84712e02de5343 @@ -40,7 +40,6 @@ private: void addBranches(int ret); private: - void setupSplitterGUI(QWidget *parent); void readBranches(); void initTreeWidget(); void readChangesets(const QString &branch);