// This file is generated by tdeconfig_compiler from taskbar.kcfg.
// All changes you do to this file will be lost.

#include "taskbarsettings.h"

#include <tdelocale.h>

const char* const TaskBarSettings::EnumButtonToString[] = { "LeftButton", "MiddleButton", "RightButton" };

TaskBarSettings::TaskBarSettings(  TDESharedConfig::Ptr config  )
  : TDEConfigSkeleton( config )
{
  setCurrentGroup( TQString::fromLatin1( "General" ) );

  TDEConfigSkeleton::ItemBool  *itemUseGlobalSettings;
  itemUseGlobalSettings = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseGlobalSettings" ), mUseGlobalSettings, true );
  itemUseGlobalSettings->setLabel( i18n("Use the global taskbar configuration") );
  itemUseGlobalSettings->setWhatsThis( i18n("Turning this option off will cause the taskbar to ignore the global taskbar configuration, instead using a specific configuration for that particular taskbar.") );
  addItem( itemUseGlobalSettings, TQString::fromLatin1( "UseGlobalSettings" ) );
  TDEConfigSkeleton::ItemBool  *itemAllowDragAndDropReArrange;
  itemAllowDragAndDropReArrange = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AllowDragAndDropReArrange" ), mAllowDragAndDropReArrange, true );
  itemAllowDragAndDropReArrange->setLabel( i18n("Allow taskbar items to be rearranged using drag and drop") );
  itemAllowDragAndDropReArrange->setWhatsThis( i18n("Turning this option on will allow tasks on the taskbar to be manually rearranged using drag and drop.") );
  addItem( itemAllowDragAndDropReArrange, TQString::fromLatin1( "AllowDragAndDropReArrange" ) );
  TDEConfigSkeleton::ItemBool  *itemShowAllWindows;
  itemShowAllWindows = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowAllWindows" ), mShowAllWindows, true );
  itemShowAllWindows->setLabel( i18n("Show windows from all desktops") );
  itemShowAllWindows->setWhatsThis( i18n("Turning this option off will cause the taskbar to display only the windows on the current desktop. By default, this option is selected and all windows are shown.") );
  addItem( itemShowAllWindows, TQString::fromLatin1( "ShowAllWindows" ) );
  TDEConfigSkeleton::ItemBool  *itemCycleWheel;
  itemCycleWheel = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CycleWheel" ), mCycleWheel, true );
  itemCycleWheel->setLabel( i18n("Cycle through windows with mouse wheel") );
  itemCycleWheel->setWhatsThis( i18n("Enabling this option causes the taskbar to cycle through the current list of windows when using the mouse wheel") );
  addItem( itemCycleWheel, TQString::fromLatin1( "CycleWheel" ) );
  TDEConfigSkeleton::ItemBool  *itemShowOnlyIconified;
  itemShowOnlyIconified = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowOnlyIconified" ), mShowOnlyIconified, false );
  itemShowOnlyIconified->setLabel( i18n("Show only minimized windows") );
  itemShowOnlyIconified->setWhatsThis( i18n("Select this option if you want the taskbar to display only minimized windows. By default, this option is not selected and the taskbar will show all windows.") );
  addItem( itemShowOnlyIconified, TQString::fromLatin1( "ShowOnlyIconified" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesDisplayIconsNText;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "DisplayIconsAndText" );
    choice.label = i18n("Never");
    valuesDisplayIconsNText.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "DisplayTextOnly" );
    choice.label = i18n("When Taskbar Full");
    valuesDisplayIconsNText.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "DisplayIconsOnly" );
    choice.label = i18n("Always");
    valuesDisplayIconsNText.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemDisplayIconsNText;
  itemDisplayIconsNText = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "DisplayIconsNText" ), mDisplayIconsNText, valuesDisplayIconsNText, DisplayIconsAndText );
  itemDisplayIconsNText->setLabel( i18n("Display:") );
  itemDisplayIconsNText->setWhatsThis( i18n("Choose taskbar display mode among Icons and text, Text only and Icons only") );
  addItem( itemDisplayIconsNText, TQString::fromLatin1( "DisplayIconsNText" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesGroupTasks;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "GroupNever" );
    choice.label = i18n("Never");
    valuesGroupTasks.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "GroupWhenFull" );
    choice.label = i18n("When Taskbar Full");
    valuesGroupTasks.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "GroupAlways" );
    choice.label = i18n("Always");
    valuesGroupTasks.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemGroupTasks;
  itemGroupTasks = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "GroupTasks" ), mGroupTasks, valuesGroupTasks, GroupWhenFull );
  itemGroupTasks->setLabel( i18n("Group similar tasks:") );
  itemGroupTasks->setWhatsThis( i18n("The taskbar can group similar windows into single buttons. When one of these window group buttons are clicked on a menu appears showing all the windows in that group. This can be especially useful with the Show all windows option. You can set the taskbar to Never group windows, to Always group windows or to group windows only When the Taskbar is Full. By default the taskbar groups windows when it is full.") );
  addItem( itemGroupTasks, TQString::fromLatin1( "GroupTasks" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesShowTaskStates;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ShowAll" );
    choice.label = i18n("Any");
    valuesShowTaskStates.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ShowStopped" );
    choice.label = i18n("Only Stopped");
    valuesShowTaskStates.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ShowRunning" );
    choice.label = i18n("Only Running");
    valuesShowTaskStates.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemShowTaskStates;
  itemShowTaskStates = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "ShowTaskStates" ), mShowTaskStates, valuesShowTaskStates, ShowAll );
  itemShowTaskStates->setLabel( i18n("Show tasks with state:") );
  itemShowTaskStates->setWhatsThis( i18n("The taskbar can show and/or hide tasks based on their current process state. Select Any to show all tasks regardless of current state.") );
  addItem( itemShowTaskStates, TQString::fromLatin1( "ShowTaskStates" ) );
  TDEConfigSkeleton::ItemBool  *itemSortByDesktop;
  itemSortByDesktop = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SortByDesktop" ), mSortByDesktop, true );
  itemSortByDesktop->setLabel( i18n("Sort windows by desktop") );
  itemSortByDesktop->setWhatsThis( i18n("Selecting this option causes the taskbar to show windows in order of the desktop they appear on. By default this option is selected.") );
  addItem( itemSortByDesktop, TQString::fromLatin1( "SortByDesktop" ) );
  TDEConfigSkeleton::ItemBool  *itemSortByApp;
  itemSortByApp = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SortByApp" ), mSortByApp, true );
  itemSortByApp->setLabel( i18n("Sort windows by application") );
  itemSortByApp->setWhatsThis( i18n("Selecting this option causes the taskbar to show windows ordered by application. By default this option is selected.") );
  addItem( itemSortByApp, TQString::fromLatin1( "SortByApp" ) );
  TDEConfigSkeleton::ItemInt  *itemMaximumButtonWidth;
  itemMaximumButtonWidth = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "MaximumButtonWidth" ), mMaximumButtonWidth, 200 );
  itemMaximumButtonWidth->setMinValue(50);
  itemMaximumButtonWidth->setMaxValue(500);
  itemMaximumButtonWidth->setLabel( i18n("Maximum Taskbar Button Width") );
  itemMaximumButtonWidth->setWhatsThis( i18n("The maximum width each taskbar button will use. The default value is 200 pixels. The setting affects the Display options Text only and Icons and Text.") );
  addItem( itemMaximumButtonWidth, TQString::fromLatin1( "MaximumButtonWidth" ) );
  TDEConfigSkeleton::ItemInt  *itemMinimumButtonHeight;
  itemMinimumButtonHeight = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "MinimumButtonHeight" ), mMinimumButtonHeight, 18 );
  itemMinimumButtonHeight->setMinValue(1);
  itemMinimumButtonHeight->setLabel( i18n("Minimum Taskbar Button Height") );
  itemMinimumButtonHeight->setWhatsThis( i18n("The minimum height to trigger taskbar buttons to stack into rows. The default value is 18 pixels. To prevent the taskbar buttons from stacking into rows, MinimumButtonHeight must be at least one pixel larger than the defined panel height.") );
  addItem( itemMinimumButtonHeight, TQString::fromLatin1( "MinimumButtonHeight" ) );
  TDEConfigSkeleton::ItemBool  *itemShowCurrentScreenOnly;
  itemShowCurrentScreenOnly = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowCurrentScreenOnly" ), mShowCurrentScreenOnly, false );
  itemShowCurrentScreenOnly->setLabel( i18n("Show windows from all screens") );
  itemShowCurrentScreenOnly->setWhatsThis( i18n("Turning this option off will cause the taskbar to display only windows which are on the same Xinerama screen as the taskbar. By default, this option is selected and all windows are shown.") );
  addItem( itemShowCurrentScreenOnly, TQString::fromLatin1( "ShowCurrentScreenOnly" ) );
  TDEConfigSkeleton::ItemFont  *itemTaskbarFont;
  itemTaskbarFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "taskbarFont" ), mTaskbarFont );
  itemTaskbarFont->setLabel( i18n("taskbarFont") );
  addItem( itemTaskbarFont, TQString::fromLatin1( "taskbarFont" ) );
  TDEConfigSkeleton::ItemBool  *itemShowWindowListBtn;
  itemShowWindowListBtn = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowWindowListBtn" ), mShowWindowListBtn, false );
  itemShowWindowListBtn->setLabel( i18n("Show window list button") );
  itemShowWindowListBtn->setWhatsThis( i18n("Selecting this option causes the taskbar to display a button that, when clicked, shows a list of all windows in a popup menu.") );
  addItem( itemShowWindowListBtn, TQString::fromLatin1( "ShowWindowListBtn" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesAction;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ShowTaskList" );
    choice.label = i18n("Show Task List");
    valuesAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ShowOperationsMenu" );
    choice.label = i18n("Show Operations Menu");
    valuesAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ActivateRaiseOrMinimize" );
    choice.label = i18n("Activate, Raise or Minimize Task");
    valuesAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Activate" );
    choice.label = i18n("Activate Task");
    valuesAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Raise" );
    choice.label = i18n("Raise Task");
    valuesAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Lower" );
    choice.label = i18n("Lower Task");
    valuesAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Minimize" );
    choice.label = i18n("Minimize Task");
    valuesAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "ToCurrentDesktop" );
    choice.label = i18n("Move To Current Desktop");
    valuesAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Close" );
    choice.label = i18n("Close Task");
    valuesAction.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemAction[3];
  itemAction[0] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "LeftButtonAction" ), mAction[0], valuesAction, ShowTaskList );
  itemAction[0]->setLabel( i18n("Mouse button actions") );
  addItem( itemAction[0], TQString::fromLatin1( "LeftButtonAction" ) );
  itemAction[1] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "MiddleButtonAction" ), mAction[1], valuesAction, ActivateRaiseOrMinimize );
  itemAction[1]->setLabel( i18n("Mouse button actions") );
  addItem( itemAction[1], TQString::fromLatin1( "MiddleButtonAction" ) );
  itemAction[2] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "RightButtonAction" ), mAction[2], valuesAction, ShowOperationsMenu );
  itemAction[2]->setLabel( i18n("Mouse button actions") );
  addItem( itemAction[2], TQString::fromLatin1( "RightButtonAction" ) );

  setCurrentGroup( TQString::fromLatin1( "Appearance" ) );

  TDEConfigSkeleton::ItemInt  *itemAttentionBlinkIterations;
  itemAttentionBlinkIterations = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "AttentionBlinkIterations" ), mAttentionBlinkIterations, 4 );
  itemAttentionBlinkIterations->setMinValue(0);
  itemAttentionBlinkIterations->setLabel( i18n("The number of times to blink a taskbar button when a window asks for attention. Setting this to 1000 or greater causes the button to blink forever.") );
  addItem( itemAttentionBlinkIterations, TQString::fromLatin1( "AttentionBlinkIterations" ) );
  TDEConfigSkeleton::ItemBool  *itemDrawButtons;
  itemDrawButtons = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DrawButtons" ), mDrawButtons, false );
  itemDrawButtons->setLabel( i18n("Draw taskbar entries \"flat\" and not as a button") );
  itemDrawButtons->setWhatsThis( i18n("Turning this option on will cause the taskbar to draw visible button frames for each entry in the taskbar. By default, this option is off.") );
  addItem( itemDrawButtons, TQString::fromLatin1( "DrawButtons" ) );
  TDEConfigSkeleton::ItemBool  *itemShowButtonOnHover;
  itemShowButtonOnHover = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowButtonOnHover" ), mShowButtonOnHover, true );
  itemShowButtonOnHover->setLabel( i18n("Show a visible button frame on the task the cursor is positioned over") );
  itemShowButtonOnHover->setWhatsThis( i18n("Turning this option on will cause the taskbar to draw a visible button frame around the item currently under the mouse. By default, this option is on.") );
  addItem( itemShowButtonOnHover, TQString::fromLatin1( "ShowButtonOnHover" ) );
  TDEConfigSkeleton::ItemBool  *itemHaloText;
  itemHaloText = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HaloText" ), mHaloText, false );
  itemHaloText->setLabel( i18n("Draw taskbar text with a halo around it") );
  itemHaloText->setWhatsThis( i18n("Turning this option on will cause the taskbar to draw fancier text that has an outline around it. While this is useful for transparent panels or particularly dark panel backgrounds, it is slower.") );
  addItem( itemHaloText, TQString::fromLatin1( "HaloText" ) );
  TDEConfigSkeleton::ItemBool  *itemShowThumbnails;
  itemShowThumbnails = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowThumbnails" ), mShowThumbnails, false );
  itemShowThumbnails->setLabel( i18n("Show thumbnails instead of icons in the mouse-over effects") );
  itemShowThumbnails->setWhatsThis( i18n("Enabling this option will draw a thumbnail of the window in its mouse-over effect.If a window is minimized or resides on a different desktop while the taskbar is starting, an icon is shown until the window is restored or the appropriate desktop is activated, respectively. This options needs a TWin compositor in order to work.") );
  addItem( itemShowThumbnails, TQString::fromLatin1( "ShowThumbnails" ) );
  TDEConfigSkeleton::ItemUInt  *itemThumbnailMaxDimension;
  itemThumbnailMaxDimension = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "ThumbnailMaxDimension" ), mThumbnailMaxDimension, 100 );
  itemThumbnailMaxDimension->setLabel( i18n("Maximum width/height of the thumbnail in pixels") );
  itemThumbnailMaxDimension->setWhatsThis( i18n("A thumbnail is created by resizing the window. The scaling factor is determined by its largest dimension and this value. In doing so, the thumbnail's size will not exceed this value in any dimension.") );
  addItem( itemThumbnailMaxDimension, TQString::fromLatin1( "ThumbnailMaxDimension" ) );
  TDEConfigSkeleton::ItemBool  *itemUseCustomColors;
  itemUseCustomColors = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseCustomColors" ), mUseCustomColors, false );
  itemUseCustomColors->setLabel( i18n("Use custom colors for taskbar buttons text and background") );
  itemUseCustomColors->setWhatsThis( i18n("Turning this option on will allow choosing your own colors for taskbar buttons text and background.") );
  addItem( itemUseCustomColors, TQString::fromLatin1( "UseCustomColors" ) );
  TDEConfigSkeleton::ItemColor  *itemActiveTaskTextColor;
  itemActiveTaskTextColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "ActiveTaskTextColor" ), mActiveTaskTextColor, TQColor() );
  itemActiveTaskTextColor->setLabel( i18n("Color to use for active task button text") );
  itemActiveTaskTextColor->setWhatsThis( i18n("This color is used for displaying text on taskbar button for task which is active at the moment.") );
  addItem( itemActiveTaskTextColor, TQString::fromLatin1( "ActiveTaskTextColor" ) );
  TDEConfigSkeleton::ItemColor  *itemInactiveTaskTextColor;
  itemInactiveTaskTextColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "InactiveTaskTextColor" ), mInactiveTaskTextColor, TQColor() );
  itemInactiveTaskTextColor->setLabel( i18n("Color to use for inactive tasks button text") );
  itemInactiveTaskTextColor->setWhatsThis( i18n("This color is used for displaying text on taskbar button for tasks other than active.") );
  addItem( itemInactiveTaskTextColor, TQString::fromLatin1( "InactiveTaskTextColor" ) );
  TDEConfigSkeleton::ItemColor  *itemTaskBackgroundColor;
  itemTaskBackgroundColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "TaskBackgroundColor" ), mTaskBackgroundColor, TQColor() );
  itemTaskBackgroundColor->setLabel( i18n("Color to use for taskbar buttons background") );
  itemTaskBackgroundColor->setWhatsThis( i18n("This color is used for displaying background of taskbar buttons.") );
  addItem( itemTaskBackgroundColor, TQString::fromLatin1( "TaskBackgroundColor" ) );
  TDEConfigSkeleton::ItemUInt  *itemIconSize;
  itemIconSize = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "IconSize" ), mIconSize, 16 );
  itemIconSize->setLabel( i18n("IconSize") );
  addItem( itemIconSize, TQString::fromLatin1( "IconSize" ) );
}

TaskBarSettings::~TaskBarSettings()
{
}

