コード例 #1
0
MiniSplitter::MiniSplitter(QWidget *parent)
    : QSplitter(parent)
{
    setHandleWidth(1);
    setChildrenCollapsible(false);
    setProperty("minisplitter", true);
}
コード例 #2
0
TransferFunctionEditorWidget::TransferFunctionEditorWidget(QWidget *parent) :  
  QSplitter(Qt::Vertical, parent)
{
  m_parent = parent;

  m_splineEditorWidget = new SplineEditorWidget(this);
  m_gradientEditorWidget = new GradientEditorWidget(this);

  addWidget(m_splineEditorWidget);
  addWidget(m_gradientEditorWidget);

  QList<int> ssz;
  ssz << 150 << 75;
  setSizes(ssz);

  setChildrenCollapsible(false);

  QObject::connect(m_splineEditorWidget, SIGNAL(giveHistogram(int)),
		   this, SLOT(changeHistogram(int)));

  QObject::connect(m_gradientEditorWidget, SIGNAL(gradientChanged(QGradientStops)),
		   m_splineEditorWidget, SLOT(setGradientStops(QGradientStops)));

  QObject::connect(m_splineEditorWidget, SIGNAL(selectEvent(QGradientStops)),
		   m_gradientEditorWidget, SLOT(setColorGradient(QGradientStops)));

  QObject::connect(m_splineEditorWidget, SIGNAL(deselectEvent()),
		   m_gradientEditorWidget, SLOT(resetColorGradient()));

  QObject::connect(m_splineEditorWidget, SIGNAL(transferFunctionChanged(QImage)),
		   this, SLOT(transferFunctionChanged(QImage)));
}
コード例 #3
0
TransferFunctionEditorWidget::TransferFunctionEditorWidget(QWidget *parent) :
  QSplitter(Qt::Vertical, parent)
{

  m_splineEditorWidget = new SplineEditorWidget(this);
  m_gradientEditorWidget = new GradientEditorWidget(this);

  addWidget(m_splineEditorWidget);
  addWidget(m_gradientEditorWidget);

  setChildrenCollapsible(false);

  QObject::connect(m_splineEditorWidget, SIGNAL(giveHistogram(int)),
		   SLOT(changeHistogram(int)));

  QObject::connect(m_gradientEditorWidget, SIGNAL(gradientChanged(QGradientStops)),
		   m_splineEditorWidget, SLOT(setGradientStops(QGradientStops)));

  QObject::connect(m_splineEditorWidget, SIGNAL(selectEvent(QGradientStops)),
		   m_gradientEditorWidget, SLOT(setColorGradient(QGradientStops)));

  QObject::connect(m_splineEditorWidget, SIGNAL(transferFunctionChanged(QImage)),
		   SLOT(transferFunctionChanged(QImage)));

  QObject::connect(m_splineEditorWidget, SIGNAL(applyUndo(bool)),
		   SIGNAL(applyUndo(bool)));

  QObject::connect(m_gradientEditorWidget, SIGNAL(applyUndo(bool)),
		   SIGNAL(applyUndo(bool)));
}
コード例 #4
0
	FooSettingsManagerWindow::FooSettingsManagerWindow(QWidget *parent) : QSplitter(parent)
	{
		setChildrenCollapsible(false);

		treeWidget = new QTreeWidget(this);
		treeWidget->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Ignored);
		treeWidget->setHeaderHidden(true);
		addWidget(treeWidget);

		layout = new QGridLayout(this);
		widget = new QWidget(this);
		widget->setLayout(layout);
		addWidget(widget);

		cancelButton = new QPushButton(tr("&Cancel"),this);
		cancelButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
		spacer = new QSpacerItem(200, 1, QSizePolicy::Expanding, QSizePolicy::Minimum);
		okButton = new QPushButton(tr("&OK"), this);
		applyButton = new QPushButton(tr("&Apply"), this);

		layout->addWidget(cancelButton, 1, 0, 1, 1, Qt::AlignBottom);
		layout->addItem(spacer, 1, 1, 1, 1);
		layout->addWidget(okButton, 1, 2, 1, 1, Qt::AlignBottom);
		layout->addWidget(applyButton, 1, 3, 1, 1, Qt::AlignBottom);
	}
