summaryrefslogtreecommitdiff
path: root/src/iuserinterface.h
blob: 277d5cf5dcc4a4ceaa5dbfc18c570b558e54c26e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef IUSERINTERFACE_H
#define IUSERINTERFACE_H


#include "modinfodialogfwd.h"
#include <iplugintool.h>
#include <ipluginmodpage.h>
#include <delayedfilewriter.h>
#include <QMenu>
#include <QMainWindow>


class IUserInterface
{
public:
  virtual void registerModPage(MOBase::IPluginModPage *modPage) = 0;

  virtual void installTranslator(const QString &name) = 0;

  virtual bool closeWindow() = 0;
  virtual void setWindowEnabled(bool enabled) = 0;

  virtual void displayModInformation(
    ModInfoPtr modInfo, unsigned int modIndex, ModInfoTabIDs tabID) = 0;

  virtual void updateBSAList(const QStringList &defaultArchives, const QStringList &activeArchives) = 0;

  virtual MOBase::DelayedFileWriterBase &archivesWriter() = 0;

  virtual QMainWindow* mainWindow() = 0;
};

#endif // IUSERINTERFACE_H