Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQUI Class Reference

#include <YQUI.h>

Inheritance diagram for YQUI:

YUI List of all members.

Public Slots

void busyCursor ()
void normalCursor ()
void askSaveLogs ()
void askConfigureLogging ()
void easterEgg ()

Signals

void wmClose ()

Public Member Functions

 YQUI (int argc, char **argv, bool with_threads, const char *macro_file)
 ~YQUI ()
const QFont & currentFont ()
const QFont & boldFont ()
const QFont & headingFont ()
void sendEvent (YEvent *event)
bool eventPendingFor (YWidget *widget) const
YEvent * pendingEvent () const
bool haveWM () const
bool fullscreen () const
bool decorateToplevelWindow () const
bool fatalError () const
void raiseFatalError ()
long defaultSize (YUIDimension dim) const
void makeScreenShot (string filename)
YCPValue runPkgSelection (YWidget *packageSelector)
void toggleRecordMacro ()
void askPlayMacro ()
void internalError (const char *msg)
void blockWmClose ()
void unblockWmClose ()
bool autoActivateDialogs () const
bool runningEmbedded () const
bool debugEmbedding () const
virtual void blockEvents (bool block=true)
virtual bool eventsBlocked () const
QString productName () const
YCPValue askForExistingDirectory (const YCPString &startDir, const YCPString &headline)
YCPValue askForExistingFile (const YCPString &startWith, const YCPString &filter, const YCPString &headline)
YCPValue askForSaveFileName (const YCPString &startWith, const YCPString &filter, const YCPString &headline)
QString askForSaveFileName (const QString &startWith, const QString &filter, const QString &headline)
QWidget * mainWidget ()
QPalette normalPalette () const
void toggleVisionImpairedPalette ()
bool usingVisionImpairedPalette () const
virtual long deviceUnits (YUIDimension dim, float layout_units)
virtual float layoutUnits (YUIDimension dim, long device_units)

Static Public Member Functions

static YQUI * ui ()
static void setEmbeddingParent (QWidget *p)
static void setTextdomain (const char *domain)
static QPalette visionImpairedPalette ()

Protected Slots

bool close ()
void userInputTimeout ()
void leaveIdleLoop (int)

Protected Member Functions