コード例 #5
0
MiniSplitter::MiniSplitter(Qt::Orientation orientation)
    : QSplitter(orientation)
{
    setHandleWidth(1);
    setChildrenCollapsible(false);
    setProperty("minisplitter", true);
}
コード例 #6
0
ファイル: main.cpp プロジェクト: kazniato/Lemonade
int main(int argc, char *argv[])
{
  QApplication app(argc, argv);
  new Kernel; // will be deleted by the QQmlEngine
  qmlRegisterSingletonType<Kernel>("Lemonade", 1, 0, "Kernel",
                                    kernelInstanceProvider);
  QQmlEngine engine;
  auto window_color = app.palette().color(QPalette::Window);
  QMainWindow window;
  window.setWindowTitle(window.tr("Lemonade"));
  window.setMenuBar(initMenuBar());
  auto central = new QWidget;
  auto layout = new QHBoxLayout;
  layout->setSpacing(0);
  layout->setContentsMargins(0, 0, 0, 0);
  auto tool_button_bar = new QQuickWidget(&engine, central);
  tool_button_bar->setClearColor(window_color);
  tool_button_bar->setSource(
      QUrl(QLatin1String("qrc:/content/ToolButtonBar.qml")));
  layout->addWidget(tool_button_bar);
  auto hsplitter = new QSplitter(Qt::Horizontal);
  hsplitter->setChildrenCollapsible(false);
  hsplitter->addWidget(initCanvasView());
  layout->addWidget(hsplitter);
  auto vsplitter = new QSplitter(Qt::Vertical);
  vsplitter->addWidget(initNavigatorPanel());
  vsplitter->addWidget(initLayerTreePanel());
  hsplitter->addWidget(vsplitter);
  central->setLayout(layout);
  window.setCentralWidget(central);
  window.resize(800, 600);
  window.show();
  return app.exec();
}
コード例 #7
0
ファイル: qsplitter.cpp プロジェクト: Fale/qtmoko
/*!
    Restores the splitter's layout to the \a state specified.
    Returns true if the state is restored; otherwise returns false.

    Typically this is used in conjunction with QSettings to restore the size
    from a past session. Here is an example:

    Restore the splitters's state:

    \snippet doc/src/snippets/splitter/splitter.cpp 2

    A failure to restore the splitter's layout may result from either
    invalid or out-of-date data in the supplied byte array.

    \sa saveState()
*/
bool QSplitter::restoreState(const QByteArray &state)
{
    Q_D(QSplitter);
    int version = 0;
    QByteArray sd = state;
    QDataStream stream(&sd, QIODevice::ReadOnly);
    QList<int> list;
    bool b;
    qint32 i;
    qint32 marker;
    qint32 v;

    stream >> marker;
    stream >> v;
    if (marker != SplitterMagic || v != version)
        return false;

    stream >> list;
    d->setSizes_helper(list, false);

    stream >> b;
    setChildrenCollapsible(b);

    stream >> i;
    setHandleWidth(i);

    stream >> b;
    setOpaqueResize(b);

    stream >> i;
    setOrientation(Qt::Orientation(i));
    d->doResize();

    return true;
}
コード例 #8
0
ファイル: contextwidget.cpp プロジェクト: pmattern/cantata
ThinSplitter::ThinSplitter(QWidget *parent)
    : QSplitter(parent)
{
    setChildrenCollapsible(true);
    setOrientation(Qt::Horizontal);
    resetAct=new QAction(i18n("Reset Spacing"), this);
    connect(resetAct, SIGNAL(triggered()), this, SLOT(reset()));
    setHandleWidth(0);
}
コード例 #9
0
WLayoutChatLog::WLayoutChatLog(ITreeItemChatLogEvents * pContactOrGroupParent)
	{
	Assert(pContactOrGroupParent != NULL);
	m_pContactOrGroup_NZ = pContactOrGroupParent;
	m_pContactParent_YZ = (pContactOrGroupParent->EGetRuntimeClass() == RTI(TContact)) ? (TContact *)pContactOrGroupParent : NULL;
	m_pwFindText = NULL;
	m_tidChatStateComposing = d_zNA;

	#ifdef COMPILE_WITH_CHATLOG_HTML
	m_pwChatLog_NZ = new WChatLogHtml(this, pContactOrGroupParent);
	#else
	m_pwChatLog_NZ = new WChatLog(this, pContactOrGroupParent);
	#endif
	setStretchFactor(0, 5);
	/*
	if (pContactParent_YZ != NULL)
		{
		if (pContactParent_YZ->m_uFlagsContact & TContact::FC_kfContactNeedsInvitation)
			WidgetContactInvitation_Show();
		if (pContactParent_YZ->m_uFlagsContact & TContact::FC_kfContactUnsolicited)
			Layout_NoticeAuxiliaryAdd(PA_DELETING new WNoticeContactUnsolicited(pContactParent_YZ));
		}
	*/

	m_pwChatInput = new WChatInput(this);

	QWidget * pWidget = new QWidget(this);
//	pWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
	OLayoutHorizontal * pLayoutMessageInput = new OLayoutHorizontal(pWidget);
	pLayoutMessageInput->setContentsMargins(0, 0, 5, 0);
	pLayoutMessageInput->addWidget(m_pwChatInput);
	OLayoutVertical * pLayoutButtons = new OLayoutVerticalAlignTop(pLayoutMessageInput);
	pLayoutButtons->setSpacing(0);
	m_pwButtonSendBitcoin = new WButtonIconForToolbar(eMenuIcon_Bitcoin, "Send Bitcoins");
	pLayoutButtons->addWidget(m_pwButtonSendBitcoin);
	connect(m_pwButtonSendBitcoin, SIGNAL(clicked()), this, SLOT(SL_ButtonSendBitcoin()));

	WButtonIconForToolbar * pwButton = new WButtonIconForToolbar(eMenuIcon_FileUpload, "Send File\n\nYou may drag and drop the file, or copy & paste the file from Windows Explorer");
	pLayoutButtons->addWidget(pwButton);
	connect(pwButton, SIGNAL(clicked()), this, SLOT(SL_ButtonSendFile()));

	pwButton = new WButtonIconForToolbar(eMenuIcon_ContactAdd, "Add people to the converstation");
	pLayoutButtons->addWidget(pwButton);
	connect(pwButton, SIGNAL(clicked()), this, SLOT(SL_ButtonAddContacts()));

	pwButton = new WButtonIconForToolbar(eMenuIcon_Vote, "Send a ballot to the group to vote");
	pLayoutButtons->addWidget(pwButton);
	connect(pwButton, SIGNAL(clicked()), this, SLOT(SL_ButtonSendBallot()));

	setChildrenCollapsible(false);		// Do not allow the widget WChatInput() to collapse; it would be very confusing to the user

//	addWidget(PA_CHILD m_pwChatLog);
	//addWidget(PA_CHILD new WFindText(m_pwChatLog->document()));
//	addWidget(PA_CHILD m_pwChatInput);
	setAcceptDrops(true);
	}
