You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
/****************************************************************************
|
|
**
|
|
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
|
|
**
|
|
** This file is part of an example program for TQt. This example
|
|
** program may be used, distributed and modified without limitation.
|
|
**
|
|
*****************************************************************************/
|
|
|
|
#ifndef MENU_H
|
|
#define MENU_H
|
|
|
|
#include <tqwidget.h>
|
|
#include <tqmenubar.h>
|
|
#include <ntqlabel.h>
|
|
|
|
|
|
class MenuExample : public TQWidget
|
|
{
|
|
TQ_OBJECT
|
|
public:
|
|
MenuExample( TQWidget *parent=0, const char *name=0 );
|
|
|
|
public slots:
|
|
void open();
|
|
void news();
|
|
void save();
|
|
void closeDoc();
|
|
void undo();
|
|
void redo();
|
|
void normal();
|
|
void bold();
|
|
void underline();
|
|
void about();
|
|
void aboutTQt();
|
|
void printer();
|
|
void file();
|
|
void fax();
|
|
void printerSetup();
|
|
|
|
protected:
|
|
void resizeEvent( TQResizeEvent * );
|
|
|
|
signals:
|
|
void explain( const TQString& );
|
|
|
|
private:
|
|
void contextMenuEvent ( TQContextMenuEvent * );
|
|
|
|
|
|
TQMenuBar *menu;
|
|
TQLabel *label;
|
|
bool isBold;
|
|
bool isUnderline;
|
|
int boldID, underlineID;
|
|
};
|
|
|
|
|
|
#endif // MENU_H
|