Make list of methods more readable.

--HG--
branch : develop
This commit is contained in:
dismine 2014-05-30 15:04:21 +03:00
parent 409e04bbcf
commit faa858a032

View File

@ -56,25 +56,32 @@ public:
void LoadPattern(const QString &curFile); void LoadPattern(const QString &curFile);
public slots: public slots:
void mouseMove(const QPointF &scenePos); void mouseMove(const QPointF &scenePos);
void ActionAroowTool(); void ActionAroowTool();
void ActionDraw(bool checked); void ActionDraw(bool checked);
void ActionDetails(bool checked); void ActionDetails(bool checked);
void ActionNewDraw(); void ActionNewDraw();
void ActionLayout(bool checked);
void ActionTable(bool checked);
void ActionHistory(bool checked);
void tableClosed();
void ClosedActionTable();
void ClosedActionHistory();
bool SaveAs(); bool SaveAs();
bool Save(); bool Save();
void Open(); void Open();
void Options(); void Options();
void NewPattern(); void NewPattern();
void ActionTable(bool checked);
void ActionHistory(bool checked);
void ActionLayout(bool checked);
void currentDrawChanged( int index ); void currentDrawChanged( int index );
void OptionDraw(); void OptionDraw();
void PatternWasModified();
void ChangedSize(const QString &text); void ChangedSize(const QString &text);
void ChangedHeight(const QString & text); void ChangedHeight(const QString & text);
void ClosedActionTable();
void ClosedActionHistory(); void PatternWasModified();
void ToolEndLine(bool checked); void ToolEndLine(bool checked);
void ToolLine(bool checked); void ToolLine(bool checked);
void ToolAlongLine(bool checked); void ToolAlongLine(bool checked);
@ -94,6 +101,7 @@ public slots:
void ToolPointOfIntersection(bool checked); void ToolPointOfIntersection(bool checked);
void ToolUnionDetails(bool checked); void ToolUnionDetails(bool checked);
void ToolCutArc(bool checked); void ToolCutArc(bool checked);
void ClosedDialogEndLine(int result); void ClosedDialogEndLine(int result);
void ClosedDialogLine(int result); void ClosedDialogLine(int result);
void ClosedDialogAlongLine(int result); void ClosedDialogAlongLine(int result);
@ -113,12 +121,13 @@ public slots:
void ClosedDialogUnionDetails(int result); void ClosedDialogUnionDetails(int result);
void ClosedDialogCutSpline(int result); void ClosedDialogCutSpline(int result);
void ClosedDialogCutArc(int result); void ClosedDialogCutArc(int result);
void About(); void About();
void AboutQt(); void AboutQt();
void ShowToolTip(const QString &toolTip);
void tableClosed();
void OpenRecentFile();
void PatternProperties(); void PatternProperties();
void ShowToolTip(const QString &toolTip);
void OpenRecentFile();
signals: signals:
/** /**
* @brief ModelChosen emit after calculation all details. * @brief ModelChosen emit after calculation all details.
@ -133,77 +142,61 @@ protected:
void Clear(); void Clear();
private: private:
Q_DISABLE_COPY(MainWindow) Q_DISABLE_COPY(MainWindow)
/** /** @brief ui keeps information about user interface */
* @brief ui keeps information about user interface
*/
Ui::MainWindow *ui; Ui::MainWindow *ui;
/**
* @brief pattern container with data (points, arcs, splines, spline paths, variables) /** @brief pattern container with data (points, arcs, splines, spline paths, variables) */
*/
VContainer *pattern; VContainer *pattern;
/**
* @brief doc dom document container /** @brief doc dom document container */
*/
VPattern *doc; VPattern *doc;
/**
* @brief tool current tool /** @brief tool current tool */
*/
Valentina::Tools tool; Valentina::Tools tool;
/**
* @brief currentScene pointer to current scene. /** @brief currentScene pointer to current scene. */
*/
VMainGraphicsScene *currentScene; VMainGraphicsScene *currentScene;
/**
* @brief sceneDraw draw scene. /** @brief sceneDraw draw scene. */
*/
VMainGraphicsScene *sceneDraw; VMainGraphicsScene *sceneDraw;
/**
* @brief sceneDetails details scene. /** @brief sceneDetails details scene. */
*/
VMainGraphicsScene *sceneDetails; VMainGraphicsScene *sceneDetails;
/**
* @brief mouseCoordinate pointer to label who show mouse coordinate. /** @brief mouseCoordinate pointer to label who show mouse coordinate. */
*/
QLabel *mouseCoordinate; QLabel *mouseCoordinate;
/**
* @brief helpLabel help show tooltip. /** @brief helpLabel help show tooltip. */
*/
QLabel *helpLabel; QLabel *helpLabel;
/**
* @brief view show current scene. /** @brief view show current scene. */
*/
VMainGraphicsView *view; VMainGraphicsView *view;
/**
* @brief isInitialized true after first show window. /** @brief isInitialized true after first show window. */
*/
bool isInitialized; bool isInitialized;
DialogIncrements *dialogTable; DialogIncrements *dialogTable;
DialogTool *dialogTool; DialogTool *dialogTool;
DialogHistory *dialogHistory; DialogHistory *dialogHistory;
/**
* @brief comboBoxDraws comboc who show name of pattern peaces. /** @brief comboBoxDraws comboc who show name of pattern peaces. */
*/
QComboBox *comboBoxDraws; QComboBox *comboBoxDraws;
/**
* @brief fileName name current pattern file. /** @brief fileName name current pattern file. */
*/
QString curFile; QString curFile;
/**
* @brief mode keep current draw mode. /** @brief mode keep current draw mode. */
*/
Valentina::Draws mode; Valentina::Draws mode;
/**
* @brief currentDrawIndex save current selected pattern peace. /** @brief currentDrawIndex save current selected pattern peace. */
*/
qint32 currentDrawIndex; qint32 currentDrawIndex;
/**
* @brief currentToolBoxIndex save current set of tools. /** @brief currentToolBoxIndex save current set of tools. */
*/
qint32 currentToolBoxIndex; qint32 currentToolBoxIndex;
/**
* @brief drawMode true if we current draw scene. /** @brief drawMode true if we current draw scene. */
*/
bool drawMode; bool drawMode;
enum { MaxRecentFiles = 5 }; enum { MaxRecentFiles = 5 };
QAction *recentFileActs[MaxRecentFiles]; QAction *recentFileActs[MaxRecentFiles];
QAction *separatorAct; QAction *separatorAct;
@ -217,12 +210,15 @@ private:
void SetEnableTool(bool enable); void SetEnableTool(bool enable);
void SaveCurrentScene(); void SaveCurrentScene();
void RestoreCurrentScene(); void RestoreCurrentScene();
void MinimumScrollBar();
template <typename Dialog, typename Func> template <typename Dialog, typename Func>
void SetToolButton(bool checked, Valentina::Tools t, const QString &cursor, const QString &toolTip, void SetToolButton(bool checked, Valentina::Tools t, const QString &cursor, const QString &toolTip,
Func closeDialogSlot); Func closeDialogSlot);
void MinimumScrollBar();
template <typename DrawTool> template <typename DrawTool>
void ClosedDialog(int result); void ClosedDialog(int result);
bool SavePattern(const QString &curFile); bool SavePattern(const QString &curFile);
void AutoSavePattern(); void AutoSavePattern();
void setCurrentFile(const QString &fileName); void setCurrentFile(const QString &fileName);