コード例 #10
0
toResultExtent::toResultExtent(QWidget *parent, const char *name)
        : QSplitter(Qt::Vertical, parent)
{
    setObjectName(name);
    Graph = new toStorageExtent(this);
    List = new toResultTableView(true, false, this);
    List->setSQL(SQLListExtents);

    setChildrenCollapsible(false);
}
コード例 #11
0
void QMacSplitter::Load(QString Tag)
{
    QSettings s;
    QByteArray ba=s.value(Tag+"/state").toByteArray();
    if (!ba.isEmpty())
    {
        this->restoreState(ba);
        collapseIndex=s.value(Tag+"/index").toInt();
        expandIndex=s.value(Tag+"/expandindex").toInt();
        expandedMaxSize=s.value(Tag+"/maxsize").toSize();
        expandedMinSize=s.value(Tag+"/minsize").toSize();
        expandedSize=s.value(Tag+"/size").toInt();
        if (collapseIndex>-1) widget(collapseIndex)->setMaximumSize(0,0);
        setChildrenCollapsible(false);
    }
}
コード例 #12
0
int QSplitter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFrame::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Qt::Orientation*>(_v) = orientation(); break;
        case 1: *reinterpret_cast< bool*>(_v) = opaqueResize(); break;
        case 2: *reinterpret_cast< int*>(_v) = handleWidth(); break;
        case 3: *reinterpret_cast< bool*>(_v) = childrenCollapsible(); break;
        }
        _id -= 4;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break;
        case 1: setOpaqueResize(*reinterpret_cast< bool*>(_v)); break;
        case 2: setHandleWidth(*reinterpret_cast< int*>(_v)); break;
        case 3: setChildrenCollapsible(*reinterpret_cast< bool*>(_v)); break;
        }
        _id -= 4;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 4;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
