BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
qdesigner_internal Namespace Reference

Namespaces

 Utils
 

Classes

class  DesignerIconCache
 
class  DesignerMetaEnum
 
class  DesignerMetaFlags
 
class  DesignerPixmapCache
 
class  DeviceProfile
 
struct  FormBuilderClipboard
 
class  FormWindowBase
 
class  MetaEnum
 
class  NewFormWidgetFormBuilder
 
struct  PropertySheetEnumValue
 
struct  PropertySheetFlagValue
 
class  PropertySheetIconValue
 
class  PropertySheetKeySequenceValue
 
class  PropertySheetPixmapValue
 
class  PropertySheetStringListValue
 
class  PropertySheetStringValue
 
class  PropertySheetTranslatableData
 
class  QDesignerDnDItem
 
class  QDesignerFormBuilder
 
class  QDesignerMimeData
 
class  QDesignerWidgetBox
 
class  QEditorFormBuilder
 
class  QSimpleResource
 
class  SheetDelegate
 
class  UpdateBlocker
 
class  WidgetBox
 
struct  WidgetBoxCategoryEntry
 
class  WidgetBoxCategoryEntryDelegate
 
class  WidgetBoxCategoryListView
 
class  WidgetBoxCategoryModel
 
class  WidgetBoxFilterLineEdit
 
class  WidgetBoxTreeWidget
 WidgetBoxTreeWidget: A tree of categories. More...
 

Enumerations

enum  AuxiliaryItemDataRoles { ItemFlagsShadowRole = 0x13370551 }
 
enum  ContainerType { PageContainer , MdiContainer , WizardContainer }
 
enum  TextPropertyValidationMode {
  ValidationMultiLine , ValidationRichText , ValidationStyleSheet , ValidationSingleLine ,
  ValidationObjectName , ValidationObjectNameScope , ValidationURL
}
 

Functions

static const QDesignerMimeDatacheckDragEvent (QDropEvent *event, bool acceptEventsFromWidgetBox)
 
QDESIGNER_SHARED_EXPORT QDesignerFormWindowCommand * createTextPropertyCommand (const QString &propertyName, const QString &text, QObject *object, QDesignerFormWindowInterface *fw)
 
QDESIGNER_SHARED_EXPORT void designerWarning (const QString &message)
 
static QString msgXmlError (const QString &fileName, const QXmlStreamReader &r)
 
bool operator!= (const DeviceProfile &s1, const DeviceProfile &s2)
 
QDESIGNER_SHARED_EXPORT QDebug operator<< (QDebug, const PropertySheetIconValue &)
 
bool operator== (const DeviceProfile &s1, const DeviceProfile &s2)
 
QDESIGNER_SHARED_EXPORT QAction * preferredEditAction (QDesignerFormEditorInterface *core, QWidget *managedWidget)
 
QDESIGNER_SHARED_EXPORT QString qtify (const QString &name)
 
QDESIGNER_SHARED_EXPORT void reloadIconResources (DesignerIconCache *iconCache, QObject *object)
 
QDESIGNER_SHARED_EXPORT bool runUIC (const QString &fileName, QByteArray &ba, QString &errorMessage)
 

Enumeration Type Documentation

◆ AuxiliaryItemDataRoles

Enumerator
ItemFlagsShadowRole 

Definition at line 91 of file shared_enums_p.h.

91  {
92  // item->flags while being edited
93  ItemFlagsShadowRole = 0x13370551
94 };

◆ ContainerType

Enumerator
PageContainer 
MdiContainer 
WizardContainer 

Definition at line 81 of file shared_enums_p.h.

81  {
82  // A container with pages, at least one of which one must always be present (for example,
83  // QTabWidget)
85  // Mdi type container. All pages may be deleted, no concept of page order
87  // Wizard container
89 };

◆ TextPropertyValidationMode

Enumerator
ValidationMultiLine 
ValidationRichText 
ValidationStyleSheet 
ValidationSingleLine 
ValidationObjectName 
ValidationObjectNameScope 
ValidationURL 

Definition at line 63 of file shared_enums_p.h.

