1 #ifndef V1541C_V1541COMMANDER_H
2 #define V1541C_V1541COMMANDER_H
3 
4 #include <QApplication>
5 
6 class QAction;
7 class QPixmap;
8 class QTranslator;
9 class Settings;
10 
11 #define cmdr (V1541Commander::instance())
12 
13 class V1541Commander: public QApplication
14 {
15     Q_OBJECT
16 
17     private:
18         class priv;
19         priv *d;
20 
21     private slots:
22         void newImage();
23         void open();
24 	void save();
25 	void exportZipcode();
26 	void exportZipcodeD64();
27 	void exportLynx();
28         void close();
29 	void showSettings();
30 	void about();
31         void exit();
32         void windowActivated();
33         void windowClosed();
34         void windowContentChanged();
35 	void windowSelectionChanged();
36         void showPetsciiWindow();
37 	void showLogWindow();
38 	void petsciiInput(ushort val);
39 	void fsOptions();
40 	void rewriteImage();
41 	void mapToLc();
42 	void newFile();
43 	void deleteFile();
44 	void logLineAppended(const QString &line);
45 	void newConnection();
46 	void disconnected();
47 	void readyRead();
48 
49     public:
50         V1541Commander(int &argc, char **argv, QTranslator *translator);
51         ~V1541Commander();
52         const QFont &c64font() const;
53         const QFont &menufont() const;
54         const QFont &statusfont() const;
55         const QPixmap &statusLedRed() const;
56         const QPixmap &statusLedYellow() const;
57         const QPixmap &statusLedGreen() const;
58         QAction &newAction();
59         QAction &openAction();
60 	QAction &saveAction();
61 	QAction &saveAsAction();
62 	QAction &exportZipcodeAction();
63 	QAction &exportZipcodeD64Action();
64 	QAction &exportLynxAction();
65         QAction &closeAction();
66 	QAction &settingsAction();
67 	QAction &aboutAction();
68         QAction &exitAction();
69         QAction &petsciiWindowAction();
70 	QAction &logWindowAction();
71 	QAction &fsOptionsAction();
72 	QAction &rewriteImageAction();
73 	QAction &autoMapLcAction();
74 	QAction &mapLcAction();
75 	QAction &newFileAction();
76 	QAction &deleteFileAction();
77         QAction &lowerCaseAction();
78 	const QString &instanceServerName() const;
79 	bool isPrimaryInstance() const;
80 	Settings &settings();
81 
82         static V1541Commander &instance();
83 
84     public slots:
85 	void open(const QString &filename);
86 	void saveAs();
87 	void show();
88 
89     signals:
90         void lowerCaseChanged(bool lowerCase);
91 	void autoMapToLcChanged(bool autoMap);
92 };
93 
94 #endif
95