コード例 #13
0
void QMacSplitter::init()
{
    setChildrenCollapsible(false);
    setAutoFillBackground(true);
    anim=new QParallelAnimationGroup(this);
    a1=new QPropertyAnimation(this);
    a2=new QPropertyAnimation(this);
    anim->addAnimation(a1);
    anim->addAnimation(a2);
    connect (anim,SIGNAL(finished()),this,SLOT(animationFinished()));
    a1->setDuration(400);
    a1->setEasingCurve(QEasingCurve::Linear);
    a2->setDuration(400);
    a2->setEasingCurve(QEasingCurve::Linear);
    expandedSize=150;
    collapseIndex=-1;
    expandIndex=-1;
}
コード例 #14
0
ファイル: CChanceTreeView.cpp プロジェクト: raymyers/gnat
////////////////////////////////////////////////////////////////////////////////
/// CChanceTreeView::CChanceTreeView
///
/// @description    This is the default constructor which initializes member
///                 variables.
/// @pre            None
/// @post           Class variables are initialized.
///
/// @param parent:  This is a pointer to the parent QWidget.
///
/// @limitations    None
///
////////////////////////////////////////////////////////////////////////////////
CChanceTreeView::CChanceTreeView( QWidget *parent )
: IGNATView( parent )
{
    m_graphView = new CChanceTreeGraphView( this );
    m_traceView = new CChanceTreeTraceView( this );
    m_traceView->setGraphModel( m_graphView->getModel() );
    //m_traceView->hide();

    addWidget( m_graphView );
    addWidget( m_traceView );

    setChildrenCollapsible( false );

    QList<int> sizes;
    sizes.append(200);
    sizes.append(200);

    setSizes( sizes );

    connect( m_graphView, SIGNAL(quickEditOff()), this, SLOT(quickEditOff()));
}
コード例 #15
0
IngredientMatcherDialog::IngredientMatcherDialog( QWidget *parent, RecipeDB *db ) : QSplitter( parent )
{
	// Initialize internal variables
	database = db;

	//Design the dialog

	setOrientation( Qt::Vertical );
	setChildrenCollapsible( false );
	
	QWidget * upperBox = new QWidget( this );

	// Ingredient list
	QHBoxLayout *layout2 = new QHBoxLayout;
	layout2->setObjectName( "layout2" );

	allIngListView = new KreListView( this, QString(), true, 0 );
	StdIngredientListView *list_view = new StdIngredientListView(allIngListView,database);
	list_view->setSelectionMode( Q3ListView::Multi );
	allIngListView->setListView(list_view);
	layout2->addWidget( allIngListView );
	allIngListView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );

	QVBoxLayout *layout1 = new QVBoxLayout;
	layout1->addStretch();
	layout1->setObjectName( "layout1" );

	addButton = new KPushButton;
	addButton->setObjectName( "addButton" );
	addButton->setIcon( KIcon( "arrow-right" ) );
	addButton->setFixedSize( QSize( 32, 32 ) );
	layout1->addWidget( addButton );

	removeButton = new KPushButton;
	removeButton->setObjectName( "removeButton" );
	removeButton->setIcon( KIcon( "arrow-left" ) );
	removeButton->setFixedSize( QSize( 32, 32 ) );
	layout1->addWidget( removeButton );
	layout1->addStretch();
	layout2->addLayout( layout1 );

	ingListView = new KreListView( this, QString(), true );
	ingListView->listView() ->addColumn( i18nc( "@title:column", "Ingredient (required?)" ) );
	ingListView->listView() ->addColumn( i18nc( "@title:column", "Amount Available" ) );
	layout2->addWidget( ingListView );
	upperBox->setLayout( layout2 );
	addWidget( upperBox );
	ingListView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );

	KVBox * lowerBox = new KVBox( this );

	// Box to select allowed number of missing ingredients
	missingBox = new KHBox( lowerBox );
	missingNumberLabel = new QLabel( missingBox );
	missingNumberLabel->setText( i18nc(
		"@label:spinbox Number of missing ingredients allowed when doing a search by ingredients",
		"Missing ingredients allowed:" ) );
	missingNumberSpinBox = new KIntSpinBox( missingBox );
	missingNumberSpinBox->setMinimum( -1 );
	missingNumberSpinBox->setSpecialValueText( i18nc(
		"@item Any amount of ingredients missing when doing a search by ingredients", "Any" ) );

	// Found recipe list
	recipeListView = new KreListView( lowerBox, i18nc( "@title", "Matching Recipes" ), false, 1, missingBox );
	recipeListView->listView() ->setAllColumnsShowFocus( true );

	recipeListView->listView() ->addColumn( i18nc( "@title:column Recipe Title", "Title" ) );

	KConfigGroup config( KGlobal::config(), "Advanced" );
	bool show_id = config.readEntry( "ShowID", false );
	recipeListView->listView() ->addColumn( "Id" , show_id ? -1 : 0 );

	recipeListView->listView()->addColumn( i18nc( "@title:column Missing ingredients in a search result",
		"Missing Ingredients" ) );

	recipeListView->listView() ->setSorting( -1 );
	recipeListView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );

	actionHandler = new RecipeActionsHandler( recipeListView->listView(), database );

	KHBox *buttonBox = new KHBox( lowerBox );

	okButton = new KPushButton( buttonBox );
	okButton->setIcon( KIcon( "dialog-ok" ) );
	okButton->setText( i18nc( "@action:button", "Find matching recipes" ) );

	//buttonBox->layout()->addItem( new QSpacerItem( 10,10, QSizePolicy::MinimumExpanding, QSizePolicy::Fixed ) );

	clearButton = new KPushButton( buttonBox );
	clearButton->setIcon( KIcon( "edit-clear" ) );
	clearButton->setText( i18nc( "@action:button Clear search criteria", "Clear" ) );

	addWidget( lowerBox );

	// Connect signals & slots
	connect ( okButton, SIGNAL( clicked() ), this, SLOT( findRecipes() ) );
	connect ( clearButton, SIGNAL( clicked() ), recipeListView->listView(), SLOT( clear() ) );
	connect ( clearButton, SIGNAL( clicked() ), this, SLOT( unselectIngredients() ) );
	connect( recipeListView->listView(), SIGNAL( selectionChanged() ), this, SLOT( haveSelectedItems() ) );
	connect ( actionHandler, SIGNAL( recipeSelected( int, int ) ), SIGNAL( recipeSelected( int, int ) ) );
	connect( addButton, SIGNAL( clicked() ), this, SLOT( addIngredient() ) );
	connect( removeButton, SIGNAL( clicked() ), this, SLOT( removeIngredient() ) );
	connect( ingListView->listView(), SIGNAL( doubleClicked( Q3ListViewItem*, const QPoint &, int ) ), SLOT( itemRenamed( Q3ListViewItem*, const QPoint &, int ) ) );
}
RSplitter::RSplitter(Qt::Orientation orientation, QWidget *parent) : QSplitter(orientation, parent)
{
    setChildrenCollapsible(false);
    setHandleWidth(3);
}
コード例 #17
0
ファイル: thinsplitter.cpp プロジェクト: CDrummond/madrigal
Ui::ThinSplitter::ThinSplitter(QWidget *parent)
    : QSplitter(parent) {
    setChildrenCollapsible(false);
    setOrientation(Qt::Horizontal);
    setHandleWidth(0);
}
コード例 #18
0
CWizSplitter::CWizSplitter(QWidget* parent /*= 0*/)
    : QSplitter(parent)
{
    setHandleWidth(1);
    setChildrenCollapsible(false);
}
コード例 #19
0
QTabSplitter::QTabSplitter(Qt::Orientation orientation, QWidget* parent, QTabWindow* tabWindow) : QSplitter(orientation, parent), tabWindow(tabWindow)
{
  setChildrenCollapsible(false);
}
コード例 #20
0
QVisibleHandleSplitter::QVisibleHandleSplitter(Qt::Orientation orientation, QWidget *parent) :
    QSplitter(orientation, parent)
{
    setChildrenCollapsible(false);
}
コード例 #21
0
QSplitter *DockTabMotherWidget::createSplitter(Qt::Orientation orientation)
{
	auto splitter = new QSplitter(orientation);
	splitter->setChildrenCollapsible(false);
	return splitter;
}
コード例 #22
0
ファイル: listviews.cpp プロジェクト: PriKalra/COPASI
/*********ListViews::ListViews(QWidget *parent, const char *name)************
 **
 ** Parameters:- 1. QWidget* :- The parameter needed by the base class i.e QSplitter
 **              2. char* :- The name parameter needed by the base class, i.e., QSplitter
 ** Returns  :-  It does not return anything size its 2 argument constructor
 ** Description:- This is the constructor of the ListViews and is used to
 **               set up all the requirement and initialization of the
 **               components in the code.
 ************************************************************/