63  {
64  // Allow for multiline editing using literal "\n".
66  // Allow for HTML rich text including multiline editing using literal "\n".
68  // Validate a stylesheet
70  // Single line mode, suppresses newlines
72  // Allow only for identifier characters
74  // Allow only for identifier characters and colons
76  // URL
78 };

Function Documentation

◆ checkDragEvent()

static const QDesignerMimeData* qdesigner_internal::checkDragEvent ( QDropEvent *  event,
bool  acceptEventsFromWidgetBox 
)
static

Definition at line 248 of file widgetbox.cpp.

249 {
250  // std::cout << "QDesignerMimeData *checkDragEvent() -> ?" << std::endl;
251  const QDesignerMimeData* mimeData = qobject_cast<const QDesignerMimeData*>(event->mimeData());
252  if (!mimeData) {
253  event->ignore();
254  return 0;
255  }
256  // If desired, ignore a widget box drag and drop, where widget==0.
257  if (!acceptEventsFromWidgetBox) {
258  const bool fromWidgetBox = !mimeData->items().first()->widget();
259  if (fromWidgetBox) {
260  event->ignore();
261  return 0;
262  }
263  }
264 
265  mimeData->acceptEvent(event);
266  return mimeData;
267 }

References qdesigner_internal::QDesignerMimeData::acceptEvent(), and qdesigner_internal::QDesignerMimeData::items().

Referenced by qdesigner_internal::WidgetBox::dragEnterEvent(), qdesigner_internal::WidgetBox::dragMoveEvent(), and qdesigner_internal::WidgetBox::dropEvent().

Here is the call graph for this function:

◆ createTextPropertyCommand()

QDESIGNER_SHARED_EXPORT QDesignerFormWindowCommand* qdesigner_internal::createTextPropertyCommand ( const QString &  propertyName,
const QString &  text,
QObject *  object,
QDesignerFormWindowInterface *  fw 
)

◆ designerWarning()

QDESIGNER_SHARED_EXPORT void qdesigner_internal::designerWarning ( const QString &  message)

◆ msgXmlError()

static QString qdesigner_internal::msgXmlError ( const QString &  fileName,
const QXmlStreamReader &  r 
)
inlinestatic

Definition at line 330 of file widgetboxtreewidget.cpp.

331 {
332  return QString("An error has been encountered at line %1 of %2: %3")
333  .arg(r.lineNumber())
334  .arg(fileName, r.errorString());
335 }

Referenced by qdesigner_internal::WidgetBoxTreeWidget::readCategories().

◆ operator!=()

bool qdesigner_internal::operator!= ( const DeviceProfile s1,
const DeviceProfile s2 
)
inline

Definition at line 146 of file deviceprofile_p.h.

147 {
148  return !s1.equals(s2);
149 }

References qdesigner_internal::DeviceProfile::equals().

Here is the call graph for this function:

◆ operator<<()

QDESIGNER_SHARED_EXPORT QDebug qdesigner_internal::operator<< ( QDebug  ,
const PropertySheetIconValue  
)

◆ operator==()

bool qdesigner_internal::operator== ( const DeviceProfile s1,
const DeviceProfile s2 
)
inline

Definition at line 142 of file deviceprofile_p.h.

143 {
144  return s1.equals(s2);
145 }

References qdesigner_internal::DeviceProfile::equals().

Here is the call graph for this function:

◆ preferredEditAction()

QDESIGNER_SHARED_EXPORT QAction* qdesigner_internal::preferredEditAction ( QDesignerFormEditorInterface *  core,
QWidget *  managedWidget 
)

◆ qtify()

QDESIGNER_SHARED_EXPORT QString qdesigner_internal::qtify ( const QString &  name)

◆ reloadIconResources()

QDESIGNER_SHARED_EXPORT void qdesigner_internal::reloadIconResources ( DesignerIconCache iconCache,
QObject *  object 
)

◆ runUIC()

QDESIGNER_SHARED_EXPORT bool qdesigner_internal::runUIC ( const QString &  fileName,
QByteArray &  ba,
QString &  errorMessage 
)