void idleLoop (int fd_ycp)
YCPString glyph (const YCPSymbol &glyphSymbol)
YEvent * userInput (unsigned long timeout_millisec=0)
YEvent * pollInput ()
YDialog * createDialog (YWidgetOpt &opt)
void showDialog (YDialog *dialog)
void closeDialog (YDialog *dialog)
bool eventFilter (QObject *obj, QEvent *ev)
bool showEventFilter (QObject *obj, QEvent *ev)
void loadPredefinedQtTranslations ()
void setLangFonts (const YCPString &language)
QString fontKey (const QString &lang)
void setAllFontsDirty ()
void pickAutoFonts ()
bool autoFonts () const
YContainerWidget * createAlignment (YWidget *parent, YWidgetOpt &opt, YAlignmentType horAlign, YAlignmentType vertAlign)
YContainerWidget * createFrame (YWidget *parent, YWidgetOpt &opt, const YCPString &label)
YContainerWidget * createRadioButtonGroup (YWidget *parent, YWidgetOpt &opt)
YContainerWidget * createReplacePoint (YWidget *parent, YWidgetOpt &opt)
YContainerWidget * createSplit (YWidget *parent, YWidgetOpt &opt, YUIDimension dimension)
YContainerWidget * createSquash (YWidget *parent, YWidgetOpt &opt, bool horSquash, bool vertSquash)
YContainerWidget * createWeight (YWidget *parent, YWidgetOpt &opt, YUIDimension dim, long weight)
YWidget * createCheckBox (YWidget *parent, YWidgetOpt &opt, const YCPString &label, bool checked)
YWidget * createComboBox (YWidget *parent, YWidgetOpt &opt, const YCPString &label)
YWidget * createEmpty (YWidget *parent, YWidgetOpt &opt)
YWidget * createImage (YWidget *parent, YWidgetOpt &opt, YCPByteblock imageData, YCPString fallbackText)
YWidget * createImage (YWidget *parent, YWidgetOpt &opt, YCPString fileName, YCPString fallbackText)
YWidget * createIntField (YWidget *parent, YWidgetOpt &opt, const YCPString &label, int minValue, int maxValue, int initialValue)
YWidget * createLabel (YWidget *parent, YWidgetOpt &opt, const YCPString &text)
YWidget * createLogView (YWidget *parent, YWidgetOpt &opt, const YCPString &label, int visibleLines, int maxLines)
YWidget * createMultiLineEdit (YWidget *parent, YWidgetOpt &opt, const YCPString &label, const YCPString &text)
YWidget * createProgressBar (YWidget *parent, YWidgetOpt &opt, const YCPString &label, const YCPInteger &maxProgress, const YCPInteger &currentProgress)
YWidget * createPackageSelector (YWidget *parent, YWidgetOpt &opt, const YCPString &floppyDevice)
YWidget * createPushButton (YWidget *parent, YWidgetOpt &opt, const YCPString &label)
YWidget * createMenuButton (YWidget *parent, YWidgetOpt &opt, const YCPString &label)
YWidget * createRadioButton (YWidget *parent, YWidgetOpt &opt, YRadioButtonGroup *rbg, const YCPString &label, bool checked)
YWidget * createRichText (YWidget *parent, YWidgetOpt &opt, const YCPString &text)
YWidget * createSelectionBox (YWidget *parent, YWidgetOpt &opt, const YCPString &label)
YWidget * createMultiSelectionBox (YWidget *parent, YWidgetOpt &opt, const YCPString &label)
YWidget * createSpacing (YWidget *parent, YWidgetOpt &opt, float size, bool horizontal, bool vertical)
YWidget * createTable (YWidget *parent, YWidgetOpt &opt, vector< string > header)
YWidget * createTextEntry (YWidget *parent, YWidgetOpt &opt, const YCPString &label, const YCPString &text)
YWidget * createTree (YWidget *parent, YWidgetOpt &opt, const YCPString &label)
YWidget * createPkgSpecial (YWidget *parent, YWidgetOpt &opt, const YCPString &subwidget)
bool hasBarGraph ()
YWidget * createBarGraph (YWidget *parent, YWidgetOpt &opt)
bool hasColoredLabel ()
YWidget * createColoredLabel (YWidget *parent, YWidgetOpt &opt, YCPString label, YColor foreground, YColor background, int margin)
bool hasDate ()
YWidget * createDate (YWidget *parent, YWidgetOpt &opt, const YCPString &label, const YCPString &date)
bool hasTime ()
YWidget * createTime (YWidget *parent, YWidgetOpt &opt, const YCPString &label, const YCPString &time)
bool hasDownloadProgress ()
YWidget * createDownloadProgress (YWidget *parent, YWidgetOpt &opt, const YCPString &label, const YCPString &filename, int expectedSize)
bool hasDumbTab ()
YWidget * createDumbTab (YWidget *parent, YWidgetOpt &opt)
bool hasMultiProgressMeter ()
YWidget * createMultiProgressMeter (YWidget *parent, YWidgetOpt &opt, bool horizontal, const YCPList &maxValues)
bool hasSlider ()
YWidget * createSlider (YWidget *parent, YWidgetOpt &opt, const YCPString &label, int minValue, int maxValue, int initialValue)
bool hasPartitionSplitter ()
YWidget * createPartitionSplitter (YWidget *parent, YWidgetOpt &opt, int usedSize, int totalFreeSize, int newPartSize, int minNewPartSize, int minFreeSize, const YCPString &usedLabel, const YCPString &freeLabel, const YCPString &newPartLabel, const YCPString &freeFieldLabel, const YCPString &newPartFieldLabel)
bool hasWizard ()
YWidget * createWizard (YWidget *parent, YWidgetOpt &opt, const YCPValue &backButtonId, const YCPString &backButtonLabel, const YCPValue &abortButtonId, const YCPString &abortButtonLabel, const YCPValue &nextButtonId, const YCPString &nextButtonLabel)
YCPValue setLanguage (const YCPTerm &term)
int getDisplayWidth ()
int getDisplayHeight ()
int getDisplayDepth ()
long getDisplayColors ()
int getDefaultWidth ()
int getDefaultHeight ()
bool textMode ()
bool hasImageSupport ()
bool hasLocalImageSupport ()
bool hasAnimationSupport ()
bool hasIconSupport ()
bool hasFullUtf8Support ()
bool richTextSupportsTable ()
void processCommandLineArgs (int argc, char **argv)
void calcDefaultSize ()

Protected Attributes

QMap< QString, int > screenShotNo
QString screenShotNameTemplate
bool _have_wm
bool _fullscreen
bool _decorate_toplevel_window
bool _debug_embedding
QVBox * _main_win
QWidgetStack * _widget_stack
vector< QWidget * > _popup_stack
int _main_dialog_id
QSize _default_size
bool _leave_idle_loop
bool _do_exit_loop
QString _font_family
QY2Settings * _lang_fonts
QFont _current_font
bool _loaded_current_font
QFont _bold_font
bool _loaded_bold_font
QFont _heading_font
bool _loaded_heading_font
bool _auto_fonts
int _auto_normal_font_size
int _auto_heading_font_size
bool _wm_close_blocked
bool _auto_activate_dialogs
bool _fatal_error
QTimer _user_input_timer
QTimer _busy_cursor_timer
YSimpleEventHandler _event_handler
QTranslator _qtTranslations
bool _running_embedded
QPalette _normalPalette
bool _usingVisionImpairedPalette

Static Protected Attributes

static YQUI * _ui = 0
static QWidget * _embeddingParent = 0

Constructor & Destructor Documentation

YQUI::YQUI (  int  argc,
char **  argv,
bool  with_threads,
const char *  macro_file
) 
 

Constructor.

YQUI::~YQUI (   ) 
 

Destructor.


Member Function Documentation

void YQUI::askConfigureLogging (   )  [slot]
 

Open dialog to configure logging. (Shift-F7)

YCPValue YQUI::askForExistingDirectory (  const YCPString &  startDir,
const YCPString &  headline
)  [virtual]
 

Open a directory selection box and prompt the user for an existing directory. [Reimplemented from YUI]

'startDir' is the initial directory that is displayed.

'headline' is an explanatory text for the directory selection box. Graphical UIs may omit that if no window manager is running.

Returns the selected directory name or 'nil' (YCPVoid() ) if the user canceled the operation.

Implements YUI.

YCPValue YQUI::askForExistingFile (  const YCPString &  startWith,
const YCPString &  filter,
const YCPString &  headline
)  [virtual]
 

Open a file selection box and prompt the user for an existing file. [Reimplemented from YUI]

'startWith' is the initial directory or file.

'filter' is one or more blank-separated file patterns, e.g. "*.png *.jpg"

'headline' is an explanatory text for the file selection box. Graphical UIs may omit that if no window manager is running.

Returns the selected file name or 'nil' (YCPVoid() ) if the user canceled the operation.

Implements YUI.

QString YQUI::askForSaveFileName (  const QString &  startWith,
const QString &  filter,
const QString &  headline
) 
 

Lower-level version that works with QStrings and does not change the mouse cursor.

YCPValue YQUI::askForSaveFileName (  const YCPString &  startWith,
const YCPString &  filter,
const YCPString &  headline
)  [virtual]
 

Open a file selection box and prompt the user for a file to save data to. Automatically asks for confirmation if the user selects an existing file. [Reimplemented from YUI]

'startWith' is the initial directory or file.

'filter' is one or more blank-separated file patterns, e.g. "*.png *.jpg"

'headline' is an explanatory text for the file selection box. Graphical UIs may omit that if no window manager is running.

Returns the selected file name or 'nil' (YCPVoid() ) if the user canceled the operation.

Implements YUI.

void YQUI::askPlayMacro (   ) 
 

Open file selection box and ask for a macro file to play (activated by Ctrl-Shift-Alt-P)

void YQUI::askSaveLogs (   )  [slot]
 

Open file selection box and let the user Save y2logs to that location. (Shift-F8)

bool YQUI::autoActivateDialogs (   )  const [inline]
 

Check if dialogs are to be activated automatically

bool YQUI::autoFonts (   )  const [inline, protected]
 

Returns 'true' if the UI automatically picks fonts, disregarding Qt standard settings.

This makes sense in the installation system where the display DPI cannot reliably be retrieved and thus Qt uses random font sizes based on that random DPI.

virtual void YQUI::blockEvents (  bool  block = true  )  [inline, virtual]
 

Block (or unblock) events. If events are blocked, any event sent should be ignored until events are unblocked again.

Reimplemented from YUI.

Reimplemented from YUI.

void YQUI::blockWmClose (   )  [inline]
 

Block WM_CLOSE events for the main window.

const QFont & YQUI::boldFont (   ) 
 

Returns the UI's default bold font.

void YQUI::busyCursor (   )  [virtual, slot]
 

Show hourglass cursor.

Reimplemented from YUI.

Reimplemented from YUI.

void YQUI::calcDefaultSize (   )  [protected]
 

Calculate size of `opt(`defaultsize) dialogs

bool YQUI::close (   )  [protected, slot]
 

Application shutdown

void YQUI::closeDialog (  YDialog *  dialog  )  [protected, virtual]
 

Decativate and close a dialog. This does not delete the dialog yet.

Reimplemented from YUI.

Reimplemented from YUI.

YContainerWidget * YQUI::createAlignment (  YWidget *  parent,
YWidgetOpt &  opt,
YAlignmentType  horAlign,
YAlignmentType  vertAlign
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createBarGraph (  YWidget *  parent,
YWidgetOpt &  opt
)  [protected, virtual]
 

Reimplemented from YUI.

YWidget * YQUI::createCheckBox (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
bool  checked
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createColoredLabel (  YWidget *  parent,
YWidgetOpt &  opt,
YCPString  label,
YColor  foreground,
YColor  background,
int  margin
)  [protected, virtual]
 

Reimplemented from YUI.

YWidget * YQUI::createComboBox (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createDate (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
const YCPString &  date
)  [protected, virtual]
 

Reimplemented from YUI.

YDialog * YQUI::createDialog (  YWidgetOpt &  opt  )  [protected, virtual]
 

Create a dialog.

Reimplemented from YUI.

Implements YUI.

YWidget * YQUI::createDownloadProgress (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
const YCPString &  filename,
int  expectedSize
)  [protected, virtual]
 

Reimplemented from YUI.

YWidget * YQUI::createDumbTab (  YWidget *  parent,
YWidgetOpt &  opt
)  [protected, virtual]
 

Reimplemented from YUI.

YWidget * YQUI::createEmpty (  YWidget *  parent,
YWidgetOpt &  opt
)  [protected, virtual]
 

Implements YUI.

YContainerWidget * YQUI::createFrame (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createImage (  YWidget *  parent,
YWidgetOpt &  opt,
YCPString  fileName,
YCPString  fallbackText
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createImage (  YWidget *  parent,
YWidgetOpt &  opt,
YCPByteblock  imageData,
YCPString  fallbackText
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createIntField (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
int  minValue,
int  maxValue,
int  initialValue
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createLabel (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  text
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createLogView (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
int  visibleLines,
int  maxLines
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createMenuButton (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createMultiLineEdit (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
const YCPString &  text
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createMultiProgressMeter (  YWidget *  parent,
YWidgetOpt &  opt,
bool  horizontal,
const YCPList &  maxValues
)  [protected, virtual]
 

Reimplemented from YUI.

YWidget * YQUI::createMultiSelectionBox (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createPackageSelector (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  floppyDevice
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createPartitionSplitter (  YWidget *  parent,
YWidgetOpt &  opt,
int  usedSize,
int  totalFreeSize,
int  newPartSize,
int  minNewPartSize,
int  minFreeSize,
const YCPString &  usedLabel,
const YCPString &  freeLabel,
const YCPString &  newPartLabel,
const YCPString &  freeFieldLabel,
const YCPString &  newPartFieldLabel
)  [protected, virtual]
 

Reimplemented from YUI.

YWidget * YQUI::createPkgSpecial (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  subwidget
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createProgressBar (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
const YCPInteger &  maxProgress,
const YCPInteger &  currentProgress
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createPushButton (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createRadioButton (  YWidget *  parent,
YWidgetOpt &  opt,
YRadioButtonGroup *  rbg,
const YCPString &  label,
bool  checked
)  [protected, virtual]
 

Implements YUI.

YContainerWidget * YQUI::createRadioButtonGroup (  YWidget *  parent,
YWidgetOpt &  opt
)  [protected, virtual]
 

Implements YUI.

YContainerWidget * YQUI::createReplacePoint (  YWidget *  parent,
YWidgetOpt &  opt
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createRichText (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  text
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createSelectionBox (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createSlider (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
int  minValue,
int  maxValue,
int  initialValue
)  [protected, virtual]
 

Reimplemented from YUI.

YWidget * YQUI::createSpacing (  YWidget *  parent,
YWidgetOpt &  opt,
float  size,
bool  horizontal,
bool  vertical
)  [protected, virtual]
 

Implements YUI.

YContainerWidget * YQUI::createSplit (  YWidget *  parent,
YWidgetOpt &  opt,
YUIDimension  dimension
)  [protected, virtual]
 

Implements YUI.

YContainerWidget * YQUI::createSquash (  YWidget *  parent,
YWidgetOpt &  opt,
bool  horSquash,
bool  vertSquash
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createTable (  YWidget *  parent,
YWidgetOpt &  opt,
vector< string >  header
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createTextEntry (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
const YCPString &  text
)  [protected, virtual]
 

Implements YUI.

YWidget * YQUI::createTime (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label,
const YCPString &  time
)  [protected, virtual]
 

Reimplemented from YUI.

YWidget * YQUI::createTree (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPString &  label
)  [protected, virtual]
 

Implements YUI.

YContainerWidget* YQUI::createWeight (  YWidget *  parent,
YWidgetOpt &  opt,
YUIDimension  dim,
long  weight
)  [protected]
 

YWidget * YQUI::createWizard (  YWidget *  parent,
YWidgetOpt &  opt,
const YCPValue &  backButtonId,
const YCPString &  backButtonLabel,
const YCPValue &  abortButtonId,
const YCPString &  abortButtonLabel,
const YCPValue &  nextButtonId,
const YCPString &  nextButtonLabel
)  [protected, virtual]
 

Reimplemented from YUI.

const QFont & YQUI::currentFont (   ) 
 

Returns the UI's default font.

bool YQUI::debugEmbedding (   )  const [inline]
 

Returns true if debugging embedding mode is on, i.e., when cmd line arg --debug-embedding was given.

bool YQUI::decorateToplevelWindow (   )  const [inline]
 

Returns 'false' if toplevel (defaultsize) windows should not get window manager decorations, i.e. "--noborder" was specified on the command line.

long YQUI::defaultSize (  YUIDimension  dim  )  const
 

Returns size for `opt(`defaultsize) dialogs (in one dimension).

long YQUI::deviceUnits (  YUIDimension  dim,
float  layout_units
)  [virtual]
 

Convert logical layout spacing units into device dependent units. A default size dialog is assumed to be 80x25 layout spacing units and 640x480 device dependent spacing units.

Reimplemented from YUI.

Reimplemented from YUI.

void YQUI::easterEgg (   )  [slot]
 

Fun stuff (release dependent)

bool YQUI::eventFilter (  QObject *  obj,
QEvent *  ev
)  [protected]
 

Grab show events and work around QWidgetStack bug.

Reimplemented from QObject.

bool YQUI::eventPendingFor (  YWidget *  widget  )  const [inline]
 

Returns 'true' if there is any event pending for the specified widget.

virtual bool YQUI::eventsBlocked (   )  const [inline, virtual]
 

Returns 'true' if events are currently blocked.

Reimplemented from YUI.

Reimplemented from YUI.

bool YQUI::fatalError (   )  const [inline]
 

Returns 'true' if the UI had a fatal error that requires the application to abort.

QString YQUI::fontKey (  const QString &  lang  )  [protected]
 

Constructs a key for the language specific font file: "font[lang]" for font[de_DE] = "Sans Serif" font[zh] = "ChineseSpecial, something" font[ja_JP] = "JapaneseSpecial, something" font = "Sans Serif"

bool YQUI::fullscreen (   )  const [inline]
 

Returns 'true' if defaultsize windows should use the full screen.

int YQUI::getDefaultHeight (   )  [protected, virtual]
 

Reimplemented from YUI.

int YQUI::getDefaultWidth (   )  [protected, virtual]
 

Reimplemented from YUI.

long YQUI::getDisplayColors (   )  [protected, virtual]
 

Reimplemented from YUI.

int YQUI::getDisplayDepth (   )  [protected, virtual]
 

Reimplemented from YUI.

int YQUI::getDisplayHeight (   )  [protected, virtual]
 

Reimplemented from YUI.

int YQUI::getDisplayWidth (   )  [protected, virtual]
 

Display capabilities. [Reimplemented from YUI] See UI builtin GetDisplayInfo() doc for details.

Reimplemented from YUI.

YCPString YQUI::glyph (  const YCPSymbol &  glyphSymbol  )  [protected, virtual]
 

Return a representation for the glyph symbol specified in UTF-8 encoding or an empty string to get a default textual representation.

Reimplemented from YUI.

Reimplemented from YUI.

bool YQUI::hasAnimationSupport (   )  [inline, protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasBarGraph (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasColoredLabel (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasDate (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasDownloadProgress (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasDumbTab (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasFullUtf8Support (   )  [inline, protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasIconSupport (   )  [inline, protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasImageSupport (   )  [inline, protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasLocalImageSupport (   )  [inline, protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasMultiProgressMeter (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasPartitionSplitter (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasSlider (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasTime (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::hasWizard (   )  [protected, virtual]
 

Reimplemented from YUI.

bool YQUI::haveWM (   )  const [inline]
 

Returns 'false" if the "--no-wm" was specified on the command line, i.e. we should assume no window manager is running.

const QFont & YQUI::headingFont (   ) 
 

Returns the UI's heading font.

void YQUI::idleLoop (  int  fd_ycp  )  [protected, virtual]
 

Idle around until fd_ycp is readable and handle repaints. This is only used when a separate ui thread is running.

Reimplemented from YUI.

Reimplemented from YUI.

void YQUI::internalError (  const char *  msg  )  [virtual]
 

Issue an internal error: Open popup with that message and wait.

Reimplemented from YUI.

Reimplemented from YUI.

float YQUI::layoutUnits (  YUIDimension  dim,
long  device_units
)  [virtual]
 

Convert device dependent units into logical layout spacing units. A default size dialog is assumed to be 80x25 layout spacing units and 640x480 device dependent spacing units.

Reimplemented from YUI.

Reimplemented from YUI.

void YQUI::leaveIdleLoop (  int   )  [protected, slot]
 

Sets leave_idle_loop to true.

void YQUI::loadPredefinedQtTranslations (   )  [protected]
 

Load translations for Qt's predefined dialogs like file selection box etc.

QWidget * YQUI::mainWidget (   ) 
 

main widget

void YQUI::makeScreenShot (  string  filename  )  [virtual]
 

Make a screen shot in .png format and save it to 'filename'. Opens a file selection box if 'filename' is empty.

Reimplemented from YUI.

void YQUI::normalCursor (   )  [virtual, slot]
 

Show pointer cursor.

Reimplemented from YUI.

Reimplemented from YUI.

QPalette YQUI::normalPalette (   )  const [inline]
 

Returns the normal color palette

YEvent* YQUI::pendingEvent (   )  const [inline]
 

Returns the last event that isn't processed yet or 0 if there is none.

The Qt UI keeps track of only one single (the last one) event.

void YQUI::pickAutoFonts (   )  [protected]
 

Determine good fonts based on defaultsize geometry and set _auto_normal_font_size and _auto_heading_font_size accordingly. Caches the values, so it's safe to call this repeatedly.

YEvent * YQUI::pollInput (   )  [protected, virtual]
 

Check the event queue for user input. Don't wait.

Reimplemented from YUI.

Implements YUI.

void YQUI::processCommandLineArgs (  int  argc,
char **  argv
)  [protected]
 

Handle command line args

QString YQUI::productName (   )  const
 

Returns the current product name ("SuSE Linux", "SuSE Linux Enterprise Server", "United Linux", etc.) as QString.

Reimplemented from YUI.

void YQUI::raiseFatalError (   )  [inline]
 

Raise a fatal UI error. It will be delivered when it is safe to do so. The caller should make sure it can continue for some time until the error is delivered.

bool YQUI::richTextSupportsTable (   )  [inline, protected, virtual]
 

Reimplemented from YUI.

bool YQUI::runningEmbedded (   )  const
 

Are we running embedded into another application, e.g., inside the KDE control center?

YCPValue YQUI::runPkgSelection (  YWidget *  packageSelector  )  [virtual]
 

UI-specific runPkgSeleciton method: Start the package selection. This implementation does the same as UserInput().

Reimplemented from YUI.

Reimplemented from YUI.

void YQUI::sendEvent (  YEvent *  event  ) 
 

Widget event handlers (slots) call this when an event occured that should be the answer to a UserInput() / PollInput() (etc.) call.

The UI assumes ownership of the event object that 'event' points to. In particular, it takes care to delete that object.

It is an error to pass 0 for 'event'.

void YQUI::setAllFontsDirty (   )  [protected]
 

Invalidate information about cached fonts so they will be reloaded upon their next usage

void YQUI::setEmbeddingParent (  QWidget *  p  )  [static]
 

Set the parent widget for embedding the UI into a KPart or KCMShell. Used by kyast.

void YQUI::setLangFonts (  const YCPString &  language  )  [protected]
 

Set fonts according to the specified language.

This is most important for some Asian languages that have overlaps in the Unicode table, like Japanese vs. Chinese.

YCPValue YQUI::setLanguage (  const YCPTerm &  term  )  [protected, virtual]
 

Sets the X input method according to the locale. [Reimplemented from YUI]

Reimplemented from YUI.

void YQUI::setTextdomain (  const char *  domain  )  [static]
 

Initialize and set a textdomain for gettext()

void YQUI::showDialog (  YDialog *  dialog  )  [protected, virtual]
 

Show and activate a dialog.

Reimplemented from YUI.

Reimplemented from YUI.

bool YQUI::showEventFilter (  QObject *  obj,
QEvent *  ev
)  [protected]
 

Make all UI windows usable without a mouse - even predefined Qt dialogs that don't know the UI's dialogs' activate() magic.

Reimplemented from QObject.

bool YQUI::textMode (   )  [inline, protected, virtual]
 

Reimplemented from YUI.

void YQUI::toggleRecordMacro (   ) 
 

Toggle macro recording (activated by Ctrl-Shift-Alt-M): Stop macro recording if it is in progress, open a file selection box and ask for a macro file name to save to and start recording if no recording has been in progress.

void YQUI::toggleVisionImpairedPalette (   ) 
 

Toggle between the vision impaired and the normal color palette.

static YQUI* YQUI::ui (   )  [inline, static]
 

Access the global Qt-UI.

Reimplemented from YUI.

void YQUI::unblockWmClose (   )  [inline]
 

Unblock WM_CLOSE events for the main window.

YEvent * YQUI::userInput (  unsigned long  timeout_millisec = 0  )  [protected, virtual]
 

Go into event loop until next user input is available.

Reimplemented from YUI.

Implements YUI.

void YQUI::userInputTimeout (   )  [protected, slot]
 

Timeout during TimeoutUserInput() / WaitForEvent()

bool YQUI::usingVisionImpairedPalette (   )  const [inline]
 

Returns 'true' if high-contrast colors for vision impaired users is in use. This should be queried at other places before using custom colors.

QPalette YQUI::visionImpairedPalette (   )  [static]
 

Returns a high-contrast color palette suitable for vision impaired users.

void YQUI::wmClose (   )  [signal]
 

Emitted upon WM_CLOSE


Member Data Documentation

bool YQUI::_auto_activate_dialogs [protected]
 

Force new dialogs to the foreground and grab the keyboard focus? (Only if running without a window manager)

bool YQUI::_auto_fonts [protected]
 

For auto fonts

int YQUI::_auto_heading_font_size [protected]
 

int YQUI::_auto_normal_font_size [protected]
 

QFont YQUI::_bold_font [protected]
 

Default bold font (cached)

QTimer YQUI::_busy_cursor_timer [protected]
 

Timer for delayed busy cursor

QFont YQUI::_current_font [protected]
 

Default font (cached)

bool YQUI::_debug_embedding [protected]
 

Fake embedding mode (for layout debugging in embedding mode)

bool YQUI::_decorate_toplevel_window [protected]
 

Decorate the toplevel window

QSize YQUI::_default_size [protected]
 

Size for `opt(`defaultsize) dialogs.

bool YQUI::_do_exit_loop [protected]
 

This flag is set during userInput in order to tell returnNow to call exit_loop, which only may be called after enter_loop.

QWidget * YQUI::_embeddingParent = 0 [static, protected]
 

Parent widget for embedding in a KPart or KCMShell

YSimpleEventHandler YQUI::_event_handler [protected]
 

The handler for the single pending event this UI keeps track of

bool YQUI::_fatal_error [protected]
 

Indicate a fatal error that requires the UI to terminate

QString YQUI::_font_family [protected]
 

Font family or list of font families to use ("Sans Serif" etc.)

bool YQUI::_fullscreen [protected]
 

Use the entire available screen

bool YQUI::_have_wm [protected]
 

Assume presence of a window manager

QFont YQUI::_heading_font [protected]
 

Heading font (cached)

QY2Settings* YQUI::_lang_fonts [protected]
 

Language-specific font settings

bool YQUI::_leave_idle_loop [protected]
 

A flag used during the idle loop. If it is set to true, the idle loop is left. This happens, if the ycp-ui-communication pipe to the ui gets readable.

bool YQUI::_loaded_bold_font [protected]
 

bool YQUI::_loaded_current_font [protected]
 

bool YQUI::_loaded_heading_font [protected]
 

int YQUI::_main_dialog_id [protected]
 

Numeric ID for defaultsize dialogs for the widget stack

QVBox* YQUI::_main_win [protected]
 

Container for the widget stack. QWidgetStack cannot handle a WFlags argument, so this needs to be embedded into something else - and a QVBox at least handles all the sizeHint and resize stuff.

QPalette YQUI::_normalPalette [protected]
 

Saved normal palette

vector<QWidget *> YQUI::_popup_stack [protected]
 

Stack to keep track of the stacking order of popup dialogs.

QTranslator YQUI::_qtTranslations [protected]
 

Translator for the predefined Qt dialogs

bool YQUI::_running_embedded [protected]
 

Flag that indicates if we are running embedded

YQUI * YQUI::_ui = 0 [static, protected]
 

Global reference to the UI

QTimer YQUI::_user_input_timer [protected]
 

Timer for TimeoutUserInput() / WaitForEvent().

bool YQUI::_usingVisionImpairedPalette [protected]
 

Flag: currently using special palette for vision impaired users?

QWidgetStack* YQUI::_widget_stack [protected]
 

Stack for the Qt widgets inside the main window.

bool YQUI::_wm_close_blocked [protected]
 

Window manager close events blocked?

QString YQUI::screenShotNameTemplate [protected]
 

QMap<QString, int> YQUI::screenShotNo [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 10:59:04 2005 for yast2-qt by  doxygen 1.4.4