mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-11 01:09:58 +02:00
Title block template editor: implemented "Save as" action.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1410 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <QtGui>
|
||||
#include "qet.h"
|
||||
#include "templateview.h"
|
||||
#include "templatelocation.h"
|
||||
class ModifyTitleBlockCellCommand;
|
||||
class TitleBlockTemplateCommand;
|
||||
class TitleBlockTemplateCellWidget;
|
||||
@@ -48,7 +49,7 @@ class QETTitleBlockTemplateEditor : public QMainWindow {
|
||||
/// menus TODO
|
||||
QMenu *file_menu_, *edit_menu_,/* *paste_from_menu_, *display_menu_, *tools_menu_,*/ *config_menu_, *help_menu_;
|
||||
/// actions
|
||||
QAction *save_, *quit_, *configure_, *about_qt_, *about_qet_, *merge_cells_, *split_cell_;
|
||||
QAction *save_, *save_as_, *quit_, *configure_, *about_qt_, *about_qet_, *merge_cells_, *split_cell_;
|
||||
/// Parent project of the currently edited template
|
||||
QETProject *parent_project_;
|
||||
/// Name of the currently edited template
|
||||
@@ -70,6 +71,7 @@ class QETTitleBlockTemplateEditor : public QMainWindow {
|
||||
|
||||
// methods
|
||||
public:
|
||||
TitleBlockTemplateLocation location() const;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -82,14 +84,17 @@ class QETTitleBlockTemplateEditor : public QMainWindow {
|
||||
void selectedCellsChanged(QList<TitleBlockCell *>);
|
||||
bool edit(QETProject *, const QString &);
|
||||
void editLogos();
|
||||
void save();
|
||||
void saveAs();
|
||||
void quit();
|
||||
|
||||
private slots:
|
||||
TitleBlockTemplateLocation getTitleBlockTemplateLocationFromUser();
|
||||
void pushCellUndoCommand(ModifyTitleBlockCellCommand *);
|
||||
void pushGridUndoCommand(TitleBlockTemplateCommand *);
|
||||
void pushUndoCommand(QUndoCommand *);
|
||||
void updateEditorTitle();
|
||||
void save();
|
||||
void quit();
|
||||
void saveAs(QETProject *, const QString &);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user