ListViews::ListViews(QWidget *parent, const char *name):

    QSplitter(Qt::Horizontal, parent),
    mpDataModelGUI(NULL),
    mpTreeDM(NULL),
    mpTreeSortDM(NULL),
    mpMathModel(NULL),
    mpCurrentWidget(NULL),
    mCurrentItemKey(),
    mpCMCAResultWidget(NULL),
    mpCQMCAWidget(NULL),
    mpCQLNAWidget(NULL),
    mpCLNAResultWidget(NULL),
    mpCompartmentsWidget(NULL),
    compartmentsWidget1(NULL),
    defaultWidget(NULL),
    differentialEquations(NULL),
    eventsWidget(NULL),
    eventWidget1(NULL),
    mpFunctionsWidget(NULL),
    functionWidget1(NULL),
    lyapWidget(NULL),
    lyapResultWidget(NULL),
    mpSpeciesWidget(NULL),
    metabolitesWidget1(NULL),
    modelWidget(NULL),
    mpGlobalQuantitiesWidget(NULL),
    mpModelValueWidget(NULL),
    mpEFMWidget(NULL),
    mpEFMResultWidget(NULL),
    mpMoietiesTaskResult(NULL),
    mpMoietiesTaskWidget(NULL),
    optimizationWidget(NULL),
    optResultWidget(NULL),
    paramFittingWidget(NULL),
    mpFittingResultWidget(NULL),
    mpParameterOverviewWidget(NULL),
    mpParameterSetsWidget(NULL),
    mpParameterSetWidget(NULL),
    mpPlotsWidget(NULL),
    mpPlotSubwidget(NULL),
    mpReactionsWidget(NULL),
    reactionsWidget1(NULL),
    scanWidget(NULL),
    sensWidget(NULL),
    sensResultWidget(NULL),
    stateWidget(NULL),
    steadystateWidget(NULL),
    mpReportsWidget(NULL),
    tableDefinition1(NULL),
    timeSeriesWidget(NULL),
    trajectoryWidget(NULL),
    tssaWidget(NULL),
    tssaResultWidget(NULL),
    crossSectionTaskWidget(NULL),
    crossSectionTimeSeriesWidget(NULL),
