Used for arranging views(menu item "Window->Arrange Views") and for creating sub-views of current view(button "Create sub-views") More...
#include <QtxWorkstackAction.h>

Public Member Functions | |
| QtxSplitDlg (QWidget *=0, QtxWorkstack *=NULL, QtxSplitDlgMode=ArrangeViews) | |
| Constructor. More... | |
| ~QtxSplitDlg () | |
| Destructor. More... | |
| int | getSplitMode () |
| Return current split mode. More... | |
| QList< int > | getViewsMode () |
| Return selected view modes. More... | |
Private Types | |
| enum | ViewMode { XYZ , XY , XZ , YZ } |
Private Slots | |
| void | onChangeIcons () |
| Called when number of views was changed and it's necessary to set others split icons. More... | |
| void | onSplitChanged (int) |
| Called when user selects an icon for split. More... | |
| void | onComboBoxChanged (int) |
| Called when user selects item of Combo Box. More... | |
| void | onPreviousViews () |
| Called when user taps previous button. More... | |
| void | onNextViews () |
| Called when user taps next button. More... | |
| void | onSynchronize () |
| Synchronize data and widgets. More... | |
| void | onCloseViews () |
| Called when check box "Close remaining views" is active. More... | |
| void | onStackViews () |
| Called when check box "Stack remaining views
in the last area" is active. More... | |
| void | onApply () |
| Apply dialog. More... | |
Private Member Functions | |
| QToolButton * | createSplitButton (int, int) |
| Create new QToolButton using icon of split mode. More... | |
| void | initialize () |
| Initialisation of widgets. More... | |
| void | valid () |
| Verification if all items necessary for dialog were selected. More... | |
Private Attributes | |
| QStackedLayout * | myStackedSplitLayout |
| QRadioButton * | myButton2Views |
| QRadioButton * | myButton3Views |
| QRadioButton * | myButton4Views |
| QPushButton * | myButtonApply |
| QPushButton * | myButtonPrevious |
| QPushButton * | myButtonNext |
| QList< QLabel * > | myLabels |
| QList< QComboBox * > | myComboBox |
| QListWidget * | myViewsList |
| QtxWorkstack * | myWorkstack |
| QtxSplitDlgMode | myDlgMode |
| int | myViewsNB |
| int | mySplitMode |
| int | myNBSelectedViews |
| bool | myIsCloseViews |
| QMap< QComboBox *, ViewMode > | myMapComboBoxMode |
| QMap< ViewMode, bool > | myMapModeIsBusy |
Used for arranging views(menu item "Window->Arrange Views") and for creating sub-views of current view(button "Create sub-views")
|
private |
| QtxSplitDlg::QtxSplitDlg | ( | QWidget * | parent = 0, |
| QtxWorkstack * | workstack = NULL, |
||
| QtxSplitDlgMode | mode = ArrangeViews |
||
| ) |
Constructor.
| parent | - parent object |
| workstack | - Work Stack widget |
| mode | - mode of current dialog |
References ArrangeViews, createSplitButton(), CreateSubViews, initialize(), myButton2Views, myButton3Views, myButton4Views, myButtonApply, myButtonNext, myButtonPrevious, myComboBox, myLabels, myMapComboBoxMode, myStackedSplitLayout, myViewsList, myWorkstack, next_xpm, onApply(), onChangeIcons(), onCloseViews(), onComboBoxChanged(), onNextViews(), onPreviousViews(), onSplitChanged(), onStackViews(), onSynchronize(), prev_xpm, and QtxWorkstack::windowList().
| QtxSplitDlg::~QtxSplitDlg | ( | ) |
Destructor.
|
private |
Create new QToolButton using icon of split mode.
| int QtxSplitDlg::getSplitMode | ( | ) |
Return current split mode.
References mySplitMode.
| QList< int > QtxSplitDlg::getViewsMode | ( | ) |
Return selected view modes.
References myComboBox, myMapComboBoxMode, and myViewsNB.
|
private |
Initialisation of widgets.
References ArrangeViews, CreateSubViews, myButton3Views, myButton4Views, myDlgMode, myMapModeIsBusy, myViewsNB, myWorkstack, onSynchronize(), and QtxWorkstack::windowList().
|
privateslot |
Apply dialog.
References ArrangeViews, Horizontal, QtxWorkstack::move(), myDlgMode, myIsCloseViews, mySplitMode, myViewsList, myViewsNB, myWorkstack, QtxWorkstack::Split(), QtxWorkstack::SplitMove, QtxWorkstack::stack(), Vertical, and QtxWorkstack::windowList().
|
privateslot |
Called when number of views was changed and it's necessary to set others split icons.
References myButton2Views, myButton3Views, myButton4Views, myButtonNext, myButtonPrevious, mySplitMode, myStackedSplitLayout, myViewsNB, and onSynchronize().
|
privateslot |
Called when check box "Close remaining views" is active.
References myIsCloseViews.
|
privateslot |
Called when user selects item of Combo Box.
References myComboBox, myMapComboBoxMode, and XYZ.
|
privateslot |
Called when user taps next button.
References myButtonNext, myButtonPrevious, and myStackedSplitLayout.
|
privateslot |
Called when user taps previous button.
References myButtonNext, myButtonPrevious, and myStackedSplitLayout.
|
privateslot |
Called when user selects an icon for split.
References mySplitMode, and valid().
|
privateslot |
Called when check box "Stack remaining views in the last area" is active.
References myIsCloseViews.
|
privateslot |
Synchronize data and widgets.
References ArrangeViews, CreateSubViews, myComboBox, myDlgMode, myLabels, myNBSelectedViews, myViewsList, myViewsNB, and valid().
|
private |
Verification if all items necessary for dialog were selected.
References ArrangeViews, isValid(), myButtonApply, myDlgMode, myNBSelectedViews, mySplitMode, and myViewsNB.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |