Pencil2D Animation
Download
Community
News
Docs
Contribute
Overview
Articles
Code
Class List
Class Index
Class Hierarchy
Class Members
File List
Loading...
Searching...
No Matches
core_lib
src
interface
toolboxlayout.h
1
/*
2
3
Pencil2D - Traditional Animation Software
4
Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5
Copyright (C) 2012-2020 Matthew Chiawen Chang
6
Copyright (C) 2024-2099 Oliver S. Larsen
7
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License
10
as published by the Free Software Foundation; version 2 of the License.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
*/
18
#ifndef TOOLBOXLAYOUT_H
19
#define TOOLBOXLAYOUT_H
20
21
#include "flowlayout.h"
22
23
class
ToolBoxLayout
:
public
FlowLayout
24
{
25
public
:
26
ToolBoxLayout
(
QWidget
*
parent
,
int
margin
,
int
hSpacing,
int
vSpacing);
27
28
protected
:
29
void
lastLineAlignment(
int
startIndex,
int
count,
RowLayoutInfo
rowInfo,
const
QRect
& effectiveRect)
const override
;
30
31
private
:
32
void
alignRowFromRowInfo(
int
startIndex,
int
count,
RowLayoutInfo
rowInfo)
const
;
33
};
34
35
#endif
// TOOLBOXLAYOUT_H
FlowLayout
Definition:
flowlayout.h:81
ToolBoxLayout
Definition:
toolboxlayout.h:24
QLayout::margin
margin
QObject::parent
QObject * parent() const const
QRect
QWidget
RowLayoutInfo
Definition:
flowlayout.h:74