QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RColumnLayout Class Reference

#include <RColumnLayout.h>

Inheritance diagram for RColumnLayout:

Public Member Functions

virtual void addItem (QLayoutItem *item)
 
virtual int count () const
 
virtual QLayoutItem * itemAt (int index) const
 
QSize minimumSize () const
 
 RColumnLayout (QWidget *parent, QToolBar *toolBar, int buttonSize)
 Copyright (c) 2011-2022 by Andrew Mustun.
 
void setGeometry () const
 
virtual void setGeometry (const QRect &rect)
 
QSize sizeHint () const
 
virtual QLayoutItem * takeAt (int index)
 

Static Public Member Functions

static unsigned long int getAccumulatedSortOrder (QObject *item, const QString &objectName)
 
static unsigned int getGroupSortOrder (QObject *item, const QString &objectName)
 
static unsigned int getSortOrder (QObject *item, const QString &objectName)
 
static bool itemLessThan (const QPair< QLayoutItem *, unsigned long int > &v1, const QPair< QLayoutItem *, unsigned long int > &v2)
 

Private Attributes

QList< QPair< QLayoutItem *, unsigned long int > > itemList
 
QSize sHint
 
int sHintColumns
 
int sHintHeight
 
int sHintHorizontal
 
int sHintIconSize
 
bool sHintVerticalWhenFloating
 
int sHintWidth
 
QToolBar * toolBar
 

Detailed Description

Scriptable:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ RColumnLayout()

RColumnLayout::RColumnLayout ( QWidget * parent,
QToolBar * toolBar,
int buttonSize )

Copyright (c) 2011-2022 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

Member Function Documentation

◆ addItem()

void RColumnLayout::addItem ( QLayoutItem * item)
virtual
Parameters
itemA widget (e.g. QToolButton) with property "SortOrder" set to the desired sort order. Or a separator action, also with property "SortOrder" set.

◆ count()

int RColumnLayout::count ( ) const
virtual

◆ getAccumulatedSortOrder()

unsigned long int RColumnLayout::getAccumulatedSortOrder ( QObject * item,
const QString & objectName )
static

◆ getGroupSortOrder()

unsigned int RColumnLayout::getGroupSortOrder ( QObject * item,
const QString & objectName )
static

◆ getSortOrder()

unsigned int RColumnLayout::getSortOrder ( QObject * item,
const QString & objectName )
static

◆ itemAt()

QLayoutItem * RColumnLayout::itemAt ( int index) const
virtual

◆ itemLessThan()

static bool RColumnLayout::itemLessThan ( const QPair< QLayoutItem *, unsigned long int > & v1,
const QPair< QLayoutItem *, unsigned long int > & v2 )
inlinestatic
Non-Scriptable:\nThis function is not available in script environments.\n

◆ minimumSize()

QSize RColumnLayout::minimumSize ( ) const

◆ setGeometry() [1/2]

void RColumnLayout::setGeometry ( ) const

◆ setGeometry() [2/2]

void RColumnLayout::setGeometry ( const QRect & rect)
virtual

◆ sizeHint()

QSize RColumnLayout::sizeHint ( ) const

◆ takeAt()

QLayoutItem * RColumnLayout::takeAt ( int index)
virtual

Member Data Documentation

◆ itemList

QList<QPair<QLayoutItem*, unsigned long int> > RColumnLayout::itemList
mutableprivate

◆ sHint

QSize RColumnLayout::sHint
mutableprivate

◆ sHintColumns

int RColumnLayout::sHintColumns
mutableprivate

◆ sHintHeight

int RColumnLayout::sHintHeight
mutableprivate

◆ sHintHorizontal

int RColumnLayout::sHintHorizontal
mutableprivate

◆ sHintIconSize

int RColumnLayout::sHintIconSize
mutableprivate

◆ sHintVerticalWhenFloating

bool RColumnLayout::sHintVerticalWhenFloating
mutableprivate

◆ sHintWidth

int RColumnLayout::sHintWidth
mutableprivate

◆ toolBar

QToolBar* RColumnLayout::toolBar
private

The documentation for this class was generated from the following files: