mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 10:30:53 +01:00
ElementEditor: qtelementeditor.h indentation
This commit is contained in:
committed by
Laurent Trinques
parent
b3a74a8315
commit
3d1e30b24e
@@ -45,47 +45,47 @@ class QETElementEditor : public QETMainWindow {
|
|||||||
|
|
||||||
// attributes
|
// attributes
|
||||||
private:
|
private:
|
||||||
/// whether the editor is "read-only"
|
/// whether the editor is "read-only"
|
||||||
bool read_only;
|
bool read_only;
|
||||||
/// menus
|
/// menus
|
||||||
QMenu *file_menu, *edit_menu, *paste_from_menu, *display_menu, *tools_menu;
|
QMenu *file_menu, *edit_menu, *paste_from_menu, *display_menu, *tools_menu;
|
||||||
/// view widget for the editing scene
|
/// view widget for the editing scene
|
||||||
ElementView *m_view;
|
ElementView *m_view;
|
||||||
/// editing scene
|
/// editing scene
|
||||||
ElementScene *m_elmt_scene;
|
ElementScene *m_elmt_scene;
|
||||||
/// container for widgets dedicated to primitive edition
|
/// container for widgets dedicated to primitive edition
|
||||||
QDockWidget *m_tools_dock;
|
QDockWidget *m_tools_dock;
|
||||||
/// Stack of widgets for tools_dock
|
/// Stack of widgets for tools_dock
|
||||||
QStackedWidget *m_tools_dock_stack;
|
QStackedWidget *m_tools_dock_stack;
|
||||||
/// label displayed when several primitives are selected
|
/// label displayed when several primitives are selected
|
||||||
QLabel *m_default_informations;
|
QLabel *m_default_informations;
|
||||||
/// Hash associating primitive names with their matching edition widget
|
/// Hash associating primitive names with their matching edition widget
|
||||||
QHash<QString, ElementItemEditor *> m_editors;
|
QHash<QString, ElementItemEditor *> m_editors;
|
||||||
/// container for the undo list
|
/// container for the undo list
|
||||||
QDockWidget *m_undo_dock;
|
QDockWidget *m_undo_dock;
|
||||||
/// Container for the list of existing primitives
|
/// Container for the list of existing primitives
|
||||||
QDockWidget *m_parts_dock;
|
QDockWidget *m_parts_dock;
|
||||||
/// List of primitives
|
/// List of primitives
|
||||||
QListWidget *m_parts_list;
|
QListWidget *m_parts_list;
|
||||||
/// actions for the "file" menu
|
/// actions for the "file" menu
|
||||||
QAction *new_element, *open, *open_dxf, *open_file, *save, *save_as, *save_as_file, *reload, *quit;
|
QAction *new_element, *open, *open_dxf, *open_file, *save, *save_as, *save_as_file, *reload, *quit;
|
||||||
/// actions for the "edit" menu
|
/// actions for the "edit" menu
|
||||||
QAction *selectall, *deselectall, *inv_select;
|
QAction *selectall, *deselectall, *inv_select;
|
||||||
QAction *cut, *copy, *paste, *paste_in_area, *paste_from_file, *paste_from_elmt;
|
QAction *cut, *copy, *paste, *paste_in_area, *paste_from_file, *paste_from_elmt;
|
||||||
QAction *undo, *redo;
|
QAction *undo, *redo;
|
||||||
QAction *edit_delete, *edit_size_hs, *edit_names, *edit_author, *m_edit_properties;
|
QAction *edit_delete, *edit_size_hs, *edit_names, *edit_author, *m_edit_properties;
|
||||||
/// toolbars
|
/// toolbars
|
||||||
QToolBar *parts_toolbar, *main_toolbar, *view_toolbar, *depth_toolbar, *element_toolbar;
|
QToolBar *parts_toolbar, *main_toolbar, *view_toolbar, *depth_toolbar, *element_toolbar;
|
||||||
/// Action group
|
/// Action group
|
||||||
QActionGroup *parts, *m_zoom_ag, *m_depth_action_group;
|
QActionGroup *parts, *m_zoom_ag, *m_depth_action_group;
|
||||||
/// minimum window title
|
/// minimum window title
|
||||||
QString min_title;
|
QString min_title;
|
||||||
/// filename of the currently edited element
|
/// filename of the currently edited element
|
||||||
QString filename_;
|
QString filename_;
|
||||||
/// location of the currently edited element
|
/// location of the currently edited element
|
||||||
ElementsLocation location_;
|
ElementsLocation location_;
|
||||||
/// whether the currently edited element comes from a file or a location
|
/// whether the currently edited element comes from a file or a location
|
||||||
bool opened_from_file;
|
bool opened_from_file;
|
||||||
|
|
||||||
// methods
|
// methods
|
||||||
public:
|
public:
|
||||||
@@ -113,8 +113,8 @@ class QETElementEditor : public QETMainWindow {
|
|||||||
void saveToLocation(ElementsLocation loc);
|
void saveToLocation(ElementsLocation loc);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void closeEvent(QCloseEvent *) override;
|
void closeEvent(QCloseEvent *) override;
|
||||||
void firstActivation(QEvent *) override;
|
void firstActivation(QEvent *) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool canClose();
|
bool canClose();
|
||||||
@@ -132,28 +132,28 @@ class QETElementEditor : public QETMainWindow {
|
|||||||
void addDynamicTextField();
|
void addDynamicTextField();
|
||||||
void UncheckAddPrimitive();
|
void UncheckAddPrimitive();
|
||||||
|
|
||||||
void slot_new();
|
void slot_new();
|
||||||
void slot_open();
|
void slot_open();
|
||||||
void slot_openDxf();
|
void slot_openDxf();
|
||||||
void slot_openFile();
|
void slot_openFile();
|
||||||
void openRecentFile(const QString &);
|
void openRecentFile(const QString &);
|
||||||
void openElement(const QString &);
|
void openElement(const QString &);
|
||||||
void slot_reload();
|
void slot_reload();
|
||||||
bool slot_save();
|
bool slot_save();
|
||||||
bool slot_saveAs();
|
bool slot_saveAs();
|
||||||
bool slot_saveAsFile();
|
bool slot_saveAsFile();
|
||||||
void slot_setRubberBandToView();
|
void slot_setRubberBandToView();
|
||||||
void slot_setNoDragToView();
|
void slot_setNoDragToView();
|
||||||
void slot_updateInformations();
|
void slot_updateInformations();
|
||||||
void slot_updateMenus();
|
void slot_updateMenus();
|
||||||
void slot_updateTitle();
|
void slot_updateTitle();
|
||||||
void slot_createPartsList();
|
void slot_createPartsList();
|
||||||
void slot_updatePartsList();
|
void slot_updatePartsList();
|
||||||
void slot_updateSelectionFromPartsList();
|
void slot_updateSelectionFromPartsList();
|
||||||
bool checkElement();
|
bool checkElement();
|
||||||
void pasteFromFile();
|
void pasteFromFile();
|
||||||
void pasteFromElement();
|
void pasteFromElement();
|
||||||
void updateCurrentPartEditor();
|
void updateCurrentPartEditor();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user