start adding popup dialogs
This commit is contained in:
@@ -35,76 +35,78 @@
|
||||
#include <qmainwindow.h>
|
||||
#include <qmap.h>
|
||||
|
||||
class PSubTextEdit;
|
||||
class PAdmin;
|
||||
class QAction;
|
||||
class QComboBox;
|
||||
class QTabWidget;
|
||||
class QTextEdit;
|
||||
class QPopupMenu;
|
||||
|
||||
class PTextEdit : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PTextEdit( QWidget *parent = 0, const char *name = 0 );
|
||||
PTextEdit( QWidget *parent = 0, const char *name = 0 );
|
||||
|
||||
private:
|
||||
void setupFileActions();
|
||||
void setupEditActions();
|
||||
void setupTextActions();
|
||||
void setupMusrActions();
|
||||
void setupHelpActions();
|
||||
void load( const QString &f );
|
||||
QTextEdit *currentEditor() const;
|
||||
void doConnections( QTextEdit *e );
|
||||
void setupFileActions();
|
||||
void setupEditActions();
|
||||
void setupTextActions();
|
||||
void setupMusrActions();
|
||||
void setupHelpActions();
|
||||
void load( const QString &f );
|
||||
PSubTextEdit *currentEditor() const;
|
||||
void doConnections( PSubTextEdit *e );
|
||||
|
||||
private slots:
|
||||
void fileNew();
|
||||
void fileOpen();
|
||||
void fileSave();
|
||||
void fileSaveAs();
|
||||
void filePrint();
|
||||
void fileClose();
|
||||
void fileExit();
|
||||
void fileNew();
|
||||
void fileOpen();
|
||||
void fileSave();
|
||||
void fileSaveAs();
|
||||
void filePrint();
|
||||
void fileClose();
|
||||
void fileExit();
|
||||
|
||||
void editUndo();
|
||||
void editRedo();
|
||||
void editSelectAll();
|
||||
void editCut();
|
||||
void editCopy();
|
||||
void editPaste();
|
||||
void editUndo();
|
||||
void editRedo();
|
||||
void editSelectAll();
|
||||
void editCut();
|
||||
void editCopy();
|
||||
void editPaste();
|
||||
|
||||
void textFamily( const QString &f );
|
||||
void textSize( const QString &p );
|
||||
void textFamily( const QString &f );
|
||||
void textSize( const QString &p );
|
||||
|
||||
void musrGetAsymetryDefault();
|
||||
void musrGetSingleHistoDefault();
|
||||
void musrCalcChisq();
|
||||
void musrFit();
|
||||
void musrView();
|
||||
void musrT0();
|
||||
void musrPrefs();
|
||||
void musrShowMlog( const QString &str );
|
||||
void musrGetAsymetryDefault();
|
||||
void musrGetSingleHistoDefault();
|
||||
void musrCalcChisq();
|
||||
void musrFit();
|
||||
void musrView();
|
||||
void musrT0();
|
||||
void musrPrefs();
|
||||
void musrShowMlog( const QString &str );
|
||||
|
||||
void helpContents();
|
||||
void helpAboutQt();
|
||||
void helpAbout();
|
||||
void helpContents();
|
||||
void helpAboutQt();
|
||||
void helpAbout();
|
||||
|
||||
void fontChanged( const QFont &f );
|
||||
void textChanged();
|
||||
void fontChanged( const QFont &f );
|
||||
void textChanged();
|
||||
|
||||
private:
|
||||
PAdmin *fAdmin;
|
||||
PAdmin *fAdmin;
|
||||
|
||||
bool fShowMlog;
|
||||
bool fShowMlog;
|
||||
|
||||
QComboBox *fComboFont;
|
||||
QComboBox *fComboSize;
|
||||
QComboBox *fComboFont;
|
||||
QComboBox *fComboSize;
|
||||
|
||||
QComboBox *fComboShowMlog;
|
||||
QComboBox *fComboShowMlog;
|
||||
|
||||
QTabWidget *fTabWidget;
|
||||
QMap<QTextEdit*, QString> fFilenames;
|
||||
QTabWidget *fTabWidget;
|
||||
QMap<PSubTextEdit*, QString> fFilenames;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user