qterminal-packaging/src/mainwindow.h
Alf Gaida c687557478 Cherry-picking upstream version 0.6.1~114-ga50f87c.
Preparing the upcoming release, switch to experimental
Added build dependencies:
 - gcc (>= 4:6)
 - g++ (>= 4:6)
 - libkf5windowsystem-dev,
 - liblxqt0-dev (>= 0.10.96~),
 - libqt5xdg-dev (>= 1.3.1~),
Bumped Standards to 3.9.8, no changes needed
Fixed VCS fields, using https, plain /git/ and pointing to the right branch
Added Recommends qterminal-l10n
Fixed copyright Format field, using https
Exported LC_ALL=C.UTF-8, make builds reproducible
Added hardening options
Added translation control to rules
Set CMAKE_BUILD_TYPE=RelWithDebInfo
2016-07-21 16:51:51 +02:00

90 lines
2.9 KiB
C++

/***************************************************************************
* Copyright (C) 2006 by Vladimir Kuznetsov *
* vovanec@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "ui_qterminal.h"
#include <QMainWindow>
#include "qxtglobalshortcut.h"
class QToolButton;
class MainWindow : public QMainWindow , private Ui::mainWindow
{
Q_OBJECT
public:
MainWindow(const QString& work_dir, const QString& command,
bool dropMode,
QWidget * parent = 0, Qt::WindowFlags f = 0);
~MainWindow();
bool dropMode() { return m_dropMode; }
protected:
bool event(QEvent* event);
private:
QActionGroup *tabPosition, *scrollBarPosition, *keyboardCursorShape;
QMenu *tabPosMenu, *scrollPosMenu, *keyboardCursorShapeMenu;
QString m_initWorkDir;
QString m_initShell;
QDockWidget *m_bookmarksDock;
void setup_FileMenu_Actions();
void setup_ActionsMenu_Actions();
void setup_ViewMenu_Actions();
void setupCustomDirs();
void closeEvent(QCloseEvent*);
void enableDropMode();
QToolButton *m_dropLockButton;
bool m_dropMode;
QxtGlobalShortcut m_dropShortcut;
void realign();
void setDropShortcut(QKeySequence dropShortCut);
private slots:
void on_consoleTabulator_currentChanged(int);
void propertiesChanged();
void actAbout_triggered();
void actProperties_triggered();
void updateActionGroup(QAction *);
void toggleBorderless();
void toggleTabBar();
void toggleMenu();
void showFullscreen(bool fullscreen);
void showHide();
void setKeepOpen(bool value);
void find();
void newTerminalWindow();
void bookmarksWidget_callCommand(const QString&);
void bookmarksDock_visibilityChanged(bool visible);
void addNewTab();
};
#endif //MAINWINDOW_H