mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
There're places where manual intervention is still required as uncrustify is not ideal (unfortunately), but at least one may rely on it to do the right thing most of the time (e.g. when sending in a patch). The style itself is quite different from what we had before but making it uniform across all the codebase is the key. I also hope that it'll make the code more readable (YMMV) and less sensitive to further changes.
46 lines
737 B
C++
46 lines
737 B
C++
/*
|
|
* This file Copyright (C) 2009-2015 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU GPL versions 2 or 3
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QSet>
|
|
|
|
#include "BaseDialog.h"
|
|
|
|
#include "ui_RelocateDialog.h"
|
|
|
|
class Session;
|
|
class TorrentModel;
|
|
|
|
class RelocateDialog : public BaseDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
RelocateDialog(Session&, const TorrentModel&, const QSet<int>& ids, QWidget* parent = nullptr);
|
|
|
|
virtual ~RelocateDialog()
|
|
{
|
|
}
|
|
|
|
private:
|
|
QString newLocation() const;
|
|
|
|
private slots:
|
|
void onSetLocation();
|
|
void onMoveToggled(bool);
|
|
|
|
private:
|
|
Session& mySession;
|
|
const QSet<int> myIds;
|
|
|
|
Ui::RelocateDialog ui;
|
|
|
|
static bool myMoveFlag;
|
|
};
|