Esempio n. 1
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Uppercasedigits(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("uppercasedigits#", "uppercasedigits(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 2
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Write(QTextStream arg1, QSplitter arg2)
 {
     return (QTextStream) staticInterceptor.Invoke("operator<<##", "operator<<(QTextStream&, const QSplitter&)", typeof(QTextStream), typeof(QTextStream), arg1, typeof(QSplitter), arg2);
 }
Esempio n. 3
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Read(QTextStream arg1, QSplitter arg2)
 {
     return (QTextStream) staticInterceptor.Invoke("operator>>##", "operator>>(QTextStream&, QSplitter&)", typeof(QTextStream), typeof(QTextStream), arg1, typeof(QSplitter), arg2);
 }
Esempio n. 4
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Scientific(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("scientific#", "scientific(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 5
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Hex(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("hex#", "hex(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 6
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Noforcesign(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("noforcesign#", "noforcesign(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 7
0
 public void Save(QTextStream arg1, int arg2, QDomNode.EncodingPolicy arg3)
 {
     interceptor.Invoke("save#$$", "save(QTextStream&, int, QDomNode::EncodingPolicy) const", typeof(void), typeof(QTextStream), arg1, typeof(int), arg2, typeof(QDomNode.EncodingPolicy), arg3);
 }
Esempio n. 8
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Flush(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("flush#", "flush(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 9
0
 public void Save(QTextStream arg1, int arg2, QDomNode.EncodingPolicy arg3)
 {
     interceptor.Invoke("save#$$", "save(QTextStream&, int, QDomNode::EncodingPolicy) const", typeof(void), typeof(QTextStream), arg1, typeof(int), arg2, typeof(QDomNode.EncodingPolicy), arg3);
 }
Esempio n. 10
0
 public void Save(QTextStream arg1, int arg2)
 {
     interceptor.Invoke("save#$", "save(QTextStream&, int) const", typeof(void), typeof(QTextStream), arg1, typeof(int), arg2);
 }
Esempio n. 11
0
 public void Save(QTextStream arg1, int arg2)
 {
     interceptor.Invoke("save#$", "save(QTextStream&, int) const", typeof(void), typeof(QTextStream), arg1, typeof(int), arg2);
 }
Esempio n. 12
0
 public override Soprano.Error.ErrorCode Write(QTextStream os)
 {
     return (Soprano.Error.ErrorCode) interceptor.Invoke("write#", "write(QTextStream&) const", typeof(Soprano.Error.ErrorCode), typeof(QTextStream), os);
 }
Esempio n. 13
0
 /// <remarks>
 ///  Get a document for a specific resource. This is only possible after starting a transaction.
 ///  \param resource The resource for which a document is requested.
 ///  \return The document representing the resource or 0 if no transaction has been started or
 ///  a clucene error occured.
 ///  \warning This is an advanced method. Calling this method is thread-safe but using the 
 ///  returned document is not.
 ///              </remarks>        <short>    Get a document for a specific resource.</short>
 /// <remarks>
 ///  Evaluates the given query.
 ///  Each hit is a resource and a score. Resource properties may be read from the model.
 ///  \param query The query in the CLucene query language.
 ///  \return The results as an iterator over QueryHit objects or an invalid iterator
 ///  on error.
 ///              </remarks>        <short>    Evaluates the given query.</short>
 /// <remarks>
 ///  Evaluates the given query.
 ///  Each hit is a resource and a score. Resource properties may be read from the model.
 ///  \param query The query to evaluate. The iterator takes ownership of the query. 
 ///  Do not delete.it! (If anyone using this understands the weird CLucene memory
 ///  management enough to fix this issue, please...)
 ///  \return The results as an iterator over QueryHit objects or an invalid iterator
 ///  on error.
 ///  \warning The result iterator uses the query object.
 ///              </remarks>        <short>    Evaluates the given query.</short>
 /// <remarks>
 ///  Dump the index contents to the stream
 ///              </remarks>        <short>    Dump the index contents to the stream              </short>
 public void Dump(QTextStream arg1)
 {
     interceptor.Invoke("dump#", "dump(QTextStream&) const", typeof(void), typeof(QTextStream), arg1);
 }
Esempio n. 14
0
 public abstract Soprano.StatementIterator ParseStream(QTextStream stream, QUrl baseUri, Soprano.RdfSerialization serialization, string userSerialization);
Esempio n. 15
0
 public void SetFieldAlignment(QTextStream.FieldAlignment alignment)
 {
     interceptor.Invoke("setFieldAlignment$", "setFieldAlignment(QTextStream::FieldAlignment)", typeof(void), typeof(QTextStream.FieldAlignment), alignment);
 }
Esempio n. 16
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Fixed(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("fixed#", "fixed(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 17
0
 public void SetRealNumberNotation(QTextStream.RealNumberNotation notation)
 {
     interceptor.Invoke("setRealNumberNotation$", "setRealNumberNotation(QTextStream::RealNumberNotation)", typeof(void), typeof(QTextStream.RealNumberNotation), notation);
 }
Esempio n. 18
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Forcepoint(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("forcepoint#", "forcepoint(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 19
0
 public void SetStatus(QTextStream.Status status)
 {
     interceptor.Invoke("setStatus$", "setStatus(QTextStream::Status)", typeof(void), typeof(QTextStream.Status), status);
 }
Esempio n. 20
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Lowercasebase(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("lowercasebase#", "lowercasebase(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 21
0
 public abstract bool Serialize(Soprano.StatementIterator it, QTextStream stream, Soprano.RdfSerialization serialization, string userSerialization);
Esempio n. 22
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Oct(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("oct#", "oct(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 23
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Bom(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("bom#", "bom(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 24
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Right(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("right#", "right(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 25
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Center(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("center#", "center(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 26
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Showbase(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("showbase#", "showbase(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 27
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Dec(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("dec#", "dec(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 28
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Write(QTextStream arg1, QDomNode arg2)
 {
     return (QTextStream) staticInterceptor.Invoke("operator<<##", "operator<<(QTextStream&, const QDomNode&)", typeof(QTextStream), typeof(QTextStream), arg1, typeof(QDomNode), arg2);
 }
Esempio n. 29
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Endl(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("endl#", "endl(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 30
0
File: Qt.cs Progetto: KDE/qyoto
 public static QTextStream Ws(QTextStream s)
 {
     return (QTextStream) staticInterceptor.Invoke("ws#", "ws(QTextStream&)", typeof(QTextStream), typeof(QTextStream), s);
 }
Esempio n. 31
0
    public static int Main(String[] argv)
    {
        KAboutData aboutData = new KAboutData(  "kwrite-sharp", "Simple Text Editor",
                                                KDE.Ki18n("KWrite"),
                                                "4.1", // KDE.VersionString(),
                                                KDE.Ki18n("KWrite - Text Editor"),
                                                KAboutData.LicenseKey.License_LGPL_V2,
                                                KDE.Ki18n("(c) 2000-2005 The Kate Authors"),
                                                new KLocalizedString(),
                                                "http://www.kate-editor.org" );

        aboutData.AddAuthor(KDE.Ki18n("Christoph Cullmann"), KDE.Ki18n("Maintainer"), "*****@*****.**", "http://www.babylon2k.de");
        aboutData.AddAuthor(KDE.Ki18n("Anders Lund"), KDE.Ki18n("Core Developer"), "*****@*****.**", "http://www.alweb.dk");
        aboutData.AddAuthor(KDE.Ki18n("Joseph Wenninger"), KDE.Ki18n("Core Developer"), "*****@*****.**","http://stud3.tuwien.ac.at/~e9925371");
        aboutData.AddAuthor(KDE.Ki18n("Hamish Rodda"),KDE.Ki18n("Core Developer"), "*****@*****.**");
        aboutData.AddAuthor(KDE.Ki18n("Dominik Haumann"), KDE.Ki18n("Developer & Highlight wizard"), "*****@*****.**");
        aboutData.AddAuthor(KDE.Ki18n("Waldo Bastian"), KDE.Ki18n( "The cool buffersystem" ), "*****@*****.**" );
        aboutData.AddAuthor(KDE.Ki18n("Charles Samuels"), KDE.Ki18n("The Editing Commands"), "*****@*****.**");
        aboutData.AddAuthor(KDE.Ki18n("Matt Newell"), KDE.Ki18n("Testing, ..."), "*****@*****.**");
        aboutData.AddAuthor(KDE.Ki18n("Michael Bartl"), KDE.Ki18n("Former Core Developer"), "*****@*****.**");
        aboutData.AddAuthor(KDE.Ki18n("Michael McCallum"), KDE.Ki18n("Core Developer"), "*****@*****.**");
        aboutData.AddAuthor(KDE.Ki18n("Jochen Wilhemly"), KDE.Ki18n( "KWrite Author" ), "*****@*****.**" );
        aboutData.AddAuthor(KDE.Ki18n("Michael Koch"),KDE.Ki18n("KWrite port to KParts"), "*****@*****.**");
        aboutData.AddAuthor(KDE.Ki18n("Christian Gebauer"), new KLocalizedString(), "*****@*****.**" );
        aboutData.AddAuthor(KDE.Ki18n("Simon Hausmann"), new KLocalizedString(), "*****@*****.**" );
        aboutData.AddAuthor(KDE.Ki18n("Glen Parker"),KDE.Ki18n("KWrite Undo History, Kspell integration"), "*****@*****.**");
        aboutData.AddAuthor(KDE.Ki18n("Scott Manson"),KDE.Ki18n("KWrite XML Syntax highlighting support"), "*****@*****.**");
        aboutData.AddAuthor(KDE.Ki18n("John Firebaugh"),KDE.Ki18n("Patches and more"), "*****@*****.**");

        aboutData.AddCredit(KDE.Ki18n("Matteo Merli"),KDE.Ki18n("Highlighting for RPM Spec-Files, Perl, Diff and more"), "*****@*****.**");
        aboutData.AddCredit(KDE.Ki18n("Rocky Scaletta"),KDE.Ki18n("Highlighting for VHDL"), "*****@*****.**");
        aboutData.AddCredit(KDE.Ki18n("Yury Lebedev"),KDE.Ki18n("Highlighting for SQL"));
        aboutData.AddCredit(KDE.Ki18n("Chris Ross"),KDE.Ki18n("Highlighting for Ferite"));
        aboutData.AddCredit(KDE.Ki18n("Nick Roux"),KDE.Ki18n("Highlighting for ILERPG"));
        aboutData.AddCredit(KDE.Ki18n("Carsten Niehaus"), KDE.Ki18n("Highlighting for LaTeX"));
        aboutData.AddCredit(KDE.Ki18n("Per Wigren"), KDE.Ki18n("Highlighting for Makefiles, Python"));
        aboutData.AddCredit(KDE.Ki18n("Jan Fritz"), KDE.Ki18n("Highlighting for Python"));
        aboutData.AddCredit(KDE.Ki18n("Daniel Naber"));
        aboutData.AddCredit(KDE.Ki18n("Roland Pabel"),KDE.Ki18n("Highlighting for Scheme"));
        aboutData.AddCredit(KDE.Ki18n("Cristi Dumitrescu"),KDE.Ki18n("PHP Keyword/Datatype list"));
        aboutData.AddCredit(KDE.Ki18n("Carsten Pfeiffer"), KDE.Ki18n("Very nice help"));
        aboutData.AddCredit(KDE.Ki18n("Richard Dale"), KDE.Ki18n("C# port"));
        aboutData.AddCredit(KDE.Ki18n("All people who have contributed and I have forgotten to mention"));
        aboutData.SetProgramIconName("accessories-text-editor");

        KCmdLineArgs.Init(argv, aboutData);

        KCmdLineOptions options = new KCmdLineOptions();
        options.Add("stdin", KDE.Ki18n("Read the contents of stdin"));
        options.Add("encoding <argument>", KDE.Ki18n("Set encoding for the file to open"));
        options.Add("line <argument>", KDE.Ki18n("Navigate to this line"));
        options.Add("column <argument>", KDE.Ki18n("Navigate to this column"));
        options.Add("+[URL]", KDE.Ki18n("Document to open"));
        KCmdLineArgs.AddCmdLineOptions(options);

        KApplication kapp = new KApplication();

        KGlobal.Locale().InsertCatalog("katepart4");
        KCmdLineArgs args = KCmdLineArgs.ParsedArgs();

        if (kapp.IsSessionRestored()) {
            KWrite.Restore();
        } else {
            bool nav = false;
            int line = 0, column = 0;

            QTextCodec codec = args.IsSet("encoding") ? QTextCodec.CodecForName(args.GetOption("encoding")) : null;

            if (args.IsSet("line")) {
                line = System.Convert.ToInt32(args.GetOption("line")) - 1;
                nav = true;
            }

            if (args.IsSet("column")) {
                column = System.Convert.ToInt32(args.GetOption("column")) - 1;
                nav = true;
            }

            if (args.Count() == 0) {
                KWrite t = new KWrite((KTextEditor.Document) null);

                if (args.IsSet("stdin")) {
                    QTextStream input = new QTextStream(Console.OpenStandardInput());

                    // set chosen codec
                    if (codec != null)
                        input.SetCodec(codec);

                    string inputLine;
                    string text = "";

                    do {
                        inputLine = input.ReadLine();
                        text += (inputLine + "\n");
                    } while (inputLine != null);

                    KTextEditor.Document doc = t.View().Document();
                    if (doc != null)
                        doc.SetText(text);
                }

                if (nav && t.View() != null)
                    t.View().SetCursorPosition(new KTextEditor.Cursor(line, column));
            } else {
                int docs_opened = 0;
                for ( int z = 0; z < args.Count(); z++ ) {
                    // this file is no local dir, open it, else warn
                    bool noDir = !args.Url(z).IsLocalFile()  || !(new QDir(args.Url(z).Path())).Exists();
                    if (noDir) {
                        ++docs_opened;
                        KWrite t = new KWrite();
                        //if (codec != null)
                        //    t.View().Document().SetEncoding(codec.Name());
                        t.LoadURL(args.Url(z));
                        if (nav)
                            t.View().SetCursorPosition(new KTextEditor.Cursor(line, column));
                    } else {
                        KMessageBox.Sorry(null, KDE.I18n("The file " + args.Url(z).Url() + " could not be opened: it is not a normal file, it is a folder."));
                    }
                }
                if (docs_opened == 0) return 1; // see http://bugs.kde.org/show_bug.cgi?id=124708
            }
        }

        // no window there, uh, ohh, for example borked session config !!!
        // create at least one !!
        if (KWrite.NoWindows())
            new KWrite();
        return KApplication.Exec();
    }