QtxMainWindow::QtxMainWindow( QWidget* parent, const char* name, WFlags f )
: QMainWindow( parent, name, f ),
+myMode( -1 ),
myMenuBar( NULL ),
myStatusBar( NULL )
{
resize( win_w, win_h );
move( win_x, win_y );
- switch ( winState )
+ myMode = winState;
+
+ vis ? show() : hide();
+}
+
+void QtxMainWindow::show()
+{
+ int mode = myMode;
+
+ myMode = -1;
+
+ switch ( mode )
{
case WS_Normal:
showNormal();
case WS_Maximized:
showMaximized();
break;
- case WS_Hidden:
- vis = false;
- break;
}
- vis ? show() : hide();
+ QMainWindow::show();
}
int QtxMainWindow::relativeCoordinate( const int type, const int WH, const int wh ) const
virtual bool eventFilter( QObject*, QEvent* );
public slots:
+ virtual void show();
virtual void setAppropriate( QDockWindow*, bool );
protected:
int relativeCoordinate( const int, const int, const int ) const;
private:
+ int myMode;
QDockWindow* myMenuBar;
QDockWindow* myStatusBar;
};