2010-06-16 12:53:56 +00:00
|
|
|
//
|
|
|
|
// C++ Interface: cmainwindow
|
|
|
|
//
|
|
|
|
// Author: Oliver Groß <z.o.gross@gmx.de>, (C) 2008
|
|
|
|
//
|
|
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
|
|
//
|
|
|
|
#ifndef QCROSSEDITCMAINWINDOW_H
|
|
|
|
#define QCROSSEDITCMAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
|
|
|
class QTreeView;
|
|
|
|
// class QBitmap;
|
|
|
|
//class QMenu;
|
|
|
|
|
2011-12-21 11:49:33 +00:00
|
|
|
namespace libqnono {
|
2010-06-16 12:53:56 +00:00
|
|
|
class CCrossPackage;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace qcrossedit {
|
|
|
|
class CMainWindow : public QMainWindow {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
CMainWindow(QWidget * parent = 0);
|
|
|
|
~CMainWindow();
|
|
|
|
protected:
|
|
|
|
QTreeView * m_PicListView;
|
|
|
|
|
|
|
|
/* QMenu * m_FileMenu;
|
|
|
|
QMenu * m_EditMenu;*/
|
|
|
|
|
|
|
|
// QString m_File;
|
|
|
|
bool m_Unsaved;
|
|
|
|
|
2011-12-21 11:49:33 +00:00
|
|
|
libqnono::CCrossPackage * m_Package;
|
2010-06-16 12:53:56 +00:00
|
|
|
|
|
|
|
/* QBitmap * m_Pics;
|
|
|
|
QString * m_PackName;*/
|
|
|
|
|
|
|
|
inline void setupUi();
|
|
|
|
|
|
|
|
void closeEvent(QCloseEvent * event);
|
|
|
|
|
|
|
|
bool promtUnsaved();
|
|
|
|
protected slots:
|
|
|
|
void fileNew();
|
|
|
|
void fileOpen();
|
|
|
|
bool fileSave();
|
|
|
|
bool fileSaveAs();
|
|
|
|
|
|
|
|
void editCreateEmpty();
|
|
|
|
void editCreateFromPicture();
|
2011-12-21 11:49:33 +00:00
|
|
|
void editRename();
|
|
|
|
void editSetTimeout();
|
2010-06-16 12:53:56 +00:00
|
|
|
void editDelete();
|
|
|
|
void editSetPackageName();
|
|
|
|
|
|
|
|
void helpAbout();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|