|
|
@ -315,8 +315,8 @@ int MachBunt::mapButton( const TQChar &c)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case 'M':
|
|
|
|
case 'M':
|
|
|
|
return BtnMenu;
|
|
|
|
return BtnMenu;
|
|
|
|
case 'S':
|
|
|
|
//case 'S':
|
|
|
|
return BtnSticky;
|
|
|
|
// return BtnSticky;
|
|
|
|
case 'H': // Help
|
|
|
|
case 'H': // Help
|
|
|
|
return BtnHelp;
|
|
|
|
return BtnHelp;
|
|
|
|
case 'I': // Minimize
|
|
|
|
case 'I': // Minimize
|
|
|
@ -336,18 +336,18 @@ void MachBunt::doLayout()
|
|
|
|
delete windowLayout;
|
|
|
|
delete windowLayout;
|
|
|
|
|
|
|
|
|
|
|
|
windowLayout = new TQVBoxLayout(widget(), 0, 0);
|
|
|
|
windowLayout = new TQVBoxLayout(widget(), 0, 0);
|
|
|
|
titlebar = new TQSpacerItem ( 0, titleHeight, TQSizePolicy::Expanding,
|
|
|
|
titlebar = new TQSpacerItem ( 0, titleHeight, TQSizePolicy::Expanding, TQSizePolicy::Fixed);
|
|
|
|
TQSizePolicy::Fixed);
|
|
|
|
|
|
|
|
TQBoxLayout *topLayout = new TQBoxLayout(windowLayout, TQBoxLayout::LeftToRight, 0, 0);
|
|
|
|
TQBoxLayout *topLayout = new TQBoxLayout(windowLayout, TQBoxLayout::LeftToRight, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
TQString leftButtons(options()->customButtonPositions() ? options()->titleButtonsLeft() : "M");
|
|
|
|
TQString leftButtons(options()->customButtonPositions() ? options()->titleButtonsLeft() : "M");
|
|
|
|
TQString rightButtons(options()->customButtonPositions() ? options()->titleButtonsRight() : "HIAX");
|
|
|
|
TQString rightButtons(options()->customButtonPositions() ? options()->titleButtonsRight() : "HIAX");
|
|
|
|
|
|
|
|
|
|
|
|
bool first_left = true;
|
|
|
|
bool first_left = true;
|
|
|
|
for ( unsigned int i = 0; i <options()->titleButtonsLeft().length(); i++)
|
|
|
|
for ( unsigned int i = 0; i < leftButtons.length(); i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int b = mapButton(leftButtons[i]);
|
|
|
|
int b = mapButton(leftButtons[i]);
|
|
|
|
if ( b>=0 ){
|
|
|
|
if (b >= 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
topLayout->addWidget(button[b], TQt::AlignVCenter);
|
|
|
|
topLayout->addWidget(button[b], TQt::AlignVCenter);
|
|
|
|
topLayout->setStretchFactor(button[b], 0);
|
|
|
|
topLayout->setStretchFactor(button[b], 0);
|
|
|
|
button[b]->setFixedSize(titleHeight, titleHeight);
|
|
|
|
button[b]->setFixedSize(titleHeight, titleHeight);
|
|
|
@ -362,7 +362,7 @@ void MachBunt::doLayout()
|
|
|
|
topLayout->addItem(titlebar);
|
|
|
|
topLayout->addItem(titlebar);
|
|
|
|
|
|
|
|
|
|
|
|
MachBuntButton* last_right = NULL;
|
|
|
|
MachBuntButton* last_right = NULL;
|
|
|
|
for ( unsigned int i = 0; i <options()->titleButtonsRight().length(); i++)
|
|
|
|
for ( unsigned int i = 0; i < rightButtons.length(); i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int b = mapButton(rightButtons[i]);
|
|
|
|
int b = mapButton(rightButtons[i]);
|
|
|
|
if ( b>=0 ){
|
|
|
|
if ( b>=0 ){
|
|
|
|