Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

ScripterPrefsGui Class Reference

Subclass of PrefsPanel that's supplied to the prefs dialog for use when showing plugin preferences. More...

#include <scripterprefsgui.h>

Inheritance diagram for ScripterPrefsGui:

Inheritance graph
[legend]
Collaboration diagram for ScripterPrefsGui:

Collaboration graph
[legend]

List of all members.

Public Slots

void apply ()
 applies changes made to prefs to the app.

Public Member Functions

 ScripterPrefsGui (QWidget *parent)
 ~ScripterPrefsGui ()

Protected Slots

void languageChange ()
void setColor ()
 All requests for color change are handled here.
void changeStartupScript ()

Protected Member Functions

void setupSyntaxColors ()


Detailed Description

Subclass of PrefsPanel that's supplied to the prefs dialog for use when showing plugin preferences.

Definition at line 16 of file scripterprefsgui.h.


Constructor & Destructor Documentation

ScripterPrefsGui::ScripterPrefsGui ( QWidget *  parent  ) 

ScripterPrefsGui::~ScripterPrefsGui (  ) 

Definition at line 50 of file scripterprefsgui.cpp.


Member Function Documentation

void ScripterPrefsGui::apply (  )  [virtual, slot]

applies changes made to prefs to the app.

All subclasses MUST override this.

This slot may be called multiple times, once, or not at all; no assumptions should be made.

Implements PrefsPanel.

Definition at line 73 of file scripterprefsgui.cpp.

References SyntaxColors::commentColor, SyntaxColors::errorColor, SyntaxColors::keywordColor, SyntaxColors::numberColor, scripterCore, ScripterCore::setExtensionsEnabled(), ScripterCore::setStartupScript(), SyntaxColors::signColor, SyntaxColors::stringColor, and SyntaxColors::textColor.

void ScripterPrefsGui::setupSyntaxColors (  )  [protected]

void ScripterPrefsGui::languageChange (  )  [protected, slot]

Definition at line 58 of file scripterprefsgui.cpp.

References tr().

Referenced by ScripterPrefsGui().

void ScripterPrefsGui::setColor (  )  [protected, slot]

All requests for color change are handled here.

Author:
Petr Vanek
Warning:
I'm trying to handle multiple signals via single slot here. sender() Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise the return value is undefined. This function will return something apparently correct in other cases as well. However, its value may change during any function call, depending on what signal-slot connections are activated during that call. In Qt 3.0 the value will change more often than in 2.x. This function violates the object-oriented principle of modularity. However, getting access to the sender might be useful when many signals are connected to a single slot. The sender is undefined if the slot is called as a normal C++ function.

Definition at line 89 of file scripterprefsgui.cpp.

Referenced by ScripterPrefsGui().

void ScripterPrefsGui::changeStartupScript (  )  [protected, slot]

Definition at line 122 of file scripterprefsgui.cpp.

References tr().

Referenced by ScripterPrefsGui().


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.