subsurface/desktop-widgets/tab-widgets/maintab.h
Berthold Stoeger ec96cbaab5 cleanup: remove maintab.ui
This file was so confusing: A tabwidget containing a layout
containing a tabwidget. This strange situation is probably
due to moving the multi-dive warning message.

Remove the file, there seems to be nothing of importance
in there. All the UI was moved to the individual tabs.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2022-03-12 18:33:34 +01:00

39 lines
701 B
C++

// SPDX-License-Identifier: GPL-2.0
/*
* maintab.h
*
* header file for the main tab of Subsurface
*
*/
#ifndef MAINTAB_H
#define MAINTAB_H
#include <QTabWidget>
#include "core/dive.h"
#include "core/subsurface-qt/divelistnotifier.h"
class TabBase;
class MainTab : public QTabWidget {
Q_OBJECT
public:
MainTab(QWidget *parent = 0);
void clearTabs();
void nextInputField(QKeyEvent *event);
void stealFocus();
public
slots:
void updateDiveInfo();
void escDetected();
void colorsChanged();
private:
bool lastSelectedDive;
int lastTabSelectedDive;
int lastTabSelectedDiveTrip;
QList<TabBase*> extraWidgets;
void changeEvent(QEvent *ev) override;
bool isDark;
};
#endif // MAINTAB_H