Rename Qt4 directory to Qt

This commit is contained in:
nhmall
2019-12-07 17:07:50 +01:00
committed by Patric Mueller
parent 4b7c8d5f0f
commit 3073a588eb
68 changed files with 5750 additions and 5750 deletions
+59
View File
@@ -0,0 +1,59 @@
// Copyright (c) Warwick Allison, 1999.
// Qt4 conversion copyright (c) Ray Chason, 2012-2014.
// NetHack may be freely redistributed. See license for details.
// qt_set.h -- the Qt settings
#ifndef QT4SET_H
#define QT4SET_H
namespace nethack_qt_ {
class NetHackQtGlyphs;
class NetHackQtSettings : public QDialog {
Q_OBJECT
public:
// Size of window - used to decide default sizes
NetHackQtSettings(int width, int height);
NetHackQtGlyphs& glyphs();
const QFont& normalFont();
const QFont& normalFixedFont();
const QFont& largeFont();
bool ynInMessages();
signals:
void fontChanged();
void tilesChanged();
public slots:
void toggleGlyphSize();
void setGlyphSize(bool);
private:
QSettings settings;
QSpinBox tilewidth;
QSpinBox tileheight;
QLabel widthlbl;
QLabel heightlbl;
QCheckBox whichsize;
QSize othersize;
QComboBox fontsize;
QFont normal, normalfixed, large;
NetHackQtGlyphs* theglyphs;
private slots:
void resizeTiles();
void changedFont();
};
extern NetHackQtSettings* qt_settings;
} // namespace nethack_qt_
#endif