Code Monkey home page Code Monkey logo

scribuspad's Introduction

Hints and questions about scribus code Notes, questions et expérimentations sur le code Scribus

  • is there a difference between : assert( cond ); and Q_ASSERT(cond); ?

  • Does printBacktrace(24); print a backtrace on the terminal ?

  • définir dumpIt ou voir si ça existe quelquepart pour :

// dans void PageItem_TextFrame::layout(), dump styles : qDebug("JL : PARstyles of the textframe ", itemName()); for (int i=0; i < itemText.nrOfParagraphs(); ++i) { const ParagraphStyle& pstyle(itemText.paragraphStyle(itemText.endOfParagraph(i))); qDebug("par %d:", i); dumpIt(pstyle); } qDebug() << "default:"; dumpIt(itemText.defaultStyle());

  • All PageItem items have an itemText of class StoryText. Why not only PageItem_TextFrame's ?
  • Is itemText->length() 0 for all linked text frames except first one ?

============= Semble t il :

  • les instances de LineControl servent à se représenter une ligne in situ et à y projeter les calculs de layout ?

  • firstInFrame() renvoie l'index du caractère du 1er caractère du frame au sein du story = texte de la chaine de textframes. Commence à 0.

  • lastInFrame() renvoie l'index du caractère du dernier caractère du frame au sein du story. MaxChars - 1.

  • tous les itemText d'une même chaine ont un itemText identique, contenant le texte de toute la chaine (par quel mécanisme ? une ref à l'initatialisation ?)

  • on peut sprinter des QString ainsi : QString("first line at y=%1").arg(current.yPos);

scribuspad's People

Contributors

jluc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.