Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c1e9a07
first pass splitting accountView logic to controller
modSpike Jun 17, 2026
3822d59
remove uses of SettingsDialog
modSpike Jun 18, 2026
185e75e
missed one update
modSpike Jun 18, 2026
b790bfb
revert fix for dc-312
modSpike Jun 18, 2026
242a348
moving raise behavior to main window
modSpike Jun 18, 2026
f914de7
Merge branch 'master' into refactor/DC-310
modSpike Jun 18, 2026
dd3951e
eliminate some obsolete classes
modSpike Jun 18, 2026
a80f7ad
Merge branch 'refactor/DC-310' of github.com:owncloud/client into ref…
modSpike Jun 18, 2026
a58b185
various improvements
modSpike Jun 19, 2026
6ad4e75
moved accountmodalwidget to accountsgui
modSpike Jun 19, 2026
f5dc998
blind refactor of the updater
modSpike Jun 22, 2026
f0fe710
possibly fixed windows updater
modSpike Jun 22, 2026
ee86d38
maybe fixed linux updater
modSpike Jun 22, 2026
2beaed8
fix windows?
modSpike Jun 22, 2026
23d38e7
Merge branch 'master' into refactor/DC-310
modSpike Jun 25, 2026
9ef2112
moving things around
modSpike Jun 25, 2026
b6e1fa7
Merge branch 'refactor/DC-310' of github.com:owncloud/client into ref…
modSpike Jun 25, 2026
793f771
moving more things around
modSpike Jun 26, 2026
2b2df6c
hide access to MainWindow from Application
modSpike Jun 26, 2026
48941b2
rename ownCloudGui to TrayMenuController
modSpike Jun 26, 2026
04517e3
cleanup related to tray menu controller
modSpike Jun 26, 2026
c4adacf
nothing interesting here
modSpike Jun 26, 2026
14d4471
fixing broken sync on load from config
modSpike Jun 26, 2026
baac074
Merge branch 'master' into refactor/DC-310
modSpike Jun 26, 2026
3e6ad18
fixing linux. again.
modSpike Jun 26, 2026
13b68a2
Merge branch 'refactor/DC-310' of github.com:owncloud/client into ref…
modSpike Jun 26, 2026
35d15b6
removed dead mainwindow.h includes
modSpike Jun 26, 2026
b957f1c
test: update account menu selector
PrajwolAmatya Jun 29, 2026
a947688
Merge branch 'master' into refactor/DC-310
modSpike Jun 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,17 @@ include(ECMAddAppIcon)
find_package(KDSingleApplication-qt6 1.0.0 REQUIRED)

set(client_UI_SRCS
aboutdialog.ui
generalsettings.ui
ignorelisteditor.ui
networksettings.ui
localactivitywidget.ui
syncerrorwidget.ui
settingsdialog.ui
tlserrordialog.ui
logbrowser.ui
accountsgui/accountview.ui
)

