mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
4e8079f527
The lastUsedDir() functions of MainWindow and Smrtk2ssrfcWindow don't use any member-objects and are only used in their respective translation units. Therefore, remove them from the class and made of static linkage. The lastUsedImageDir() function was declared as a slog, which makes no sense. Make it a normal static function (though one might argue why it is assiociated with the DiveListView class in the first place). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
39 lines
809 B
C++
39 lines
809 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef SMRTK2SSRFC_WINDOW_H
|
|
#define SMRTK2SSRFC_WINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QFileDialog>
|
|
#include <QFileInfo>
|
|
|
|
extern "C" void smartrak_import(const char *file, struct dive_table *divetable);
|
|
|
|
namespace Ui {
|
|
class Smrtk2ssrfcWindow;
|
|
}
|
|
|
|
class Smrtk2ssrfcWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Smrtk2ssrfcWindow(QWidget *parent = 0);
|
|
~Smrtk2ssrfcWindow();
|
|
|
|
private:
|
|
Ui::Smrtk2ssrfcWindow *ui;
|
|
QString filter();
|
|
void updateLastUsedDir(const QString &s);
|
|
void closeCurrentFile();
|
|
|
|
private
|
|
slots:
|
|
void on_inputFilesButton_clicked();
|
|
void on_outputFileButton_clicked();
|
|
void on_importButton_clicked();
|
|
void on_exitButton_clicked();
|
|
void on_outputLine_textEdited();
|
|
void on_inputLine_textEdited();
|
|
};
|
|
|
|
#endif // SMRTK2SSRFC_WINDOW_H
|