You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.6 KiB
61 lines
1.6 KiB
15 years ago
|
/****************************************************************************
|
||
13 years ago
|
** $Id: buttonflowtqlayout.h 471 2006-11-11 17:04:51Z emw $
|
||
15 years ago
|
**
|
||
13 years ago
|
** Definition of simple flow layout for custom layout example
|
||
15 years ago
|
**
|
||
|
** Created : 979899
|
||
|
**
|
||
|
** Copyright (C) 1997 by Trolltech AS. All rights reserved.
|
||
|
**
|
||
14 years ago
|
** This file is part of an example program for TQt. This example
|
||
15 years ago
|
** program may be used, distributed and modified without limitation.
|
||
|
**
|
||
|
*****************************************************************************/
|
||
|
/**
|
||
12 years ago
|
Modified 2002 by Klas Kalass (klas.kalass@gmx.de) for tderadio
|
||
15 years ago
|
*/
|
||
|
#ifndef BUTTONFLOWLAYOUT_H
|
||
|
#define BUTTONFLOWLAYOUT_H
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
#include <config.h>
|
||
|
#endif
|
||
|
|
||
|
#include "../../src/include/utils.h"
|
||
|
|
||
13 years ago
|
#include <tqlayout.h>
|
||
14 years ago
|
#include <tqptrlist.h>
|
||
15 years ago
|
|
||
14 years ago
|
class ButtonFlowLayout : public TQLayout
|
||
15 years ago
|
{
|
||
|
public:
|
||
13 years ago
|
ButtonFlowLayout( TQWidget *parent, int margin = 0, int spacing=-1,
|
||
15 years ago
|
const char *name=0 );
|
||
|
|
||
14 years ago
|
ButtonFlowLayout( TQLayout* parentLayout, int spacing=-1, const char *name=0 );
|
||
15 years ago
|
|
||
|
ButtonFlowLayout( int spacing=-1, const char *name=0 );
|
||
|
|
||
|
~ButtonFlowLayout();
|
||
|
|
||
13 years ago
|
void addItem( TQLayoutItem *item);
|
||
15 years ago
|
bool hasHeightForWidth() const;
|
||
|
int heightForWidth( int ) const;
|
||
13 years ago
|
TQSize sizeHint() const;
|
||
|
TQSize minimumSize() const;
|
||
|
TQSize minimumSize(const TQSize &r) const; // minimumSize is dependent from width
|
||
14 years ago
|
TQLayoutIterator iterator();
|
||
|
TQSizePolicy::ExpandData expanding() const;
|
||
|
|
||
15 years ago
|
protected:
|
||
14 years ago
|
void setGeometry( const TQRect& );
|
||
15 years ago
|
|
||
|
private:
|
||
14 years ago
|
int doLayout( const TQRect&, bool testonly = FALSE );
|
||
|
TQPtrList<TQLayoutItem> list;
|
||
15 years ago
|
int cached_width;
|
||
|
int cached_hfw;
|
||
|
};
|
||
|
|
||
|
#endif
|