set(client_SRCS
aboutdialog.cpp
accountmanager.cpp

accountmodalwidget.cpp
accountmodalwidget.ui

application.cpp
fetchserversettings.cpp
clientproxy.cpp
Expand All @@ -30,20 +22,18 @@ set(client_SRCS
folder.cpp
folderman.cpp
folderwatcher.cpp
generalsettings.cpp
ignorelisteditor.cpp
lockwatcher.cpp
logbrowser.cpp
networkinformation.cpp
networksettings.cpp
openfilemanager.cpp
owncloudgui.cpp
traymenucontroller.cpp
localactivitywidget.cpp
protocolitem.cpp
syncerrorwidget.cpp
activitysettings.cpp
selectivesyncwidget.cpp
settingsdialog.cpp
tlserrordialog.cpp
syncrunfilelog.cpp
accountstate.cpp
Expand Down
32 changes: 5 additions & 27 deletions src/gui/FoldersGui/accountfolderscontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
#include "commonstrings.h"
#include "configfile.h"
#include "foldermodelcontroller.h"
#include "folderwizard.h"
#include "selectivesyncwidget.h"
#include "settingsdialog.h"

#include "guiutility.h"
#include "networkjobs.h"
Expand Down Expand Up @@ -85,27 +83,7 @@ void AccountFoldersController::onFolderChanged(OCC::Folder *folder)

void AccountFoldersController::onAddFolder()
{
if (!_accountState || !_accountState->account()) {
return;
}

emit requestAddFolder();
}

void AccountFoldersController::onFolderWizardAccepted(OCC::FolderMan::SyncConnectionDescription result)
{
if (!_accountState) {
return;
}

// The gui should not allow users to selectively choose any sync lists if vfs is enabled, but this kind of check was
// originally in play here so...keep it just in case.
if (result.useVirtualFiles && !result.selectiveSyncBlackList.empty()) {
result.selectiveSyncBlackList.clear();
}

// Refactoring todo: turn this into a signal
FolderMan::instance()->addFolderFromGui(_accountState, result);
emit requestAddFolder(_accountId);
}

void AccountFoldersController::buildMenuActions()
Expand Down Expand Up @@ -196,7 +174,7 @@ void AccountFoldersController::onEnableVfs()
"will become available again."
"\n\n"
"This action will abort any currently running synchronization."),
QMessageBox::Yes | QMessageBox::No, ocApp()->gui()->settingsDialog());
QMessageBox::Yes | QMessageBox::No, ocApp()->mainWindow());
msgBox.setObjectName("confirmDisableVfsDialog");
msgBox.button(QMessageBox::Yes)->setText(tr("Disable support"));
msgBox.button(QMessageBox::Yes)->setObjectName("disableVfsButton");
Expand Down Expand Up @@ -278,7 +256,7 @@ void AccountFoldersController::onForceSync()
QMessageBox messageBox(QMessageBox::Question, tr("Internet connection is metered"),
tr("Synchronization is paused because the Internet connection is a metered connection"
"<p>Do you really want to force a Synchronization now?"),
QMessageBox::Yes | QMessageBox::No, ocApp()->gui()->settingsDialog());
QMessageBox::Yes | QMessageBox::No, ocApp()->mainWindow());
messageBox.setObjectName("confirmForceSyncWhenMeteredDialog");
messageBox.button(QMessageBox::No)->setObjectName("cancelForceSyncWhenMeteredButton");
messageBox.button(QMessageBox::Yes)->setObjectName("forceSyncWhenMeteredButton");
Expand All @@ -300,7 +278,7 @@ void AccountFoldersController::onTogglePauseSync()
if (!currentlyPaused) {
if (_currentFolder->isSyncRunning()) {
QMessageBox msgbox(QMessageBox::Question, tr("Sync Running"), tr("The sync operation is running.<br/>Do you want to stop it?"),
QMessageBox::Yes | QMessageBox::No, ocApp()->gui()->settingsDialog());
QMessageBox::Yes | QMessageBox::No, ocApp()->mainWindow());
msgbox.setDefaultButton(QMessageBox::No);
msgbox.setObjectName("confirmPauseRunningSyncDialog");
msgbox.button(QMessageBox::Yes)->setObjectName("pauseRunningSyncButton");
Expand Down Expand Up @@ -330,7 +308,7 @@ void AccountFoldersController::onRemoveSync()
tr("<p>Do you really want to stop syncing the folder <i>%1</i>?</p>"
"<p><b>Note:</b> This will <b>not</b> delete any files.</p>")
.arg(shortGuiLocalPath),
QMessageBox::Yes | QMessageBox::No, ocApp()->gui()->settingsDialog());
QMessageBox::Yes | QMessageBox::No, ocApp()->mainWindow());
msgBox.button(QMessageBox::Yes)->setText(tr("Remove Folder Sync Connection"));
msgBox.button(QMessageBox::No)->setText(tr("Cancel"));
msgBox.setObjectName("confirmRemoveFolderSyncDialog");
Expand Down
5 changes: 2 additions & 3 deletions src/gui/FoldersGui/accountfolderscontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,16 @@ class AccountFoldersController : public QObject

signals:
void removeFolderFromGui(OCC::Folder *f);
void requestAddFolder();
void requestAddFolder(QUuid accountId);

void requestAccountModalWidget(OCC::AccountModalWidget *widget);

protected:
void onUnsyncedSpaceCountChanged(const QUuid &accountId, int unsyncedSpaceCount, int totalSpaceCount);
void onAddFolder();
void onFolderWizardAccepted(OCC::FolderMan::SyncConnectionDescription result);

private:
AccountState *_accountState = nullptr;
QPointer<AccountState> _accountState;
QUuid _accountId;
QPointer<Folder> _currentFolder = nullptr;
AccountFoldersView *_view = nullptr;
Expand Down
133 changes: 0 additions & 133 deletions src/gui/aboutdialog.cpp

This file was deleted.

42 changes: 0 additions & 42 deletions src/gui/aboutdialog.h

This file was deleted.

Loading