mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Support running on systems without a system tray. Fixes #3316
This commit is contained in:
46
runtime/MenuActions.h
Normal file
46
runtime/MenuActions.h
Normal file
@@ -0,0 +1,46 @@
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// pgAdmin 4 - PostgreSQL Tools
|
||||
//
|
||||
// Copyright (C) 2013 - 2018, 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 "pgAdmin4.h"
|
||||
|
||||
// App headers
|
||||
#include "LogWindow.h"
|
||||
#include "ConfigWindow.h"
|
||||
|
||||
class MenuActions: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MenuActions();
|
||||
~MenuActions();
|
||||
|
||||
void setAppServerUrl(QString appServerUrl);
|
||||
void setLogFile(QString logFile);
|
||||
QString getAppServerUrl() { return m_appServerUrl; }
|
||||
|
||||
private:
|
||||
QString m_appServerUrl, m_logFile;
|
||||
LogWindow *m_logWindow;
|
||||
|
||||
protected slots:
|
||||
void onNew();
|
||||
void onConfig();
|
||||
void onLog();
|
||||
void onQuit();
|
||||
|
||||
signals:
|
||||
void shutdownSignal(QUrl);
|
||||
};
|
||||
|
||||
#endif // MENUACTIONS_H
|
||||
Reference in New Issue
Block a user