diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-15 19:08:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-18 09:31:41 +0900 |
commit | a30f5359f03c3017fa19a6770fab32d25d22cb87 (patch) | |
tree | cb365dd7a1c3666e3f972c6cad04be7b8e846cba /examples/fonts/simple-tqfont-demo/viewer.h | |
parent | 25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff) | |
download | tqt-a30f5359.tar.gz tqt-a30f5359.zip |
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/fonts/simple-tqfont-demo/viewer.h')
-rw-r--r-- | examples/fonts/simple-tqfont-demo/viewer.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/examples/fonts/simple-tqfont-demo/viewer.h b/examples/fonts/simple-tqfont-demo/viewer.h new file mode 100644 index 000000000..cfc6be406 --- /dev/null +++ b/examples/fonts/simple-tqfont-demo/viewer.h @@ -0,0 +1,37 @@ + +#ifndef VIEWER_H +#define VIEWER_H + + +#include <tqwidget.h> +#include <tqfont.h> + +class TQTextView; +class TQPushButton; + +class Viewer : public TQWidget +{ +TQ_OBJECT + +public: + Viewer(); + +private slots: + void setDefault(); + void setSansSerif(); + void setItalics(); + +private: + void setFontSubstitutions(); + void layout(); + void showFontInfo( TQFont & ); + + TQTextView * greetings; + TQTextView * fontInfo; + + TQPushButton * defaultButton; + TQPushButton * sansSerifButton; + TQPushButton * italicsButton; +}; + +#endif |