#ifdef COPASI_NONLIN_DYN_OSCILLATION
    oscillationTaskWidget(NULL),
#endif
#ifdef COPASI_DEBUG
    mpUpdatesWidget(NULL),
#endif
    mpLayoutsWidget(NULL),
    mpMathMatrixWidget(NULL)
{
    // Qt3 support to Qt4 reference states . . .
    // "Use the QSizePolicy() constructor and call the setHorizontalStretch(), setVerticalStretch(), and setHeightForWidth() functions instead."
    // The stretch was set at "1 ,1", before, but maybe it doesn't need to be explicitly set now.
    this->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred));

    setChildrenCollapsible(false);

    // create a new QListview to be displayed on the screen..and set its property
    mpTreeView = new CQBrowserPane(this);
    mpTreeDM = new CQBrowserPaneDM(this);
    mpTreeSortDM = new QSortFilterProxyModel(this);

    mpTreeSortDM->setSourceModel(mpTreeDM);
    mpTreeSortDM->setSortRole(Qt::EditRole);
    mpTreeSortDM->setSortCaseSensitivity(Qt::CaseInsensitive);
    // pSortModel->sort(0, Qt::AscendingOrder);

    mpTreeView->setModel(mpTreeSortDM);
    mpTreeView->sortByColumn(0, Qt::AscendingOrder);

    mpStackedWidget = new QStackedWidget(this);
    addWidget(mpTreeView);
    addWidget(mpStackedWidget);

    if (!opaqueResize())
        setOpaqueResize();

    defaultWidget = new CQSplashWidget(this);
    mpStackedWidget->addWidget(defaultWidget);

    mpCurrentWidget = defaultWidget; // keeps track of the mpCurrentWidget in use
    mCurrentItemKey = "";
    mpStackedWidget->setCurrentWidget(defaultWidget);

    QList<int> Sizes = sizes();
    Sizes[0] = 240;
    Sizes[1] = 560;
    setSizes(Sizes);

    // establishes the communication between the mpTreeView clicked and the routine called....
    connect(mpTreeDM, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
            this, SLOT(slotSort(const QModelIndex &, const QModelIndex &)));
}