mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-28 11:33:53 -06:00
47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2020, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
// MenuActions.h - Common file for menu actions.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef MENUACTIONS_H
|
|
#define MENUACTIONS_H
|
|
|
|
#include "LogWindow.h"
|
|
#include "ConfigWindow.h"
|
|
|
|
class MenuActions: public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
MenuActions();
|
|
|
|
void setAppServerUrl(QString appServerUrl);
|
|
QString getAppServerUrl() const { return m_appServerUrl; }
|
|
|
|
private:
|
|
QString m_appServerUrl = "";
|
|
LogWindow *m_logWindow = Q_NULLPTR;
|
|
ConfigWindow *m_configWindow = Q_NULLPTR;
|
|
|
|
public slots:
|
|
void onConfigDone(bool needRestart) const;
|
|
|
|
protected slots:
|
|
void onNew() const;
|
|
void onCopyUrl() const;
|
|
void onConfig();
|
|
void onLog();
|
|
void onQuit();
|
|
|
|
signals:
|
|
void shutdownSignal(QUrl);
|
|
};
|
|
|
|
#endif // MENUACTIONS_H
|