Files
qt-creator/src/plugins/gitlab/gitlabdialog.h
Lucie Gérard a7956df3ca Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.

Task-number: QTBUG-67283
Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-08-26 12:27:18 +00:00

75 lines
1.7 KiB
C++

// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "queryrunner.h"
#include "resultparser.h"
#include <utils/filepath.h>
#include <utils/id.h>
#include <QDialog>
QT_BEGIN_NAMESPACE
class QAbstractItemModel;
class QComboBox;
class QLabel;
class QLineEdit;
class QPushButton;
class QToolButton;
class QTreeView;
QT_END_NAMESPACE
namespace GitLab {
class GitLabParameters;
class GitLabDialog : public QDialog
{
Q_OBJECT
public:
explicit GitLabDialog(QWidget *parent = nullptr);
void updateRemotes();
protected:
void keyPressEvent(QKeyEvent *event) override;
private:
void resetTreeView(QTreeView *treeView, QAbstractItemModel *model);
void requestMainViewUpdate();
void updatePageButtons();
void queryFirstPage();
void queryPreviousPage();
void queryNextPage();
void queryLastPage();
void querySearch();
void continuePageUpdate();
void handleUser(const User &user);
void handleProjects(const Projects &projects);
void fetchProjects();
void cloneSelected();
QPushButton *m_clonePB = nullptr;
Utils::Id m_currentServerId;
Query m_lastTreeViewQuery;
PageInformation m_lastPageInformation;
int m_currentUserId = -1;
QLabel *m_mainLabel;
QLabel *m_detailsLabel;
QComboBox *m_remoteComboBox;
QLabel *m_treeViewTitle;
QLineEdit *m_searchLineEdit;
QTreeView *m_treeView;
QToolButton *m_firstToolButton;
QToolButton *m_previousToolButton;
QLabel *m_currentPageLabel;
QToolButton *m_nextToolButton;
QToolButton *m_lastToolButton;
};
} // namespace GitLab